@liberseek/boft-cli-win32-arm64 0.7.5 → 0.7.6
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 +17934 -0
- package/app/console-web.js +27017 -0
- package/app/desktop-controller.mjs +154 -14
- package/app/host-runtime.mjs +3084 -1144
- package/app/plugins/antigravity/plugin.mjs +355 -74
- package/app/plugins/claude-code/plugin.mjs +2851 -2152
- package/app/plugins/codebuddy/plugin.mjs +436 -95
- package/app/plugins/cursor-cli/manifest.json +1 -1
- package/app/plugins/cursor-cli/plugin.mjs +1089 -503
- package/app/plugins/deepseek-harness/plugin.mjs +614 -38
- package/app/plugins/grok/plugin.mjs +301 -81
- package/app/plugins/hermes/plugin.mjs +321 -87
- package/app/plugins/kimi-code/plugin.mjs +669 -76
- package/app/plugins/kiro-cli/plugin.mjs +237 -57
- package/app/plugins/muse/plugin.mjs +123 -8
- package/app/plugins/omp/plugin.mjs +310 -47
- package/app/plugins/opencode/plugin.mjs +467 -70
- package/app/plugins/pi/plugin.mjs +907 -277
- package/app/plugins/qoder/plugin.mjs +407 -48
- package/app/plugins/qoder-cn/plugin.mjs +414 -49
- package/app/plugins/workbuddy/plugin.mjs +126 -8
- package/app/renderer-extension.js +2712 -1195
- 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
|
@@ -3229,8 +3229,8 @@ var require_utils = __commonJS({
|
|
|
3229
3229
|
}
|
|
3230
3230
|
return ind;
|
|
3231
3231
|
}
|
|
3232
|
-
function removeDotSegments(
|
|
3233
|
-
let input =
|
|
3232
|
+
function removeDotSegments(path6) {
|
|
3233
|
+
let input = path6;
|
|
3234
3234
|
const output = [];
|
|
3235
3235
|
let nextSlash = -1;
|
|
3236
3236
|
let len = 0;
|
|
@@ -3482,8 +3482,8 @@ var require_schemes = __commonJS({
|
|
|
3482
3482
|
wsComponent.secure = void 0;
|
|
3483
3483
|
}
|
|
3484
3484
|
if (wsComponent.resourceName) {
|
|
3485
|
-
const [
|
|
3486
|
-
wsComponent.path =
|
|
3485
|
+
const [path6, query] = wsComponent.resourceName.split("?");
|
|
3486
|
+
wsComponent.path = path6 && path6 !== "/" ? path6 : void 0;
|
|
3487
3487
|
wsComponent.query = query;
|
|
3488
3488
|
wsComponent.resourceName = void 0;
|
|
3489
3489
|
}
|
|
@@ -12592,7 +12592,7 @@ var require_dist = __commonJS({
|
|
|
12592
12592
|
|
|
12593
12593
|
// ../qoder/dist/qoder-adapter.js
|
|
12594
12594
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
12595
|
-
import
|
|
12595
|
+
import path5 from "node:path";
|
|
12596
12596
|
|
|
12597
12597
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
12598
12598
|
var external_exports = {};
|
|
@@ -13360,10 +13360,10 @@ function mergeDefs(...defs) {
|
|
|
13360
13360
|
function cloneDef(schema) {
|
|
13361
13361
|
return mergeDefs(schema._zod.def);
|
|
13362
13362
|
}
|
|
13363
|
-
function getElementAtPath(obj,
|
|
13364
|
-
if (!
|
|
13363
|
+
function getElementAtPath(obj, path6) {
|
|
13364
|
+
if (!path6)
|
|
13365
13365
|
return obj;
|
|
13366
|
-
return
|
|
13366
|
+
return path6.reduce((acc, key) => acc?.[key], obj);
|
|
13367
13367
|
}
|
|
13368
13368
|
function promiseAllObject(promisesObj) {
|
|
13369
13369
|
const keys = Object.keys(promisesObj);
|
|
@@ -13772,11 +13772,11 @@ function explicitlyAborted(x3, startIndex = 0) {
|
|
|
13772
13772
|
}
|
|
13773
13773
|
return false;
|
|
13774
13774
|
}
|
|
13775
|
-
function prefixIssues(
|
|
13775
|
+
function prefixIssues(path6, issues) {
|
|
13776
13776
|
return issues.map((iss) => {
|
|
13777
13777
|
var _a5;
|
|
13778
13778
|
(_a5 = iss).path ?? (_a5.path = []);
|
|
13779
|
-
iss.path.unshift(
|
|
13779
|
+
iss.path.unshift(path6);
|
|
13780
13780
|
return iss;
|
|
13781
13781
|
});
|
|
13782
13782
|
}
|
|
@@ -13923,16 +13923,16 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
|
13923
13923
|
}
|
|
13924
13924
|
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
13925
13925
|
const fieldErrors = { _errors: [] };
|
|
13926
|
-
const processError = (error52,
|
|
13926
|
+
const processError = (error52, path6 = []) => {
|
|
13927
13927
|
for (const issue2 of error52.issues) {
|
|
13928
13928
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
13929
|
-
issue2.errors.map((issues) => processError({ issues }, [...
|
|
13929
|
+
issue2.errors.map((issues) => processError({ issues }, [...path6, ...issue2.path]));
|
|
13930
13930
|
} else if (issue2.code === "invalid_key") {
|
|
13931
|
-
processError({ issues: issue2.issues }, [...
|
|
13931
|
+
processError({ issues: issue2.issues }, [...path6, ...issue2.path]);
|
|
13932
13932
|
} else if (issue2.code === "invalid_element") {
|
|
13933
|
-
processError({ issues: issue2.issues }, [...
|
|
13933
|
+
processError({ issues: issue2.issues }, [...path6, ...issue2.path]);
|
|
13934
13934
|
} else {
|
|
13935
|
-
const fullpath = [...
|
|
13935
|
+
const fullpath = [...path6, ...issue2.path];
|
|
13936
13936
|
if (fullpath.length === 0) {
|
|
13937
13937
|
fieldErrors._errors.push(mapper(issue2));
|
|
13938
13938
|
} else {
|
|
@@ -13959,17 +13959,17 @@ function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
|
13959
13959
|
}
|
|
13960
13960
|
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
13961
13961
|
const result = { errors: [] };
|
|
13962
|
-
const processError = (error52,
|
|
13962
|
+
const processError = (error52, path6 = []) => {
|
|
13963
13963
|
var _a5, _b;
|
|
13964
13964
|
for (const issue2 of error52.issues) {
|
|
13965
13965
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
13966
|
-
issue2.errors.map((issues) => processError({ issues }, [...
|
|
13966
|
+
issue2.errors.map((issues) => processError({ issues }, [...path6, ...issue2.path]));
|
|
13967
13967
|
} else if (issue2.code === "invalid_key") {
|
|
13968
|
-
processError({ issues: issue2.issues }, [...
|
|
13968
|
+
processError({ issues: issue2.issues }, [...path6, ...issue2.path]);
|
|
13969
13969
|
} else if (issue2.code === "invalid_element") {
|
|
13970
|
-
processError({ issues: issue2.issues }, [...
|
|
13970
|
+
processError({ issues: issue2.issues }, [...path6, ...issue2.path]);
|
|
13971
13971
|
} else {
|
|
13972
|
-
const fullpath = [...
|
|
13972
|
+
const fullpath = [...path6, ...issue2.path];
|
|
13973
13973
|
if (fullpath.length === 0) {
|
|
13974
13974
|
result.errors.push(mapper(issue2));
|
|
13975
13975
|
continue;
|
|
@@ -14001,8 +14001,8 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
14001
14001
|
}
|
|
14002
14002
|
function toDotPath(_path) {
|
|
14003
14003
|
const segs = [];
|
|
14004
|
-
const
|
|
14005
|
-
for (const seg of
|
|
14004
|
+
const path6 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
|
|
14005
|
+
for (const seg of path6) {
|
|
14006
14006
|
if (typeof seg === "number")
|
|
14007
14007
|
segs.push(`[${seg}]`);
|
|
14008
14008
|
else if (typeof seg === "symbol")
|
|
@@ -26694,13 +26694,13 @@ function resolveRef(ref, ctx) {
|
|
|
26694
26694
|
if (!ref.startsWith("#")) {
|
|
26695
26695
|
throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
26696
26696
|
}
|
|
26697
|
-
const
|
|
26698
|
-
if (
|
|
26697
|
+
const path6 = ref.slice(1).split("/").filter(Boolean);
|
|
26698
|
+
if (path6.length === 0) {
|
|
26699
26699
|
return ctx.rootSchema;
|
|
26700
26700
|
}
|
|
26701
26701
|
const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
|
|
26702
|
-
if (
|
|
26703
|
-
const key =
|
|
26702
|
+
if (path6[0] === defsKey) {
|
|
26703
|
+
const key = path6[1];
|
|
26704
26704
|
if (!key || !ctx.defs[key]) {
|
|
26705
26705
|
throw new Error(`Reference not found: ${ref}`);
|
|
26706
26706
|
}
|
|
@@ -27163,6 +27163,55 @@ var credentialImportsParamsSchema = external_exports.object({
|
|
|
27163
27163
|
request: credentialImportsRequestSchema
|
|
27164
27164
|
}).strict();
|
|
27165
27165
|
|
|
27166
|
+
// ../../shared-contracts/dist/harness-display-settings.js
|
|
27167
|
+
var harnessDisplayEntriesSchema = external_exports.array(external_exports.strictObject({
|
|
27168
|
+
agent: external_exports.string().min(1).max(128),
|
|
27169
|
+
section: external_exports.enum(["main", "more", "auto"])
|
|
27170
|
+
})).max(256).refine((entries) => new Set(entries.map((entry) => entry.agent)).size === entries.length, "Duplicate Harness IDs");
|
|
27171
|
+
var harnessDisplaySettingsSchema = external_exports.strictObject({
|
|
27172
|
+
entries: harnessDisplayEntriesSchema.nullable()
|
|
27173
|
+
});
|
|
27174
|
+
var harnessDisplayGetSchema = external_exports.strictObject({});
|
|
27175
|
+
var harnessDisplaySetSchema = external_exports.strictObject({
|
|
27176
|
+
entries: harnessDisplayEntriesSchema,
|
|
27177
|
+
/** Import legacy Desktop preferences only if no shared settings exist yet. */
|
|
27178
|
+
initializeOnly: external_exports.boolean().optional()
|
|
27179
|
+
});
|
|
27180
|
+
|
|
27181
|
+
// ../../shared-contracts/dist/console.js
|
|
27182
|
+
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
27183
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
27184
|
+
type: external_exports.enum(["info", "warning", "danger"]),
|
|
27185
|
+
body: external_exports.string().trim().min(1).max(16 * 1024)
|
|
27186
|
+
});
|
|
27187
|
+
var consoleOpenParamsSchema = external_exports.strictObject({});
|
|
27188
|
+
var consoleOpenResultSchema = external_exports.strictObject({
|
|
27189
|
+
/** The console address. */
|
|
27190
|
+
url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
|
|
27191
|
+
});
|
|
27192
|
+
var CONSOLE_HOST_METHODS = Object.freeze([
|
|
27193
|
+
"codexhost/harness/plugins/list",
|
|
27194
|
+
"codexhost/harness/display-settings/get",
|
|
27195
|
+
"codexhost/harness/display-settings/set",
|
|
27196
|
+
"codexhost/harness/inspect",
|
|
27197
|
+
"codexhost/harness/launch-settings/get",
|
|
27198
|
+
"codexhost/harness/launch-settings/set",
|
|
27199
|
+
"codexhost/harness/web-ui/open",
|
|
27200
|
+
"codexhost/harness/accounts/sources",
|
|
27201
|
+
"codexhost/harness/accounts/list",
|
|
27202
|
+
"codexhost/harness/accounts/inspect",
|
|
27203
|
+
"codexhost/harness/credential-imports",
|
|
27204
|
+
"codexhost/harness/session-import/sources",
|
|
27205
|
+
"codexhost/harness/session-import/list",
|
|
27206
|
+
"codexhost/harness/session-import/import",
|
|
27207
|
+
"codexhost/account/list",
|
|
27208
|
+
"codexhost/account/refresh",
|
|
27209
|
+
"codexhost/account/usage/inspect",
|
|
27210
|
+
"codexhost/update/check",
|
|
27211
|
+
"codexhost/update/start",
|
|
27212
|
+
"codexhost/update/status"
|
|
27213
|
+
]);
|
|
27214
|
+
|
|
27166
27215
|
// ../../shared-contracts/dist/version.js
|
|
27167
27216
|
var WORKSPACE_CONTRACT_VERSION = 1;
|
|
27168
27217
|
|
|
@@ -27216,6 +27265,12 @@ var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
|
27216
27265
|
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
27217
27266
|
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
27218
27267
|
|
|
27268
|
+
// ../../shared-contracts/dist/manual-compaction.js
|
|
27269
|
+
var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
27270
|
+
threadId: hostThreadIdSchema,
|
|
27271
|
+
turnId: hostTurnIdSchema
|
|
27272
|
+
});
|
|
27273
|
+
|
|
27219
27274
|
// ../../shared-contracts/dist/thread-usage.js
|
|
27220
27275
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27221
27276
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
@@ -27276,6 +27331,10 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
27276
27331
|
var usagePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27277
27332
|
var accountCreditsProductUsageSchema = external_exports.object({
|
|
27278
27333
|
product: external_exports.string().min(1),
|
|
27334
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
27335
|
+
// Zero is a real empty cap, not an absent field.
|
|
27336
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
27337
|
+
unit: external_exports.string().min(1).max(32).optional(),
|
|
27279
27338
|
usagePercent: usagePercentSchema,
|
|
27280
27339
|
resetsAt: external_exports.string().min(1).optional()
|
|
27281
27340
|
}).strict();
|
|
@@ -27285,11 +27344,14 @@ var accountResetCreditsSchema = external_exports.object({
|
|
|
27285
27344
|
expiresAt: external_exports.array(external_exports.string().min(1)).min(1).max(32).optional()
|
|
27286
27345
|
}).strict();
|
|
27287
27346
|
var accountCreditsSnapshotSchema = external_exports.object({
|
|
27347
|
+
used: external_exports.number().finite().nonnegative().optional(),
|
|
27348
|
+
// Zero is a real empty cap, not an absent field.
|
|
27349
|
+
limit: external_exports.number().finite().nonnegative().optional(),
|
|
27350
|
+
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
27288
27351
|
/** Native label when the primary limit is scoped to a model or product group. */
|
|
27289
27352
|
label: external_exports.string().min(1).optional(),
|
|
27290
27353
|
usedPercent: usagePercentSchema.optional(),
|
|
27291
27354
|
remaining: external_exports.number().finite().optional(),
|
|
27292
|
-
unit: external_exports.string().trim().min(1).max(32).optional(),
|
|
27293
27355
|
resetsAt: external_exports.string().min(1).optional(),
|
|
27294
27356
|
periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
|
|
27295
27357
|
productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
|
|
@@ -27320,12 +27382,27 @@ var threadUsageInspectionSchema = external_exports.object({
|
|
|
27320
27382
|
}).strict();
|
|
27321
27383
|
|
|
27322
27384
|
// ../../shared-contracts/dist/harness-accounts.js
|
|
27323
|
-
var
|
|
27385
|
+
var accountBalanceSnapshotSchema = external_exports.object({
|
|
27386
|
+
amount: external_exports.number().finite().nonnegative(),
|
|
27387
|
+
/** ISO 4217 code as reported by the Provider, for example `CNY`. */
|
|
27388
|
+
currency: external_exports.string().trim().min(1).max(8),
|
|
27389
|
+
/** Native label when the Harness exposes several Billing Sources. */
|
|
27390
|
+
label: external_exports.string().trim().min(1).max(128).optional()
|
|
27391
|
+
}).strict();
|
|
27392
|
+
var harnessAccountSnapshotObject = external_exports.object({
|
|
27324
27393
|
email: external_exports.string().trim().min(1).max(320).optional(),
|
|
27325
27394
|
label: external_exports.string().trim().min(1).max(256).optional(),
|
|
27326
27395
|
plan: external_exports.string().trim().min(1).max(128).optional(),
|
|
27327
|
-
credits: accountCreditsSnapshotSchema
|
|
27396
|
+
credits: accountCreditsSnapshotSchema.optional(),
|
|
27397
|
+
balance: accountBalanceSnapshotSchema.optional()
|
|
27328
27398
|
}).strict();
|
|
27399
|
+
function requireReportedQuota(schema) {
|
|
27400
|
+
return schema.refine((value) => {
|
|
27401
|
+
const reported = value;
|
|
27402
|
+
return reported.credits !== void 0 || reported.balance !== void 0;
|
|
27403
|
+
}, { message: "Account must report either credits or a balance" });
|
|
27404
|
+
}
|
|
27405
|
+
var harnessAccountSnapshotSchema = requireReportedQuota(harnessAccountSnapshotObject);
|
|
27329
27406
|
var harnessAccountIdentityShape = {
|
|
27330
27407
|
harnessId: harnessIdSchema,
|
|
27331
27408
|
harnessName: external_exports.string().trim().min(1).max(128)
|
|
@@ -27336,11 +27413,13 @@ var harnessAccountSourceListResultSchema = external_exports.object({ sources: ex
|
|
|
27336
27413
|
var harnessAccountInspectParamsSchema = external_exports.object({ harnessId: harnessIdSchema, refresh: external_exports.boolean().optional() }).strict();
|
|
27337
27414
|
var harnessAccountInspectResultSchema = external_exports.object({
|
|
27338
27415
|
...harnessAccountIdentityShape,
|
|
27339
|
-
account: harnessAccountSnapshotSchema.nullable()
|
|
27416
|
+
account: harnessAccountSnapshotSchema.nullable(),
|
|
27417
|
+
/** Every Billing Source from one Harness; `account` remains the first for older clients. */
|
|
27418
|
+
accounts: external_exports.array(harnessAccountSnapshotSchema).max(8).optional()
|
|
27340
27419
|
}).strict();
|
|
27341
27420
|
var harnessAccountListParamsSchema = external_exports.object({ refresh: external_exports.boolean().optional() }).strict();
|
|
27342
27421
|
var harnessAccountListResultSchema = external_exports.object({
|
|
27343
|
-
accounts: external_exports.array(
|
|
27422
|
+
accounts: external_exports.array(requireReportedQuota(harnessAccountSnapshotObject.extend(harnessAccountIdentityShape))).max(128)
|
|
27344
27423
|
}).strict();
|
|
27345
27424
|
|
|
27346
27425
|
// ../../shared-contracts/dist/json-value.js
|
|
@@ -27478,6 +27557,8 @@ var harnessModelSchema = external_exports.object({
|
|
|
27478
27557
|
ref: harnessModelRefSchema,
|
|
27479
27558
|
label: nonBlankTextSchema2.max(HARNESS_MODEL_LABEL_MAX_LENGTH),
|
|
27480
27559
|
resolvedModelLabel: harnessResolvedModelLabelSchema.optional(),
|
|
27560
|
+
/** Optional opaque selection for this same Model with priority processing enabled. */
|
|
27561
|
+
fastModel: harnessModelRefSchema.optional(),
|
|
27481
27562
|
supportedThinkingOptionIds: external_exports.array(harnessThinkingOptionIdSchema).optional()
|
|
27482
27563
|
}).strict();
|
|
27483
27564
|
var harnessThinkingOptionsSchema = external_exports.array(harnessThinkingOptionSchema).superRefine((options, context) => {
|
|
@@ -27510,6 +27591,16 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
27510
27591
|
});
|
|
27511
27592
|
}
|
|
27512
27593
|
refs.add(model.ref.id);
|
|
27594
|
+
if (model.fastModel) {
|
|
27595
|
+
if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
|
|
27596
|
+
context.addIssue({
|
|
27597
|
+
code: "custom",
|
|
27598
|
+
message: "Fast Model refs must be distinct and unique",
|
|
27599
|
+
path: ["models", index, "fastModel"]
|
|
27600
|
+
});
|
|
27601
|
+
}
|
|
27602
|
+
refs.add(model.fastModel.id);
|
|
27603
|
+
}
|
|
27513
27604
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
27514
27605
|
for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
|
|
27515
27606
|
if (supportedThinkingIds.has(optionId)) {
|
|
@@ -27632,11 +27723,13 @@ var threadThinkingSelectParamsSchema = external_exports.object({
|
|
|
27632
27723
|
thinkingOptionId: harnessThinkingOptionIdSchema
|
|
27633
27724
|
}).strict();
|
|
27634
27725
|
var threadInspectionParamsSchema = external_exports.object({
|
|
27635
|
-
threadId: hostThreadIdSchema
|
|
27726
|
+
threadId: hostThreadIdSchema,
|
|
27727
|
+
includeReferenceCapability: external_exports.boolean().optional()
|
|
27636
27728
|
}).strict();
|
|
27637
27729
|
var codexThreadInspectionSchema = external_exports.object({
|
|
27638
27730
|
owner: external_exports.literal("codex"),
|
|
27639
|
-
locked: external_exports.literal(true)
|
|
27731
|
+
locked: external_exports.literal(true),
|
|
27732
|
+
supportsThreadReferences: external_exports.literal(true).optional()
|
|
27640
27733
|
}).strict();
|
|
27641
27734
|
var externalThreadInspectionSchema = external_exports.object({
|
|
27642
27735
|
owner: external_exports.literal("external"),
|
|
@@ -27764,10 +27857,31 @@ var harnessLaunchSettingsSchema = external_exports.object({
|
|
|
27764
27857
|
restartRequired: external_exports.boolean()
|
|
27765
27858
|
}).strict();
|
|
27766
27859
|
|
|
27860
|
+
// ../../shared-contracts/dist/harness-installation.js
|
|
27861
|
+
var harnessInstallationParamsSchema = external_exports.object({
|
|
27862
|
+
harnessId: harnessIdSchema,
|
|
27863
|
+
action: external_exports.enum(["check", "update"])
|
|
27864
|
+
}).strict();
|
|
27865
|
+
var harnessInstallationStateSchema = external_exports.object({
|
|
27866
|
+
currentVersion: external_exports.string().min(1).max(128),
|
|
27867
|
+
latestVersion: external_exports.string().min(1).max(128),
|
|
27868
|
+
updateAvailable: external_exports.boolean(),
|
|
27869
|
+
canUpdate: external_exports.boolean(),
|
|
27870
|
+
message: external_exports.string().max(2048).optional()
|
|
27871
|
+
}).strict();
|
|
27872
|
+
|
|
27767
27873
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
27768
27874
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
27769
27875
|
var nonBlankTextSchema3 = external_exports.string().trim().min(1);
|
|
27770
27876
|
var codexAccountAuthKindSchema = external_exports.enum(["api", "chatgpt"]);
|
|
27877
|
+
var codexAccountSiteUrlPattern = /^https?:\/\/(?:\[[0-9a-fA-F:]+\]|[^/\s:@?#]+)(?::\d{1,5})?(?:[/?#][^\s]*)?$/u;
|
|
27878
|
+
function isCodexAccountSiteUrl(value) {
|
|
27879
|
+
return value.length > 0 && value.length <= 2048 && codexAccountSiteUrlPattern.test(value);
|
|
27880
|
+
}
|
|
27881
|
+
var externalUrlOpenParamsSchema = external_exports.object({
|
|
27882
|
+
url: external_exports.string().max(2048).refine(isCodexAccountSiteUrl, "External URL must be http(s)")
|
|
27883
|
+
}).strict();
|
|
27884
|
+
var externalUrlOpenResultSchema = external_exports.object({}).strict();
|
|
27771
27885
|
var codexAccountPlanTypeSchema = external_exports.enum([
|
|
27772
27886
|
"free",
|
|
27773
27887
|
"go",
|
|
@@ -27793,7 +27907,8 @@ var codexAccountSchema = external_exports.object({
|
|
|
27793
27907
|
email: external_exports.string().email().max(320).optional(),
|
|
27794
27908
|
planType: codexAccountPlanTypeSchema.optional(),
|
|
27795
27909
|
authKind: codexAccountAuthKindSchema.optional(),
|
|
27796
|
-
authIdentity: nonBlankTextSchema3.max(256).optional()
|
|
27910
|
+
authIdentity: nonBlankTextSchema3.max(256).optional(),
|
|
27911
|
+
siteUrl: external_exports.string().refine(isCodexAccountSiteUrl, "Account site URL must be http(s)").optional()
|
|
27797
27912
|
}).strict();
|
|
27798
27913
|
var codexAccountPhaseSchema = external_exports.enum(["ready", "unavailable"]);
|
|
27799
27914
|
var codexAccountListResultSchema = external_exports.object({
|
|
@@ -28070,7 +28185,7 @@ var updateStatusResultSchema = external_exports.strictObject({
|
|
|
28070
28185
|
var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
|
|
28071
28186
|
|
|
28072
28187
|
// ../qoder/dist/qoder-command.js
|
|
28073
|
-
import
|
|
28188
|
+
import path4 from "node:path";
|
|
28074
28189
|
|
|
28075
28190
|
// ../../harness-discovery/dist/environment.js
|
|
28076
28191
|
import fs from "node:fs";
|
|
@@ -28118,6 +28233,36 @@ function newestFirst(names) {
|
|
|
28118
28233
|
return [...names].sort((left, right) => right.localeCompare(left, void 0, { numeric: true }));
|
|
28119
28234
|
}
|
|
28120
28235
|
|
|
28236
|
+
// ../../harness-discovery/dist/invocation.js
|
|
28237
|
+
import path2 from "node:path";
|
|
28238
|
+
function commandInvocation(command, arguments_, environment, platform = process.platform) {
|
|
28239
|
+
const extension = path2.win32.extname(command).toLowerCase();
|
|
28240
|
+
if (platform !== "win32" || ![".cmd", ".bat"].includes(extension)) {
|
|
28241
|
+
return { command, arguments: [...arguments_], windowsVerbatimArguments: false };
|
|
28242
|
+
}
|
|
28243
|
+
const quote = (value) => `"${value.replaceAll("%", "%%").replaceAll('"', '""')}"`;
|
|
28244
|
+
const commandLine = [command, ...arguments_].map(quote).join(" ");
|
|
28245
|
+
return {
|
|
28246
|
+
command: environmentValue(environment, "ComSpec") ?? "cmd.exe",
|
|
28247
|
+
arguments: ["/d", "/v:off", "/s", "/c", `"${commandLine}"`],
|
|
28248
|
+
windowsVerbatimArguments: true
|
|
28249
|
+
};
|
|
28250
|
+
}
|
|
28251
|
+
|
|
28252
|
+
// ../../harness-discovery/dist/node-runtime.js
|
|
28253
|
+
import path3 from "node:path";
|
|
28254
|
+
function withNodeRuntimeOnPath(environment, runtimeExecutable = process.execPath, platform = process.platform) {
|
|
28255
|
+
const pathKey = Object.keys(environment).find((name) => name.toLowerCase() === "path") ?? "PATH";
|
|
28256
|
+
const delimiter = platform === "win32" ? ";" : ":";
|
|
28257
|
+
const runtimeDirectory = path3.dirname(runtimeExecutable);
|
|
28258
|
+
const directories = (environment[pathKey] ?? "").split(delimiter).filter(Boolean);
|
|
28259
|
+
const equal = platform === "win32" ? (value) => value.toLowerCase() : (value) => value;
|
|
28260
|
+
if (!directories.some((directory) => equal(directory) === equal(runtimeDirectory))) {
|
|
28261
|
+
directories.push(runtimeDirectory);
|
|
28262
|
+
}
|
|
28263
|
+
return { ...environment, [pathKey]: directories.join(delimiter) };
|
|
28264
|
+
}
|
|
28265
|
+
|
|
28121
28266
|
// ../../harness-discovery/dist/resolve.js
|
|
28122
28267
|
import os from "node:os";
|
|
28123
28268
|
|
|
@@ -28281,6 +28426,101 @@ function resolveHarnessExecutable(spec, input, dependencies = {}) {
|
|
|
28281
28426
|
return void 0;
|
|
28282
28427
|
}
|
|
28283
28428
|
|
|
28429
|
+
// ../../harness-discovery/dist/installation.js
|
|
28430
|
+
import { execFile } from "node:child_process";
|
|
28431
|
+
import { homedir } from "node:os";
|
|
28432
|
+
function runInstallationCommand(command, args, environment, timeout = 3e4) {
|
|
28433
|
+
const env = withNodeRuntimeOnPath(environment);
|
|
28434
|
+
const invocation = /\.[cm]?js$/i.test(command) ? commandInvocation(process.execPath, [command, ...args], env) : commandInvocation(command, args, env);
|
|
28435
|
+
return new Promise((resolve, reject) => {
|
|
28436
|
+
const child = execFile(invocation.command, invocation.arguments, {
|
|
28437
|
+
env,
|
|
28438
|
+
cwd: env.HOME ?? env.USERPROFILE ?? homedir(),
|
|
28439
|
+
encoding: "utf8",
|
|
28440
|
+
timeout,
|
|
28441
|
+
killSignal: "SIGKILL",
|
|
28442
|
+
maxBuffer: 1024 * 1024,
|
|
28443
|
+
windowsHide: true,
|
|
28444
|
+
windowsVerbatimArguments: invocation.windowsVerbatimArguments
|
|
28445
|
+
}, (error51, stdout, stderr) => {
|
|
28446
|
+
if (error51)
|
|
28447
|
+
reject(new Error(error51.killed ? "Harness command timed out" : "Harness command failed; check the native installation and retry"));
|
|
28448
|
+
else
|
|
28449
|
+
resolve((stdout || stderr).trim());
|
|
28450
|
+
});
|
|
28451
|
+
child.stdin?.end();
|
|
28452
|
+
});
|
|
28453
|
+
}
|
|
28454
|
+
function installationVersion(value) {
|
|
28455
|
+
if (typeof value !== "string" || !/^v?\d+(?:\.\d+){1,3}(?:-[\w.-]+)?(?:\+[\w.-]+)?$/.test(value.trim()))
|
|
28456
|
+
throw new Error("Harness returned an invalid version");
|
|
28457
|
+
return value.trim().replace(/^v/, "");
|
|
28458
|
+
}
|
|
28459
|
+
function versionFromOutput(output) {
|
|
28460
|
+
return installationVersion(output.match(/\b\d+(?:\.\d+){1,3}(?:-[\w.-]+)?(?:\+[\w.-]+)?\b/)?.[0]);
|
|
28461
|
+
}
|
|
28462
|
+
function newerInstallationVersion(current, latest) {
|
|
28463
|
+
const a = installationVersion(current).replace(/\+.*/, "");
|
|
28464
|
+
const b = installationVersion(latest).replace(/\+.*/, "");
|
|
28465
|
+
const coreA = a.replace(/-.*/, "").split(".").map(BigInt);
|
|
28466
|
+
const coreB = b.replace(/-.*/, "").split(".").map(BigInt);
|
|
28467
|
+
for (let i = 0; i < Math.max(coreA.length, coreB.length); i++) {
|
|
28468
|
+
if ((coreA[i] ?? 0n) !== (coreB[i] ?? 0n))
|
|
28469
|
+
return (coreB[i] ?? 0n) > (coreA[i] ?? 0n);
|
|
28470
|
+
}
|
|
28471
|
+
const preA = a.includes("-") ? a.slice(a.indexOf("-") + 1).split(".") : [];
|
|
28472
|
+
const preB = b.includes("-") ? b.slice(b.indexOf("-") + 1).split(".") : [];
|
|
28473
|
+
if (!preA.length || !preB.length)
|
|
28474
|
+
return !!preA.length && !preB.length;
|
|
28475
|
+
for (let i = 0; i < Math.max(preA.length, preB.length); i++) {
|
|
28476
|
+
const x3 = preA[i];
|
|
28477
|
+
const y = preB[i];
|
|
28478
|
+
if (x3 === y)
|
|
28479
|
+
continue;
|
|
28480
|
+
if (x3 === void 0 || y === void 0)
|
|
28481
|
+
return x3 === void 0;
|
|
28482
|
+
const numericX = /^\d+$/.test(x3);
|
|
28483
|
+
const numericY = /^\d+$/.test(y);
|
|
28484
|
+
if (numericX && numericY) {
|
|
28485
|
+
if (BigInt(x3) === BigInt(y))
|
|
28486
|
+
continue;
|
|
28487
|
+
return BigInt(y) > BigInt(x3);
|
|
28488
|
+
}
|
|
28489
|
+
if (numericX !== numericY)
|
|
28490
|
+
return numericX;
|
|
28491
|
+
return y > x3;
|
|
28492
|
+
}
|
|
28493
|
+
return false;
|
|
28494
|
+
}
|
|
28495
|
+
function createInstallationManager(options) {
|
|
28496
|
+
let checking;
|
|
28497
|
+
let updating;
|
|
28498
|
+
const check2 = () => checking ??= options.check().finally(() => {
|
|
28499
|
+
checking = void 0;
|
|
28500
|
+
});
|
|
28501
|
+
return (action) => {
|
|
28502
|
+
if (updating)
|
|
28503
|
+
return updating;
|
|
28504
|
+
if (action === "check")
|
|
28505
|
+
return check2();
|
|
28506
|
+
updating = (async () => {
|
|
28507
|
+
const before = await check2();
|
|
28508
|
+
if (!before.updateAvailable)
|
|
28509
|
+
return before;
|
|
28510
|
+
if (!before.canUpdate)
|
|
28511
|
+
throw new Error(before.message ?? "This installation cannot be updated automatically");
|
|
28512
|
+
await options.update(before);
|
|
28513
|
+
const after = await check2();
|
|
28514
|
+
if (after.currentVersion === before.currentVersion)
|
|
28515
|
+
throw new Error("The Harness version did not change; check the native updater and retry");
|
|
28516
|
+
return after;
|
|
28517
|
+
})().finally(() => {
|
|
28518
|
+
updating = void 0;
|
|
28519
|
+
});
|
|
28520
|
+
return updating;
|
|
28521
|
+
};
|
|
28522
|
+
}
|
|
28523
|
+
|
|
28284
28524
|
// ../qoder/dist/qoder-command.js
|
|
28285
28525
|
var QoderExecutableError = class extends Error {
|
|
28286
28526
|
code = "QODER_NOT_FOUND";
|
|
@@ -28344,7 +28584,52 @@ function resolveQoderExecutable(input = {}, dependencies = {}) {
|
|
|
28344
28584
|
}, dependencies);
|
|
28345
28585
|
if (!resolution)
|
|
28346
28586
|
throw new QoderExecutableError("Qoder CLI is not installed");
|
|
28347
|
-
return targetPath(platform).isAbsolute(resolution.executable) ? resolution.executable :
|
|
28587
|
+
return targetPath(platform).isAbsolute(resolution.executable) ? resolution.executable : path4.resolve(resolution.executable);
|
|
28588
|
+
}
|
|
28589
|
+
|
|
28590
|
+
// ../qoder/dist/qoder-account.js
|
|
28591
|
+
var record2 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
28592
|
+
var nonnegative = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
28593
|
+
function creditAmount(used, limit, unit) {
|
|
28594
|
+
if (!nonnegative(used) || !nonnegative(limit))
|
|
28595
|
+
return void 0;
|
|
28596
|
+
return {
|
|
28597
|
+
used,
|
|
28598
|
+
limit,
|
|
28599
|
+
unit: typeof unit === "string" && unit.trim() ? unit : "credits"
|
|
28600
|
+
};
|
|
28601
|
+
}
|
|
28602
|
+
function projectQoderAccount(usage, identity) {
|
|
28603
|
+
const data = record2(usage);
|
|
28604
|
+
const account = record2(identity);
|
|
28605
|
+
const quota = record2(data.userQuota);
|
|
28606
|
+
const shared = record2(data.orgResourcePackage);
|
|
28607
|
+
const nativePercent = quota.percentage ?? data.totalUsagePercentage;
|
|
28608
|
+
const usedPercent = nonnegative(nativePercent) ? Math.min(100, nativePercent) : nonnegative(quota.used) && nonnegative(quota.total) && quota.total > 0 ? Math.min(100, quota.used / quota.total * 100) : void 0;
|
|
28609
|
+
if (usedPercent === void 0)
|
|
28610
|
+
return null;
|
|
28611
|
+
const result = harnessAccountSnapshotSchema.safeParse({
|
|
28612
|
+
...typeof account.email === "string" && account.email ? { email: account.email } : {},
|
|
28613
|
+
...typeof account.subscriptionType === "string" && account.subscriptionType ? { plan: account.subscriptionType } : typeof data.userType === "string" ? { plan: data.userType } : {},
|
|
28614
|
+
credits: {
|
|
28615
|
+
usedPercent,
|
|
28616
|
+
periodType: "unknown",
|
|
28617
|
+
label: "Plan credits",
|
|
28618
|
+
...shared.available === true && nonnegative(shared.percentage) && nonnegative(shared.used) && nonnegative(shared.cap) && shared.cap > 0 ? {
|
|
28619
|
+
productUsage: [
|
|
28620
|
+
{
|
|
28621
|
+
product: "Shared resource credits",
|
|
28622
|
+
usagePercent: Math.min(100, shared.percentage),
|
|
28623
|
+
used: shared.used,
|
|
28624
|
+
limit: shared.cap,
|
|
28625
|
+
unit: typeof shared.unit === "string" ? shared.unit : "credits"
|
|
28626
|
+
}
|
|
28627
|
+
]
|
|
28628
|
+
} : {},
|
|
28629
|
+
...creditAmount(quota.used, quota.total, quota.unit)
|
|
28630
|
+
}
|
|
28631
|
+
});
|
|
28632
|
+
return result.success ? result.data : null;
|
|
28348
28633
|
}
|
|
28349
28634
|
|
|
28350
28635
|
// ../qoder/dist/qoder-errors.js
|
|
@@ -29849,8 +30134,8 @@ function getErrorMap2() {
|
|
|
29849
30134
|
|
|
29850
30135
|
// ../../../node_modules/zod/v3/helpers/parseUtil.js
|
|
29851
30136
|
var makeIssue = (params) => {
|
|
29852
|
-
const { data, path:
|
|
29853
|
-
const fullPath = [...
|
|
30137
|
+
const { data, path: path6, errorMaps, issueData } = params;
|
|
30138
|
+
const fullPath = [...path6, ...issueData.path || []];
|
|
29854
30139
|
const fullIssue = {
|
|
29855
30140
|
...issueData,
|
|
29856
30141
|
path: fullPath
|
|
@@ -29965,11 +30250,11 @@ var errorUtil;
|
|
|
29965
30250
|
|
|
29966
30251
|
// ../../../node_modules/zod/v3/types.js
|
|
29967
30252
|
var ParseInputLazyPath = class {
|
|
29968
|
-
constructor(parent, value,
|
|
30253
|
+
constructor(parent, value, path6, key) {
|
|
29969
30254
|
this._cachedPath = [];
|
|
29970
30255
|
this.parent = parent;
|
|
29971
30256
|
this.data = value;
|
|
29972
|
-
this._path =
|
|
30257
|
+
this._path = path6;
|
|
29973
30258
|
this._key = key;
|
|
29974
30259
|
}
|
|
29975
30260
|
get path() {
|
|
@@ -33496,11 +33781,11 @@ function normalizeObjectSchema(schema) {
|
|
|
33496
33781
|
}
|
|
33497
33782
|
return void 0;
|
|
33498
33783
|
}
|
|
33499
|
-
function getDotPath(
|
|
33500
|
-
if (
|
|
33784
|
+
function getDotPath(path6) {
|
|
33785
|
+
if (path6.length === 0) {
|
|
33501
33786
|
return "object root";
|
|
33502
33787
|
}
|
|
33503
|
-
return
|
|
33788
|
+
return path6.reduce((acc, seg, index) => {
|
|
33504
33789
|
if (index === 0) {
|
|
33505
33790
|
return String(seg);
|
|
33506
33791
|
}
|
|
@@ -52103,6 +52388,40 @@ var QoderAdapter = class {
|
|
|
52103
52388
|
this.#getAvailableModels = options.getAvailableModels;
|
|
52104
52389
|
this.#resolveExecutable = options.resolveExecutable ?? ((input, dependencies) => resolveQoderExecutable({ ...input, variant: this.#variant }, dependencies));
|
|
52105
52390
|
}
|
|
52391
|
+
async inspectAccount() {
|
|
52392
|
+
let probe;
|
|
52393
|
+
let timer;
|
|
52394
|
+
try {
|
|
52395
|
+
const executable = this.#resolveExecutable({
|
|
52396
|
+
...this.#commandOverride ? { command: this.#commandOverride } : {},
|
|
52397
|
+
environment: this.#environment,
|
|
52398
|
+
platform: this.#platform
|
|
52399
|
+
});
|
|
52400
|
+
probe = this.#queryFactory({
|
|
52401
|
+
prompt: "",
|
|
52402
|
+
options: {
|
|
52403
|
+
cwd: process.cwd(),
|
|
52404
|
+
pathToQoderCLIExecutable: executable,
|
|
52405
|
+
...this.#environment ? { env: this.#environment } : {},
|
|
52406
|
+
auth: qoderAuthForEnvironment(this.#variant, this.#environment)
|
|
52407
|
+
}
|
|
52408
|
+
});
|
|
52409
|
+
return await Promise.race([
|
|
52410
|
+
Promise.all([probe.getUsageInfo?.(), probe.accountInfo?.().catch(() => void 0)]).then(([usage, identity]) => projectQoderAccount(usage, identity)),
|
|
52411
|
+
new Promise((resolve) => {
|
|
52412
|
+
timer = setTimeout(() => resolve(null), 1e4);
|
|
52413
|
+
})
|
|
52414
|
+
]);
|
|
52415
|
+
} catch {
|
|
52416
|
+
return null;
|
|
52417
|
+
} finally {
|
|
52418
|
+
clearTimeout(timer);
|
|
52419
|
+
try {
|
|
52420
|
+
await probe?.close();
|
|
52421
|
+
} catch {
|
|
52422
|
+
}
|
|
52423
|
+
}
|
|
52424
|
+
}
|
|
52106
52425
|
async inspect(input) {
|
|
52107
52426
|
const cacheKey = input?.cwd ?? "";
|
|
52108
52427
|
if (input?.refresh) {
|
|
@@ -52275,7 +52594,7 @@ var QoderAdapter = class {
|
|
|
52275
52594
|
sourceInfo = await this.#getSessionInfo(sourceRef.data.nativeSessionId, { dir: input.cwd });
|
|
52276
52595
|
} catch {
|
|
52277
52596
|
}
|
|
52278
|
-
if (sourceInfo?.cwd &&
|
|
52597
|
+
if (sourceInfo?.cwd && path5.resolve(sourceInfo.cwd) !== path5.resolve(input.cwd)) {
|
|
52279
52598
|
return {
|
|
52280
52599
|
ok: false,
|
|
52281
52600
|
error: {
|
|
@@ -52429,13 +52748,59 @@ var QoderAdapter = class {
|
|
|
52429
52748
|
}
|
|
52430
52749
|
};
|
|
52431
52750
|
|
|
52751
|
+
// ../qoder/dist/installation.js
|
|
52752
|
+
function createQoderInstallation(environment, command, variant = "global") {
|
|
52753
|
+
const run = (args, timeout) => runInstallationCommand(resolveQoderExecutable({ environment, variant, ...command ? { command } : {} }), args, environment, timeout);
|
|
52754
|
+
return createInstallationManager({
|
|
52755
|
+
async check() {
|
|
52756
|
+
const currentVersion = versionFromOutput(await run(["--version"]));
|
|
52757
|
+
if (variant === "cn" && !(await run(["update", "--help"]).catch(() => "")).includes("--check"))
|
|
52758
|
+
return {
|
|
52759
|
+
currentVersion,
|
|
52760
|
+
latestVersion: "Unknown",
|
|
52761
|
+
updateAvailable: false,
|
|
52762
|
+
canUpdate: false,
|
|
52763
|
+
message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
|
|
52764
|
+
};
|
|
52765
|
+
const output = await run(["update", "--check"]);
|
|
52766
|
+
const available = output.match(/Update available:\s*\S+\s*(?:->|\u2192)\s*(\S+)/i);
|
|
52767
|
+
if (available?.[1])
|
|
52768
|
+
return {
|
|
52769
|
+
currentVersion,
|
|
52770
|
+
latestVersion: installationVersion(available[1]),
|
|
52771
|
+
updateAvailable: newerInstallationVersion(currentVersion, installationVersion(available[1])),
|
|
52772
|
+
canUpdate: true
|
|
52773
|
+
};
|
|
52774
|
+
if (!/already\s+(?:on|at)\s+(?:the\s+)?latest|up.to.date|no updates?\s+available/i.test(output))
|
|
52775
|
+
throw new Error("Qoder update check returned an unknown response");
|
|
52776
|
+
return {
|
|
52777
|
+
currentVersion,
|
|
52778
|
+
latestVersion: currentVersion,
|
|
52779
|
+
updateAvailable: false,
|
|
52780
|
+
canUpdate: true
|
|
52781
|
+
};
|
|
52782
|
+
},
|
|
52783
|
+
async update() {
|
|
52784
|
+
await run(["update"], 3e5);
|
|
52785
|
+
}
|
|
52786
|
+
});
|
|
52787
|
+
}
|
|
52788
|
+
|
|
52789
|
+
// ../qoder/dist/plugin.js
|
|
52790
|
+
function createHarnessAdapter(context, variant = "global") {
|
|
52791
|
+
const environment = { ...context.environment };
|
|
52792
|
+
const command = environment[variant === "cn" ? CODEXHOST_QODERCN_COMMAND : CODEXHOST_QODER_COMMAND];
|
|
52793
|
+
return Object.assign(new QoderAdapter({
|
|
52794
|
+
...command ? { commandOverride: command } : {},
|
|
52795
|
+
variant,
|
|
52796
|
+
environment,
|
|
52797
|
+
platform: context.platform
|
|
52798
|
+
}), { installation: createQoderInstallation(environment, command, variant) });
|
|
52799
|
+
}
|
|
52800
|
+
|
|
52432
52801
|
// dist/plugin.js
|
|
52433
52802
|
function createHarnessAdapter2(context) {
|
|
52434
|
-
return
|
|
52435
|
-
variant: "cn",
|
|
52436
|
-
environment: { ...context.environment },
|
|
52437
|
-
platform: context.platform
|
|
52438
|
-
});
|
|
52803
|
+
return createHarnessAdapter(context, "cn");
|
|
52439
52804
|
}
|
|
52440
52805
|
export {
|
|
52441
52806
|
createHarnessAdapter2 as createHarnessAdapter
|