@liberseek/boft-cli-win32-arm64 0.8.1 → 0.8.2
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 -75
- package/app/desktop-controller.mjs +36 -3
- package/app/host-runtime.mjs +81 -21
- package/app/plugins/antigravity/plugin.mjs +52 -7
- package/app/plugins/claude-code/plugin.mjs +206 -54
- package/app/plugins/codebuddy/plugin.mjs +110 -8
- package/app/plugins/codex-usage/plugin.mjs +36 -3
- 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 +198 -26
- package/app/plugins/grok/plugin.mjs +64 -5
- package/app/plugins/hermes/plugin.mjs +63 -3
- package/app/plugins/kimi-code/plugin.mjs +64 -9
- package/app/plugins/kiro-cli/plugin.mjs +45 -3
- package/app/plugins/muse/plugin.mjs +36 -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 +369 -281
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/package.json +1 -1
package/app/host-runtime.mjs
CHANGED
|
@@ -20032,6 +20032,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
20032
20032
|
initializeOnly: external_exports.boolean().optional()
|
|
20033
20033
|
});
|
|
20034
20034
|
|
|
20035
|
+
// packages/shared-contracts/dist/harness-presentation.js
|
|
20036
|
+
var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
|
|
20037
|
+
var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
|
|
20038
|
+
var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
|
|
20039
|
+
label: displayText(256).optional(),
|
|
20040
|
+
description: displayText(1024).optional()
|
|
20041
|
+
}).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
|
|
20042
|
+
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");
|
|
20043
|
+
|
|
20035
20044
|
// packages/shared-contracts/dist/model-price-overrides.js
|
|
20036
20045
|
var MODEL_PRICE_OVERRIDES_GET_METHOD = "codexhost/usage/model-prices/get";
|
|
20037
20046
|
var MODEL_PRICE_OVERRIDES_SET_METHOD = "codexhost/usage/model-prices/set";
|
|
@@ -20466,8 +20475,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
20466
20475
|
}
|
|
20467
20476
|
});
|
|
20468
20477
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
20478
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
20479
|
+
"weekly",
|
|
20480
|
+
"monthly",
|
|
20481
|
+
"five_hour",
|
|
20482
|
+
"seven_day",
|
|
20483
|
+
"unknown"
|
|
20484
|
+
]);
|
|
20485
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
20486
|
+
id: external_exports.string().min(1).max(256),
|
|
20487
|
+
label: external_exports.string().min(1).max(256),
|
|
20488
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
20489
|
+
}).strict();
|
|
20469
20490
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
20470
20491
|
product: external_exports.string().min(1),
|
|
20492
|
+
/** Native period and scope, never inferred from the display name. */
|
|
20493
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
20494
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
20495
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
20471
20496
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
20472
20497
|
// Zero is a real empty cap, not an absent field.
|
|
20473
20498
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -20489,8 +20514,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
20489
20514
|
label: external_exports.string().min(1).optional(),
|
|
20490
20515
|
usedPercent: usagePercentSchema.optional(),
|
|
20491
20516
|
remaining: external_exports.number().finite().optional(),
|
|
20517
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
20518
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
20492
20519
|
resetsAt: external_exports.string().min(1).optional(),
|
|
20493
|
-
periodType:
|
|
20520
|
+
periodType: accountCreditsPeriodSchema,
|
|
20494
20521
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
20495
20522
|
resetCredits: accountResetCreditsSchema.optional()
|
|
20496
20523
|
}).strict().superRefine((credits, context) => {
|
|
@@ -20515,7 +20542,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
20515
20542
|
var threadUsageInspectionSchema = external_exports.object({
|
|
20516
20543
|
threadId: hostThreadIdSchema,
|
|
20517
20544
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
20518
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
20545
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
20546
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
20547
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
20519
20548
|
}).strict();
|
|
20520
20549
|
|
|
20521
20550
|
// packages/shared-contracts/dist/harness-accounts.js
|
|
@@ -20642,7 +20671,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
20642
20671
|
id: harnessPermissionModeIdSchema,
|
|
20643
20672
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
20644
20673
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
20645
|
-
dangerous: external_exports.boolean().optional()
|
|
20674
|
+
dangerous: external_exports.boolean().optional(),
|
|
20675
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
20646
20676
|
}).strict();
|
|
20647
20677
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
20648
20678
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -21001,6 +21031,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
21001
21031
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
21002
21032
|
message: external_exports.string().max(2048).optional(),
|
|
21003
21033
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
21034
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
21035
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
21004
21036
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
21005
21037
|
}).strict();
|
|
21006
21038
|
|
|
@@ -21144,6 +21176,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
21144
21176
|
invocation: commandInvocationSchema,
|
|
21145
21177
|
label: commandLabelSchema,
|
|
21146
21178
|
description: commandDescriptionSchema.optional(),
|
|
21179
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
21147
21180
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
21148
21181
|
/**
|
|
21149
21182
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -21535,6 +21568,9 @@ var RuntimeMaintenance = class {
|
|
|
21535
21568
|
#watch = null;
|
|
21536
21569
|
#starting = null;
|
|
21537
21570
|
#startingVersion = null;
|
|
21571
|
+
get #startTimeoutMs() {
|
|
21572
|
+
return this.options.updaterStartTimeoutMs ?? UPDATER_START_TIMEOUT_MS;
|
|
21573
|
+
}
|
|
21538
21574
|
#ensureWatching() {
|
|
21539
21575
|
if (this.#watch) return;
|
|
21540
21576
|
this.#watch = setInterval(() => {
|
|
@@ -21631,7 +21667,7 @@ var RuntimeMaintenance = class {
|
|
|
21631
21667
|
}
|
|
21632
21668
|
} else {
|
|
21633
21669
|
const written = (await stat(this.#statusPath)).mtimeMs;
|
|
21634
|
-
alive = Date.now() - written <
|
|
21670
|
+
alive = Date.now() - written < this.#startTimeoutMs * 2;
|
|
21635
21671
|
}
|
|
21636
21672
|
if (!alive) {
|
|
21637
21673
|
parsed2.phase = "failed";
|
|
@@ -21755,7 +21791,7 @@ var RuntimeMaintenance = class {
|
|
|
21755
21791
|
if (!Number.isSafeInteger(helperPid) || helperPid <= 0) {
|
|
21756
21792
|
throw new Error("Remote updater could not be started");
|
|
21757
21793
|
}
|
|
21758
|
-
const deadline = Date.now() +
|
|
21794
|
+
const deadline = Date.now() + this.#startTimeoutMs;
|
|
21759
21795
|
while (!await this.#helperReported()) {
|
|
21760
21796
|
if (Date.now() >= deadline) {
|
|
21761
21797
|
try {
|
|
@@ -25091,6 +25127,16 @@ function rewriteDelegationMentionInput(input, skill) {
|
|
|
25091
25127
|
return rewritten;
|
|
25092
25128
|
}
|
|
25093
25129
|
|
|
25130
|
+
// packages/harness-adapter/dist/account-credits.js
|
|
25131
|
+
function parseHarnessAccountCredits(value2) {
|
|
25132
|
+
if (!value2 || typeof value2 !== "object" || Array.isArray(value2))
|
|
25133
|
+
return null;
|
|
25134
|
+
const publicValue = { ...value2 };
|
|
25135
|
+
delete publicValue.fetchedAt;
|
|
25136
|
+
const parsed2 = accountCreditsSnapshotSchema.safeParse(publicValue);
|
|
25137
|
+
return parsed2.success ? parsed2.data : null;
|
|
25138
|
+
}
|
|
25139
|
+
|
|
25094
25140
|
// packages/harness-adapter/dist/output-channel.js
|
|
25095
25141
|
var HarnessOutputChannel = class {
|
|
25096
25142
|
outputs;
|
|
@@ -27215,6 +27261,7 @@ function projectCodexRateLimitsToCredits(usage, resetCredits) {
|
|
|
27215
27261
|
const resetsAtUnix = hasFiveHour ? usage.planFiveHourResetsAtUnix : usage.planSevenDayResetsAtUnix;
|
|
27216
27262
|
const secondary = hasFiveHour && hasSevenDay && usage.planSevenDayUsedPercent !== void 0 ? {
|
|
27217
27263
|
product: "7-day window",
|
|
27264
|
+
periodType: "seven_day",
|
|
27218
27265
|
usagePercent: usage.planSevenDayUsedPercent,
|
|
27219
27266
|
...usage.planSevenDayResetsAtUnix !== void 0 ? { resetsAt: isoFromUnix(usage.planSevenDayResetsAtUnix) } : {}
|
|
27220
27267
|
} : void 0;
|
|
@@ -35969,7 +36016,9 @@ function hasValidSessionUsage(value2) {
|
|
|
35969
36016
|
}
|
|
35970
36017
|
function isAdapter(value2) {
|
|
35971
36018
|
if (!value2 || typeof value2 !== "object") return false;
|
|
35972
|
-
return hasValidSessionUsage(value2) && ["inspect", "open", "close"].every((key) => typeof Reflect.get(value2, key) === "function")
|
|
36019
|
+
return hasValidSessionUsage(value2) && ["inspect", "open", "close"].every((key) => typeof Reflect.get(value2, key) === "function") && ["credits", "refreshCredits"].every(
|
|
36020
|
+
(key) => Reflect.get(value2, key) === void 0 || typeof Reflect.get(value2, key) === "function"
|
|
36021
|
+
);
|
|
35973
36022
|
}
|
|
35974
36023
|
function isUsageAdapter(value2) {
|
|
35975
36024
|
if (!value2 || typeof value2 !== "object" || typeof Reflect.get(value2, "close") !== "function")
|
|
@@ -38145,6 +38194,16 @@ async function moveThreadSection(input) {
|
|
|
38145
38194
|
}
|
|
38146
38195
|
}
|
|
38147
38196
|
|
|
38197
|
+
// packages/host-runtime/src/external-thread-official-defaults.ts
|
|
38198
|
+
var EMPTY_RESULTS = /* @__PURE__ */ new Map([
|
|
38199
|
+
["thread/attachment/list", () => ({ data: [], nextCursor: null })],
|
|
38200
|
+
["thread/queue/list", () => ({ data: [], nextCursor: null })],
|
|
38201
|
+
["thread/settings/update", () => ({})]
|
|
38202
|
+
]);
|
|
38203
|
+
function externalThreadEmptyOfficialResult(method) {
|
|
38204
|
+
return EMPTY_RESULTS.get(method)?.();
|
|
38205
|
+
}
|
|
38206
|
+
|
|
38148
38207
|
// packages/host-runtime/src/observed-session-usage.ts
|
|
38149
38208
|
var ObservedSessionUsage = class {
|
|
38150
38209
|
constructor(providers, prices, diagnose) {
|
|
@@ -38313,16 +38372,6 @@ function officialThreadBusy(thread) {
|
|
|
38313
38372
|
const latestTurn = turns.at(-1);
|
|
38314
38373
|
return isRecord19(latestTurn) && (latestTurn.status === "inProgress" || latestTurn.status === "running");
|
|
38315
38374
|
}
|
|
38316
|
-
function isCreditsAdapter(adapter) {
|
|
38317
|
-
return typeof adapter.credits === "function";
|
|
38318
|
-
}
|
|
38319
|
-
function projectAccountCredits(value2) {
|
|
38320
|
-
if (!isRecord19(value2)) return null;
|
|
38321
|
-
const rest = { ...value2 };
|
|
38322
|
-
delete rest.fetchedAt;
|
|
38323
|
-
const parsed2 = accountCreditsSnapshotSchema.safeParse(rest);
|
|
38324
|
-
return parsed2.success ? parsed2.data : null;
|
|
38325
|
-
}
|
|
38326
38375
|
function errorMessage4(error51) {
|
|
38327
38376
|
return error51 instanceof Error ? error51.message : String(error51);
|
|
38328
38377
|
}
|
|
@@ -39800,8 +39849,9 @@ var AppServerHost = class {
|
|
|
39800
39849
|
const location = await this.#locateExternalThread(request.params.threadId);
|
|
39801
39850
|
if (await this.#writeResolutionError(request, location)) return;
|
|
39802
39851
|
if (location.kind === "external") {
|
|
39852
|
+
const emptyResult = externalThreadEmptyOfficialResult(request.method);
|
|
39803
39853
|
await this.#writer.json(
|
|
39804
|
-
rpcError(request, -32076, `External Thread does not support ${request.method}`)
|
|
39854
|
+
emptyResult ? rpcEnvelope(request, { result: emptyResult }) : rpcError(request, -32076, `External Thread does not support ${request.method}`)
|
|
39805
39855
|
);
|
|
39806
39856
|
return;
|
|
39807
39857
|
}
|
|
@@ -40949,6 +40999,7 @@ var AppServerHost = class {
|
|
|
40949
40999
|
const result2 = threadUsageInspectionSchema.parse({
|
|
40950
41000
|
threadId: params.data.threadId,
|
|
40951
41001
|
usage: await this.#observedSessionUsage.read(params.data.threadId),
|
|
41002
|
+
accountCreditsSupported: true,
|
|
40952
41003
|
...accountCredits ? { accountCredits } : {}
|
|
40953
41004
|
});
|
|
40954
41005
|
await this.#writer.json(rpcEnvelope(request, { result: jsonValueSchema.parse(result2) }));
|
|
@@ -40956,11 +41007,17 @@ var AppServerHost = class {
|
|
|
40956
41007
|
}
|
|
40957
41008
|
if (params.data.refresh === "exact") void resolution.thread.session.refreshUsage?.();
|
|
40958
41009
|
const adapter = this.#externalAdapters.get(resolution.thread.harnessId);
|
|
40959
|
-
if (adapter &&
|
|
40960
|
-
|
|
41010
|
+
if (adapter?.credits && adapter.refreshCredits)
|
|
41011
|
+
void Promise.resolve().then(() => adapter.refreshCredits?.()).catch(() => void 0);
|
|
41012
|
+
let credits = null;
|
|
41013
|
+
try {
|
|
41014
|
+
credits = parseHarnessAccountCredits(adapter?.credits?.());
|
|
41015
|
+
} catch {
|
|
41016
|
+
}
|
|
40961
41017
|
const result = threadUsageInspectionSchema.parse({
|
|
40962
41018
|
threadId: params.data.threadId,
|
|
40963
41019
|
usage: await this.#threadUsage(resolution.thread),
|
|
41020
|
+
accountCreditsSupported: typeof adapter?.credits === "function",
|
|
40964
41021
|
...credits ? { accountCredits: credits } : {}
|
|
40965
41022
|
});
|
|
40966
41023
|
await this.#writer.json(rpcEnvelope(request, { result: jsonValueSchema.parse(result) }));
|
|
@@ -48624,8 +48681,11 @@ async function startHarnessBrokerServer(input) {
|
|
|
48624
48681
|
retireWhenIdle = false;
|
|
48625
48682
|
if (request.method === "adapter.credits") {
|
|
48626
48683
|
harnessAccountListParamsSchema.parse(request.params);
|
|
48627
|
-
const
|
|
48628
|
-
|
|
48684
|
+
const value2 = input.adapter.credits?.();
|
|
48685
|
+
const credits = parseHarnessAccountCredits(value2);
|
|
48686
|
+
if (value2 != null && !credits)
|
|
48687
|
+
throw new Error("Invalid account credits snapshot");
|
|
48688
|
+
return credits;
|
|
48629
48689
|
}
|
|
48630
48690
|
if (request.method === "adapter.inspectAccount") {
|
|
48631
48691
|
harnessAccountListParamsSchema.parse(request.params);
|
|
@@ -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({
|
|
@@ -15430,8 +15439,24 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15430
15439
|
}
|
|
15431
15440
|
});
|
|
15432
15441
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15442
|
+
var accountCreditsPeriodSchema = external_exports.enum([
|
|
15443
|
+
"weekly",
|
|
15444
|
+
"monthly",
|
|
15445
|
+
"five_hour",
|
|
15446
|
+
"seven_day",
|
|
15447
|
+
"unknown"
|
|
15448
|
+
]);
|
|
15449
|
+
var accountCreditsScopeSchema = external_exports.object({
|
|
15450
|
+
id: external_exports.string().min(1).max(256),
|
|
15451
|
+
label: external_exports.string().min(1).max(256),
|
|
15452
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15453
|
+
}).strict();
|
|
15433
15454
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
15434
15455
|
product: external_exports.string().min(1),
|
|
15456
|
+
/** Native period and scope, never inferred from the display name. */
|
|
15457
|
+
periodType: accountCreditsPeriodSchema.optional(),
|
|
15458
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15459
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15435
15460
|
used: external_exports.number().finite().nonnegative().optional(),
|
|
15436
15461
|
// Zero is a real empty cap, not an absent field.
|
|
15437
15462
|
limit: external_exports.number().finite().nonnegative().optional(),
|
|
@@ -15453,8 +15478,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
|
|
|
15453
15478
|
label: external_exports.string().min(1).optional(),
|
|
15454
15479
|
usedPercent: usagePercentSchema.optional(),
|
|
15455
15480
|
remaining: external_exports.number().finite().optional(),
|
|
15481
|
+
scope: accountCreditsScopeSchema.optional(),
|
|
15482
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
15456
15483
|
resetsAt: external_exports.string().min(1).optional(),
|
|
15457
|
-
periodType:
|
|
15484
|
+
periodType: accountCreditsPeriodSchema,
|
|
15458
15485
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
15459
15486
|
resetCredits: accountResetCreditsSchema.optional()
|
|
15460
15487
|
}).strict().superRefine((credits, context) => {
|
|
@@ -15479,7 +15506,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
|
|
|
15479
15506
|
var threadUsageInspectionSchema = external_exports.object({
|
|
15480
15507
|
threadId: hostThreadIdSchema,
|
|
15481
15508
|
usage: threadUsageSnapshotSchema.nullable(),
|
|
15482
|
-
accountCredits: accountCreditsSnapshotSchema.optional()
|
|
15509
|
+
accountCredits: accountCreditsSnapshotSchema.optional(),
|
|
15510
|
+
/** Whether this source can provide cached account quota independently of usage. */
|
|
15511
|
+
accountCreditsSupported: external_exports.boolean().optional()
|
|
15483
15512
|
}).strict();
|
|
15484
15513
|
|
|
15485
15514
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
@@ -15606,7 +15635,8 @@ var harnessPermissionModeSchema = external_exports.object({
|
|
|
15606
15635
|
id: harnessPermissionModeIdSchema,
|
|
15607
15636
|
label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
|
|
15608
15637
|
description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15609
|
-
dangerous: external_exports.boolean().optional()
|
|
15638
|
+
dangerous: external_exports.boolean().optional(),
|
|
15639
|
+
localizations: harnessLocalizationsSchema.optional()
|
|
15610
15640
|
}).strict();
|
|
15611
15641
|
var harnessPermissionModeCatalogSchema = external_exports.object({
|
|
15612
15642
|
modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
|
|
@@ -15929,6 +15959,8 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
15929
15959
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15930
15960
|
message: external_exports.string().max(2048).optional(),
|
|
15931
15961
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
15962
|
+
/** Safe plugin-owned explanation, distinct from raw diagnostic message. */
|
|
15963
|
+
notice: harnessLocalizedTextSchema.optional(),
|
|
15932
15964
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15933
15965
|
}).strict();
|
|
15934
15966
|
|
|
@@ -16067,6 +16099,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
|
|
|
16067
16099
|
invocation: commandInvocationSchema,
|
|
16068
16100
|
label: commandLabelSchema,
|
|
16069
16101
|
description: commandDescriptionSchema.optional(),
|
|
16102
|
+
localizations: harnessLocalizationsSchema.optional(),
|
|
16070
16103
|
argumentMode: external_exports.enum(["none", "text"]),
|
|
16071
16104
|
/**
|
|
16072
16105
|
* Native distinction reported by the Harness. Omitted when the Harness does
|
|
@@ -17127,6 +17160,12 @@ var ANTIGRAVITY_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.par
|
|
|
17127
17160
|
{
|
|
17128
17161
|
id: "dangerously-skip-permissions",
|
|
17129
17162
|
label: "Skip permissions",
|
|
17163
|
+
localizations: {
|
|
17164
|
+
"zh-CN": {
|
|
17165
|
+
label: "跳过权限检查",
|
|
17166
|
+
description: "使用 --dangerously-skip-permissions 运行 Antigravity CLI;codexhost 不增加工具审批或工作区限制。"
|
|
17167
|
+
}
|
|
17168
|
+
},
|
|
17130
17169
|
description: "Run Antigravity CLI with --dangerously-skip-permissions. codexhost adds no tool approval or workspace restrictions.",
|
|
17131
17170
|
dangerous: true
|
|
17132
17171
|
}
|
|
@@ -17848,6 +17887,8 @@ function parseBuckets(groups) {
|
|
|
17848
17887
|
const resetsAt = nonEmptyString(bucket.reset_time);
|
|
17849
17888
|
buckets.push({
|
|
17850
17889
|
product: groupName ? `${groupName} · ${label}` : label,
|
|
17890
|
+
periodType: periodTypeFrom(window),
|
|
17891
|
+
...groupName ? { scope: { id: groupName, label: groupName } } : {},
|
|
17851
17892
|
usagePercent,
|
|
17852
17893
|
window,
|
|
17853
17894
|
...resetsAt ? { resetsAt } : {}
|
|
@@ -17881,14 +17922,17 @@ function parseAntigravityUsageCommand(command, fetchedAt = (/* @__PURE__ */ new
|
|
|
17881
17922
|
return null;
|
|
17882
17923
|
const others = buckets.filter((bucket) => bucket !== leading);
|
|
17883
17924
|
return {
|
|
17884
|
-
label: leading.product,
|
|
17925
|
+
...leading.scope || periodTypeFrom(leading.window) === "unknown" ? { label: leading.product } : {},
|
|
17926
|
+
...leading.scope ? { scope: leading.scope } : {},
|
|
17885
17927
|
usedPercent: leading.usagePercent,
|
|
17886
17928
|
periodType: periodTypeFrom(leading.window),
|
|
17887
17929
|
fetchedAt,
|
|
17888
17930
|
...leading.resetsAt ? { resetsAt: leading.resetsAt } : {},
|
|
17889
17931
|
...others.length > 0 ? {
|
|
17890
|
-
productUsage: others.map(({ product, usagePercent, resetsAt }) => ({
|
|
17932
|
+
productUsage: others.map(({ product, periodType, scope, usagePercent, resetsAt }) => ({
|
|
17891
17933
|
product,
|
|
17934
|
+
...periodType ? { periodType } : {},
|
|
17935
|
+
...scope ? { scope } : {},
|
|
17892
17936
|
usagePercent,
|
|
17893
17937
|
...resetsAt ? { resetsAt } : {}
|
|
17894
17938
|
}))
|
|
@@ -19932,7 +19976,8 @@ var AntigravityAdapter = class {
|
|
|
19932
19976
|
return null;
|
|
19933
19977
|
return {
|
|
19934
19978
|
credits: {
|
|
19935
|
-
label: snapshot.label,
|
|
19979
|
+
...snapshot.label ? { label: snapshot.label } : {},
|
|
19980
|
+
...snapshot.scope ? { scope: snapshot.scope } : {},
|
|
19936
19981
|
usedPercent: snapshot.usedPercent,
|
|
19937
19982
|
periodType: snapshot.periodType,
|
|
19938
19983
|
...snapshot.resetsAt ? { resetsAt: snapshot.resetsAt } : {},
|
|
@@ -19940,7 +19985,7 @@ var AntigravityAdapter = class {
|
|
|
19940
19985
|
}
|
|
19941
19986
|
};
|
|
19942
19987
|
}
|
|
19943
|
-
/**
|
|
19988
|
+
/** Public account telemetry cache; never attributes quota to historical Thread spend. */
|
|
19944
19989
|
credits() {
|
|
19945
19990
|
return this.#quota;
|
|
19946
19991
|
}
|