@liberseek/boft-cli-linux-x64 0.7.5 → 0.7.7
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 +17950 -0
- package/app/console-web.js +27484 -0
- package/app/desktop-controller.mjs +221 -33
- package/app/host-runtime.mjs +3590 -1251
- package/app/plugins/antigravity/plugin.mjs +726 -357
- package/app/plugins/claude-code/plugin.mjs +3067 -2208
- package/app/plugins/codebuddy/plugin.mjs +798 -386
- package/app/plugins/cursor-cli/manifest.json +1 -1
- package/app/plugins/cursor-cli/plugin.mjs +1230 -555
- package/app/plugins/deepseek-harness/plugin.mjs +4761 -4967
- package/app/plugins/grok/plugin.mjs +670 -361
- package/app/plugins/hermes/plugin.mjs +764 -441
- package/app/plugins/kimi-code/plugin.mjs +1095 -428
- package/app/plugins/kiro-cli/plugin.mjs +603 -332
- package/app/plugins/muse/plugin.mjs +189 -58
- package/app/plugins/omp/plugin.mjs +689 -334
- package/app/plugins/opencode/plugin.mjs +946 -478
- package/app/plugins/pi/plugin.mjs +1325 -587
- package/app/plugins/qoder/plugin.mjs +756 -308
- package/app/plugins/qoder-cn/plugin.mjs +555 -99
- package/app/plugins/workbuddy/plugin.mjs +192 -58
- package/app/renderer-extension.js +3703 -1703
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +2 -2
|
@@ -14829,6 +14829,123 @@ var credentialImportsParamsSchema = external_exports.object({
|
|
|
14829
14829
|
request: credentialImportsRequestSchema
|
|
14830
14830
|
}).strict();
|
|
14831
14831
|
|
|
14832
|
+
// ../../shared-contracts/dist/harness-display-settings.js
|
|
14833
|
+
var harnessDisplayEntriesSchema = external_exports.array(external_exports.strictObject({
|
|
14834
|
+
agent: external_exports.string().min(1).max(128),
|
|
14835
|
+
section: external_exports.enum(["main", "more", "auto"])
|
|
14836
|
+
})).max(256).refine((entries) => new Set(entries.map((entry) => entry.agent)).size === entries.length, "Duplicate Harness IDs");
|
|
14837
|
+
var harnessDisplaySettingsSchema = external_exports.strictObject({
|
|
14838
|
+
entries: harnessDisplayEntriesSchema.nullable()
|
|
14839
|
+
});
|
|
14840
|
+
var harnessDisplayGetSchema = external_exports.strictObject({});
|
|
14841
|
+
var harnessDisplaySetSchema = external_exports.strictObject({
|
|
14842
|
+
entries: harnessDisplayEntriesSchema,
|
|
14843
|
+
/** Import legacy Desktop preferences only if no shared settings exist yet. */
|
|
14844
|
+
initializeOnly: external_exports.boolean().optional()
|
|
14845
|
+
});
|
|
14846
|
+
|
|
14847
|
+
// ../../shared-contracts/dist/ids.js
|
|
14848
|
+
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
14849
|
+
message: "Identifier must not be empty or whitespace"
|
|
14850
|
+
});
|
|
14851
|
+
var harnessIdSchema = opaqueIdSchema.brand();
|
|
14852
|
+
var hostThreadIdSchema = opaqueIdSchema.brand();
|
|
14853
|
+
var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
14854
|
+
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
14855
|
+
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
14856
|
+
|
|
14857
|
+
// ../../shared-contracts/dist/harness-plugins.js
|
|
14858
|
+
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
14859
|
+
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
14860
|
+
var HARNESS_PLUGIN_LIMIT = 128;
|
|
14861
|
+
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
14862
|
+
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
14863
|
+
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
14864
|
+
var pluginPresentationShape = {
|
|
14865
|
+
id: harnessPluginIdSchema,
|
|
14866
|
+
name: external_exports.string().trim().min(1).max(128),
|
|
14867
|
+
version: external_exports.string().min(1).max(128),
|
|
14868
|
+
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
14869
|
+
launchCommand: external_exports.literal(true).optional(),
|
|
14870
|
+
links: external_exports.object({
|
|
14871
|
+
documentation: documentationUrlSchema.optional(),
|
|
14872
|
+
installation: documentationUrlSchema.optional()
|
|
14873
|
+
}).strict().optional()
|
|
14874
|
+
};
|
|
14875
|
+
var harnessPluginManifestSchema = external_exports.object({
|
|
14876
|
+
manifestVersion: external_exports.literal(1),
|
|
14877
|
+
...pluginPresentationShape,
|
|
14878
|
+
adapterApiVersion: external_exports.number().int().positive(),
|
|
14879
|
+
entry: relativeResourceSchema,
|
|
14880
|
+
icon: relativeResourceSchema.optional()
|
|
14881
|
+
}).strict();
|
|
14882
|
+
var harnessPluginIconSchema = external_exports.string().max(Math.ceil(HARNESS_PLUGIN_ICON_MAX_BYTES / 3) * 4 + 64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u);
|
|
14883
|
+
var harnessPluginDescriptorSchema = external_exports.object({
|
|
14884
|
+
...pluginPresentationShape,
|
|
14885
|
+
icon: harnessPluginIconSchema.optional()
|
|
14886
|
+
}).strict();
|
|
14887
|
+
var harnessPluginListParamsSchema = external_exports.object({}).strict();
|
|
14888
|
+
var harnessPluginListResultSchema = external_exports.object({
|
|
14889
|
+
plugins: external_exports.array(harnessPluginDescriptorSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
14890
|
+
}).strict();
|
|
14891
|
+
var harnessPluginConfigurationSchema = external_exports.object({
|
|
14892
|
+
version: external_exports.literal(1),
|
|
14893
|
+
enabled: external_exports.array(harnessPluginIdSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
14894
|
+
}).strict().refine((value) => new Set(value.enabled).size === value.enabled.length, {
|
|
14895
|
+
message: "Enabled plugin IDs must be unique",
|
|
14896
|
+
path: ["enabled"]
|
|
14897
|
+
});
|
|
14898
|
+
|
|
14899
|
+
// ../../shared-contracts/dist/harness-long-context.js
|
|
14900
|
+
var HARNESS_LONG_CONTEXT_GET_METHOD = "codexhost/harness/long-context/get";
|
|
14901
|
+
var HARNESS_LONG_CONTEXT_SET_METHOD = "codexhost/harness/long-context/set";
|
|
14902
|
+
var harnessLongContextGetSchema = external_exports.object({
|
|
14903
|
+
harnessId: harnessPluginIdSchema
|
|
14904
|
+
}).strict();
|
|
14905
|
+
var harnessLongContextSetSchema = harnessLongContextGetSchema.extend({
|
|
14906
|
+
enabled: external_exports.boolean()
|
|
14907
|
+
});
|
|
14908
|
+
var harnessLongContextSchema = external_exports.object({
|
|
14909
|
+
enabled: external_exports.boolean()
|
|
14910
|
+
}).strict();
|
|
14911
|
+
|
|
14912
|
+
// ../../shared-contracts/dist/console.js
|
|
14913
|
+
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
14914
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
14915
|
+
type: external_exports.enum(["info", "warning", "danger"]),
|
|
14916
|
+
body: external_exports.string().trim().min(1).max(16 * 1024)
|
|
14917
|
+
});
|
|
14918
|
+
var consoleOpenParamsSchema = external_exports.strictObject({});
|
|
14919
|
+
var consoleOpenResultSchema = external_exports.strictObject({
|
|
14920
|
+
/** The console address. */
|
|
14921
|
+
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
14922
|
+
});
|
|
14923
|
+
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
14924
|
+
"codexhost/harness/plugins/list",
|
|
14925
|
+
"codexhost/harness/display-settings/get",
|
|
14926
|
+
"codexhost/harness/display-settings/set",
|
|
14927
|
+
"codexhost/harness/inspect",
|
|
14928
|
+
"codexhost/harness/installation",
|
|
14929
|
+
"codexhost/harness/launch-settings/get",
|
|
14930
|
+
"codexhost/harness/launch-settings/set",
|
|
14931
|
+
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
14932
|
+
HARNESS_LONG_CONTEXT_SET_METHOD,
|
|
14933
|
+
"codexhost/harness/web-ui/open",
|
|
14934
|
+
"codexhost/harness/accounts/sources",
|
|
14935
|
+
"codexhost/harness/accounts/list",
|
|
14936
|
+
"codexhost/harness/accounts/inspect",
|
|
14937
|
+
"codexhost/harness/credential-imports",
|
|
14938
|
+
"codexhost/harness/session-import/sources",
|
|
14939
|
+
"codexhost/harness/session-import/list",
|
|
14940
|
+
"codexhost/harness/session-import/import",
|
|
14941
|
+
"codexhost/account/list",
|
|
14942
|
+
"codexhost/account/refresh",
|
|
14943
|
+
"codexhost/account/usage/inspect",
|
|
14944
|
+
"codexhost/update/check",
|
|
14945
|
+
"codexhost/update/start",
|
|
14946
|
+
"codexhost/update/status"
|
|
14947
|
+
]);
|
|
14948
|
+
|
|
14832
14949
|
// ../../shared-contracts/dist/version.js
|
|
14833
14950
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
14834
14951
|
|
|
@@ -14872,15 +14989,11 @@ var loadedSessionsSchema = external_exports.array(external_exports.strictObject(
|
|
|
14872
14989
|
inactiveMs: external_exports.number().nonnegative()
|
|
14873
14990
|
}));
|
|
14874
14991
|
|
|
14875
|
-
// ../../shared-contracts/dist/
|
|
14876
|
-
var
|
|
14877
|
-
|
|
14992
|
+
// ../../shared-contracts/dist/manual-compaction.js
|
|
14993
|
+
var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
14994
|
+
threadId: hostThreadIdSchema,
|
|
14995
|
+
turnId: hostTurnIdSchema
|
|
14878
14996
|
});
|
|
14879
|
-
var harnessIdSchema = opaqueIdSchema.brand();
|
|
14880
|
-
var hostThreadIdSchema = opaqueIdSchema.brand();
|
|
14881
|
-
var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
14882
|
-
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
14883
|
-
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
14884
14997
|
|
|
14885
14998
|
// ../../shared-contracts/dist/thread-usage.js
|
|
14886
14999
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
@@ -14942,6 +15055,10 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
14942
15055
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
14943
15056
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
14944
15057
|
product: external_exports.string().min(1),
|
|
15058
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
15059
|
+
// Zero is a real empty cap, not an absent field.
|
|
15060
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
15061
|
+
unit: external_exports.string().min(1).max(32).optional(),
|
|
14945
15062
|
usagePercent: usagePercentSchema,
|
|
14946
15063
|
resetsAt: external_exports.string().min(1).optional()
|
|
14947
15064
|
}).strict();
|
|
@@ -14951,11 +15068,14 @@ var accountResetCreditsSchema = external_exports.object({
|
|
|
14951
15068
|
expiresAt: external_exports.array(external_exports.string().min(1)).min(1).max(32).optional()
|
|
14952
15069
|
}).strict();
|
|
14953
15070
|
var accountCreditsSnapshotSchema = external_exports.object({
|
|
15071
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
15072
|
+
// Zero is a real empty cap, not an absent field.
|
|
15073
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
15074
|
+
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
14954
15075
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
14955
15076
|
label: external_exports.string().min(1).optional(),
|
|
14956
15077
|
usedPercent: usagePercentSchema.optional(),
|
|
14957
15078
|
remaining: external_exports.number().finite().optional(),
|
|
14958
|
-
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
14959
15079
|
resetsAt: external_exports.string().min(1).optional(),
|
|
14960
15080
|
periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
|
|
14961
15081
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
@@ -14986,12 +15106,27 @@ var threadUsageInspectionSchema = external_exports.object({
|
|
|
14986
15106
|
}).strict();
|
|
14987
15107
|
|
|
14988
15108
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
14989
|
-
var
|
|
15109
|
+
var accountBalanceSnapshotSchema = external_exports.object({
|
|
15110
|
+
amount: external_exports.number().finite().nonnegative(),
|
|
15111
|
+
/** ISO 4217 code as reported by the Provider, for example `CNY`. */
|
|
15112
|
+
currency: external_exports.string().trim().min(1).max(8),
|
|
15113
|
+
/** Native label when the Harness exposes several Billing Sources. */
|
|
15114
|
+
label: external_exports.string().trim().min(1).max(128).optional()
|
|
15115
|
+
}).strict();
|
|
15116
|
+
var harnessAccountSnapshotObject = external_exports.object({
|
|
14990
15117
|
email: external_exports.string().trim().min(1).max(320).optional(),
|
|
14991
15118
|
label: external_exports.string().trim().min(1).max(256).optional(),
|
|
14992
15119
|
plan: external_exports.string().trim().min(1).max(128).optional(),
|
|
14993
|
-
credits: accountCreditsSnapshotSchema
|
|
15120
|
+
credits: accountCreditsSnapshotSchema.optional(),
|
|
15121
|
+
balance: accountBalanceSnapshotSchema.optional()
|
|
14994
15122
|
}).strict();
|
|
15123
|
+
function requireReportedQuota(schema) {
|
|
15124
|
+
return schema.refine((value) => {
|
|
15125
|
+
const reported = value;
|
|
15126
|
+
return reported.credits !== void 0 || reported.balance !== void 0;
|
|
15127
|
+
}, { message: "Account must report either credits or a balance" });
|
|
15128
|
+
}
|
|
15129
|
+
var harnessAccountSnapshotSchema = requireReportedQuota(harnessAccountSnapshotObject);
|
|
14995
15130
|
var harnessAccountIdentityShape = {
|
|
14996
15131
|
harnessId: harnessIdSchema,
|
|
14997
15132
|
harnessName: external_exports.string().trim().min(1).max(128)
|
|
@@ -15002,11 +15137,13 @@ var harnessAccountSourceListResultSchema = external_exports.object({ sources: ex
|
|
|
15002
15137
|
var harnessAccountInspectParamsSchema = external_exports.object({ harnessId: harnessIdSchema, refresh: external_exports.boolean().optional() }).strict();
|
|
15003
15138
|
var harnessAccountInspectResultSchema = external_exports.object({
|
|
15004
15139
|
...harnessAccountIdentityShape,
|
|
15005
|
-
account: harnessAccountSnapshotSchema.nullable()
|
|
15140
|
+
account: harnessAccountSnapshotSchema.nullable(),
|
|
15141
|
+
/** Every Billing Source from one Harness; `account` remains the first for older clients. */
|
|
15142
|
+
accounts: external_exports.array(harnessAccountSnapshotSchema).max(8).optional()
|
|
15006
15143
|
}).strict();
|
|
15007
15144
|
var harnessAccountListParamsSchema = external_exports.object({ refresh: external_exports.boolean().optional() }).strict();
|
|
15008
15145
|
var harnessAccountListResultSchema = external_exports.object({
|
|
15009
|
-
accounts: external_exports.array(
|
|
15146
|
+
accounts: external_exports.array(requireReportedQuota(harnessAccountSnapshotObject.extend(harnessAccountIdentityShape))).max(128)
|
|
15010
15147
|
}).strict();
|
|
15011
15148
|
|
|
15012
15149
|
// ../../shared-contracts/dist/json-value.js
|
|
@@ -15144,6 +15281,8 @@ var harnessModelSchema = external_exports.object({
|
|
|
15144
15281
|
ref: harnessModelRefSchema,
|
|
15145
15282
|
label: nonBlankTextSchema2.max(HARNESS_MODEL_LABEL_MAX_LENGTH),
|
|
15146
15283
|
resolvedModelLabel: harnessResolvedModelLabelSchema.optional(),
|
|
15284
|
+
/** Optional opaque selection for this same Model with priority processing enabled. */
|
|
15285
|
+
fastModel: harnessModelRefSchema.optional(),
|
|
15147
15286
|
supportedThinkingOptionIds: external_exports.array(harnessThinkingOptionIdSchema).optional()
|
|
15148
15287
|
}).strict();
|
|
15149
15288
|
var harnessThinkingOptionsSchema = external_exports.array(harnessThinkingOptionSchema).superRefine((options, context) => {
|
|
@@ -15176,6 +15315,16 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15176
15315
|
});
|
|
15177
15316
|
}
|
|
15178
15317
|
refs.add(model.ref.id);
|
|
15318
|
+
if (model.fastModel) {
|
|
15319
|
+
if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
|
|
15320
|
+
context.addIssue({
|
|
15321
|
+
code: "custom",
|
|
15322
|
+
message: "Fast Model refs must be distinct and unique",
|
|
15323
|
+
path: ["models", index, "fastModel"]
|
|
15324
|
+
});
|
|
15325
|
+
}
|
|
15326
|
+
refs.add(model.fastModel.id);
|
|
15327
|
+
}
|
|
15179
15328
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15180
15329
|
for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
|
|
15181
15330
|
if (supportedThinkingIds.has(optionId)) {
|
|
@@ -15298,11 +15447,13 @@ var threadThinkingSelectParamsSchema = external_exports.object({
|
|
|
15298
15447
|
thinkingOptionId: harnessThinkingOptionIdSchema
|
|
15299
15448
|
}).strict();
|
|
15300
15449
|
var threadInspectionParamsSchema = external_exports.object({
|
|
15301
|
-
threadId: hostThreadIdSchema
|
|
15450
|
+
threadId: hostThreadIdSchema,
|
|
15451
|
+
includeReferenceCapability: external_exports.boolean().optional()
|
|
15302
15452
|
}).strict();
|
|
15303
15453
|
var codexThreadInspectionSchema = external_exports.object({
|
|
15304
15454
|
owner: external_exports.literal("codex"),
|
|
15305
|
-
locked: external_exports.literal(true)
|
|
15455
|
+
locked: external_exports.literal(true),
|
|
15456
|
+
supportsThreadReferences: external_exports.literal(true).optional()
|
|
15306
15457
|
}).strict();
|
|
15307
15458
|
var externalThreadInspectionSchema = external_exports.object({
|
|
15308
15459
|
owner: external_exports.literal("external"),
|
|
@@ -15367,48 +15518,6 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15367
15518
|
}
|
|
15368
15519
|
});
|
|
15369
15520
|
|
|
15370
|
-
// ../../shared-contracts/dist/harness-plugins.js
|
|
15371
|
-
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15372
|
-
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
15373
|
-
var HARNESS_PLUGIN_LIMIT = 128;
|
|
15374
|
-
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
15375
|
-
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
15376
|
-
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15377
|
-
var pluginPresentationShape = {
|
|
15378
|
-
id: harnessPluginIdSchema,
|
|
15379
|
-
name: external_exports.string().trim().min(1).max(128),
|
|
15380
|
-
version: external_exports.string().min(1).max(128),
|
|
15381
|
-
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15382
|
-
launchCommand: external_exports.literal(true).optional(),
|
|
15383
|
-
links: external_exports.object({
|
|
15384
|
-
documentation: documentationUrlSchema.optional(),
|
|
15385
|
-
installation: documentationUrlSchema.optional()
|
|
15386
|
-
}).strict().optional()
|
|
15387
|
-
};
|
|
15388
|
-
var harnessPluginManifestSchema = external_exports.object({
|
|
15389
|
-
manifestVersion: external_exports.literal(1),
|
|
15390
|
-
...pluginPresentationShape,
|
|
15391
|
-
adapterApiVersion: external_exports.number().int().positive(),
|
|
15392
|
-
entry: relativeResourceSchema,
|
|
15393
|
-
icon: relativeResourceSchema.optional()
|
|
15394
|
-
}).strict();
|
|
15395
|
-
var harnessPluginIconSchema = external_exports.string().max(Math.ceil(HARNESS_PLUGIN_ICON_MAX_BYTES / 3) * 4 + 64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u);
|
|
15396
|
-
var harnessPluginDescriptorSchema = external_exports.object({
|
|
15397
|
-
...pluginPresentationShape,
|
|
15398
|
-
icon: harnessPluginIconSchema.optional()
|
|
15399
|
-
}).strict();
|
|
15400
|
-
var harnessPluginListParamsSchema = external_exports.object({}).strict();
|
|
15401
|
-
var harnessPluginListResultSchema = external_exports.object({
|
|
15402
|
-
plugins: external_exports.array(harnessPluginDescriptorSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15403
|
-
}).strict();
|
|
15404
|
-
var harnessPluginConfigurationSchema = external_exports.object({
|
|
15405
|
-
version: external_exports.literal(1),
|
|
15406
|
-
enabled: external_exports.array(harnessPluginIdSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15407
|
-
}).strict().refine((value) => new Set(value.enabled).size === value.enabled.length, {
|
|
15408
|
-
message: "Enabled plugin IDs must be unique",
|
|
15409
|
-
path: ["enabled"]
|
|
15410
|
-
});
|
|
15411
|
-
|
|
15412
15521
|
// ../../shared-contracts/dist/harness-route.js
|
|
15413
15522
|
var harnessPluginRouteSchema = external_exports.object({
|
|
15414
15523
|
harnessId: harnessPluginIdSchema,
|
|
@@ -15430,10 +15539,31 @@ var harnessLaunchSettingsSchema = external_exports.object({
|
|
|
15430
15539
|
restartRequired: external_exports.boolean()
|
|
15431
15540
|
}).strict();
|
|
15432
15541
|
|
|
15542
|
+
// ../../shared-contracts/dist/harness-installation.js
|
|
15543
|
+
var harnessInstallationParamsSchema = external_exports.object({
|
|
15544
|
+
harnessId: harnessIdSchema,
|
|
15545
|
+
action: external_exports.enum(["check", "update", "install"])
|
|
15546
|
+
}).strict();
|
|
15547
|
+
var harnessInstallationStateSchema = external_exports.object({
|
|
15548
|
+
currentVersion: external_exports.string().min(1).max(128),
|
|
15549
|
+
latestVersion: external_exports.string().min(1).max(128),
|
|
15550
|
+
updateAvailable: external_exports.boolean(),
|
|
15551
|
+
canUpdate: external_exports.boolean(),
|
|
15552
|
+
message: external_exports.string().max(2048).optional()
|
|
15553
|
+
}).strict();
|
|
15554
|
+
|
|
15433
15555
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
15434
15556
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
15435
15557
|
var nonBlankTextSchema3 = external_exports.string().trim().min(1);
|
|
15436
15558
|
var codexAccountAuthKindSchema = external_exports.enum(["api", "chatgpt"]);
|
|
15559
|
+
var codexAccountSiteUrlPattern = /^https?:\/\/(?:\[[0-9a-fA-F:]+\]|[^/\s:@?#]+)(?::\d{1,5})?(?:[/?#][^\s]*)?$/u;
|
|
15560
|
+
function isCodexAccountSiteUrl(value) {
|
|
15561
|
+
return value.length > 0 && value.length <= 2048 && codexAccountSiteUrlPattern.test(value);
|
|
15562
|
+
}
|
|
15563
|
+
var externalUrlOpenParamsSchema = external_exports.object({
|
|
15564
|
+
url: external_exports.string().max(2048).refine(isCodexAccountSiteUrl, "External URL must be http(s)")
|
|
15565
|
+
}).strict();
|
|
15566
|
+
var externalUrlOpenResultSchema = external_exports.object({}).strict();
|
|
15437
15567
|
var codexAccountPlanTypeSchema = external_exports.enum([
|
|
15438
15568
|
"free",
|
|
15439
15569
|
"go",
|
|
@@ -15459,7 +15589,8 @@ var codexAccountSchema = external_exports.object({
|
|
|
15459
15589
|
email: external_exports.string().email().max(320).optional(),
|
|
15460
15590
|
planType: codexAccountPlanTypeSchema.optional(),
|
|
15461
15591
|
authKind: codexAccountAuthKindSchema.optional(),
|
|
15462
|
-
authIdentity: nonBlankTextSchema3.max(256).optional()
|
|
15592
|
+
authIdentity: nonBlankTextSchema3.max(256).optional(),
|
|
15593
|
+
siteUrl: external_exports.string().refine(isCodexAccountSiteUrl, "Account site URL must be http(s)").optional()
|
|
15463
15594
|
}).strict();
|
|
15464
15595
|
var codexAccountPhaseSchema = external_exports.enum(["ready", "unavailable"]);
|
|
15465
15596
|
var codexAccountListResultSchema = external_exports.object({
|