worktrust 0.10.7 → 0.10.8
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/package.json +1 -1
- package/worktrust.mjs +3 -2
package/package.json
CHANGED
package/worktrust.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const command = args.find((arg, at) => !arg.startsWith("--") && !(at > 0 && VALU
|
|
|
74
74
|
const flag = (name) => { const at = args.indexOf(`--${name}`); return at >= 0 ? args[at + 1] : undefined; };
|
|
75
75
|
const has = (name) => args.includes(`--${name}`);
|
|
76
76
|
/** This CLI's version, said to the door so the app can tell which computer runs an old one (check-cli-package holds it equal to package.json). */
|
|
77
|
-
const CLI_VERSION = "0.10.
|
|
77
|
+
const CLI_VERSION = "0.10.8";
|
|
78
78
|
const ORIGIN = (flag("origin") ?? process.env.WORKTRUST_ORIGIN ?? "https://app.worktrust.io").replace(/\/$/, "");
|
|
79
79
|
const MCP = flag("url") ?? process.env.WORKTRUST_MCP_URL ?? `${ORIGIN}/api/mcp`;
|
|
80
80
|
const HOME_DIR = join(homedir(), ".worktrust");
|
|
@@ -995,7 +995,8 @@ if (agentShell && PERSON_ONLY.has(command)) {
|
|
|
995
995
|
* test), an AI agent's shell: this version runs as it is. The bridge and the hook, which run many times a day from the
|
|
996
996
|
* stable copy, never ask.
|
|
997
997
|
*/
|
|
998
|
-
|
|
998
|
+
// NOT `preserve` (0.10.8): it promises no network connection at all (the site and its kit say so), so it never asks npm.
|
|
999
|
+
const RELAY_COMMANDS = new Set(["default", "connect", "update", "history", "status", "disconnect", "codex", "antigravity"]);
|
|
999
1000
|
const semverNewer = (a, b) => { const x = a.split(".").map(Number), y = b.split(".").map(Number); for (let i = 0; i < 3; i += 1) if (x[i] !== y[i]) return x[i] > y[i]; return false; };
|
|
1000
1001
|
async function newestVersion() {
|
|
1001
1002
|
try {
|