diff --git a/package-lock.json b/package-lock.json index 09311b1..0ef6ca4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,15 @@ { - "name": "weather", + "name": "regreso", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "weather", + "name": "regreso", "license": "MIT", "dependencies": { "@raycast/api": "^1.101.1", - "@raycast/utils": "^1.17.0" + "@raycast/utils": "^1.17.0", + "@regreso/utils": "^0.1.6" }, "devDependencies": { "@raycast/eslint-config": "^2.0.4", @@ -1204,6 +1205,14 @@ "@raycast/api": ">=1.69.0" } }, + "node_modules/@regreso/utils": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@regreso/utils/-/utils-0.1.6.tgz", + "integrity": "sha512-4HAoQtFjGFLDUhQI/hOoID65JF2Zb78RXvl8p+wEGfGlVY2qYamBlR72FNo7qtjkEEBDwmTUWpCtZOlYyE/ubw==", + "dependencies": { + "node-html-parser": "^7.0.1" + } + }, "node_modules/@types/estree": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", @@ -1588,6 +1597,11 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, "node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", @@ -1738,6 +1752,32 @@ "node": ">= 8" } }, + "node_modules/css-select": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", + "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-what": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", + "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -1777,6 +1817,57 @@ "node": ">=6" } }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, "node_modules/ejs": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", @@ -1798,6 +1889,17 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "license": "MIT" }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/esbuild": { "version": "0.25.8", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.8.tgz", @@ -2294,6 +2396,14 @@ "node": ">=8" } }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "bin": { + "he": "bin/he" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -2642,6 +2752,26 @@ } } }, + "node_modules/node-html-parser": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-7.0.1.tgz", + "integrity": "sha512-KGtmPY2kS0thCWGK0VuPyOS+pBKhhe8gXztzA2ilAOhbUbxa9homF1bOyKvhGzMLXUoRds9IOmr/v5lr/lqNmA==", + "dependencies": { + "css-select": "^5.1.0", + "he": "1.2.0" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, "node_modules/object-hash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", diff --git a/package.json b/package.json index 5144b26..c2cefea 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,97 @@ { "$schema": "https://www.raycast.com/schemas/extension.json", - "name": "hello", - "title": "Hello World", - "description": "Sample extension for Raycast", + "name": "regreso", + "title": "Regreso", + "description": "Create destinations for resources you want to return to later, manage maps, trunks, and tags.", "icon": "extension-icon.png", - "author": "samliu", + "author": "regreso", "license": "MIT", "commands": [ { - "name": "hello", - "title": "hello", - "description": "Say hello. This is a sample command!", + "name": "create-destination", + "title": "Create Destination", + "description": "Creates a new destination, which can be a URL or note.", + "mode": "view", + "arguments": [ + { + "name": "title", + "placeholder": "Title", + "type": "text" + }, + { + "name": "url", + "placeholder": "URL", + "type": "text" + }, + { + "name": "trunk", + "placeholder": "Trunk ID", + "type": "text" + } + ], + "preferences": [ + { + "name": "ai-tagging", + "title": "Enable AI Tagging", + "description": "Enable AI-tagging for new destinations using your LLM instance.", + "type": "checkbox", + "required": true, + "default": false + }, + { + "name": "ai-instance", + "title": "AI Instance URL", + "description": "The URL of your LLM instance for AI-tagging", + "type": "textfield", + "required": false, + "placeholder": "https://ai.hackclub.com", + "default": "https://ai.hackclub.com" + } + ] + }, + { + "name": "list-destinations", + "title": "List Destinations", + "description": "Lists all your saved destinations.", "mode": "view" } ], + "preferences": [ + { + "name": "instance-url", + "title": "Instance URL", + "description": "The URL of your Regreso instance.", + "type": "textfield", + "required": true, + "placeholder": "https://regreso.netlify.app", + "default": "https://regreso.netlify.app" + }, + { + "name": "email", + "title": "Email", + "description": "The email for your Regreso account.", + "type": "textfield", + "required": true, + "placeholder": "steve@pelicans.dev" + }, + { + "name": "password", + "title": "Password", + "description": "The password for your Regreso account.", + "type": "password", + "required": true + }, + { + "name": "session-token", + "title": "Session Token", + "description": "The session token for your Regreso account. If you have a session token, you can use it instead of email and password.", + "type": "password" + } + ], "dependencies": { "@raycast/api": "^1.101.1", - "@raycast/utils": "^1.17.0" + "@raycast/utils": "^1.17.0", + "@regreso/utils": "^0.1.6" }, "devDependencies": { "@raycast/eslint-config": "^2.0.4", @@ -34,4 +109,4 @@ "prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1", "publish": "npx @raycast/api@latest publish" } -} \ No newline at end of file +}