@todoforai/edge 0.13.3 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +24 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47829,6 +47829,24 @@ function normalizeApiUrl(url) {
|
|
|
47829
47829
|
return url;
|
|
47830
47830
|
}
|
|
47831
47831
|
var SUBCOMMANDS = new Set(["login", "logout"]);
|
|
47832
|
+
var HELP_TEXT = `todoforai-edge — connect this machine to TODOforAI
|
|
47833
|
+
|
|
47834
|
+
Usage:
|
|
47835
|
+
todoforai-edge [options]
|
|
47836
|
+
todoforai-edge <command> [options]
|
|
47837
|
+
|
|
47838
|
+
Commands:
|
|
47839
|
+
login Force device-login flow (clears saved key for --api-url)
|
|
47840
|
+
logout Clear saved key for --api-url
|
|
47841
|
+
|
|
47842
|
+
Options:
|
|
47843
|
+
--api-key <key> API key (env: TODOFORAI_API_KEY)
|
|
47844
|
+
--api-url <url> API URL (env: TODOFORAI_API_URL, default: https://api.todofor.ai)
|
|
47845
|
+
--add-path <path> Add workspace path to this edge
|
|
47846
|
+
--kill Replace any existing edge instance for this user+server
|
|
47847
|
+
--debug Verbose logging (env: TODOFORAI_DEBUG=1)
|
|
47848
|
+
-v, --version Print version and exit
|
|
47849
|
+
-h, --help Show this help and exit`;
|
|
47832
47850
|
function loadConfig() {
|
|
47833
47851
|
const argv = process.argv.slice(2);
|
|
47834
47852
|
let subcommand;
|
|
@@ -47843,11 +47861,16 @@ function loadConfig() {
|
|
|
47843
47861
|
debug: { type: "boolean", default: false },
|
|
47844
47862
|
kill: { type: "boolean", default: false },
|
|
47845
47863
|
"add-path": { type: "string" },
|
|
47846
|
-
version: { type: "boolean", short: "v", default: false }
|
|
47864
|
+
version: { type: "boolean", short: "v", default: false },
|
|
47865
|
+
help: { type: "boolean", short: "h", default: false }
|
|
47847
47866
|
},
|
|
47848
47867
|
allowPositionals: false,
|
|
47849
47868
|
strict: false
|
|
47850
47869
|
});
|
|
47870
|
+
if (values.help) {
|
|
47871
|
+
console.log(HELP_TEXT);
|
|
47872
|
+
process.exit(0);
|
|
47873
|
+
}
|
|
47851
47874
|
if (values.version) {
|
|
47852
47875
|
console.log("todoforai-edge-bun 0.1.0");
|
|
47853
47876
|
process.exit(0);
|