@usecontextlayer/ctxs 0.5.2 → 0.5.4
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/cli.mjs +10 -6
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="203202bf-ce01-592c-a003-11e98e6ee3f4")}catch(e){}}();
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
import * as fs$2 from "node:fs/promises";
|
|
@@ -60,7 +60,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region package.json
|
|
63
|
-
var version$2 = "0.5.
|
|
63
|
+
var version$2 = "0.5.4";
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region sentry.ts
|
|
@@ -616,8 +616,12 @@ var ClaudeRepo = class ClaudeRepo {
|
|
|
616
616
|
* The per-turn snapshot: serialized by the mutex — rebuild the index from the live
|
|
617
617
|
* home (when maintaining it), then force-push the whole dir. Capture failure is caught +
|
|
618
618
|
* logged **loud**, never propagated — the turn already happened and the next snapshot
|
|
619
|
-
* pushes the cumulative state.
|
|
620
|
-
*
|
|
619
|
+
* pushes the cumulative state. The one non-self-healing case is an expired token's 401:
|
|
620
|
+
* the push auth is the connection's upgrade-time user token (real mint TTL: 15 minutes),
|
|
621
|
+
* so every capture in a chat older than that fails until the user reconnects — and the
|
|
622
|
+
* turns since the last good push are LOST outright if this host dir dies first. Accepted
|
|
623
|
+
* for day one (user, 2026-07-09); problem + required outcome tracked in the internal
|
|
624
|
+
* planned note "chat session token expiry" (2026-07-09).
|
|
621
625
|
*/
|
|
622
626
|
async capture(opts) {
|
|
623
627
|
const run = this.captureChain.then(async () => {
|
|
@@ -42905,7 +42909,7 @@ const envSchema = object({
|
|
|
42905
42909
|
CTX_PLATFORM_URL: nonEmptyStringSchema.default("http://127.0.0.1:3010"),
|
|
42906
42910
|
CTX_WEB_URL: nonEmptyStringSchema.default("http://localhost:3000").transform((url) => url.replace(/\/+$/, "")),
|
|
42907
42911
|
CTXS_BRIDGE_PORT: portSchema,
|
|
42908
|
-
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.
|
|
42912
|
+
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.4"),
|
|
42909
42913
|
CTXS_CLAUDE_MODEL: nonEmptyStringSchema.default("opus"),
|
|
42910
42914
|
CTXS_HOST_CLAUDE_JSON_PATH: nonEmptyStringSchema.default(() => path.join(os.homedir(), ".claude.json")),
|
|
42911
42915
|
NODE_ENV: _enum([
|
|
@@ -47657,4 +47661,4 @@ runCli().catch((error) => {
|
|
|
47657
47661
|
//#endregion
|
|
47658
47662
|
export { createProgram, runCli };
|
|
47659
47663
|
//# sourceMappingURL=cli.mjs.map
|
|
47660
|
-
//# debugId=
|
|
47664
|
+
//# debugId=203202bf-ce01-592c-a003-11e98e6ee3f4
|