@usecontextlayer/ctxs 0.5.29 → 0.5.30
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 +52 -32
- package/dist/cli.mjs.map +1 -1
- package/package.json +4 -4
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]="258098f6-dd49-5011-9481-078edc3a2935")}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";
|
|
@@ -4913,7 +4913,7 @@ function normalizedKey(event) {
|
|
|
4913
4913
|
|
|
4914
4914
|
//#endregion
|
|
4915
4915
|
//#region package.json
|
|
4916
|
-
var version$1 = "0.5.
|
|
4916
|
+
var version$1 = "0.5.30";
|
|
4917
4917
|
|
|
4918
4918
|
//#endregion
|
|
4919
4919
|
//#region sentry.ts
|
|
@@ -60142,7 +60142,7 @@ function createScheduleApiClient(config) {
|
|
|
60142
60142
|
})
|
|
60143
60143
|
};
|
|
60144
60144
|
}
|
|
60145
|
-
const SERVER_VERSION = "0.5.
|
|
60145
|
+
const SERVER_VERSION = "0.5.30";
|
|
60146
60146
|
/** The most operations one OperationSet will carry. The service's own ceiling. */
|
|
60147
60147
|
const MAX_OPERATIONS = 200;
|
|
60148
60148
|
/**
|
|
@@ -99841,7 +99841,7 @@ async function provisionEphemeralDatabases(opts) {
|
|
|
99841
99841
|
}
|
|
99842
99842
|
|
|
99843
99843
|
//#endregion
|
|
99844
|
-
//#region ../slate-bridge/dist/platform-harness-
|
|
99844
|
+
//#region ../slate-bridge/dist/platform-harness-DmPgcH-K.mjs
|
|
99845
99845
|
const nonEmptyStringSchema = string$5().trim().min(1);
|
|
99846
99846
|
const portSchema = number$3().int().min(0).max(65535).default(7777);
|
|
99847
99847
|
const envSchema = object$4({
|
|
@@ -99850,7 +99850,7 @@ const envSchema = object$4({
|
|
|
99850
99850
|
CTX_PLATFORM_URL: url().default("http://127.0.0.1:3010").transform((url) => url.replace(/\/+$/, "")),
|
|
99851
99851
|
CTX_WEB_URL: url().default("http://localhost:3000").transform((url) => url.replace(/\/+$/, "")),
|
|
99852
99852
|
CTXS_BRIDGE_PORT: portSchema,
|
|
99853
|
-
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.
|
|
99853
|
+
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.30"),
|
|
99854
99854
|
CTXS_CLAUDE_MODEL: nonEmptyStringSchema.default("opus"),
|
|
99855
99855
|
CTXS_HOST_CLAUDE_JSON_PATH: nonEmptyStringSchema.default(() => path.join(os.homedir(), ".claude.json")),
|
|
99856
99856
|
NODE_ENV: _enum$1([
|
|
@@ -99887,30 +99887,49 @@ You are working in the user's workspace: a directory of documents that is also a
|
|
|
99887
99887
|
Do this bookkeeping quietly. Don't narrate routine git operations — mention git only when something needs the user's attention: a conflict, a rejected push you cannot heal, or work you found and preserved.
|
|
99888
99888
|
|
|
99889
99889
|
The workspace's synced source data — email, meetings, tasks, whatever the user connected — lives in a Postgres database called the base. Query it with the \`ctxb\` CLI, following the contextbase skill. \`CTXB_DATABASE_URL\` is already set when this workspace has a base; if it is unset, no base is connected. Answer data questions from the base, not from memory.`;
|
|
99890
|
-
const
|
|
99891
|
-
"
|
|
99892
|
-
|
|
99893
|
-
"
|
|
99894
|
-
"
|
|
99895
|
-
"
|
|
99896
|
-
"
|
|
99897
|
-
"
|
|
99898
|
-
"
|
|
99899
|
-
"
|
|
99900
|
-
"
|
|
99901
|
-
"
|
|
99902
|
-
"
|
|
99903
|
-
"
|
|
99904
|
-
"
|
|
99905
|
-
"
|
|
99906
|
-
"
|
|
99907
|
-
"
|
|
99908
|
-
"
|
|
99909
|
-
"
|
|
99910
|
-
"
|
|
99911
|
-
"
|
|
99912
|
-
|
|
99913
|
-
|
|
99890
|
+
const BUILTIN_TOOL_DISPOSITIONS = {
|
|
99891
|
+
AskUserQuestion: "deny",
|
|
99892
|
+
Bash: "allow",
|
|
99893
|
+
CronCreate: "ask",
|
|
99894
|
+
CronDelete: "ask",
|
|
99895
|
+
CronList: "ask",
|
|
99896
|
+
DesignSync: "ask",
|
|
99897
|
+
Edit: "allow",
|
|
99898
|
+
EnterPlanMode: "allow",
|
|
99899
|
+
EnterWorktree: "ask",
|
|
99900
|
+
ExitPlanMode: "allow",
|
|
99901
|
+
ExitWorktree: "ask",
|
|
99902
|
+
Glob: "allow",
|
|
99903
|
+
Grep: "allow",
|
|
99904
|
+
ListAgents: "ask",
|
|
99905
|
+
ListMcpResourcesTool: "allow",
|
|
99906
|
+
Monitor: "ask",
|
|
99907
|
+
NotebookEdit: "allow",
|
|
99908
|
+
PushNotification: "ask",
|
|
99909
|
+
Read: "allow",
|
|
99910
|
+
ReadMcpResourceDirTool: "allow",
|
|
99911
|
+
ReadMcpResourceTool: "allow",
|
|
99912
|
+
RemoteTrigger: "ask",
|
|
99913
|
+
ReportFindings: "ask",
|
|
99914
|
+
ScheduleWakeup: "ask",
|
|
99915
|
+
SendMessage: "ask",
|
|
99916
|
+
Skill: "allow",
|
|
99917
|
+
Task: "allow",
|
|
99918
|
+
TaskCreate: "allow",
|
|
99919
|
+
TaskGet: "allow",
|
|
99920
|
+
TaskList: "allow",
|
|
99921
|
+
TaskOutput: "allow",
|
|
99922
|
+
TaskStop: "allow",
|
|
99923
|
+
TaskUpdate: "allow",
|
|
99924
|
+
ToolSearch: "allow",
|
|
99925
|
+
WebFetch: "allow",
|
|
99926
|
+
WebSearch: "allow",
|
|
99927
|
+
Workflow: "ask",
|
|
99928
|
+
Write: "allow"
|
|
99929
|
+
};
|
|
99930
|
+
function builtinToolsWithDisposition(disposition) {
|
|
99931
|
+
return Object.entries(BUILTIN_TOOL_DISPOSITIONS).filter(([, value]) => value === disposition).map(([tool]) => tool);
|
|
99932
|
+
}
|
|
99914
99933
|
const CLAUDE_ARGS = [
|
|
99915
99934
|
"--input-format",
|
|
99916
99935
|
"stream-json",
|
|
@@ -99936,12 +99955,12 @@ function resolveChatBaseId(baseIds, workspaceId) {
|
|
|
99936
99955
|
}
|
|
99937
99956
|
function buildChatSpawnPlan(input) {
|
|
99938
99957
|
const { allowedTools, disallowedTools } = input.mcpToolRules;
|
|
99939
|
-
const deniedTools = [...
|
|
99958
|
+
const deniedTools = [...builtinToolsWithDisposition("deny"), ...disallowedTools];
|
|
99940
99959
|
return {
|
|
99941
99960
|
args: [
|
|
99942
99961
|
...CLAUDE_ARGS,
|
|
99943
99962
|
"--allowedTools",
|
|
99944
|
-
[...
|
|
99963
|
+
[...builtinToolsWithDisposition("allow"), ...allowedTools].join(","),
|
|
99945
99964
|
...deniedTools.length > 0 ? ["--disallowedTools", deniedTools.join(",")] : [],
|
|
99946
99965
|
...input.mcpConfigArgs ?? [],
|
|
99947
99966
|
"--model",
|
|
@@ -101198,6 +101217,7 @@ const PARITY_SCENARIOS = [
|
|
|
101198
101217
|
}, "Reply with exactly one word: continued"]
|
|
101199
101218
|
}
|
|
101200
101219
|
];
|
|
101220
|
+
const goldenStreamSchema = array$1(looseObject$1({ type: string$5() }));
|
|
101201
101221
|
function resolveGoldensDir() {
|
|
101202
101222
|
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
101203
101223
|
while (true) {
|
|
@@ -105403,4 +105423,4 @@ runCli().catch((error) => {
|
|
|
105403
105423
|
//#endregion
|
|
105404
105424
|
export { createProgram, runCli };
|
|
105405
105425
|
//# sourceMappingURL=cli.mjs.map
|
|
105406
|
-
//# debugId=
|
|
105426
|
+
//# debugId=258098f6-dd49-5011-9481-078edc3a2935
|