@costrict/csc 4.2.15 → 4.2.17-beta1
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.js +1926 -2025
- package/dist/services/rawDump/batchWorker.js +36 -22
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/package.json +1 -1
|
@@ -736,8 +736,8 @@ function getClientVersion() {
|
|
|
736
736
|
if (cached)
|
|
737
737
|
return cached;
|
|
738
738
|
try {
|
|
739
|
-
if ("4.2.
|
|
740
|
-
cached = "4.2.
|
|
739
|
+
if ("4.2.17-beta1") {
|
|
740
|
+
cached = "4.2.17-beta1";
|
|
741
741
|
return cached;
|
|
742
742
|
}
|
|
743
743
|
} catch {}
|
|
@@ -4698,9 +4698,11 @@ Start a new session at {url}`,
|
|
|
4698
4698
|
"commands.teleport.failed": "Teleport failed: {error}",
|
|
4699
4699
|
"commands.teleport.availableSessions": "## Available sessions (most recent first)",
|
|
4700
4700
|
"commands.teleport.hint": "Run `/teleport <session-id>` to resume a session.",
|
|
4701
|
+
"commands.ultracode.emptyClarify": "I need a concrete task for /ultracode. Please ask me 1-3 clarifying questions before launching a dynamic workflow.",
|
|
4701
4702
|
"commands.ultracode.permissionUnavailable": "Unable to launch /ultracode: tool permission handler is unavailable.",
|
|
4702
4703
|
"commands.ultracode.denied": "Ultracode was not launched: {message}",
|
|
4703
4704
|
"commands.ultracode.notLaunched": "Ultracode was not launched.",
|
|
4705
|
+
"commands.ultracode.failed": "Ultracode failed to launch: {error}",
|
|
4704
4706
|
"commands.ultracode.launched": "Ultracode workflow launched in the background (task id: {taskId}, run id: {runId}). Use /dynamic-workflows to watch progress.",
|
|
4705
4707
|
"commands.autofixPr.failed": "Autofix PR failed: {error}",
|
|
4706
4708
|
"commands.autofixPr.noMonitor": "No active autofix monitor.",
|
|
@@ -4856,6 +4858,7 @@ var init_tools = __esm(() => {
|
|
|
4856
4858
|
"tools.VerifyPlanExecutionTool.description": "Verify that a plan was executed correctly before exiting plan mode",
|
|
4857
4859
|
"tools.WebBrowserTool.description": "Fetch and read web page content via HTTP",
|
|
4858
4860
|
"tools.WebFetchTool.description": "Fetch content from a URL",
|
|
4861
|
+
"tools.WebFetchTool.disabledDueToConnectivity": "WebFetch has been disabled because the network connectivity check failed. WebFetch will not be available this session.",
|
|
4859
4862
|
"tools.WebSearchTool.description": "Search the web",
|
|
4860
4863
|
"tools.WorkflowTool.description": "Execute and track a user-defined workflow from .claude/workflows/",
|
|
4861
4864
|
"tools.across": "Across",
|
|
@@ -6835,8 +6838,6 @@ var init_ui_plugins = __esm(() => {
|
|
|
6835
6838
|
"plugins.installed.partial": "Installed {success}/{total} plugins",
|
|
6836
6839
|
"plugins.installed.plugins": "Installed plugins (",
|
|
6837
6840
|
"plugins.installing": "Installing\u2026",
|
|
6838
|
-
"plugins.installs": "installs",
|
|
6839
|
-
"plugins.installs_2": "installs",
|
|
6840
6841
|
"plugins.is.enabled.in.costrictsettingsjson.shared.with.your.team": "is enabled in .costrict/settings.json (shared with your team)",
|
|
6841
6842
|
"plugins.loading": "Loading\u2026",
|
|
6842
6843
|
"plugins.loading_2": "Loading\u2026",
|
|
@@ -8537,7 +8538,7 @@ var init_commands_descriptions2 = __esm(() => {
|
|
|
8537
8538
|
"commands.desc.thinkback": "\u60A8\u7684 2025 CoStrict \u5E74\u5EA6\u56DE\u987E",
|
|
8538
8539
|
"commands.desc.thinkbackPlay": "\u64AD\u653E\u5E74\u5EA6\u56DE\u987E\u52A8\u753B",
|
|
8539
8540
|
"commands.desc.tui": "\u5207\u6362 TUI \u5907\u7528\u5C4F\u5E55\u6A21\u5F0F",
|
|
8540
|
-
"commands.desc.ultracode": "\u542F\u52A8DynamicWorkflow\
|
|
8541
|
+
"commands.desc.ultracode": "\u542F\u52A8DynamicWorkflow\u52A8\u6001\u591A Agent \u7F16\u6392\u5DE5\u4F5C\u6D41",
|
|
8541
8542
|
"commands.desc.ultraplan": "CoStrict \u7F51\u9875\u7AEF\u81EA\u52A8\u8D77\u8349\u9AD8\u7EA7\u8BA1\u5212\uFF0C\u53EF\u7F16\u8F91\u548C\u5BA1\u6279",
|
|
8542
8543
|
"commands.desc.upgrade": "\u5347\u7EA7\u5230 Max \u83B7\u53D6\u66F4\u9AD8\u901F\u7387\u9650\u5236\u548C\u66F4\u591A Opus",
|
|
8543
8544
|
"commands.desc.usage": "\u663E\u793A\u4F1A\u8BDD\u6210\u672C\u3001\u8BA1\u5212\u7528\u91CF\u548C\u6D3B\u52A8\u7EDF\u8BA1",
|
|
@@ -9237,9 +9238,11 @@ var init_commands_others2 = __esm(() => {
|
|
|
9237
9238
|
"commands.teleport.failed": "Teleport \u5931\u8D25\uFF1A{error}",
|
|
9238
9239
|
"commands.teleport.availableSessions": "## \u53EF\u7528\u4F1A\u8BDD\uFF08\u6700\u8FD1\u4F18\u5148\uFF09",
|
|
9239
9240
|
"commands.teleport.hint": "\u8FD0\u884C `/teleport <\u4F1A\u8BDDID>` \u6062\u590D\u4F1A\u8BDD\u3002",
|
|
9241
|
+
"commands.ultracode.emptyClarify": "\u6211\u9700\u8981\u4E00\u4E2A\u5177\u4F53\u4EFB\u52A1\u624D\u80FD\u4F7F\u7528 /ultracode\u3002\u8BF7\u5148\u5411\u6211\u63D0\u51FA 1-3 \u4E2A\u6F84\u6E05\u95EE\u9898\uFF0C\u4E0D\u8981\u542F\u52A8\u52A8\u6001\u5DE5\u4F5C\u6D41\u3002",
|
|
9240
9242
|
"commands.ultracode.permissionUnavailable": "\u65E0\u6CD5\u542F\u52A8 /ultracode\uFF1A\u5DE5\u5177\u6743\u9650\u5904\u7406\u5668\u4E0D\u53EF\u7528\u3002",
|
|
9241
9243
|
"commands.ultracode.denied": "Ultracode \u672A\u542F\u52A8\uFF1A{message}",
|
|
9242
9244
|
"commands.ultracode.notLaunched": "Ultracode \u672A\u542F\u52A8\u3002",
|
|
9245
|
+
"commands.ultracode.failed": "Ultracode \u542F\u52A8\u5931\u8D25\uFF1A{error}",
|
|
9243
9246
|
"commands.ultracode.launched": "Ultracode \u5DE5\u4F5C\u6D41\u5DF2\u5728\u540E\u53F0\u542F\u52A8\uFF08\u4EFB\u52A1 ID\uFF1A{taskId}\uFF0C\u8FD0\u884C ID\uFF1A{runId}\uFF09\u3002\u53EF\u4F7F\u7528 /dynamic-workflows \u67E5\u770B\u8FDB\u5EA6\u3002",
|
|
9244
9247
|
"commands.autofixPr.failed": "Autofix PR \u5931\u8D25\uFF1A{error}",
|
|
9245
9248
|
"commands.autofixPr.noMonitor": "\u6CA1\u6709\u6D3B\u8DC3\u7684 autofix \u76D1\u63A7\u5668\u3002",
|
|
@@ -9395,6 +9398,7 @@ var init_tools2 = __esm(() => {
|
|
|
9395
9398
|
"tools.VerifyPlanExecutionTool.description": "\u5728\u9000\u51FA\u8BA1\u5212\u6A21\u5F0F\u4E4B\u524D\u9A8C\u8BC1\u8BA1\u5212\u662F\u5426\u6B63\u786E\u6267\u884C",
|
|
9396
9399
|
"tools.WebBrowserTool.description": "\u901A\u8FC7 HTTP \u83B7\u53D6\u548C\u8BFB\u53D6\u7F51\u9875\u5185\u5BB9",
|
|
9397
9400
|
"tools.WebFetchTool.description": "\u4ECE URL \u83B7\u53D6\u5185\u5BB9",
|
|
9401
|
+
"tools.WebFetchTool.disabledDueToConnectivity": "\u7F51\u7EDC\u8FDE\u901A\u6027\u68C0\u67E5\u5931\u8D25\uFF0CWebFetch \u5DF2\u7981\u7528\u3002\u672C\u6B21\u4F1A\u8BDD\u4E2D\u5C06\u65E0\u6CD5\u4F7F\u7528 WebFetch\u3002",
|
|
9398
9402
|
"tools.WebSearchTool.description": "\u641C\u7D22\u7F51\u7EDC",
|
|
9399
9403
|
"tools.WorkflowTool.description": "\u6267\u884C\u5E76\u8DDF\u8E2A .claude/workflows/ \u4E2D\u7528\u6237\u5B9A\u4E49\u7684\u5DE5\u4F5C\u6D41",
|
|
9400
9404
|
"tools.across": "\u6A2A\u8DE8",
|
|
@@ -11372,8 +11376,6 @@ var init_ui_plugins2 = __esm(() => {
|
|
|
11372
11376
|
"plugins.installed.partial": "\u5DF2\u5B89\u88C5 {success}/{total} \u4E2A\u63D2\u4EF6",
|
|
11373
11377
|
"plugins.installed.plugins": "\u5DF2\u5B89\u88C5\u63D2\u4EF6\uFF08",
|
|
11374
11378
|
"plugins.installing": "\u6B63\u5728\u5B89\u88C5\u2026",
|
|
11375
|
-
"plugins.installs": "\u5B89\u88C5\u91CF",
|
|
11376
|
-
"plugins.installs_2": "\u5B89\u88C5\u91CF",
|
|
11377
11379
|
"plugins.is.enabled.in.costrictsettingsjson.shared.with.your.team": "\u5DF2\u5728 .costrict/settings.json \u4E2D\u542F\u7528\uFF08\u4E0E\u4F60\u7684\u56E2\u961F\u5171\u4EAB\uFF09",
|
|
11378
11380
|
"plugins.loading": "\u52A0\u8F7D\u4E2D\u2026",
|
|
11379
11381
|
"plugins.loading_2": "\u52A0\u8F7D\u4E2D\u2026",
|
|
@@ -88465,7 +88467,7 @@ var init_types2 = __esm(() => {
|
|
|
88465
88467
|
otelHeadersHelper: exports_external.string().optional().describe("Path to a script that outputs OpenTelemetry headers"),
|
|
88466
88468
|
outputStyle: exports_external.string().optional().describe("Controls the output style for assistant responses"),
|
|
88467
88469
|
language: exports_external.string().optional().describe('Preferred language for Claude responses and voice dictation (e.g., "japanese", "spanish")'),
|
|
88468
|
-
skipWebFetchPreflight: exports_external.boolean().optional().describe("Skip the WebFetch blocklist check for enterprise environments with restrictive security policies"),
|
|
88470
|
+
skipWebFetchPreflight: exports_external.boolean().optional().describe("Skip the WebFetch startup connectivity check and domain blocklist check for enterprise environments with restrictive security policies. When true, WebFetch will not be auto-disabled if the network appears unreachable."),
|
|
88469
88471
|
sandbox: SandboxSettingsSchema().optional(),
|
|
88470
88472
|
feedbackSurveyRate: exports_external.number().min(0).max(1).optional().describe("Probability (0\u20131) that the session quality survey appears when eligible. 0.05 is a reasonable starting point."),
|
|
88471
88473
|
spinnerTipsEnabled: exports_external.boolean().optional().describe("Whether to show tips in the spinner"),
|
|
@@ -138443,7 +138445,7 @@ var init_user = __esm(() => {
|
|
|
138443
138445
|
deviceId,
|
|
138444
138446
|
sessionId: getSessionId(),
|
|
138445
138447
|
email: getEmail(),
|
|
138446
|
-
appVersion: "4.2.
|
|
138448
|
+
appVersion: "4.2.17-beta1",
|
|
138447
138449
|
platform: getHostPlatformForAnalytics(),
|
|
138448
138450
|
organizationUuid,
|
|
138449
138451
|
accountUuid,
|
|
@@ -138730,7 +138732,7 @@ var init_metadata = __esm(() => {
|
|
|
138730
138732
|
"sed"
|
|
138731
138733
|
]);
|
|
138732
138734
|
getVersionBase = memoize_default(() => {
|
|
138733
|
-
const match = "4.2.
|
|
138735
|
+
const match = "4.2.17-beta1".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
138734
138736
|
return match ? match[0] : undefined;
|
|
138735
138737
|
});
|
|
138736
138738
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -138770,9 +138772,9 @@ var init_metadata = __esm(() => {
|
|
|
138770
138772
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
138771
138773
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
138772
138774
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
138773
|
-
version: "4.2.
|
|
138775
|
+
version: "4.2.17-beta1",
|
|
138774
138776
|
versionBase: getVersionBase(),
|
|
138775
|
-
buildTime: "2026-07-
|
|
138777
|
+
buildTime: "2026-07-23T00:14:36.438Z",
|
|
138776
138778
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
138777
138779
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
138778
138780
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -142987,7 +142989,23 @@ function scheduleForcedExit(reason, code) {
|
|
|
142987
142989
|
process.exit(code);
|
|
142988
142990
|
}, graceMs);
|
|
142989
142991
|
}
|
|
142990
|
-
|
|
142992
|
+
function resolveParentPid(explicitParentPid, runtimeParentPid) {
|
|
142993
|
+
if (!explicitParentPid)
|
|
142994
|
+
return runtimeParentPid;
|
|
142995
|
+
const parsed = Number.parseInt(explicitParentPid, 10);
|
|
142996
|
+
return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : runtimeParentPid;
|
|
142997
|
+
}
|
|
142998
|
+
function isParentHeartbeatValid(heartbeat, parentPid, expectedStartedAt) {
|
|
142999
|
+
if (!heartbeat)
|
|
143000
|
+
return expectedStartedAt === undefined;
|
|
143001
|
+
if (heartbeat.pid !== parentPid)
|
|
143002
|
+
return false;
|
|
143003
|
+
if (expectedStartedAt && heartbeat.startedAt !== expectedStartedAt)
|
|
143004
|
+
return false;
|
|
143005
|
+
return isHeartbeatAlive(heartbeat);
|
|
143006
|
+
}
|
|
143007
|
+
var PARENT_PID = resolveParentPid(process.env.CSC_RAW_DUMP_PARENT_PID, process.ppid);
|
|
143008
|
+
var PARENT_STARTED_AT = process.env.CSC_RAW_DUMP_PARENT_STARTED_AT;
|
|
142991
143009
|
var WORKER_ENTRY_BASENAMES = ["batchworker.ts", "batchworker.js"];
|
|
142992
143010
|
var IS_WORKER_PROCESS = process.env.CSC_RAW_DUMP_WORKER === "1" || WORKER_ENTRY_BASENAMES.includes((process.argv[1] ?? "").split(/[\\/]/).pop()?.toLowerCase() ?? "");
|
|
142993
143011
|
if (IS_WORKER_PROCESS) {
|
|
@@ -143016,13 +143034,7 @@ async function isParentAlive() {
|
|
|
143016
143034
|
}
|
|
143017
143035
|
if (!pidAlive)
|
|
143018
143036
|
return false;
|
|
143019
|
-
|
|
143020
|
-
if (!isHeartbeatAlive(parentHeartbeat))
|
|
143021
|
-
return false;
|
|
143022
|
-
if (parentHeartbeat.pid !== PARENT_PID)
|
|
143023
|
-
return false;
|
|
143024
|
-
}
|
|
143025
|
-
return true;
|
|
143037
|
+
return isParentHeartbeatValid(parentHeartbeat, PARENT_PID, PARENT_STARTED_AT);
|
|
143026
143038
|
}
|
|
143027
143039
|
var stateLoaded = false;
|
|
143028
143040
|
function startBatchWorker() {
|
|
@@ -143095,8 +143107,10 @@ if (scriptPath3.endsWith("batchWorker.ts") || scriptPath3.endsWith("batchWorker.
|
|
|
143095
143107
|
startBatchWorker();
|
|
143096
143108
|
}
|
|
143097
143109
|
export {
|
|
143098
|
-
startBatchWorker
|
|
143110
|
+
startBatchWorker,
|
|
143111
|
+
resolveParentPid,
|
|
143112
|
+
isParentHeartbeatValid
|
|
143099
143113
|
};
|
|
143100
143114
|
|
|
143101
|
-
//# debugId=
|
|
143115
|
+
//# debugId=666CEE07EBCC55A264756E2164756E21
|
|
143102
143116
|
|
|
Binary file
|