@codexhost/cli-win32-arm64 0.9.1 → 0.10.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/THIRD_PARTY_NOTICES.txt +0 -4
- package/app/codexhost-distribution.json +1 -1
- package/app/desktop-controller.mjs +304 -197
- package/app/host-runtime.mjs +1163 -666
- package/app/plugins/antigravity/plugin.mjs +73 -3
- package/app/plugins/claude-code/plugin.mjs +446 -48
- package/app/plugins/codebuddy/plugin.mjs +159 -6
- package/app/plugins/cursor-cli/plugin.mjs +207 -53
- package/app/plugins/deepseek-harness/plugin.mjs +89 -21
- package/app/plugins/enabled.json +2 -1
- package/app/plugins/grok/plugin.mjs +449 -160
- package/app/plugins/hermes/plugin.mjs +217 -63
- package/app/plugins/kimi-code/manifest.json +11 -0
- package/app/plugins/kimi-code/plugin.mjs +24226 -0
- package/app/plugins/kiro-cli/plugin.mjs +312 -65
- package/app/plugins/omp/plugin.mjs +313 -67
- package/app/plugins/opencode/plugin.mjs +73 -3
- package/app/plugins/pi/plugin.mjs +3029 -1671
- package/app/plugins/qoder/plugin.mjs +334 -187
- package/app/plugins/qoder-cn/plugin.mjs +334 -187
- package/app/plugins/workbuddy/plugin.mjs +158 -6
- package/app/renderer-extension.js +5580 -3301
- 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/package.json +1 -1
- package/licenses/opencodex-LICENSE.txt +0 -21
|
@@ -14524,6 +14524,61 @@ function date4(params) {
|
|
|
14524
14524
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14525
14525
|
config(en_default());
|
|
14526
14526
|
|
|
14527
|
+
// ../../shared-contracts/dist/credential-imports.js
|
|
14528
|
+
var credentialSourceSchema = external_exports.object({
|
|
14529
|
+
id: external_exports.string().min(1).max(256),
|
|
14530
|
+
harnessId: external_exports.string().min(1),
|
|
14531
|
+
label: external_exports.string().min(1).max(512),
|
|
14532
|
+
provider: external_exports.enum(["openai-codex", "xai"])
|
|
14533
|
+
}).strict();
|
|
14534
|
+
var credentialImportNameSchema = external_exports.string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
14535
|
+
var credentialImportRecordSchema = external_exports.object({
|
|
14536
|
+
name: credentialImportNameSchema,
|
|
14537
|
+
source: credentialSourceSchema,
|
|
14538
|
+
importedAt: external_exports.string()
|
|
14539
|
+
}).strict();
|
|
14540
|
+
var credentialImportsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
14541
|
+
external_exports.object({ action: external_exports.literal("list") }).strict(),
|
|
14542
|
+
external_exports.object({
|
|
14543
|
+
action: external_exports.literal("import"),
|
|
14544
|
+
sourceId: external_exports.string().min(1).max(256),
|
|
14545
|
+
name: credentialImportNameSchema,
|
|
14546
|
+
confirmed: external_exports.literal(true)
|
|
14547
|
+
}).strict(),
|
|
14548
|
+
external_exports.object({
|
|
14549
|
+
action: external_exports.literal("reimport"),
|
|
14550
|
+
sourceId: external_exports.string().min(1).max(256),
|
|
14551
|
+
name: credentialImportNameSchema,
|
|
14552
|
+
confirmed: external_exports.literal(true)
|
|
14553
|
+
}).strict(),
|
|
14554
|
+
external_exports.object({
|
|
14555
|
+
action: external_exports.literal("remove"),
|
|
14556
|
+
name: credentialImportNameSchema,
|
|
14557
|
+
confirmed: external_exports.literal(true)
|
|
14558
|
+
}).strict()
|
|
14559
|
+
]);
|
|
14560
|
+
var credentialOtherLoginSchema = external_exports.object({
|
|
14561
|
+
provider: external_exports.string().min(1).max(128),
|
|
14562
|
+
type: external_exports.enum(["oauth", "api_key", "unknown"]),
|
|
14563
|
+
/** Best-effort account label (e.g. the email in a Codex token), derived locally when present. */
|
|
14564
|
+
label: external_exports.string().min(1).max(512).optional(),
|
|
14565
|
+
/** Recognized credential vendor, derived from the OAuth token issuer. Absent when unknown. */
|
|
14566
|
+
vendor: external_exports.enum(["openai-codex", "xai"]).optional()
|
|
14567
|
+
}).strict();
|
|
14568
|
+
var credentialImportsResultSchema = external_exports.object({
|
|
14569
|
+
sources: external_exports.array(credentialSourceSchema),
|
|
14570
|
+
targets: external_exports.array(external_exports.object({
|
|
14571
|
+
harnessId: external_exports.string(),
|
|
14572
|
+
providers: external_exports.array(external_exports.enum(["openai-codex", "xai"])),
|
|
14573
|
+
imports: external_exports.array(credentialImportRecordSchema),
|
|
14574
|
+
others: external_exports.array(credentialOtherLoginSchema).default([])
|
|
14575
|
+
}).strict())
|
|
14576
|
+
}).strict();
|
|
14577
|
+
var credentialImportsParamsSchema = external_exports.object({
|
|
14578
|
+
targetHarnessId: external_exports.string().min(1).max(128).optional(),
|
|
14579
|
+
request: credentialImportsRequestSchema
|
|
14580
|
+
}).strict();
|
|
14581
|
+
|
|
14527
14582
|
// ../../shared-contracts/dist/version.js
|
|
14528
14583
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
14529
14584
|
|
|
@@ -15227,10 +15282,21 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
15227
15282
|
invocation: commandInvocationSchema,
|
|
15228
15283
|
label: commandLabelSchema,
|
|
15229
15284
|
description: commandDescriptionSchema.optional(),
|
|
15230
|
-
argumentMode: external_exports.enum(["none", "text"])
|
|
15285
|
+
argumentMode: external_exports.enum(["none", "text"]),
|
|
15286
|
+
/**
|
|
15287
|
+
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
15288
|
+
* not tell skills and commands apart; consumers treat that as "command".
|
|
15289
|
+
*/
|
|
15290
|
+
kind: external_exports.enum(["command", "skill"]).optional()
|
|
15231
15291
|
}).strict();
|
|
15232
15292
|
var harnessCommandCatalogSchema = external_exports.object({
|
|
15233
|
-
commands: external_exports.array(harnessCommandDescriptorSchema)
|
|
15293
|
+
commands: external_exports.array(harnessCommandDescriptorSchema),
|
|
15294
|
+
/**
|
|
15295
|
+
* `live` when the catalog includes what a native Session reports for its
|
|
15296
|
+
* workspace (custom commands, skills); `static` for Adapter built-ins only.
|
|
15297
|
+
* Omitted by Adapters; set by the Host on inspection results.
|
|
15298
|
+
*/
|
|
15299
|
+
source: external_exports.enum(["live", "static"]).optional()
|
|
15234
15300
|
}).strict().superRefine((catalog, context) => {
|
|
15235
15301
|
const ids = /* @__PURE__ */ new Set();
|
|
15236
15302
|
for (const [index, command] of catalog.commands.entries()) {
|
|
@@ -15244,7 +15310,11 @@ var harnessCommandCatalogSchema = external_exports.object({
|
|
|
15244
15310
|
ids.add(command.id);
|
|
15245
15311
|
}
|
|
15246
15312
|
});
|
|
15247
|
-
var harnessCommandsInspectParamsSchema = external_exports.object({
|
|
15313
|
+
var harnessCommandsInspectParamsSchema = external_exports.object({
|
|
15314
|
+
harnessId: harnessIdSchema,
|
|
15315
|
+
/** Workspace of a draft without a Thread, for its live catalog when known. */
|
|
15316
|
+
cwd: external_exports.string().min(1).optional()
|
|
15317
|
+
}).strict();
|
|
15248
15318
|
var threadCommandsInspectParamsSchema = external_exports.object({
|
|
15249
15319
|
threadId: hostThreadIdSchema
|
|
15250
15320
|
}).strict();
|
|
@@ -15600,6 +15670,82 @@ function parseHostUsage(value) {
|
|
|
15600
15670
|
return { ...value };
|
|
15601
15671
|
}
|
|
15602
15672
|
|
|
15673
|
+
// ../../harness-adapter/dist/live-command-catalog.js
|
|
15674
|
+
var COMMON_EXCLUDED_LIVE_COMMANDS = /* @__PURE__ */ new Set([
|
|
15675
|
+
// Session lifecycle
|
|
15676
|
+
"branch",
|
|
15677
|
+
"clear",
|
|
15678
|
+
"exit",
|
|
15679
|
+
"fork",
|
|
15680
|
+
"fresh",
|
|
15681
|
+
"new",
|
|
15682
|
+
"quit",
|
|
15683
|
+
"rename",
|
|
15684
|
+
"rename-chat",
|
|
15685
|
+
"reset",
|
|
15686
|
+
"resume",
|
|
15687
|
+
"rewind",
|
|
15688
|
+
"session",
|
|
15689
|
+
"sessions",
|
|
15690
|
+
// Desktop-owned configuration
|
|
15691
|
+
"autocompact",
|
|
15692
|
+
"color",
|
|
15693
|
+
"config",
|
|
15694
|
+
"effort",
|
|
15695
|
+
"fast",
|
|
15696
|
+
"keybindings",
|
|
15697
|
+
"model",
|
|
15698
|
+
"models",
|
|
15699
|
+
"output-style",
|
|
15700
|
+
"permissions",
|
|
15701
|
+
"settings",
|
|
15702
|
+
"statusline",
|
|
15703
|
+
"terminal-setup",
|
|
15704
|
+
"theme",
|
|
15705
|
+
"vim",
|
|
15706
|
+
// Trust and approval policy
|
|
15707
|
+
"always-approve",
|
|
15708
|
+
"auto-mode-setup",
|
|
15709
|
+
// Native login
|
|
15710
|
+
"login",
|
|
15711
|
+
"logout",
|
|
15712
|
+
// Work outliving the Turn
|
|
15713
|
+
"autopilot",
|
|
15714
|
+
"background",
|
|
15715
|
+
"bg",
|
|
15716
|
+
"goal",
|
|
15717
|
+
"jobs",
|
|
15718
|
+
"loop",
|
|
15719
|
+
"multitask",
|
|
15720
|
+
"queue",
|
|
15721
|
+
"remote-control",
|
|
15722
|
+
"schedule",
|
|
15723
|
+
"steer",
|
|
15724
|
+
// Native terminal UI
|
|
15725
|
+
"copy",
|
|
15726
|
+
"debug",
|
|
15727
|
+
"feedback",
|
|
15728
|
+
"heapdump",
|
|
15729
|
+
"share",
|
|
15730
|
+
"shell",
|
|
15731
|
+
// Plugin and MCP management
|
|
15732
|
+
"marketplace",
|
|
15733
|
+
"mcp",
|
|
15734
|
+
"plugins",
|
|
15735
|
+
"reload-plugins"
|
|
15736
|
+
]);
|
|
15737
|
+
var COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES = ["__", "hooks-"];
|
|
15738
|
+
function isExcludedLiveCommand(name, kind, extra = {}) {
|
|
15739
|
+
const normalized = name.trim().replace(/^\//u, "");
|
|
15740
|
+
if (new Set(extra.names ?? []).has(normalized))
|
|
15741
|
+
return true;
|
|
15742
|
+
if (extra.prefixes?.some((prefix) => normalized.startsWith(prefix)))
|
|
15743
|
+
return true;
|
|
15744
|
+
if (kind === "skill")
|
|
15745
|
+
return false;
|
|
15746
|
+
return COMMON_EXCLUDED_LIVE_COMMANDS.has(normalized) || COMMON_EXCLUDED_LIVE_COMMAND_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
15747
|
+
}
|
|
15748
|
+
|
|
15603
15749
|
// ../../harness-broker/dist/protocol.js
|
|
15604
15750
|
var HARNESS_BROKER_PROTOCOL_VERSION = 1;
|
|
15605
15751
|
var HARNESS_BROKER_MAX_FRAME_BYTES = 8 * 1024 * 1024;
|
|
@@ -16395,6 +16541,7 @@ var BrokeredHarnessSession = class {
|
|
|
16395
16541
|
var BrokeredHarnessAdapter = class {
|
|
16396
16542
|
#sessions = /* @__PURE__ */ new Set();
|
|
16397
16543
|
commandCatalog;
|
|
16544
|
+
liveCommandCatalog;
|
|
16398
16545
|
harnessId;
|
|
16399
16546
|
#descriptorPath;
|
|
16400
16547
|
#forwardEnvironment;
|
|
@@ -16417,6 +16564,8 @@ var BrokeredHarnessAdapter = class {
|
|
|
16417
16564
|
this.#forwardEnvironment = input.forwardDelegationEnvironment === true;
|
|
16418
16565
|
if (input.commandCatalog)
|
|
16419
16566
|
this.commandCatalog = input.commandCatalog;
|
|
16567
|
+
if (input.liveCommandCatalog)
|
|
16568
|
+
this.liveCommandCatalog = true;
|
|
16420
16569
|
this.#descriptorPath = input.descriptorPath ?? defaultHarnessBrokerDescriptorPath(input.environment, this.harnessId);
|
|
16421
16570
|
}
|
|
16422
16571
|
async inspectAccount() {
|
|
@@ -21785,7 +21934,8 @@ function commandCatalog(value, profile = CODEBUDDY_RUNTIME_PROFILE) {
|
|
|
21785
21934
|
return {
|
|
21786
21935
|
commands: rows(value).flatMap((entry) => {
|
|
21787
21936
|
const name = text(entry.name).replace(/^\//u, "");
|
|
21788
|
-
|
|
21937
|
+
const skill = record2(entry._meta).type === "skill";
|
|
21938
|
+
if (excluded.has(name) || seen.has(name) || isExcludedLiveCommand(name, skill ? "skill" : "command"))
|
|
21789
21939
|
return [];
|
|
21790
21940
|
const parsed = harnessCommandCatalogSchema.safeParse({
|
|
21791
21941
|
commands: [
|
|
@@ -21794,7 +21944,8 @@ function commandCatalog(value, profile = CODEBUDDY_RUNTIME_PROFILE) {
|
|
|
21794
21944
|
invocation: `/${name}`,
|
|
21795
21945
|
label: name,
|
|
21796
21946
|
...text(entry.description).trim() ? { description: text(entry.description).trim().slice(0, 512) } : {},
|
|
21797
|
-
argumentMode: name === "compact" || record2(entry.input).hint || record2(entry._meta).type === "skill" ? "text" : "none"
|
|
21947
|
+
argumentMode: name === "compact" || record2(entry.input).hint || record2(entry._meta).type === "skill" ? "text" : "none",
|
|
21948
|
+
...record2(entry._meta).type === "skill" ? { kind: "skill" } : {}
|
|
21798
21949
|
}
|
|
21799
21950
|
]
|
|
21800
21951
|
});
|
|
@@ -23384,7 +23535,7 @@ var CodeBuddyInteractions = class {
|
|
|
23384
23535
|
});
|
|
23385
23536
|
}
|
|
23386
23537
|
const actions = request.options.flatMap((option) => {
|
|
23387
|
-
const effect = option.kind === "allow_once" ? "allowOnce" : option.kind === "allow_always" ? "
|
|
23538
|
+
const effect = option.kind === "allow_once" ? "allowOnce" : option.kind === "allow_always" ? "allowForSession" : option.kind === "reject_once" || option.kind === "reject_always" ? "deny" : void 0;
|
|
23388
23539
|
return effect ? [{ id: option.optionId, label: option.name, effect }] : [];
|
|
23389
23540
|
});
|
|
23390
23541
|
if (!actions.some((action) => action.effect === "deny"))
|
|
@@ -24252,6 +24403,7 @@ var CodeBuddyAdapter = class {
|
|
|
24252
24403
|
options;
|
|
24253
24404
|
harnessId;
|
|
24254
24405
|
commandCatalog;
|
|
24406
|
+
liveCommandCatalog = true;
|
|
24255
24407
|
subagents = {
|
|
24256
24408
|
readSnapshot: async ({ parent, nativeSubagentId, cwd }) => {
|
|
24257
24409
|
try {
|