@codexhost/cli-darwin-x64 0.13.1 → 0.13.3
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 +36 -3
- package/app/console-web.js +100 -78
- package/app/desktop-controller.mjs +36 -3
- package/app/host-runtime.mjs +551 -101
- package/app/plugins/antigravity/plugin.mjs +52 -7
- package/app/plugins/claude-code/plugin.mjs +219 -59
- package/app/plugins/codebuddy/plugin.mjs +110 -8
- package/app/plugins/codex-usage/plugin.mjs +54 -12
- package/app/plugins/cursor-cli/plugin.mjs +71 -10
- package/app/plugins/deepseek-harness/manifest.json +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +119 -10
- package/app/plugins/grok/plugin.mjs +64 -5
- package/app/plugins/hermes/plugin.mjs +247 -43
- package/app/plugins/kimi-code/plugin.mjs +64 -9
- package/app/plugins/kiro-cli/plugin.mjs +45 -3
- package/app/plugins/omp/plugin.mjs +46 -3
- package/app/plugins/opencode/plugin.mjs +52 -5
- package/app/plugins/pi/plugin.mjs +37 -3
- package/app/plugins/qoder/plugin.mjs +50 -3
- package/app/plugins/qoder-cn/plugin.mjs +50 -3
- package/app/plugins/workbuddy/plugin.mjs +227 -12
- package/app/plugins/zcode/plugin.mjs +49 -3
- package/app/renderer-extension.js +401 -401
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -15141,6 +15141,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15141
15141
|
initializeOnly: external_exports.boolean().optional()
|
|
15142
15142
|
});
|
|
15143
15143
|
|
|
15144
|
+
// ../../shared-contracts/dist/harness-presentation.js
|
|
15145
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
15146
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
|
|
15147
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
15148
|
+
label: displayText(256).optional(),
|
|
15149
|
+
description: displayText(1024).optional()
|
|
15150
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
15151
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
15152
|
+
|
|
15144
15153
|
// ../../shared-contracts/dist/model-price-overrides.js
|
|
15145
15154
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15146
15155
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -15477,8 +15486,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15477
15486
|
}
|
|
15478
15487
|
});
|
|
15479
15488
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15489
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15490
|
+
"weekly",
|
|
15491
|
+
"monthly",
|
|
15492
|
+
"five_hour",
|
|
15493
|
+
"seven_day",
|
|
15494
|
+
"unknown"
|
|
15495
|
+
]);
|
|
15496
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15497
|
+
id: external_exports.string().min(1).max(256),
|
|
15498
|
+
label: external_exports.string().min(1).max(256),
|
|
15499
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15500
|
+
}).strict();
|
|
15480
15501
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15481
15502
|
product: external_exports.string().min(1),
|
|
15503
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15504
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15505
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15506
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15482
15507
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15483
15508
|
// Zero is a real empty cap, not an absent field.
|
|
15484
15509
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15498,9 +15523,11 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
15498
15523
|
unit: external_exports.string().min(1).max(32).optional(),
|
|
15499
15524
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
15500
15525
|
label: external_exports.string().min(1).optional(),
|
|
15526
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15527
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15501
15528
|
usedPercent: usagePercentSchema,
|
|
15502
15529
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15503
|
-
periodType:
|
|
15530
|
+
periodType: accountCreditsPeriodSchema,
|
|
15504
15531
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15505
15532
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15506
15533
|
}).strict();
|
|
@@ -15511,7 +15538,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
15511
15538
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15512
15539
|
threadId: hostThreadIdSchema,
|
|
15513
15540
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15514
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15541
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15542
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15543
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15515
15544
|
}).strict();
|
|
15516
15545
|
|
|
15517
15546
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
@@ -15638,7 +15667,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
15638
15667
|
id: harnessPermissionModeIdSchema,
|
|
15639
15668
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
15640
15669
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15641
|
-
dangerous: external_exports.boolean().optional()
|
|
15670
|
+
dangerous: external_exports.boolean().optional(),
|
|
15671
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15642
15672
|
}).strict();
|
|
15643
15673
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
15644
15674
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -16025,6 +16055,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
16025
16055
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
16026
16056
|
message: external_exports.string().max(2048).optional(),
|
|
16027
16057
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
16058
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
16059
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
16028
16060
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
16029
16061
|
}).strict();
|
|
16030
16062
|
|
|
@@ -16151,6 +16183,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
16151
16183
|
invocation: commandInvocationSchema,
|
|
16152
16184
|
label: commandLabelSchema,
|
|
16153
16185
|
description: commandDescriptionSchema.optional(),
|
|
16186
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
16154
16187
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
16155
16188
|
/**
|
|
16156
16189
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -20953,6 +20986,7 @@ var piCommandCatalog = harnessCommandCatalogSchema.parse({
|
|
|
20953
20986
|
{
|
|
20954
20987
|
id: "pi.compact",
|
|
20955
20988
|
invocation: "/compact",
|
|
20989
|
+
localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
|
|
20956
20990
|
label: "Compact context",
|
|
20957
20991
|
description: "Compact the current conversation context",
|
|
20958
20992
|
argumentMode: "text"
|
|
@@ -27590,6 +27590,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
27590
27590
|
initializeOnly: external_exports.boolean().optional()
|
|
27591
27591
|
});
|
|
27592
27592
|
|
|
27593
|
+
// ../../shared-contracts/dist/harness-presentation.js
|
|
27594
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
27595
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
27596
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
27597
|
+
label: displayText(256).optional(),
|
|
27598
|
+
description: displayText(1024).optional()
|
|
27599
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
27600
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
27601
|
+
|
|
27593
27602
|
// ../../shared-contracts/dist/model-price-overrides.js
|
|
27594
27603
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
27595
27604
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -27926,8 +27935,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27926
27935
|
}
|
|
27927
27936
|
});
|
|
27928
27937
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27938
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
27939
|
+
"weekly",
|
|
27940
|
+
"monthly",
|
|
27941
|
+
"five_hour",
|
|
27942
|
+
"seven_day",
|
|
27943
|
+
"unknown"
|
|
27944
|
+
]);
|
|
27945
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
27946
|
+
id: external_exports.string().min(1).max(256),
|
|
27947
|
+
label: external_exports.string().min(1).max(256),
|
|
27948
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
27949
|
+
}).strict();
|
|
27929
27950
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
27930
27951
|
product: external_exports.string().min(1),
|
|
27952
|
+
/** Native period and scope, never inferred from the display name. */
|
|
27953
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
27954
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
27955
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
27931
27956
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
27932
27957
|
// Zero is a real empty cap, not an absent field.
|
|
27933
27958
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -27947,9 +27972,11 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
27947
27972
|
unit: external_exports.string().min(1).max(32).optional(),
|
|
27948
27973
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
27949
27974
|
label: external_exports.string().min(1).optional(),
|
|
27975
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
27976
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
27950
27977
|
usedPercent: usagePercentSchema,
|
|
27951
27978
|
resetsAt: external_exports.string().min(1).optional(),
|
|
27952
|
-
periodType:
|
|
27979
|
+
periodType: accountCreditsPeriodSchema,
|
|
27953
27980
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
27954
27981
|
resetCredits: accountResetCreditsSchema.optional()
|
|
27955
27982
|
}).strict();
|
|
@@ -27960,7 +27987,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
27960
27987
|
var threadUsageInspectionSchema = external_exports.object({
|
|
27961
27988
|
threadId: hostThreadIdSchema,
|
|
27962
27989
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
27963
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
27990
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
27991
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
27992
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
27964
27993
|
}).strict();
|
|
27965
27994
|
|
|
27966
27995
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
@@ -28087,7 +28116,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
28087
28116
|
id: harnessPermissionModeIdSchema,
|
|
28088
28117
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
28089
28118
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
28090
|
-
dangerous: external_exports.boolean().optional()
|
|
28119
|
+
dangerous: external_exports.boolean().optional(),
|
|
28120
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
28091
28121
|
}).strict();
|
|
28092
28122
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
28093
28123
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -28474,6 +28504,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28474
28504
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28475
28505
|
message: external_exports.string().max(2048).optional(),
|
|
28476
28506
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
28507
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
28508
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
28477
28509
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28478
28510
|
}).strict();
|
|
28479
28511
|
|
|
@@ -28600,6 +28632,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
28600
28632
|
invocation: commandInvocationSchema,
|
|
28601
28633
|
label: commandLabelSchema,
|
|
28602
28634
|
description: commandDescriptionSchema.optional(),
|
|
28635
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
28603
28636
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
28604
28637
|
/**
|
|
28605
28638
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -29451,6 +29484,7 @@ var QODER_FALLBACK_COMMAND_CATALOG = harnessCommandCatalogSchema.parse({
|
|
|
29451
29484
|
{
|
|
29452
29485
|
id: "qoder.compact",
|
|
29453
29486
|
invocation: "/compact",
|
|
29487
|
+
localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
|
|
29454
29488
|
label: "Compact",
|
|
29455
29489
|
description: "Compresses the context by replacing it with a summary",
|
|
29456
29490
|
argumentMode: "text"
|
|
@@ -30042,26 +30076,35 @@ var QODER_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse({
|
|
|
30042
30076
|
{
|
|
30043
30077
|
id: "default",
|
|
30044
30078
|
label: "Default",
|
|
30079
|
+
localizations: { "zh-CN": { label: "默认", description: "执行受保护的工具操作前询问。" } },
|
|
30045
30080
|
description: "Ask before protected tool actions."
|
|
30046
30081
|
},
|
|
30047
30082
|
{
|
|
30048
30083
|
id: "acceptEdits",
|
|
30049
30084
|
label: "Accept Edits",
|
|
30085
|
+
localizations: { "zh-CN": { label: "接受编辑", description: "自动接受文件变更。" } },
|
|
30050
30086
|
description: "Automatically accept file changes."
|
|
30051
30087
|
},
|
|
30052
30088
|
{
|
|
30053
30089
|
id: "auto",
|
|
30054
30090
|
label: "Auto",
|
|
30091
|
+
localizations: { "zh-CN": { label: "自动", description: "自动允许安全的工具操作。" } },
|
|
30055
30092
|
description: "Automatically allow safe tool actions."
|
|
30056
30093
|
},
|
|
30057
30094
|
{
|
|
30058
30095
|
id: "plan",
|
|
30059
30096
|
label: "Plan",
|
|
30097
|
+
localizations: {
|
|
30098
|
+
"zh-CN": { label: "规划模式", description: "仅执行只读操作的规划模式。" }
|
|
30099
|
+
},
|
|
30060
30100
|
description: "Plan mode with read-only operations."
|
|
30061
30101
|
},
|
|
30062
30102
|
{
|
|
30063
30103
|
id: "bypassPermissions",
|
|
30064
30104
|
label: "Bypass Permissions",
|
|
30105
|
+
localizations: {
|
|
30106
|
+
"zh-CN": { label: "绕过权限", description: "无需提示即可批准所有工具操作。" }
|
|
30107
|
+
},
|
|
30065
30108
|
description: "Approve all tool actions without prompting.",
|
|
30066
30109
|
dangerous: true
|
|
30067
30110
|
}
|
|
@@ -53623,6 +53666,10 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
53623
53666
|
updateAvailable: false,
|
|
53624
53667
|
canUpdate: false,
|
|
53625
53668
|
messageCode: "qoder-check-unavailable",
|
|
53669
|
+
notice: {
|
|
53670
|
+
en: "This Qoder China release does not expose a non-installing update check. Use its original installer.",
|
|
53671
|
+
"zh-CN": "此 Qoder 中国版尚不支持只检查、不安装的更新查询,请使用原安装方式更新。"
|
|
53672
|
+
},
|
|
53626
53673
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
53627
53674
|
};
|
|
53628
53675
|
const output = await run(["update", "--check"]);
|
|
@@ -27187,6 +27187,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
27187
27187
|
initializeOnly: external_exports.boolean().optional()
|
|
27188
27188
|
});
|
|
27189
27189
|
|
|
27190
|
+
// ../../shared-contracts/dist/harness-presentation.js
|
|
27191
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
27192
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
27193
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
27194
|
+
label: displayText(256).optional(),
|
|
27195
|
+
description: displayText(1024).optional()
|
|
27196
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
27197
|
+
var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
27198
|
+
|
|
27190
27199
|
// ../../shared-contracts/dist/model-price-overrides.js
|
|
27191
27200
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
27192
27201
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -27523,8 +27532,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27523
27532
|
}
|
|
27524
27533
|
});
|
|
27525
27534
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27535
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
27536
|
+
"weekly",
|
|
27537
|
+
"monthly",
|
|
27538
|
+
"five_hour",
|
|
27539
|
+
"seven_day",
|
|
27540
|
+
"unknown"
|
|
27541
|
+
]);
|
|
27542
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
27543
|
+
id: external_exports.string().min(1).max(256),
|
|
27544
|
+
label: external_exports.string().min(1).max(256),
|
|
27545
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
27546
|
+
}).strict();
|
|
27526
27547
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
27527
27548
|
product: external_exports.string().min(1),
|
|
27549
|
+
/** Native period and scope, never inferred from the display name. */
|
|
27550
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
27551
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
27552
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
27528
27553
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
27529
27554
|
// Zero is a real empty cap, not an absent field.
|
|
27530
27555
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -27544,9 +27569,11 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
27544
27569
|
unit: external_exports.string().min(1).max(32).optional(),
|
|
27545
27570
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
27546
27571
|
label: external_exports.string().min(1).optional(),
|
|
27572
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
27573
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
27547
27574
|
usedPercent: usagePercentSchema,
|
|
27548
27575
|
resetsAt: external_exports.string().min(1).optional(),
|
|
27549
|
-
periodType:
|
|
27576
|
+
periodType: accountCreditsPeriodSchema,
|
|
27550
27577
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
27551
27578
|
resetCredits: accountResetCreditsSchema.optional()
|
|
27552
27579
|
}).strict();
|
|
@@ -27557,7 +27584,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
27557
27584
|
var threadUsageInspectionSchema = external_exports.object({
|
|
27558
27585
|
threadId: hostThreadIdSchema,
|
|
27559
27586
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
27560
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
27587
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
27588
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
27589
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
27561
27590
|
}).strict();
|
|
27562
27591
|
|
|
27563
27592
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
@@ -27684,7 +27713,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
27684
27713
|
id: harnessPermissionModeIdSchema,
|
|
27685
27714
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
27686
27715
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
27687
|
-
dangerous: external_exports.boolean().optional()
|
|
27716
|
+
dangerous: external_exports.boolean().optional(),
|
|
27717
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
27688
27718
|
}).strict();
|
|
27689
27719
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
27690
27720
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -28071,6 +28101,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28071
28101
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28072
28102
|
message: external_exports.string().max(2048).optional(),
|
|
28073
28103
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
28104
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
28105
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
28074
28106
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28075
28107
|
}).strict();
|
|
28076
28108
|
|
|
@@ -28197,6 +28229,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
28197
28229
|
invocation: commandInvocationSchema,
|
|
28198
28230
|
label: commandLabelSchema,
|
|
28199
28231
|
description: commandDescriptionSchema.optional(),
|
|
28232
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
28200
28233
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
28201
28234
|
/**
|
|
28202
28235
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -29453,6 +29486,7 @@ var QODER_FALLBACK_COMMAND_CATALOG = harnessCommandCatalogSchema.parse({
|
|
|
29453
29486
|
{
|
|
29454
29487
|
id: "qoder.compact",
|
|
29455
29488
|
invocation: "/compact",
|
|
29489
|
+
localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
|
|
29456
29490
|
label: "Compact",
|
|
29457
29491
|
description: "Compresses the context by replacing it with a summary",
|
|
29458
29492
|
argumentMode: "text"
|
|
@@ -30044,26 +30078,35 @@ var QODER_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse({
|
|
|
30044
30078
|
{
|
|
30045
30079
|
id: "default",
|
|
30046
30080
|
label: "Default",
|
|
30081
|
+
localizations: { "zh-CN": { label: "默认", description: "执行受保护的工具操作前询问。" } },
|
|
30047
30082
|
description: "Ask before protected tool actions."
|
|
30048
30083
|
},
|
|
30049
30084
|
{
|
|
30050
30085
|
id: "acceptEdits",
|
|
30051
30086
|
label: "Accept Edits",
|
|
30087
|
+
localizations: { "zh-CN": { label: "接受编辑", description: "自动接受文件变更。" } },
|
|
30052
30088
|
description: "Automatically accept file changes."
|
|
30053
30089
|
},
|
|
30054
30090
|
{
|
|
30055
30091
|
id: "auto",
|
|
30056
30092
|
label: "Auto",
|
|
30093
|
+
localizations: { "zh-CN": { label: "自动", description: "自动允许安全的工具操作。" } },
|
|
30057
30094
|
description: "Automatically allow safe tool actions."
|
|
30058
30095
|
},
|
|
30059
30096
|
{
|
|
30060
30097
|
id: "plan",
|
|
30061
30098
|
label: "Plan",
|
|
30099
|
+
localizations: {
|
|
30100
|
+
"zh-CN": { label: "规划模式", description: "仅执行只读操作的规划模式。" }
|
|
30101
|
+
},
|
|
30062
30102
|
description: "Plan mode with read-only operations."
|
|
30063
30103
|
},
|
|
30064
30104
|
{
|
|
30065
30105
|
id: "bypassPermissions",
|
|
30066
30106
|
label: "Bypass Permissions",
|
|
30107
|
+
localizations: {
|
|
30108
|
+
"zh-CN": { label: "绕过权限", description: "无需提示即可批准所有工具操作。" }
|
|
30109
|
+
},
|
|
30067
30110
|
description: "Approve all tool actions without prompting.",
|
|
30068
30111
|
dangerous: true
|
|
30069
30112
|
}
|
|
@@ -53625,6 +53668,10 @@ function createQoderInstallation(environment, command, variant = "global") {
|
|
|
53625
53668
|
updateAvailable: false,
|
|
53626
53669
|
canUpdate: false,
|
|
53627
53670
|
messageCode: "qoder-check-unavailable",
|
|
53671
|
+
notice: {
|
|
53672
|
+
en: "This Qoder China release does not expose a non-installing update check. Use its original installer.",
|
|
53673
|
+
"zh-CN": "此 Qoder 中国版尚不支持只检查、不安装的更新查询,请使用原安装方式更新。"
|
|
53674
|
+
},
|
|
53628
53675
|
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
53629
53676
|
};
|
|
53630
53677
|
const output = await run(["update", "--check"]);
|