@usecontextlayer/ctxs 0.5.22 → 0.5.24
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 +9 -8
- 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]="cee229a8-1725-5470-9352-5a8885b05bec")}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";
|
|
@@ -4788,7 +4788,7 @@ function normalizedKey(event) {
|
|
|
4788
4788
|
|
|
4789
4789
|
//#endregion
|
|
4790
4790
|
//#region package.json
|
|
4791
|
-
var version$1 = "0.5.
|
|
4791
|
+
var version$1 = "0.5.24";
|
|
4792
4792
|
|
|
4793
4793
|
//#endregion
|
|
4794
4794
|
//#region sentry.ts
|
|
@@ -58964,7 +58964,7 @@ function createScheduleApiClient(config) {
|
|
|
58964
58964
|
})
|
|
58965
58965
|
};
|
|
58966
58966
|
}
|
|
58967
|
-
const SERVER_VERSION = "0.5.
|
|
58967
|
+
const SERVER_VERSION = "0.5.24";
|
|
58968
58968
|
/** The most operations one OperationSet will carry. The service's own ceiling. */
|
|
58969
58969
|
const MAX_OPERATIONS = 200;
|
|
58970
58970
|
/**
|
|
@@ -97934,7 +97934,7 @@ function osUsername() {
|
|
|
97934
97934
|
}
|
|
97935
97935
|
|
|
97936
97936
|
//#endregion
|
|
97937
|
-
//#region ../slate-bridge/dist/goldens-
|
|
97937
|
+
//#region ../slate-bridge/dist/goldens-Ct-GSxsI.mjs
|
|
97938
97938
|
const nonEmptyStringSchema = string$5().trim().min(1);
|
|
97939
97939
|
const portSchema = number$3().int().min(0).max(65535).default(7777);
|
|
97940
97940
|
const envSchema = object$4({
|
|
@@ -97943,7 +97943,7 @@ const envSchema = object$4({
|
|
|
97943
97943
|
CTX_PLATFORM_URL: url().default("http://127.0.0.1:3010").transform((url) => url.replace(/\/+$/, "")),
|
|
97944
97944
|
CTX_WEB_URL: url().default("http://localhost:3000").transform((url) => url.replace(/\/+$/, "")),
|
|
97945
97945
|
CTXS_BRIDGE_PORT: portSchema,
|
|
97946
|
-
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.
|
|
97946
|
+
CTXS_CLAUDE_IMAGE: nonEmptyStringSchema.default("ghcr.io/usecontextlayer/ctx-sandbox:0.5.24"),
|
|
97947
97947
|
CTXS_CLAUDE_MODEL: nonEmptyStringSchema.default("opus"),
|
|
97948
97948
|
CTXS_HOST_CLAUDE_JSON_PATH: nonEmptyStringSchema.default(() => path.join(os.homedir(), ".claude.json")),
|
|
97949
97949
|
NODE_ENV: _enum$1([
|
|
@@ -97982,7 +97982,6 @@ Do this bookkeeping quietly. Don't narrate routine git operations — mention gi
|
|
|
97982
97982
|
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.`;
|
|
97983
97983
|
const BUILTIN_ALLOWED_TOOLS = [
|
|
97984
97984
|
"Agent",
|
|
97985
|
-
"AskUserQuestion",
|
|
97986
97985
|
"Bash",
|
|
97987
97986
|
"BashOutput",
|
|
97988
97987
|
"Edit",
|
|
@@ -98004,6 +98003,7 @@ const BUILTIN_ALLOWED_TOOLS = [
|
|
|
98004
98003
|
"WebSearch",
|
|
98005
98004
|
"Write"
|
|
98006
98005
|
];
|
|
98006
|
+
const BUILTIN_DISALLOWED_TOOLS = ["AskUserQuestion"];
|
|
98007
98007
|
const CLAUDE_ARGS = [
|
|
98008
98008
|
"--input-format",
|
|
98009
98009
|
"stream-json",
|
|
@@ -98029,12 +98029,13 @@ function resolveChatBaseId(baseIds, workspaceId) {
|
|
|
98029
98029
|
}
|
|
98030
98030
|
function buildChatSpawnPlan(input) {
|
|
98031
98031
|
const { allowedTools, disallowedTools } = input.mcpToolRules;
|
|
98032
|
+
const deniedTools = [...BUILTIN_DISALLOWED_TOOLS, ...disallowedTools];
|
|
98032
98033
|
return {
|
|
98033
98034
|
args: [
|
|
98034
98035
|
...CLAUDE_ARGS,
|
|
98035
98036
|
"--allowedTools",
|
|
98036
98037
|
[...BUILTIN_ALLOWED_TOOLS, ...allowedTools].join(","),
|
|
98037
|
-
...
|
|
98038
|
+
...deniedTools.length > 0 ? ["--disallowedTools", deniedTools.join(",")] : [],
|
|
98038
98039
|
...input.mcpConfigArgs ?? [],
|
|
98039
98040
|
"--model",
|
|
98040
98041
|
input.model,
|
|
@@ -103203,4 +103204,4 @@ runCli().catch((error) => {
|
|
|
103203
103204
|
//#endregion
|
|
103204
103205
|
export { createProgram, runCli };
|
|
103205
103206
|
//# sourceMappingURL=cli.mjs.map
|
|
103206
|
-
//# debugId=
|
|
103207
|
+
//# debugId=cee229a8-1725-5470-9352-5a8885b05bec
|