@codexhost/cli-darwin-x64 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 +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/licenses/opencodex-LICENSE.txt +0 -21
|
@@ -18223,6 +18223,61 @@ function date4(params) {
|
|
|
18223
18223
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
18224
18224
|
config(en_default());
|
|
18225
18225
|
|
|
18226
|
+
// ../../shared-contracts/dist/credential-imports.js
|
|
18227
|
+
var credentialSourceSchema = external_exports.object({
|
|
18228
|
+
id: external_exports.string().min(1).max(256),
|
|
18229
|
+
harnessId: external_exports.string().min(1),
|
|
18230
|
+
label: external_exports.string().min(1).max(512),
|
|
18231
|
+
provider: external_exports.enum(["openai-codex", "xai"])
|
|
18232
|
+
}).strict();
|
|
18233
|
+
var credentialImportNameSchema = external_exports.string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
18234
|
+
var credentialImportRecordSchema = external_exports.object({
|
|
18235
|
+
name: credentialImportNameSchema,
|
|
18236
|
+
source: credentialSourceSchema,
|
|
18237
|
+
importedAt: external_exports.string()
|
|
18238
|
+
}).strict();
|
|
18239
|
+
var credentialImportsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
18240
|
+
external_exports.object({ action: external_exports.literal("list") }).strict(),
|
|
18241
|
+
external_exports.object({
|
|
18242
|
+
action: external_exports.literal("import"),
|
|
18243
|
+
sourceId: external_exports.string().min(1).max(256),
|
|
18244
|
+
name: credentialImportNameSchema,
|
|
18245
|
+
confirmed: external_exports.literal(true)
|
|
18246
|
+
}).strict(),
|
|
18247
|
+
external_exports.object({
|
|
18248
|
+
action: external_exports.literal("reimport"),
|
|
18249
|
+
sourceId: external_exports.string().min(1).max(256),
|
|
18250
|
+
name: credentialImportNameSchema,
|
|
18251
|
+
confirmed: external_exports.literal(true)
|
|
18252
|
+
}).strict(),
|
|
18253
|
+
external_exports.object({
|
|
18254
|
+
action: external_exports.literal("remove"),
|
|
18255
|
+
name: credentialImportNameSchema,
|
|
18256
|
+
confirmed: external_exports.literal(true)
|
|
18257
|
+
}).strict()
|
|
18258
|
+
]);
|
|
18259
|
+
var credentialOtherLoginSchema = external_exports.object({
|
|
18260
|
+
provider: external_exports.string().min(1).max(128),
|
|
18261
|
+
type: external_exports.enum(["oauth", "api_key", "unknown"]),
|
|
18262
|
+
/** Best-effort account label (e.g. the email in a Codex token), derived locally when present. */
|
|
18263
|
+
label: external_exports.string().min(1).max(512).optional(),
|
|
18264
|
+
/** Recognized credential vendor, derived from the OAuth token issuer. Absent when unknown. */
|
|
18265
|
+
vendor: external_exports.enum(["openai-codex", "xai"]).optional()
|
|
18266
|
+
}).strict();
|
|
18267
|
+
var credentialImportsResultSchema = external_exports.object({
|
|
18268
|
+
sources: external_exports.array(credentialSourceSchema),
|
|
18269
|
+
targets: external_exports.array(external_exports.object({
|
|
18270
|
+
harnessId: external_exports.string(),
|
|
18271
|
+
providers: external_exports.array(external_exports.enum(["openai-codex", "xai"])),
|
|
18272
|
+
imports: external_exports.array(credentialImportRecordSchema),
|
|
18273
|
+
others: external_exports.array(credentialOtherLoginSchema).default([])
|
|
18274
|
+
}).strict())
|
|
18275
|
+
}).strict();
|
|
18276
|
+
var credentialImportsParamsSchema = external_exports.object({
|
|
18277
|
+
targetHarnessId: external_exports.string().min(1).max(128).optional(),
|
|
18278
|
+
request: credentialImportsRequestSchema
|
|
18279
|
+
}).strict();
|
|
18280
|
+
|
|
18226
18281
|
// ../../shared-contracts/dist/version.js
|
|
18227
18282
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
18228
18283
|
|
|
@@ -18930,10 +18985,21 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
18930
18985
|
invocation: commandInvocationSchema,
|
|
18931
18986
|
label: commandLabelSchema,
|
|
18932
18987
|
description: commandDescriptionSchema.optional(),
|
|
18933
|
-
argumentMode: external_exports.enum(["none", "text"])
|
|
18988
|
+
argumentMode: external_exports.enum(["none", "text"]),
|
|
18989
|
+
/**
|
|
18990
|
+
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
18991
|
+
* not tell skills and commands apart; consumers treat that as "command".
|
|
18992
|
+
*/
|
|
18993
|
+
kind: external_exports.enum(["command", "skill"]).optional()
|
|
18934
18994
|
}).strict();
|
|
18935
18995
|
var harnessCommandCatalogSchema = external_exports.object({
|
|
18936
|
-
commands: external_exports.array(harnessCommandDescriptorSchema)
|
|
18996
|
+
commands: external_exports.array(harnessCommandDescriptorSchema),
|
|
18997
|
+
/**
|
|
18998
|
+
* `live` when the catalog includes what a native Session reports for its
|
|
18999
|
+
* workspace (custom commands, skills); `static` for Adapter built-ins only.
|
|
19000
|
+
* Omitted by Adapters; set by the Host on inspection results.
|
|
19001
|
+
*/
|
|
19002
|
+
source: external_exports.enum(["live", "static"]).optional()
|
|
18937
19003
|
}).strict().superRefine((catalog, context) => {
|
|
18938
19004
|
const ids = /* @__PURE__ */ new Set();
|
|
18939
19005
|
for (const [index, command] of catalog.commands.entries()) {
|
|
@@ -18947,7 +19013,11 @@ var harnessCommandCatalogSchema = external_exports.object({
|
|
|
18947
19013
|
ids.add(command.id);
|
|
18948
19014
|
}
|
|
18949
19015
|
});
|
|
18950
|
-
var harnessCommandsInspectParamsSchema = external_exports.object({
|
|
19016
|
+
var harnessCommandsInspectParamsSchema = external_exports.object({
|
|
19017
|
+
harnessId: harnessIdSchema,
|
|
19018
|
+
/** Workspace of a draft without a Thread, for its live catalog when known. */
|
|
19019
|
+
cwd: external_exports.string().min(1).optional()
|
|
19020
|
+
}).strict();
|
|
18951
19021
|
var threadCommandsInspectParamsSchema = external_exports.object({
|
|
18952
19022
|
threadId: hostThreadIdSchema
|
|
18953
19023
|
}).strict();
|
|
@@ -19553,7 +19623,7 @@ function parseDeepSeekEndpoint(endpoint = DEFAULT_DEEPSEEK_ENDPOINT) {
|
|
|
19553
19623
|
throw probeError("protocolError", "DeepSeek Harness endpoint must be an uncredentialed loopback HTTP root");
|
|
19554
19624
|
}
|
|
19555
19625
|
if (parsed.searchParams.has("token")) {
|
|
19556
|
-
throw probeError("authenticationRequired", "DeepSeek Harness Web bootstrap URL 不可作为连接端点;请关闭该实例,让 codexhost
|
|
19626
|
+
throw probeError("authenticationRequired", "DeepSeek Harness Web bootstrap URL 不可作为连接端点;请关闭该实例,让 codexhost 启动本地 DSH Web。\nA DeepSeek Harness Web bootstrap URL cannot be used as an endpoint. Close that instance and let codexhost start the local DSH Web.");
|
|
19557
19627
|
}
|
|
19558
19628
|
if (parsed.search !== "") {
|
|
19559
19629
|
throw probeError("protocolError", "DeepSeek Harness endpoint must not contain a query");
|
|
@@ -19585,11 +19655,7 @@ function classifyDeepSeekVersionOutput(output) {
|
|
|
19585
19655
|
if (version2 === null || !SEMVER_PATTERN.test(version2)) {
|
|
19586
19656
|
throw probeError("protocolError", "DeepSeek Harness --version did not return exactly one semantic version");
|
|
19587
19657
|
}
|
|
19588
|
-
|
|
19589
|
-
return { generation: "modern", version: version2 };
|
|
19590
|
-
}
|
|
19591
|
-
throw probeError("unsupported", `当前 DeepSeek Harness 版本 ${version2} 不受支持;codexhost 仅支持 dsh-v0.1.2-rc.1 和 dsh-v0.1.5-rc.1,推荐安装 dsh-v0.1.5-rc.1。
|
|
19592
|
-
DeepSeek Harness ${version2} is unsupported. codexhost only supports dsh-v0.1.2-rc.1 and dsh-v0.1.5-rc.1; dsh-v0.1.5-rc.1 is recommended.`);
|
|
19658
|
+
return { generation: "modern", version: version2 };
|
|
19593
19659
|
}
|
|
19594
19660
|
function appendOutput(target, value, limit) {
|
|
19595
19661
|
const chunk = Buffer.isBuffer(value) ? value : Buffer.from(String(value));
|
|
@@ -22810,14 +22876,11 @@ function matchesForkTail2(expectedPrefix, childEvents) {
|
|
|
22810
22876
|
|
|
22811
22877
|
// dist/profiles/profile.js
|
|
22812
22878
|
function deepSeekModernProfile(version2) {
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
if (version2 === "0.1.5-rc.1")
|
|
22816
|
-
return DEEPSEEK_V015_PROFILE;
|
|
22817
|
-
throw new TypeError("DeepSeek Harness only supports 0.1.2-rc.1 and 0.1.5-rc.1");
|
|
22879
|
+
const base = /^0\.1\.2(?:-|\+|$)/u.test(version2) ? DEEPSEEK_V012_PROFILE : DEEPSEEK_V015_PROFILE;
|
|
22880
|
+
return base.version === version2 ? base : Object.freeze({ ...base, version: version2 });
|
|
22818
22881
|
}
|
|
22819
22882
|
function isDeepSeekV015(profile) {
|
|
22820
|
-
return profile.
|
|
22883
|
+
return profile.sessionFormatVersion === 3;
|
|
22821
22884
|
}
|
|
22822
22885
|
|
|
22823
22886
|
// dist/modern/commands.js
|
|
@@ -30929,7 +30992,15 @@ function parseModernForkInput(input, profile) {
|
|
|
30929
30992
|
function sessionLocatorMatches(locator, profile) {
|
|
30930
30993
|
if (locator === void 0)
|
|
30931
30994
|
return true;
|
|
30932
|
-
|
|
30995
|
+
if (!isDeepSeekV015(profile) || !isRecord8(locator) || Reflect.ownKeys(locator).length !== 1 || typeof locator.dshVersion !== "string") {
|
|
30996
|
+
return false;
|
|
30997
|
+
}
|
|
30998
|
+
try {
|
|
30999
|
+
const { version: version2 } = classifyDeepSeekVersionOutput(locator.dshVersion);
|
|
31000
|
+
return isDeepSeekV015(deepSeekModernProfile(version2));
|
|
31001
|
+
} catch {
|
|
31002
|
+
return false;
|
|
31003
|
+
}
|
|
30933
31004
|
}
|
|
30934
31005
|
function checkpointLocatorMatches(locator, profile) {
|
|
30935
31006
|
return isDeepSeekV015(profile) ? profileLocatorMatches(locator, profile) : locator === void 0;
|
|
@@ -31143,7 +31214,7 @@ var DeepSeekHarnessAdapter = class {
|
|
|
31143
31214
|
harnessId: this.harnessId,
|
|
31144
31215
|
nativeSessionId,
|
|
31145
31216
|
formatVersion: 1,
|
|
31146
|
-
...this.#delegate
|
|
31217
|
+
...this.#delegate && isDeepSeekV015(deepSeekModernProfile(this.#delegate.version)) ? { locator: { dshVersion: this.#delegate.version } } : {}
|
|
31147
31218
|
})
|
|
31148
31219
|
}
|
|
31149
31220
|
};
|
|
@@ -31295,9 +31366,6 @@ var DeepSeekHarnessAdapter = class {
|
|
|
31295
31366
|
durationMs: Math.max(0, Date.now() - startedAt)
|
|
31296
31367
|
};
|
|
31297
31368
|
}
|
|
31298
|
-
if (executableFailure?.code === "unsupported") {
|
|
31299
|
-
throw new DelegateSelectionError(executableFailure);
|
|
31300
|
-
}
|
|
31301
31369
|
if (await hasDeepSeekModernAuthenticationFingerprint(endpoint, signal)) {
|
|
31302
31370
|
throw new DelegateSelectionError({
|
|
31303
31371
|
code: "authenticationRequired",
|
|
@@ -31313,7 +31381,7 @@ var DeepSeekHarnessAdapter = class {
|
|
|
31313
31381
|
if (!executable) {
|
|
31314
31382
|
throw new DelegateSelectionError(executableFailure ? { ...executableFailure, durationMs: Math.max(0, Date.now() - startedAt) } : {
|
|
31315
31383
|
code: "notInstalled",
|
|
31316
|
-
message: "No
|
|
31384
|
+
message: "No local DeepSeek Harness executable was found",
|
|
31317
31385
|
retryable: false,
|
|
31318
31386
|
stage: "resolve-executable",
|
|
31319
31387
|
durationMs: Math.max(0, Date.now() - startedAt)
|