@codexhost/cli-win32-x64 0.30.0 → 0.31.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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +54 -5
- package/app/console-web.js +74 -7
- package/app/desktop-controller.mjs +60 -9
- package/app/host-runtime.mjs +1367 -322
- package/app/plugins/antigravity/plugin.mjs +54 -5
- package/app/plugins/claude-code/plugin.mjs +65 -13
- package/app/plugins/codebuddy/plugin.mjs +253 -93
- package/app/plugins/codex-usage/plugin.mjs +54 -5
- package/app/plugins/copilot/plugin.mjs +54 -5
- package/app/plugins/cursor-cli/plugin.mjs +54 -5
- package/app/plugins/deepseek-harness/plugin.mjs +54 -5
- package/app/plugins/devin/plugin.mjs +54 -5
- package/app/plugins/grok/plugin.mjs +54 -5
- package/app/plugins/hermes/plugin.mjs +54 -5
- package/app/plugins/kimi-code/plugin.mjs +54 -5
- package/app/plugins/kiro-cli/plugin.mjs +54 -5
- package/app/plugins/omp/plugin.mjs +54 -5
- package/app/plugins/opencode/plugin.mjs +54 -5
- package/app/plugins/pi/plugin.mjs +54 -5
- package/app/plugins/qoder/plugin.mjs +54 -5
- package/app/plugins/qoder-cn/plugin.mjs +54 -5
- package/app/plugins/qwen-code/plugin.mjs +54 -5
- package/app/plugins/workbuddy/plugin.mjs +253 -93
- package/app/plugins/zcode/plugin.mjs +54 -5
- package/app/renderer-extension.js +650 -413
- package/app/web/assets/{abnfDiagram-XWFEHMT6-BdinLox4.js → abnfDiagram-XWFEHMT6-Bqy7uOSy.js} +1 -1
- package/app/web/assets/{architectureDiagram-CSQXQB3N-DgPBbtvP.js → architectureDiagram-CSQXQB3N-6aaP1YoM.js} +1 -1
- package/app/web/assets/{blockDiagram-BEDRHYPZ-B4ENdwtZ.js → blockDiagram-BEDRHYPZ-B4QSFXe0.js} +1 -1
- package/app/web/assets/{c4Diagram-M2UUVUY5-DA6Owfyu.js → c4Diagram-M2UUVUY5-BYE-C8Gq.js} +1 -1
- package/app/web/assets/{chunk-2Q5K7J3B-Dvh3qOmo.js → chunk-2Q5K7J3B-CiEM-GTd.js} +1 -1
- package/app/web/assets/{chunk-3GCGMST5-VIkqueym.js → chunk-3GCGMST5-hzY9BiB1.js} +1 -1
- package/app/web/assets/{chunk-5VM5RSS4-DTYof_OI.js → chunk-5VM5RSS4-DYXznY0H.js} +1 -1
- package/app/web/assets/{chunk-7U7NFRK5-Dp7s2dg0.js → chunk-7U7NFRK5-Bzw5MDPr.js} +1 -1
- package/app/web/assets/{chunk-CNRTWJTD-TKBKxZLU.js → chunk-CNRTWJTD-DMbxMfi3.js} +1 -1
- package/app/web/assets/{chunk-D5HYT7QG-BRZDovSS.js → chunk-D5HYT7QG-By0ZVBtD.js} +1 -1
- package/app/web/assets/{chunk-EBZ3SEQC-C9USZ3tT.js → chunk-EBZ3SEQC-Yyu_sMV7.js} +2 -2
- package/app/web/assets/{chunk-JWPE2WC7-BrdvVNVo.js → chunk-JWPE2WC7-DDzqxIPT.js} +1 -1
- package/app/web/assets/{chunk-KTR4FSNJ-C7qwjGba.js → chunk-KTR4FSNJ-GlKqhtpl.js} +1 -1
- package/app/web/assets/{chunk-XXDRQBXY-DlSrRuwN.js → chunk-XXDRQBXY-DNc-CvYu.js} +1 -1
- package/app/web/assets/{classDiagram-v2-KXABOMEV-BFvB4kwX.js → classDiagram-v2-KXABOMEV-4_PFS2N_.js} +1 -1
- package/app/web/assets/{cose-bilkent-JH36ORCC-UyCAqNvj.js → cose-bilkent-JH36ORCC-BE3foHUY.js} +1 -1
- package/app/web/assets/{cynefin-EF2NZ3EQ-CwawUbjJ.js → cynefin-EF2NZ3EQ-D2PqrYZ3.js} +1 -1
- package/app/web/assets/{cynefinDiagram-NJNITYFG-BaWEIQJ0.js → cynefinDiagram-NJNITYFG-DOObpTbq.js} +1 -1
- package/app/web/assets/{dagre-KIHZ2IZ3-B7ENIjLG.js → dagre-KIHZ2IZ3-Znm2jin9.js} +1 -1
- package/app/web/assets/{diagram-7YQZDPLS-CxRMU8xq.js → diagram-7YQZDPLS-ByZMD-uA.js} +1 -1
- package/app/web/assets/{diagram-QBROCOUO-qo7sxm4K.js → diagram-QBROCOUO-BiRShpnN.js} +1 -1
- package/app/web/assets/{diagram-RJJCUUZO-CQiGMCMe.js → diagram-RJJCUUZO-D9wLVoK2.js} +1 -1
- package/app/web/assets/{diagram-WERXNKYE-D0Jps1As.js → diagram-WERXNKYE-BSbIh-yC.js} +1 -1
- package/app/web/assets/{diagram-YHHI257C-p4AB8cqK.js → diagram-YHHI257C-DMWrHMc8.js} +1 -1
- package/app/web/assets/{diagram-YR4HJLHV-Bh6JKT04.js → diagram-YR4HJLHV-C4sBAFb1.js} +1 -1
- package/app/web/assets/{ebnfDiagram-N527522P-DRac0k4W.js → ebnfDiagram-N527522P-BZLloaoQ.js} +1 -1
- package/app/web/assets/{elk-O5DQBFGD-CWTz5SZP.js → elk-O5DQBFGD-Da3e5tn5.js} +1 -1
- package/app/web/assets/{erDiagram-K3K3BIDK-DE3w4BEY.js → erDiagram-K3K3BIDK-B2lKAIZF.js} +1 -1
- package/app/web/assets/{flowDiagram-Z6JWZHQI-NYs8bi5t.js → flowDiagram-Z6JWZHQI-q2EY_kmB.js} +1 -1
- package/app/web/assets/{ganttDiagram-3PRQTZWP-Bspp9btW.js → ganttDiagram-3PRQTZWP-BGrNZ20b.js} +1 -1
- package/app/web/assets/{gitGraphDiagram-VXDFKS5L-ByGW1uvv.js → gitGraphDiagram-VXDFKS5L-DIZNXREy.js} +1 -1
- package/app/web/assets/{grid-E2QIVN74-CegebiIw.js → grid-E2QIVN74-0cUkPG69.js} +1 -1
- package/app/web/assets/{index-DFPOGLS4.js → index-PN7K-15_.js} +76 -76
- package/app/web/assets/{infoDiagram-EZ3ZOAHP-CexmsdZx.js → infoDiagram-EZ3ZOAHP-BHhUTQCn.js} +1 -1
- package/app/web/assets/{ishikawaDiagram-S3EKX5GW-BbWqKhg6.js → ishikawaDiagram-S3EKX5GW-DPOxtl4c.js} +1 -1
- package/app/web/assets/{journeyDiagram-POQNLL5X-27YlCe-1.js → journeyDiagram-POQNLL5X-D8RyXckG.js} +1 -1
- package/app/web/assets/{kanban-definition-BH5XI6FM-BAhOdeck.js → kanban-definition-BH5XI6FM-COJv3Hyh.js} +1 -1
- package/app/web/assets/{mermaid.core-sGgCbv5y.js → mermaid.core-DYdcDKIt.js} +4 -4
- package/app/web/assets/{mindmap-definition-WVAN44T4-CsMIX0Lj.js → mindmap-definition-WVAN44T4-DnYIM4ja.js} +1 -1
- package/app/web/assets/{pegDiagram-D4NLKWP3-Cs3LXqn_.js → pegDiagram-D4NLKWP3-Ds3GAEJ6.js} +1 -1
- package/app/web/assets/{pieDiagram-36ENHN4W-DdQsQX9I.js → pieDiagram-36ENHN4W-BhLUJGEB.js} +1 -1
- package/app/web/assets/{quadrantDiagram-ZQUDMS73-D1jOKqx_.js → quadrantDiagram-ZQUDMS73-DwtX-IxK.js} +1 -1
- package/app/web/assets/{railroadDiagram-JIZHGYPL-XulrgX5n.js → railroadDiagram-JIZHGYPL-D2vmTTnJ.js} +1 -1
- package/app/web/assets/{render-VIF2ZAQL-CSsGw-0I.js → render-VIF2ZAQL-DGU1ql-Z.js} +2 -2
- package/app/web/assets/{requirementDiagram-AXW2TVFA-CT66GXLN.js → requirementDiagram-AXW2TVFA-u3j1sKkI.js} +1 -1
- package/app/web/assets/{sankeyDiagram-FBCJTAIF-CNRKebNY.js → sankeyDiagram-FBCJTAIF-k-An9VHW.js} +1 -1
- package/app/web/assets/{sequenceDiagram-3LA2ROMG-DVl5y64e.js → sequenceDiagram-3LA2ROMG-DUjbYb4R.js} +1 -1
- package/app/web/assets/{sizeCapture-2Q2CQKSF-Kg0XxSga.js → sizeCapture-2Q2CQKSF-DATTL7FZ.js} +1 -1
- package/app/web/assets/{stateDiagram-v2-ATKHQDJO-DYQnfMsS.js → stateDiagram-v2-ATKHQDJO-cCJX5M2u.js} +1 -1
- package/app/web/assets/{swimlanes-YQL5WMAO-Chqt7pxD.js → swimlanes-YQL5WMAO-B7grWEWt.js} +1 -1
- package/app/web/assets/swimlanesDiagram-UCCPES4V-B8Jem9gq.js +8 -0
- package/app/web/assets/{timeline-definition-7Z437IG3-aHFxjIT6.js → timeline-definition-7Z437IG3-BhsLa6l1.js} +1 -1
- package/app/web/assets/{usecaseDiagram-RDK6N6HP-DsC5tFe4.js → usecaseDiagram-RDK6N6HP-CkPQYmQw.js} +1 -1
- package/app/web/assets/{vennDiagram-SHRQU5PJ-C65oZxFn.js → vennDiagram-SHRQU5PJ-CufZSwvw.js} +1 -1
- package/app/web/assets/{wardleyDiagram-F3OXNVQS-HTkq7DT0.js → wardleyDiagram-F3OXNVQS-CSkfpFOA.js} +1 -1
- package/app/web/assets/{xychartDiagram-GDYJKCDI-p1LpQ9MH.js → xychartDiagram-GDYJKCDI-BhZf9scK.js} +1 -1
- package/app/web/codexhost-settings.js +56 -56
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-api-workspace-controller/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +75 -75
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +16 -16
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +16 -16
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +70 -72
- package/app/web-modules/server.mjs +383 -148
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-screenshot.exe +0 -0
- package/libexec/codexhost-shell.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
- package/app/web/assets/swimlanesDiagram-UCCPES4V-BfREktNP.js +0 -8
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @codexhost/cli@0.
|
|
10
|
+
npm install -g @codexhost/cli@0.31.0
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@codexhost/cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.
|
|
1
|
+
{"schemaVersion":1,"version":"0.31.0","distribution":"npm","target":"windows-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -22810,6 +22810,45 @@ var nativeCodexGoalResultSchema = external_exports.object({
|
|
|
22810
22810
|
// packages/shared-contracts/dist/client-channel.js
|
|
22811
22811
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
22812
22812
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
22813
|
+
var THREAD_SECTION_CAPABILITY = "threadSectionsV1";
|
|
22814
|
+
var threadSectionName = external_exports.string().trim().min(1);
|
|
22815
|
+
var threadSectionId = external_exports.string().min(1);
|
|
22816
|
+
var threadSectionAppearance = external_exports.object({
|
|
22817
|
+
icon: external_exports.string().nullable(),
|
|
22818
|
+
color: external_exports.string().nullable()
|
|
22819
|
+
});
|
|
22820
|
+
var clientThreadSectionAppearanceSchema = threadSectionAppearance.nullable();
|
|
22821
|
+
var CLIENT_THREAD_SECTION_MUTATIONS = {
|
|
22822
|
+
create: {
|
|
22823
|
+
method: "codexhost/thread/sections/create",
|
|
22824
|
+
params: external_exports.object({ name: threadSectionName }).strict()
|
|
22825
|
+
},
|
|
22826
|
+
update: {
|
|
22827
|
+
method: "codexhost/thread/sections/update",
|
|
22828
|
+
params: external_exports.object({
|
|
22829
|
+
sectionId: threadSectionId,
|
|
22830
|
+
name: threadSectionName,
|
|
22831
|
+
appearance: threadSectionAppearance.strict().nullable().optional()
|
|
22832
|
+
}).strict()
|
|
22833
|
+
},
|
|
22834
|
+
delete: {
|
|
22835
|
+
method: "codexhost/thread/sections/delete",
|
|
22836
|
+
params: external_exports.object({ sectionId: threadSectionId }).strict()
|
|
22837
|
+
}
|
|
22838
|
+
};
|
|
22839
|
+
var clientThreadSectionMutationResultSchema = external_exports.discriminatedUnion("status", [
|
|
22840
|
+
external_exports.object({ status: external_exports.literal("unknown") }),
|
|
22841
|
+
external_exports.object({
|
|
22842
|
+
status: external_exports.literal("confirmed"),
|
|
22843
|
+
sectionId: threadSectionId,
|
|
22844
|
+
section: external_exports.object({
|
|
22845
|
+
id: threadSectionId,
|
|
22846
|
+
name: external_exports.string().min(1),
|
|
22847
|
+
appearance: clientThreadSectionAppearanceSchema
|
|
22848
|
+
}).nullable(),
|
|
22849
|
+
syncPending: external_exports.boolean()
|
|
22850
|
+
})
|
|
22851
|
+
]);
|
|
22813
22852
|
var CLIENT_CHANNEL_METHODS = [
|
|
22814
22853
|
"codexhost/skills/list",
|
|
22815
22854
|
"codexhost/voice/status",
|
|
@@ -22856,6 +22895,9 @@ var CLIENT_CHANNEL_METHODS = [
|
|
|
22856
22895
|
"codexhost/thread/pins/list",
|
|
22857
22896
|
"codexhost/thread/sections/list",
|
|
22858
22897
|
"codexhost/thread/sections/move",
|
|
22898
|
+
CLIENT_THREAD_SECTION_MUTATIONS.create.method,
|
|
22899
|
+
CLIENT_THREAD_SECTION_MUTATIONS.update.method,
|
|
22900
|
+
CLIENT_THREAD_SECTION_MUTATIONS.delete.method,
|
|
22859
22901
|
"codexhost/thread/pins/set",
|
|
22860
22902
|
"codexhost/harness/plugins/list",
|
|
22861
22903
|
"codexhost/harness/inspect",
|
|
@@ -22906,16 +22948,21 @@ var CLIENT_CHANNEL_METHODS = [
|
|
|
22906
22948
|
"codexhost/sessions/loaded/list"
|
|
22907
22949
|
];
|
|
22908
22950
|
var clientThreadSectionsSchema = external_exports.object({
|
|
22951
|
+
[THREAD_SECTION_CAPABILITY]: external_exports.literal(true).optional(),
|
|
22952
|
+
complete: external_exports.literal(false).optional(),
|
|
22909
22953
|
sections: external_exports.array(external_exports.object({
|
|
22910
22954
|
id: external_exports.string().min(1),
|
|
22911
22955
|
name: external_exports.string().min(1),
|
|
22956
|
+
appearance: clientThreadSectionAppearanceSchema.optional(),
|
|
22912
22957
|
threads: external_exports.array(jsonObjectSchema)
|
|
22913
|
-
})
|
|
22914
|
-
})
|
|
22958
|
+
}))
|
|
22959
|
+
});
|
|
22915
22960
|
var clientThreadSectionMoveSchema = external_exports.object({
|
|
22916
22961
|
threadId: external_exports.string().min(1).max(1024),
|
|
22917
|
-
sectionId: external_exports.string().min(1).max(1024).nullable()
|
|
22918
|
-
|
|
22962
|
+
sectionId: external_exports.string().min(1).max(1024).nullable(),
|
|
22963
|
+
beforeThreadId: external_exports.string().min(1).max(1024).nullable().optional(),
|
|
22964
|
+
expectedSourceSectionId: external_exports.string().min(1).max(1024).optional()
|
|
22965
|
+
}).refine((move) => move.expectedSourceSectionId === void 0 || move.sectionId === null);
|
|
22919
22966
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
22920
22967
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
22921
22968
|
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
@@ -22962,6 +23009,7 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
22962
23009
|
harnessId: external_exports.string().min(1)
|
|
22963
23010
|
}),
|
|
22964
23011
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
23012
|
+
external_exports.object({ type: external_exports.literal("sections-changed"), cursor: clientChannelCursorSchema }),
|
|
22965
23013
|
external_exports.object({
|
|
22966
23014
|
type: external_exports.literal("preferences-changed"),
|
|
22967
23015
|
cursor: clientChannelCursorSchema,
|
|
@@ -23128,7 +23176,8 @@ var clientChannelDescriptorSchema = external_exports.object({
|
|
|
23128
23176
|
startedAt: external_exports.number(),
|
|
23129
23177
|
epoch: external_exports.string().uuid(),
|
|
23130
23178
|
capabilities: external_exports.object({
|
|
23131
|
-
peerDelegation: external_exports.literal(1).optional()
|
|
23179
|
+
peerDelegation: external_exports.literal(1).optional(),
|
|
23180
|
+
threadReferenceContext: external_exports.literal(1).optional()
|
|
23132
23181
|
}).optional()
|
|
23133
23182
|
});
|
|
23134
23183
|
var clientChannelResponseSchema = external_exports.object({
|
package/app/console-web.js
CHANGED
|
@@ -21320,6 +21320,45 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21320
21320
|
// ../shared-contracts/dist/client-channel.js
|
|
21321
21321
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
21322
21322
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
21323
|
+
var THREAD_SECTION_CAPABILITY = "threadSectionsV1";
|
|
21324
|
+
var threadSectionName = external_exports.string().trim().min(1);
|
|
21325
|
+
var threadSectionId = external_exports.string().min(1);
|
|
21326
|
+
var threadSectionAppearance = external_exports.object({
|
|
21327
|
+
icon: external_exports.string().nullable(),
|
|
21328
|
+
color: external_exports.string().nullable()
|
|
21329
|
+
});
|
|
21330
|
+
var clientThreadSectionAppearanceSchema = threadSectionAppearance.nullable();
|
|
21331
|
+
var CLIENT_THREAD_SECTION_MUTATIONS = {
|
|
21332
|
+
create: {
|
|
21333
|
+
method: "codexhost/thread/sections/create",
|
|
21334
|
+
params: external_exports.object({ name: threadSectionName }).strict()
|
|
21335
|
+
},
|
|
21336
|
+
update: {
|
|
21337
|
+
method: "codexhost/thread/sections/update",
|
|
21338
|
+
params: external_exports.object({
|
|
21339
|
+
sectionId: threadSectionId,
|
|
21340
|
+
name: threadSectionName,
|
|
21341
|
+
appearance: threadSectionAppearance.strict().nullable().optional()
|
|
21342
|
+
}).strict()
|
|
21343
|
+
},
|
|
21344
|
+
delete: {
|
|
21345
|
+
method: "codexhost/thread/sections/delete",
|
|
21346
|
+
params: external_exports.object({ sectionId: threadSectionId }).strict()
|
|
21347
|
+
}
|
|
21348
|
+
};
|
|
21349
|
+
var clientThreadSectionMutationResultSchema = external_exports.discriminatedUnion("status", [
|
|
21350
|
+
external_exports.object({ status: external_exports.literal("unknown") }),
|
|
21351
|
+
external_exports.object({
|
|
21352
|
+
status: external_exports.literal("confirmed"),
|
|
21353
|
+
sectionId: threadSectionId,
|
|
21354
|
+
section: external_exports.object({
|
|
21355
|
+
id: threadSectionId,
|
|
21356
|
+
name: external_exports.string().min(1),
|
|
21357
|
+
appearance: clientThreadSectionAppearanceSchema
|
|
21358
|
+
}).nullable(),
|
|
21359
|
+
syncPending: external_exports.boolean()
|
|
21360
|
+
})
|
|
21361
|
+
]);
|
|
21323
21362
|
var CLIENT_CHANNEL_METHODS = [
|
|
21324
21363
|
"codexhost/skills/list",
|
|
21325
21364
|
"codexhost/voice/status",
|
|
@@ -21366,6 +21405,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21366
21405
|
"codexhost/thread/pins/list",
|
|
21367
21406
|
"codexhost/thread/sections/list",
|
|
21368
21407
|
"codexhost/thread/sections/move",
|
|
21408
|
+
CLIENT_THREAD_SECTION_MUTATIONS.create.method,
|
|
21409
|
+
CLIENT_THREAD_SECTION_MUTATIONS.update.method,
|
|
21410
|
+
CLIENT_THREAD_SECTION_MUTATIONS.delete.method,
|
|
21369
21411
|
"codexhost/thread/pins/set",
|
|
21370
21412
|
"codexhost/harness/plugins/list",
|
|
21371
21413
|
"codexhost/harness/inspect",
|
|
@@ -21416,16 +21458,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21416
21458
|
"codexhost/sessions/loaded/list"
|
|
21417
21459
|
];
|
|
21418
21460
|
var clientThreadSectionsSchema = external_exports.object({
|
|
21461
|
+
[THREAD_SECTION_CAPABILITY]: external_exports.literal(true).optional(),
|
|
21462
|
+
complete: external_exports.literal(false).optional(),
|
|
21419
21463
|
sections: external_exports.array(external_exports.object({
|
|
21420
21464
|
id: external_exports.string().min(1),
|
|
21421
21465
|
name: external_exports.string().min(1),
|
|
21466
|
+
appearance: clientThreadSectionAppearanceSchema.optional(),
|
|
21422
21467
|
threads: external_exports.array(jsonObjectSchema)
|
|
21423
|
-
})
|
|
21424
|
-
})
|
|
21468
|
+
}))
|
|
21469
|
+
});
|
|
21425
21470
|
var clientThreadSectionMoveSchema = external_exports.object({
|
|
21426
21471
|
threadId: external_exports.string().min(1).max(1024),
|
|
21427
|
-
sectionId: external_exports.string().min(1).max(1024).nullable()
|
|
21428
|
-
|
|
21472
|
+
sectionId: external_exports.string().min(1).max(1024).nullable(),
|
|
21473
|
+
beforeThreadId: external_exports.string().min(1).max(1024).nullable().optional(),
|
|
21474
|
+
expectedSourceSectionId: external_exports.string().min(1).max(1024).optional()
|
|
21475
|
+
}).refine((move) => move.expectedSourceSectionId === void 0 || move.sectionId === null);
|
|
21429
21476
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
21430
21477
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
21431
21478
|
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
@@ -21472,6 +21519,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21472
21519
|
harnessId: external_exports.string().min(1)
|
|
21473
21520
|
}),
|
|
21474
21521
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
21522
|
+
external_exports.object({ type: external_exports.literal("sections-changed"), cursor: clientChannelCursorSchema }),
|
|
21475
21523
|
external_exports.object({
|
|
21476
21524
|
type: external_exports.literal("preferences-changed"),
|
|
21477
21525
|
cursor: clientChannelCursorSchema,
|
|
@@ -21638,7 +21686,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21638
21686
|
startedAt: external_exports.number(),
|
|
21639
21687
|
epoch: external_exports.string().uuid(),
|
|
21640
21688
|
capabilities: external_exports.object({
|
|
21641
|
-
peerDelegation: external_exports.literal(1).optional()
|
|
21689
|
+
peerDelegation: external_exports.literal(1).optional(),
|
|
21690
|
+
threadReferenceContext: external_exports.literal(1).optional()
|
|
21642
21691
|
}).optional()
|
|
21643
21692
|
});
|
|
21644
21693
|
var clientChannelResponseSchema = external_exports.object({
|
|
@@ -38324,7 +38373,12 @@ ${error62.stderrTail}`] : []
|
|
|
38324
38373
|
}
|
|
38325
38374
|
};
|
|
38326
38375
|
const track = (teardown) => {
|
|
38327
|
-
|
|
38376
|
+
try {
|
|
38377
|
+
guard();
|
|
38378
|
+
} catch (error62) {
|
|
38379
|
+
teardown();
|
|
38380
|
+
throw error62;
|
|
38381
|
+
}
|
|
38328
38382
|
teardowns.add(teardown);
|
|
38329
38383
|
return () => {
|
|
38330
38384
|
if (teardowns.delete(teardown)) teardown();
|
|
@@ -38373,7 +38427,20 @@ ${error62.stderrTail}`] : []
|
|
|
38373
38427
|
watchTree(callback) {
|
|
38374
38428
|
guard();
|
|
38375
38429
|
return track(bridge.watchTree((snapshot) => delivery(callback, snapshot)));
|
|
38376
|
-
}
|
|
38430
|
+
},
|
|
38431
|
+
...bridge.watchUnread ? {
|
|
38432
|
+
watchUnread(threadIds, callback) {
|
|
38433
|
+
guard();
|
|
38434
|
+
if (!Array.isArray(threadIds) || threadIds.length > THREAD_TREE_MAX_NODES || threadIds.some((id3) => !hostThreadIdSchema.safeParse(id3).success))
|
|
38435
|
+
throw new Error("Invalid Desktop unread Thread ids");
|
|
38436
|
+
return track(
|
|
38437
|
+
bridge.watchUnread(
|
|
38438
|
+
[...new Set(threadIds)],
|
|
38439
|
+
(snapshot) => delivery(callback, Object.freeze({ ...snapshot }))
|
|
38440
|
+
)
|
|
38441
|
+
);
|
|
38442
|
+
}
|
|
38443
|
+
} : {}
|
|
38377
38444
|
},
|
|
38378
38445
|
navigate: {
|
|
38379
38446
|
async openThread(threadId) {
|
|
@@ -33572,6 +33572,45 @@ var nativeCodexGoalResultSchema = external_exports.object({
|
|
|
33572
33572
|
// packages/shared-contracts/dist/client-channel.js
|
|
33573
33573
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
33574
33574
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
33575
|
+
var THREAD_SECTION_CAPABILITY = "threadSectionsV1";
|
|
33576
|
+
var threadSectionName = external_exports.string().trim().min(1);
|
|
33577
|
+
var threadSectionId = external_exports.string().min(1);
|
|
33578
|
+
var threadSectionAppearance = external_exports.object({
|
|
33579
|
+
icon: external_exports.string().nullable(),
|
|
33580
|
+
color: external_exports.string().nullable()
|
|
33581
|
+
});
|
|
33582
|
+
var clientThreadSectionAppearanceSchema = threadSectionAppearance.nullable();
|
|
33583
|
+
var CLIENT_THREAD_SECTION_MUTATIONS = {
|
|
33584
|
+
create: {
|
|
33585
|
+
method: "codexhost/thread/sections/create",
|
|
33586
|
+
params: external_exports.object({ name: threadSectionName }).strict()
|
|
33587
|
+
},
|
|
33588
|
+
update: {
|
|
33589
|
+
method: "codexhost/thread/sections/update",
|
|
33590
|
+
params: external_exports.object({
|
|
33591
|
+
sectionId: threadSectionId,
|
|
33592
|
+
name: threadSectionName,
|
|
33593
|
+
appearance: threadSectionAppearance.strict().nullable().optional()
|
|
33594
|
+
}).strict()
|
|
33595
|
+
},
|
|
33596
|
+
delete: {
|
|
33597
|
+
method: "codexhost/thread/sections/delete",
|
|
33598
|
+
params: external_exports.object({ sectionId: threadSectionId }).strict()
|
|
33599
|
+
}
|
|
33600
|
+
};
|
|
33601
|
+
var clientThreadSectionMutationResultSchema = external_exports.discriminatedUnion("status", [
|
|
33602
|
+
external_exports.object({ status: external_exports.literal("unknown") }),
|
|
33603
|
+
external_exports.object({
|
|
33604
|
+
status: external_exports.literal("confirmed"),
|
|
33605
|
+
sectionId: threadSectionId,
|
|
33606
|
+
section: external_exports.object({
|
|
33607
|
+
id: threadSectionId,
|
|
33608
|
+
name: external_exports.string().min(1),
|
|
33609
|
+
appearance: clientThreadSectionAppearanceSchema
|
|
33610
|
+
}).nullable(),
|
|
33611
|
+
syncPending: external_exports.boolean()
|
|
33612
|
+
})
|
|
33613
|
+
]);
|
|
33575
33614
|
var CLIENT_CHANNEL_METHODS = [
|
|
33576
33615
|
"codexhost/skills/list",
|
|
33577
33616
|
"codexhost/voice/status",
|
|
@@ -33618,6 +33657,9 @@ var CLIENT_CHANNEL_METHODS = [
|
|
|
33618
33657
|
"codexhost/thread/pins/list",
|
|
33619
33658
|
"codexhost/thread/sections/list",
|
|
33620
33659
|
"codexhost/thread/sections/move",
|
|
33660
|
+
CLIENT_THREAD_SECTION_MUTATIONS.create.method,
|
|
33661
|
+
CLIENT_THREAD_SECTION_MUTATIONS.update.method,
|
|
33662
|
+
CLIENT_THREAD_SECTION_MUTATIONS.delete.method,
|
|
33621
33663
|
"codexhost/thread/pins/set",
|
|
33622
33664
|
"codexhost/harness/plugins/list",
|
|
33623
33665
|
"codexhost/harness/inspect",
|
|
@@ -33668,16 +33710,21 @@ var CLIENT_CHANNEL_METHODS = [
|
|
|
33668
33710
|
"codexhost/sessions/loaded/list"
|
|
33669
33711
|
];
|
|
33670
33712
|
var clientThreadSectionsSchema = external_exports.object({
|
|
33713
|
+
[THREAD_SECTION_CAPABILITY]: external_exports.literal(true).optional(),
|
|
33714
|
+
complete: external_exports.literal(false).optional(),
|
|
33671
33715
|
sections: external_exports.array(external_exports.object({
|
|
33672
33716
|
id: external_exports.string().min(1),
|
|
33673
33717
|
name: external_exports.string().min(1),
|
|
33718
|
+
appearance: clientThreadSectionAppearanceSchema.optional(),
|
|
33674
33719
|
threads: external_exports.array(jsonObjectSchema)
|
|
33675
|
-
})
|
|
33676
|
-
})
|
|
33720
|
+
}))
|
|
33721
|
+
});
|
|
33677
33722
|
var clientThreadSectionMoveSchema = external_exports.object({
|
|
33678
33723
|
threadId: external_exports.string().min(1).max(1024),
|
|
33679
|
-
sectionId: external_exports.string().min(1).max(1024).nullable()
|
|
33680
|
-
|
|
33724
|
+
sectionId: external_exports.string().min(1).max(1024).nullable(),
|
|
33725
|
+
beforeThreadId: external_exports.string().min(1).max(1024).nullable().optional(),
|
|
33726
|
+
expectedSourceSectionId: external_exports.string().min(1).max(1024).optional()
|
|
33727
|
+
}).refine((move) => move.expectedSourceSectionId === void 0 || move.sectionId === null);
|
|
33681
33728
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
33682
33729
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
33683
33730
|
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
@@ -33724,6 +33771,7 @@ var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
|
33724
33771
|
harnessId: external_exports.string().min(1)
|
|
33725
33772
|
}),
|
|
33726
33773
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
33774
|
+
external_exports.object({ type: external_exports.literal("sections-changed"), cursor: clientChannelCursorSchema }),
|
|
33727
33775
|
external_exports.object({
|
|
33728
33776
|
type: external_exports.literal("preferences-changed"),
|
|
33729
33777
|
cursor: clientChannelCursorSchema,
|
|
@@ -33890,7 +33938,8 @@ var clientChannelDescriptorSchema = external_exports.object({
|
|
|
33890
33938
|
startedAt: external_exports.number(),
|
|
33891
33939
|
epoch: external_exports.string().uuid(),
|
|
33892
33940
|
capabilities: external_exports.object({
|
|
33893
|
-
peerDelegation: external_exports.literal(1).optional()
|
|
33941
|
+
peerDelegation: external_exports.literal(1).optional(),
|
|
33942
|
+
threadReferenceContext: external_exports.literal(1).optional()
|
|
33894
33943
|
}).optional()
|
|
33895
33944
|
});
|
|
33896
33945
|
var clientChannelResponseSchema = external_exports.object({
|
|
@@ -36957,14 +37006,14 @@ function installRendererHostRouting(root, target2, discover, resolve, createPoli
|
|
|
36957
37006
|
routes.delete(hostId2);
|
|
36958
37007
|
entry?.route.policy.dispose();
|
|
36959
37008
|
};
|
|
36960
|
-
const
|
|
36961
|
-
if (!hostId2.startsWith("remote-control:")) return void 0;
|
|
37009
|
+
const connectionGeneration = (hostId2) => {
|
|
36962
37010
|
try {
|
|
36963
37011
|
return readConnection?.(hostId2);
|
|
36964
37012
|
} catch {
|
|
36965
37013
|
return null;
|
|
36966
37014
|
}
|
|
36967
37015
|
};
|
|
37016
|
+
const connectionFor = (hostId2) => hostId2.startsWith("remote-control:") ? connectionGeneration(hostId2) : void 0;
|
|
36968
37017
|
const sameConnection = (expected, current2) => expected === void 0 ? current2 === void 0 : current2?.owner === expected.owner && current2.revision === expected.revision;
|
|
36969
37018
|
const routeFor = (hostId2, discovery) => {
|
|
36970
37019
|
const manager = lookup(hostId2, discovery);
|
|
@@ -37018,6 +37067,7 @@ function installRendererHostRouting(root, target2, discover, resolve, createPoli
|
|
|
37018
37067
|
return typeof hostId2 === "string" && hostId2 ? hostId2 : null;
|
|
37019
37068
|
};
|
|
37020
37069
|
const routing = {
|
|
37070
|
+
connectionGeneration,
|
|
37021
37071
|
knownHostIds() {
|
|
37022
37072
|
if (disposed) return [];
|
|
37023
37073
|
try {
|
|
@@ -37210,14 +37260,14 @@ function installRendererHostRpcRouting(root, target2, dependencies) {
|
|
|
37210
37260
|
}
|
|
37211
37261
|
return owners;
|
|
37212
37262
|
};
|
|
37213
|
-
const
|
|
37214
|
-
if (!hostId2.startsWith("remote-control:")) return void 0;
|
|
37263
|
+
const connectionGeneration = (hostId2) => {
|
|
37215
37264
|
try {
|
|
37216
37265
|
return dependencies.readConnection?.(hostId2);
|
|
37217
37266
|
} catch {
|
|
37218
37267
|
return null;
|
|
37219
37268
|
}
|
|
37220
37269
|
};
|
|
37270
|
+
const connectionFor = (hostId2) => hostId2.startsWith("remote-control:") ? connectionGeneration(hostId2) : void 0;
|
|
37221
37271
|
const sameConnection = (previous, current2) => previous === void 0 ? current2 === void 0 : current2?.owner === previous.owner && current2.revision === previous.revision;
|
|
37222
37272
|
const isRecord3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
37223
37273
|
const externalDrafts = /* @__PURE__ */ new Map();
|
|
@@ -37451,6 +37501,7 @@ function installRendererHostRpcRouting(root, target2, dependencies) {
|
|
|
37451
37501
|
return typeof hostId2 === "string" && hostId2 ? hostId2 : null;
|
|
37452
37502
|
};
|
|
37453
37503
|
const routing = {
|
|
37504
|
+
connectionGeneration,
|
|
37454
37505
|
knownHostIds() {
|
|
37455
37506
|
if (disposed) return [];
|
|
37456
37507
|
try {
|