@karlorz/codexhost-cli-win32-x64 0.16.1-2 → 0.17.0-0
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/README.md +2 -2
- package/THIRD_PARTY_NOTICES.txt +6 -2
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +86 -20
- package/app/console-web.js +76 -17
- package/app/cpa-live-voice-hook.js +62 -8
- package/app/desktop-controller.mjs +107 -31
- package/app/host-runtime.mjs +2560 -1634
- package/app/plugins/antigravity/plugin.mjs +66 -2
- package/app/plugins/claude-code/plugin.mjs +43 -6
- package/app/plugins/codebuddy/plugin.mjs +41 -0
- package/app/plugins/codex-usage/plugin.mjs +31 -0
- package/app/plugins/copilot/plugin.mjs +31 -0
- package/app/plugins/cursor-cli/plugin.mjs +40 -5
- package/app/plugins/deepseek-harness/plugin.mjs +490 -46
- package/app/plugins/devin/assets/icon.svg +1 -0
- package/app/plugins/devin/manifest.json +30 -0
- package/app/plugins/devin/plugin.mjs +23536 -0
- package/app/plugins/enabled.json +2 -0
- package/app/plugins/grok/plugin.mjs +1615 -495
- package/app/plugins/hermes/plugin.mjs +484 -196
- package/app/plugins/kimi-code/plugin.mjs +31 -0
- package/app/plugins/kiro-cli/plugin.mjs +31 -0
- package/app/plugins/omp/plugin.mjs +31 -0
- package/app/plugins/opencode/plugin.mjs +31 -0
- package/app/plugins/pi/plugin.mjs +1491 -411
- package/app/plugins/qoder/plugin.mjs +9555 -8654
- package/app/plugins/qoder-cn/plugin.mjs +9555 -8654
- package/app/plugins/qwen-code/assets/icon.svg +1 -0
- package/app/plugins/qwen-code/manifest.json +29 -0
- package/app/plugins/qwen-code/plugin.mjs +29471 -0
- package/app/plugins/workbuddy/plugin.mjs +41 -0
- package/app/plugins/zcode/plugin.mjs +31 -0
- package/app/renderer-extension.js +966 -233
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/licenses/Qwen-Code-SDK-LICENSE.txt +203 -0
- package/package.json +2 -2
|
@@ -16550,6 +16550,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
16550
16550
|
})
|
|
16551
16551
|
});
|
|
16552
16552
|
|
|
16553
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
16554
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
16555
|
+
id: external_exports.string().min(1),
|
|
16556
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
16557
|
+
label: external_exports.string(),
|
|
16558
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
16559
|
+
canStop: external_exports.boolean(),
|
|
16560
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
16561
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
16562
|
+
schedule: external_exports.string().optional(),
|
|
16563
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
16564
|
+
relatedActivityId: external_exports.string().optional(),
|
|
16565
|
+
threadId: hostThreadIdSchema.optional()
|
|
16566
|
+
});
|
|
16567
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
16568
|
+
activity: backgroundActivitySchema,
|
|
16569
|
+
output: external_exports.string(),
|
|
16570
|
+
truncated: external_exports.boolean()
|
|
16571
|
+
});
|
|
16572
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
16573
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
16574
|
+
activityId: external_exports.string().min(1)
|
|
16575
|
+
});
|
|
16576
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
16577
|
+
supported: external_exports.boolean(),
|
|
16578
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
16579
|
+
});
|
|
16580
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
16581
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
16582
|
+
});
|
|
16583
|
+
|
|
16553
16584
|
// ../../shared-contracts/dist/index.js
|
|
16554
16585
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16555
16586
|
|
|
@@ -19231,6 +19262,32 @@ function createAntigravityUsageStatistics(environment) {
|
|
|
19231
19262
|
}
|
|
19232
19263
|
|
|
19233
19264
|
// dist/antigravity-adapter.js
|
|
19265
|
+
function unstreamedReplyTail(streamed, reply) {
|
|
19266
|
+
const shown = streamed.replace(/\s+/gu, "");
|
|
19267
|
+
if (shown === "")
|
|
19268
|
+
return null;
|
|
19269
|
+
const replied = reply.replace(/\s+/gu, "");
|
|
19270
|
+
if (shown.endsWith(replied))
|
|
19271
|
+
return "";
|
|
19272
|
+
let at = 0;
|
|
19273
|
+
let matched = 0;
|
|
19274
|
+
while (matched < shown.length && at < reply.length) {
|
|
19275
|
+
const char = reply[at] ?? "";
|
|
19276
|
+
if (/\s/u.test(char)) {
|
|
19277
|
+
at += 1;
|
|
19278
|
+
continue;
|
|
19279
|
+
}
|
|
19280
|
+
if (char !== shown[matched])
|
|
19281
|
+
return null;
|
|
19282
|
+
at += 1;
|
|
19283
|
+
matched += 1;
|
|
19284
|
+
}
|
|
19285
|
+
if (matched < shown.length)
|
|
19286
|
+
return null;
|
|
19287
|
+
const tail = reply.slice(at);
|
|
19288
|
+
const shownTrailing = /\s*$/u.exec(streamed)?.[0] ?? "";
|
|
19289
|
+
return tail.startsWith(shownTrailing) ? tail.slice(shownTrailing.length) : tail;
|
|
19290
|
+
}
|
|
19234
19291
|
var antigravityHarnessId = harnessIdSchema.parse("antigravity");
|
|
19235
19292
|
var DEFAULT_INSPECT_TIMEOUT_MS = 2e4;
|
|
19236
19293
|
var DEFAULT_PRINT_TIMEOUT = "30m";
|
|
@@ -19715,6 +19772,7 @@ var AntigravitySession = class {
|
|
|
19715
19772
|
logPath,
|
|
19716
19773
|
agentItem: null,
|
|
19717
19774
|
agentText: "",
|
|
19775
|
+
turnAgentText: "",
|
|
19718
19776
|
tools: /* @__PURE__ */ new Map(),
|
|
19719
19777
|
completedItems: [],
|
|
19720
19778
|
stderr: "",
|
|
@@ -19912,8 +19970,13 @@ ${line}`).slice(-8e3);
|
|
|
19912
19970
|
const repliedThisTurn = Boolean(active.agentItem) || turnReply.trim() !== "";
|
|
19913
19971
|
if (response)
|
|
19914
19972
|
this.#lastResultResponse = response;
|
|
19915
|
-
if (turnReply.trim() !== "")
|
|
19916
|
-
|
|
19973
|
+
if (turnReply.trim() !== "") {
|
|
19974
|
+
const unshown = unstreamedReplyTail(active.turnAgentText, turnReply);
|
|
19975
|
+
if (unshown === null)
|
|
19976
|
+
this.#appendOrSyncAgentText(active, turnReply, false);
|
|
19977
|
+
else if (unshown.trim() !== "")
|
|
19978
|
+
this.#appendAgentText(active, unshown);
|
|
19979
|
+
}
|
|
19917
19980
|
const safeTurnId = event.result.num_turns !== void 0 && event.result.num_turns !== null ? `turn:${event.result.num_turns}` : `turn:${this.#history.snapshot().length + 1}`;
|
|
19918
19981
|
const safeSessionId = convId || this.#nativeRef?.nativeSessionId || "unknown-session";
|
|
19919
19982
|
const nativeTurnRef = nativeTurnRefSchema.parse({
|
|
@@ -20097,6 +20160,7 @@ ${line}`).slice(-8e3);
|
|
|
20097
20160
|
this.#appendAgentText(active, text);
|
|
20098
20161
|
}
|
|
20099
20162
|
#appendAgentText(active, text) {
|
|
20163
|
+
active.turnAgentText += text;
|
|
20100
20164
|
if (!active.agentItem) {
|
|
20101
20165
|
active.agentItem = { type: "agentMessage", itemId: this.#newItemId(), text };
|
|
20102
20166
|
active.agentText = text;
|
|
@@ -16144,6 +16144,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
16144
16144
|
})
|
|
16145
16145
|
});
|
|
16146
16146
|
|
|
16147
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
16148
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
16149
|
+
id: external_exports.string().min(1),
|
|
16150
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
16151
|
+
label: external_exports.string(),
|
|
16152
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
16153
|
+
canStop: external_exports.boolean(),
|
|
16154
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
16155
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
16156
|
+
schedule: external_exports.string().optional(),
|
|
16157
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
16158
|
+
relatedActivityId: external_exports.string().optional(),
|
|
16159
|
+
threadId: hostThreadIdSchema.optional()
|
|
16160
|
+
});
|
|
16161
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
16162
|
+
activity: backgroundActivitySchema,
|
|
16163
|
+
output: external_exports.string(),
|
|
16164
|
+
truncated: external_exports.boolean()
|
|
16165
|
+
});
|
|
16166
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
16167
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
16168
|
+
activityId: external_exports.string().min(1)
|
|
16169
|
+
});
|
|
16170
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
16171
|
+
supported: external_exports.boolean(),
|
|
16172
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
16173
|
+
});
|
|
16174
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
16175
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
16176
|
+
});
|
|
16177
|
+
|
|
16147
16178
|
// ../../shared-contracts/dist/index.js
|
|
16148
16179
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16149
16180
|
|
|
@@ -55752,6 +55783,8 @@ function conversationMessages(values, sessionId) {
|
|
|
55752
55783
|
type: value.type,
|
|
55753
55784
|
uuid: value.uuid,
|
|
55754
55785
|
message: value.message,
|
|
55786
|
+
// Failure metadata belongs to the outer SDK/transcript record, not its Message.
|
|
55787
|
+
failed: value.type === "assistant" && (typeof value.error === "string" || value.isApiErrorMessage === true),
|
|
55755
55788
|
nested: typeof value.parent_tool_use_id === "string" && value.parent_tool_use_id.length > 0,
|
|
55756
55789
|
interrupted,
|
|
55757
55790
|
startsTurn: false,
|
|
@@ -55817,7 +55850,7 @@ function turnOutcome(messages) {
|
|
|
55817
55850
|
if (messages.some(({ interrupted }) => interrupted))
|
|
55818
55851
|
return { status: "cancelled", reason: "Cancelled by user" };
|
|
55819
55852
|
const assistants = messages.filter(({ type }) => type === "assistant");
|
|
55820
|
-
const failed = assistants.some(({
|
|
55853
|
+
const failed = assistants.some(({ failed: failed2, nested }) => failed2 && !nested);
|
|
55821
55854
|
if (failed) {
|
|
55822
55855
|
return {
|
|
55823
55856
|
status: "failed",
|
|
@@ -55903,6 +55936,7 @@ function mapClaudeSnapshot(values, sessionId) {
|
|
|
55903
55936
|
}
|
|
55904
55937
|
if (message.type !== "assistant")
|
|
55905
55938
|
return [];
|
|
55939
|
+
const assistantOutcome = outcome.status === "failed" && (!message.failed || message.nested) ? { status: "succeeded" } : itemOutcome(outcome);
|
|
55906
55940
|
const content = message.message.content;
|
|
55907
55941
|
const text2 = textParts(content).join("");
|
|
55908
55942
|
const reasoning = thinkingParts(content).join("");
|
|
@@ -55914,7 +55948,7 @@ function mapClaudeSnapshot(values, sessionId) {
|
|
|
55914
55948
|
itemId: claudeTranscriptItemId(user.uuid, "agentMessage", agentMessageOrdinal += 1),
|
|
55915
55949
|
text: text2
|
|
55916
55950
|
},
|
|
55917
|
-
outcome:
|
|
55951
|
+
outcome: assistantOutcome
|
|
55918
55952
|
}
|
|
55919
55953
|
] : [];
|
|
55920
55954
|
}
|
|
@@ -55931,7 +55965,7 @@ function mapClaudeSnapshot(values, sessionId) {
|
|
|
55931
55965
|
itemId: claudeTranscriptItemId(user.uuid, "reasoning", reasoningOrdinal += 1),
|
|
55932
55966
|
text: reasoning
|
|
55933
55967
|
},
|
|
55934
|
-
outcome:
|
|
55968
|
+
outcome: assistantOutcome
|
|
55935
55969
|
});
|
|
55936
55970
|
projectedReasoning = true;
|
|
55937
55971
|
continue;
|
|
@@ -55943,7 +55977,7 @@ function mapClaudeSnapshot(values, sessionId) {
|
|
|
55943
55977
|
itemId: claudeTranscriptItemId(user.uuid, "agentMessage", agentMessageOrdinal += 1),
|
|
55944
55978
|
text: text2
|
|
55945
55979
|
},
|
|
55946
|
-
outcome:
|
|
55980
|
+
outcome: assistantOutcome
|
|
55947
55981
|
});
|
|
55948
55982
|
projectedText = true;
|
|
55949
55983
|
continue;
|
|
@@ -57719,7 +57753,8 @@ var ClaudeSdkTransport = class {
|
|
|
57719
57753
|
const activeQuery = this.#query;
|
|
57720
57754
|
if (!activeQuery)
|
|
57721
57755
|
throw new Error("Claude SDK transport is not running");
|
|
57722
|
-
this.#idleAccumulator
|
|
57756
|
+
const idle = this.#idleAccumulator ??= new ClaudeNativeTurnAccumulator(this.#provider ? { provider: this.#provider } : {});
|
|
57757
|
+
idle.requestCancel();
|
|
57723
57758
|
try {
|
|
57724
57759
|
await this.#stopRequest(activeQuery.interrupt(), INTERRUPT_TIMEOUT_MESSAGE);
|
|
57725
57760
|
} catch (error52) {
|
|
@@ -60148,7 +60183,9 @@ var ClaudeHarnessSession = class {
|
|
|
60148
60183
|
active.cancellationRequested = true;
|
|
60149
60184
|
const transport = this.#transport;
|
|
60150
60185
|
const taskIds = this.#backgroundTaskIds(active);
|
|
60151
|
-
if (transport && (taskIds.length > 0 ||
|
|
60186
|
+
if (transport && (taskIds.length > 0 || // A written steer survives the interrupt and runs as Claude's next native turn, so the
|
|
60187
|
+
// Turn stays open to interrupt that turn too instead of leaking it into the next one.
|
|
60188
|
+
active.steersAwaitingNative.size > 0 || active.held && (active.rootSegmentActive || this.#occupancy.awaitingContinuation))) {
|
|
60152
60189
|
await this.#cancelBackgroundWork(active, transport, taskIds);
|
|
60153
60190
|
return { ok: true, value: { cancellationRequested: true } };
|
|
60154
60191
|
}
|
|
@@ -16620,6 +16620,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
16620
16620
|
})
|
|
16621
16621
|
});
|
|
16622
16622
|
|
|
16623
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
16624
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
16625
|
+
id: external_exports.string().min(1),
|
|
16626
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
16627
|
+
label: external_exports.string(),
|
|
16628
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
16629
|
+
canStop: external_exports.boolean(),
|
|
16630
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
16631
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
16632
|
+
schedule: external_exports.string().optional(),
|
|
16633
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
16634
|
+
relatedActivityId: external_exports.string().optional(),
|
|
16635
|
+
threadId: hostThreadIdSchema.optional()
|
|
16636
|
+
});
|
|
16637
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
16638
|
+
activity: backgroundActivitySchema,
|
|
16639
|
+
output: external_exports.string(),
|
|
16640
|
+
truncated: external_exports.boolean()
|
|
16641
|
+
});
|
|
16642
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
16643
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
16644
|
+
activityId: external_exports.string().min(1)
|
|
16645
|
+
});
|
|
16646
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
16647
|
+
supported: external_exports.boolean(),
|
|
16648
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
16649
|
+
});
|
|
16650
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
16651
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
16652
|
+
});
|
|
16653
|
+
|
|
16623
16654
|
// ../../shared-contracts/dist/index.js
|
|
16624
16655
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16625
16656
|
|
|
@@ -18492,6 +18523,16 @@ function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PRO
|
|
|
18492
18523
|
continue;
|
|
18493
18524
|
if (supportsNativeCommands && row.type === "message" && row.role === "user" && data.agent === "compact" && !manualCompactions.has(text(row.id)))
|
|
18494
18525
|
continue;
|
|
18526
|
+
if (row.type === "message" && row.role === "user" && data.startsNewUserRequest === false && !localCommand && data.agent !== "compact" && !isNativeCompactionSummary(row)) {
|
|
18527
|
+
const contextOnly = body.trim().length > 0 && body.replace(/<system-reminder\b[^>]*\sdata-role=(["'])user-context\1[^>]*>[\s\S]*?<\/system-reminder>/gu, "").trim().length === 0;
|
|
18528
|
+
if (data.isMeta === true || contextOnly)
|
|
18529
|
+
continue;
|
|
18530
|
+
if (current) {
|
|
18531
|
+
if (body)
|
|
18532
|
+
current.input.push({ type: "text", text: body });
|
|
18533
|
+
continue;
|
|
18534
|
+
}
|
|
18535
|
+
}
|
|
18495
18536
|
if (includeCompactionHistory && isNativeCompactionSummary(row)) {
|
|
18496
18537
|
if (supportsNativeCommands && current) {
|
|
18497
18538
|
const outcome = data.isCompacted === true ? { status: "succeeded" } : {
|
|
@@ -16133,6 +16133,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
16133
16133
|
})
|
|
16134
16134
|
});
|
|
16135
16135
|
|
|
16136
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
16137
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
16138
|
+
id: external_exports.string().min(1),
|
|
16139
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
16140
|
+
label: external_exports.string(),
|
|
16141
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
16142
|
+
canStop: external_exports.boolean(),
|
|
16143
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
16144
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
16145
|
+
schedule: external_exports.string().optional(),
|
|
16146
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
16147
|
+
relatedActivityId: external_exports.string().optional(),
|
|
16148
|
+
threadId: hostThreadIdSchema.optional()
|
|
16149
|
+
});
|
|
16150
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
16151
|
+
activity: backgroundActivitySchema,
|
|
16152
|
+
output: external_exports.string(),
|
|
16153
|
+
truncated: external_exports.boolean()
|
|
16154
|
+
});
|
|
16155
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
16156
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
16157
|
+
activityId: external_exports.string().min(1)
|
|
16158
|
+
});
|
|
16159
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
16160
|
+
supported: external_exports.boolean(),
|
|
16161
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
16162
|
+
});
|
|
16163
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
16164
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
16165
|
+
});
|
|
16166
|
+
|
|
16136
16167
|
// ../../shared-contracts/dist/index.js
|
|
16137
16168
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16138
16169
|
|
|
@@ -20195,6 +20195,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
20195
20195
|
})
|
|
20196
20196
|
});
|
|
20197
20197
|
|
|
20198
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
20199
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
20200
|
+
id: external_exports.string().min(1),
|
|
20201
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
20202
|
+
label: external_exports.string(),
|
|
20203
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
20204
|
+
canStop: external_exports.boolean(),
|
|
20205
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
20206
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
20207
|
+
schedule: external_exports.string().optional(),
|
|
20208
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
20209
|
+
relatedActivityId: external_exports.string().optional(),
|
|
20210
|
+
threadId: hostThreadIdSchema.optional()
|
|
20211
|
+
});
|
|
20212
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
20213
|
+
activity: backgroundActivitySchema,
|
|
20214
|
+
output: external_exports.string(),
|
|
20215
|
+
truncated: external_exports.boolean()
|
|
20216
|
+
});
|
|
20217
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
20218
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
20219
|
+
activityId: external_exports.string().min(1)
|
|
20220
|
+
});
|
|
20221
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
20222
|
+
supported: external_exports.boolean(),
|
|
20223
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
20224
|
+
});
|
|
20225
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
20226
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
20227
|
+
});
|
|
20228
|
+
|
|
20198
20229
|
// ../../shared-contracts/dist/index.js
|
|
20199
20230
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
20200
20231
|
|
|
@@ -16505,6 +16505,37 @@ var voiceSettingsStateSchema = external_exports.strictObject({
|
|
|
16505
16505
|
})
|
|
16506
16506
|
});
|
|
16507
16507
|
|
|
16508
|
+
// ../../shared-contracts/dist/background-activity.js
|
|
16509
|
+
var backgroundActivitySchema = external_exports.strictObject({
|
|
16510
|
+
id: external_exports.string().min(1),
|
|
16511
|
+
kind: external_exports.enum(["task", "monitor", "loop", "subagent"]),
|
|
16512
|
+
label: external_exports.string(),
|
|
16513
|
+
status: external_exports.enum(["running", "scheduled", "completed", "failed", "cancelled", "unknown"]),
|
|
16514
|
+
canStop: external_exports.boolean(),
|
|
16515
|
+
/** Existing detached command Item presented by Desktop's native process UI. */
|
|
16516
|
+
commandItemId: hostItemIdSchema.optional(),
|
|
16517
|
+
schedule: external_exports.string().optional(),
|
|
16518
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).optional(),
|
|
16519
|
+
relatedActivityId: external_exports.string().optional(),
|
|
16520
|
+
threadId: hostThreadIdSchema.optional()
|
|
16521
|
+
});
|
|
16522
|
+
var backgroundActivityDetailSchema = external_exports.strictObject({
|
|
16523
|
+
activity: backgroundActivitySchema,
|
|
16524
|
+
output: external_exports.string(),
|
|
16525
|
+
truncated: external_exports.boolean()
|
|
16526
|
+
});
|
|
16527
|
+
var threadActivityParamsSchema = external_exports.strictObject({ threadId: hostThreadIdSchema });
|
|
16528
|
+
var threadActivityItemParamsSchema = threadActivityParamsSchema.extend({
|
|
16529
|
+
activityId: external_exports.string().min(1)
|
|
16530
|
+
});
|
|
16531
|
+
var threadActivityListResultSchema = external_exports.strictObject({
|
|
16532
|
+
supported: external_exports.boolean(),
|
|
16533
|
+
activities: external_exports.array(backgroundActivitySchema)
|
|
16534
|
+
});
|
|
16535
|
+
var threadActivityStopResultSchema = external_exports.strictObject({
|
|
16536
|
+
outcome: external_exports.enum(["stopped", "alreadyStopped", "notFound"])
|
|
16537
|
+
});
|
|
16538
|
+
|
|
16508
16539
|
// ../../shared-contracts/dist/index.js
|
|
16509
16540
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
16510
16541
|
|
|
@@ -17280,7 +17311,8 @@ function readCursorNativeHistory(sessionId, cwd, environment, allowMissing = fal
|
|
|
17280
17311
|
result.push({
|
|
17281
17312
|
id,
|
|
17282
17313
|
text: one(user, 1).toString("utf8"),
|
|
17283
|
-
...rewindRoot ? { rewindRoot } : {}
|
|
17314
|
+
...rewindRoot ? { rewindRoot } : {},
|
|
17315
|
+
...user.get(15)?.length ? { notification: true } : {}
|
|
17284
17316
|
});
|
|
17285
17317
|
}
|
|
17286
17318
|
}
|
|
@@ -23955,19 +23987,22 @@ var CursorSession = class {
|
|
|
23955
23987
|
const administrative = command.input.map((part) => part.text).join("\n").trim().toLowerCase() === "/copy-request-id";
|
|
23956
23988
|
if (administrative && JSON.stringify(before) === JSON.stringify(after)) {
|
|
23957
23989
|
} else {
|
|
23958
|
-
|
|
23990
|
+
const prompted = added.filter((turn) => !turn.notification);
|
|
23991
|
+
const own = prompted[0];
|
|
23992
|
+
if (!own || prompted.length !== 1 || after.length !== before.length + added.length || before.some((turn, index) => after[index]?.id !== turn.id) || own.text !== command.input.map((part) => part.text).join("\n"))
|
|
23959
23993
|
throw new Error("Cursor terminal has no unique, verified native turn identity");
|
|
23960
23994
|
nativeTurnRef = nativeTurnRefSchema.parse({
|
|
23961
23995
|
harnessId: "cursor-cli",
|
|
23962
23996
|
nativeSessionId: this.transport.sessionId,
|
|
23963
|
-
nativeTurnKey:
|
|
23997
|
+
nativeTurnKey: own.id,
|
|
23964
23998
|
formatVersion: 1
|
|
23965
23999
|
});
|
|
23966
24000
|
this.#fresh = false;
|
|
23967
|
-
|
|
24001
|
+
const ownIndex = after.findIndex((turn) => turn.id === own.id);
|
|
24002
|
+
if (outcome.status === "succeeded" && cursorForkAvailable() && (ownIndex === after.length - 1 || after[ownIndex + 1]?.rewindRoot))
|
|
23968
24003
|
outcome = {
|
|
23969
24004
|
...outcome,
|
|
23970
|
-
checkpoint: cursorCheckpoint(this.transport.sessionId,
|
|
24005
|
+
checkpoint: cursorCheckpoint(this.transport.sessionId, own.id)
|
|
23971
24006
|
};
|
|
23972
24007
|
}
|
|
23973
24008
|
} catch (error51) {
|