@codexhost/cli-linux-arm64 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
|
@@ -15010,6 +15010,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15010
15010
|
initializeOnly: external_exports.boolean().optional()
|
|
15011
15011
|
});
|
|
15012
15012
|
|
|
15013
|
+
// ../../shared-contracts/dist/harness-presentation.js
|
|
15014
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
15015
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
|
|
15016
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
15017
|
+
label: displayText(256).optional(),
|
|
15018
|
+
description: displayText(1024).optional()
|
|
15019
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
15020
|
+
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");
|
|
15021
|
+
|
|
15013
15022
|
// ../../shared-contracts/dist/model-price-overrides.js
|
|
15014
15023
|
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15015
15024
|
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
@@ -15346,8 +15355,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15346
15355
|
}
|
|
15347
15356
|
});
|
|
15348
15357
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15358
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15359
|
+
"weekly",
|
|
15360
|
+
"monthly",
|
|
15361
|
+
"five_hour",
|
|
15362
|
+
"seven_day",
|
|
15363
|
+
"unknown"
|
|
15364
|
+
]);
|
|
15365
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15366
|
+
id: external_exports.string().min(1).max(256),
|
|
15367
|
+
label: external_exports.string().min(1).max(256),
|
|
15368
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15369
|
+
}).strict();
|
|
15349
15370
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15350
15371
|
product: external_exports.string().min(1),
|
|
15372
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15373
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15374
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15375
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15351
15376
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15352
15377
|
// Zero is a real empty cap, not an absent field.
|
|
15353
15378
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15367,9 +15392,11 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
15367
15392
|
unit: external_exports.string().min(1).max(32).optional(),
|
|
15368
15393
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
15369
15394
|
label: external_exports.string().min(1).optional(),
|
|
15395
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15396
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15370
15397
|
usedPercent: usagePercentSchema,
|
|
15371
15398
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15372
|
-
periodType:
|
|
15399
|
+
periodType: accountCreditsPeriodSchema,
|
|
15373
15400
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15374
15401
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15375
15402
|
}).strict();
|
|
@@ -15380,7 +15407,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
15380
15407
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15381
15408
|
threadId: hostThreadIdSchema,
|
|
15382
15409
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15383
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15410
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15411
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15412
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15384
15413
|
}).strict();
|
|
15385
15414
|
|
|
15386
15415
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
@@ -15507,7 +15536,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
15507
15536
|
id: harnessPermissionModeIdSchema,
|
|
15508
15537
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
15509
15538
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15510
|
-
dangerous: external_exports.boolean().optional()
|
|
15539
|
+
dangerous: external_exports.boolean().optional(),
|
|
15540
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15511
15541
|
}).strict();
|
|
15512
15542
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
15513
15543
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -15894,6 +15924,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15894
15924
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15895
15925
|
message: external_exports.string().max(2048).optional(),
|
|
15896
15926
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15927
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
15928
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
15897
15929
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15898
15930
|
}).strict();
|
|
15899
15931
|
|
|
@@ -16020,6 +16052,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
16020
16052
|
invocation: commandInvocationSchema,
|
|
16021
16053
|
label: commandLabelSchema,
|
|
16022
16054
|
description: commandDescriptionSchema.optional(),
|
|
16055
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
16023
16056
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
16024
16057
|
/**
|
|
16025
16058
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -17080,6 +17113,12 @@ var ANTIGRAVITY_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.par
|
|
|
17080
17113
|
{
|
|
17081
17114
|
id: "dangerously-skip-permissions",
|
|
17082
17115
|
label: "Skip permissions",
|
|
17116
|
+
localizations: {
|
|
17117
|
+
"zh-CN": {
|
|
17118
|
+
label: "跳过权限检查",
|
|
17119
|
+
description: "使用 --dangerously-skip-permissions 运行 Antigravity CLI;codexhost 不增加工具审批或工作区限制。"
|
|
17120
|
+
}
|
|
17121
|
+
},
|
|
17083
17122
|
description: "Run Antigravity CLI with --dangerously-skip-permissions. codexhost adds no tool approval or workspace restrictions.",
|
|
17084
17123
|
dangerous: true
|
|
17085
17124
|
}
|
|
@@ -17801,6 +17840,8 @@ function parseBuckets(groups) {
|
|
|
17801
17840
|
const resetsAt = nonEmptyString(bucket.reset_time);
|
|
17802
17841
|
buckets.push({
|
|
17803
17842
|
product: groupName ? `${groupName} · ${label}` : label,
|
|
17843
|
+
periodType: periodTypeFrom(window),
|
|
17844
|
+
...groupName ? { scope: { id: groupName, label: groupName } } : {},
|
|
17804
17845
|
usagePercent,
|
|
17805
17846
|
window,
|
|
17806
17847
|
...resetsAt ? { resetsAt } : {}
|
|
@@ -17834,14 +17875,17 @@ function parseAntigravityUsageCommand(command, fetchedAt = (/* @__PURE__ */ new
|
|
|
17834
17875
|
return null;
|
|
17835
17876
|
const others = buckets.filter((bucket) => bucket !== leading);
|
|
17836
17877
|
return {
|
|
17837
|
-
label: leading.product,
|
|
17878
|
+
...leading.scope || periodTypeFrom(leading.window) === "unknown" ? { label: leading.product } : {},
|
|
17879
|
+
...leading.scope ? { scope: leading.scope } : {},
|
|
17838
17880
|
usedPercent: leading.usagePercent,
|
|
17839
17881
|
periodType: periodTypeFrom(leading.window),
|
|
17840
17882
|
fetchedAt,
|
|
17841
17883
|
...leading.resetsAt ? { resetsAt: leading.resetsAt } : {},
|
|
17842
17884
|
...others.length > 0 ? {
|
|
17843
|
-
productUsage: others.map(({ product, usagePercent, resetsAt }) => ({
|
|
17885
|
+
productUsage: others.map(({ product, periodType, scope, usagePercent, resetsAt }) => ({
|
|
17844
17886
|
product,
|
|
17887
|
+
...periodType ? { periodType } : {},
|
|
17888
|
+
...scope ? { scope } : {},
|
|
17845
17889
|
usagePercent,
|
|
17846
17890
|
...resetsAt ? { resetsAt } : {}
|
|
17847
17891
|
}))
|
|
@@ -19885,7 +19929,8 @@ var AntigravityAdapter = class {
|
|
|
19885
19929
|
return null;
|
|
19886
19930
|
return {
|
|
19887
19931
|
credits: {
|
|
19888
|
-
label: snapshot.label,
|
|
19932
|
+
...snapshot.label ? { label: snapshot.label } : {},
|
|
19933
|
+
...snapshot.scope ? { scope: snapshot.scope } : {},
|
|
19889
19934
|
usedPercent: snapshot.usedPercent,
|
|
19890
19935
|
periodType: snapshot.periodType,
|
|
19891
19936
|
...snapshot.resetsAt ? { resetsAt: snapshot.resetsAt } : {},
|
|
@@ -19893,7 +19938,7 @@ var AntigravityAdapter = class {
|
|
|
19893
19938
|
}
|
|
19894
19939
|
};
|
|
19895
19940
|
}
|
|
19896
|
-
/**
|
|
19941
|
+
/** Public account telemetry cache; never attributes quota to historical Thread spend. */
|
|
19897
19942
|
credits() {
|
|
19898
19943
|
return this.#quota;
|
|
19899
19944
|
}
|