@eddyskywalker/dsh-chatgpt-subscription 1.2.1 → 1.3.0
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/lib/client.js +18 -5
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +139 -2
- package/lib/index.js +13 -11
- package/lib/reverse-board.js +121 -30
- package/lib/types/client/features/progress-updates/settings-section.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/providers/chatgpt-api/adapter.d.ts.map +1 -1
- package/lib/types/host/providers/qoder/mapper.d.ts +7 -0
- package/lib/types/host/providers/qoder/mapper.d.ts.map +1 -1
- package/lib/types/host/runtime/codemode/transport.d.ts.map +1 -1
- package/lib/types/host/runtime/presets/reverse-persona.d.ts.map +1 -1
- package/lib/types/host/runtime/reverse/frontier.d.ts +4 -0
- package/lib/types/host/runtime/reverse/frontier.d.ts.map +1 -1
- package/lib/types/host/runtime/reverse/store.d.ts +17 -2
- package/lib/types/host/runtime/reverse/store.d.ts.map +1 -1
- package/lib/types/host/runtime/reverse/tool.d.ts +1 -1
- package/lib/types/host/runtime/reverse/tool.d.ts.map +1 -1
- package/package.json +1 -1
- package/presets/reverse/README.md +2 -2
- package/presets/reverse/agent.cordis.yml +11 -19
package/lib/codemode.js
CHANGED
|
@@ -1233,7 +1233,7 @@ function escalationGuidance(sandboxMode) {
|
|
|
1233
1233
|
function buildTransportDescription(runtime) {
|
|
1234
1234
|
const flavor = resolveFlavor(runtime);
|
|
1235
1235
|
const instructions = typeof runtime?.executionInstructions === "string" && runtime.executionInstructions.length > 0 ? ` ${runtime.executionInstructions}` : "";
|
|
1236
|
-
return flavor.description + instructions + " Each program starts in the Session's current directory. Running programs keep their initial directory." + escalationGuidance(runtime?.sandboxMode);
|
|
1236
|
+
return flavor.description + instructions + " Every call must include a non-empty `code` program; `description` is metadata and never a substitute. Each program starts in the Session's current directory. Running programs keep their initial directory." + escalationGuidance(runtime?.sandboxMode);
|
|
1237
1237
|
}
|
|
1238
1238
|
function buildTransportParameters(runtime) {
|
|
1239
1239
|
const flavor = resolveFlavor(runtime);
|
|
@@ -1347,6 +1347,12 @@ function createTransportDefinition(host, rules) {
|
|
|
1347
1347
|
kind: "execute"
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
1350
|
+
const directFile = directFileCallOf(args);
|
|
1351
|
+
if (directFile !== void 0) return {
|
|
1352
|
+
card: "generic",
|
|
1353
|
+
title: directFile.description ?? "Run a file tool",
|
|
1354
|
+
kind: "execute"
|
|
1355
|
+
};
|
|
1350
1356
|
try {
|
|
1351
1357
|
const input = readArguments(args);
|
|
1352
1358
|
return {
|
|
@@ -1361,7 +1367,8 @@ function createTransportDefinition(host, rules) {
|
|
|
1361
1367
|
},
|
|
1362
1368
|
async execute(args, exec) {
|
|
1363
1369
|
const directShell = directShellCallOf(args);
|
|
1364
|
-
const
|
|
1370
|
+
const directFile = directShell === void 0 ? directFileCallOf(args) : void 0;
|
|
1371
|
+
const input = directShell !== void 0 ? readShellArguments(directShell) : directFile !== void 0 ? readFileArguments(directFile) : readArguments(args);
|
|
1365
1372
|
const runtime = host.runtime();
|
|
1366
1373
|
if (runtime === void 0) throw new CodemodeContextUnavailableError("codemode: no PTC runtime is mounted (ctx.ptcRuntime); the program transport is unavailable");
|
|
1367
1374
|
if (input.timeoutMs !== void 0 && runtime.timeout !== void 0 === false && isStrictTimeoutUnsupported(runtime)) throw new CodemodeArgsError("timeoutMs is not available for this PTC runtime");
|
|
@@ -1375,6 +1382,10 @@ function createTransportDefinition(host, rules) {
|
|
|
1375
1382
|
const shell = shellToolOf(catalog);
|
|
1376
1383
|
if (shell === void 0) throw missingCodeError(directShell.record, directShell.raw);
|
|
1377
1384
|
code = shellProgramFor(shell, directShell.record);
|
|
1385
|
+
} else if (directFile !== void 0) {
|
|
1386
|
+
const target = directFileToolOf(catalog, directFile);
|
|
1387
|
+
if (target === void 0) throw missingCodeError(directFile.record, directFile.raw);
|
|
1388
|
+
code = fileProgramFor(target.entry, target.args);
|
|
1378
1389
|
}
|
|
1379
1390
|
const runController = new AbortController();
|
|
1380
1391
|
const onOuterAbort = () => {
|
|
@@ -1932,6 +1943,33 @@ const SHELL_TOOL_NAMES = Object.freeze([
|
|
|
1932
1943
|
"bash",
|
|
1933
1944
|
"pwsh"
|
|
1934
1945
|
]);
|
|
1946
|
+
/** 模型把文件工具入参直接发给 `code_run` 时可能出现的键。 */
|
|
1947
|
+
const FILE_ARG_KEYS = /* @__PURE__ */ new Set([
|
|
1948
|
+
"file_path",
|
|
1949
|
+
"path",
|
|
1950
|
+
"pattern",
|
|
1951
|
+
"include",
|
|
1952
|
+
"old_string",
|
|
1953
|
+
"new_string",
|
|
1954
|
+
"content",
|
|
1955
|
+
"input"
|
|
1956
|
+
]);
|
|
1957
|
+
/** 可接住直接文件工具调用的工具名;顺序即同场竞争时的优先级。 */
|
|
1958
|
+
const FILE_TOOL_NAMES = Object.freeze([
|
|
1959
|
+
"edit",
|
|
1960
|
+
"write",
|
|
1961
|
+
"read",
|
|
1962
|
+
"read_image",
|
|
1963
|
+
"apply_patch",
|
|
1964
|
+
"grep",
|
|
1965
|
+
"glob"
|
|
1966
|
+
]);
|
|
1967
|
+
/** `code_run` 自己用于卡片标题、不属于目标文件工具的键。 */
|
|
1968
|
+
const DIRECT_META_KEYS = /* @__PURE__ */ new Set([
|
|
1969
|
+
"description",
|
|
1970
|
+
"desc",
|
|
1971
|
+
"summary"
|
|
1972
|
+
]);
|
|
1935
1973
|
/** 模型把「先汇报再执行」写成一次调用时,简报落在 `progress_update` 的那两个键上。 */
|
|
1936
1974
|
const NARRATION_TITLE_KEY = "title";
|
|
1937
1975
|
/** 见 {@link NARRATION_TITLE_KEY}。 */
|
|
@@ -2106,6 +2144,105 @@ function readShellArguments(direct) {
|
|
|
2106
2144
|
description: direct.description ?? descriptionFromCode(command)
|
|
2107
2145
|
};
|
|
2108
2146
|
}
|
|
2147
|
+
/**
|
|
2148
|
+
* 认出「文件工具参数被直接发进 code_run」的形态。
|
|
2149
|
+
*
|
|
2150
|
+
* 与 Shell 兜底同一条审计线:模型经常把 `edit` / `write` / `read` 的参数直接发给
|
|
2151
|
+
* `code_run`,此时它已经表达了完整意图,只差一层 `tools.<name>(...)` 包装。这里只收
|
|
2152
|
+
* 可识别的文件参数字段;是否真的执行由清单里的目标工具与严格形状共同决定。
|
|
2153
|
+
*/
|
|
2154
|
+
function directFileCallOf(args) {
|
|
2155
|
+
let parsed;
|
|
2156
|
+
try {
|
|
2157
|
+
parsed = parseArguments(args);
|
|
2158
|
+
} catch {
|
|
2159
|
+
return;
|
|
2160
|
+
}
|
|
2161
|
+
const record = parsed.record;
|
|
2162
|
+
if (CODE_KEYS.some((key) => stringOf(record[key]) !== void 0)) return void 0;
|
|
2163
|
+
const fileTarget = stringOf(record["file_path"]) ?? stringOf(record["path"]);
|
|
2164
|
+
const content = stringOf(record["content"]);
|
|
2165
|
+
if (codeOf(record) !== void 0 && !(fileTarget !== void 0 && content !== void 0)) return void 0;
|
|
2166
|
+
if (stringOf(record["command"]) !== void 0) return void 0;
|
|
2167
|
+
if (!Object.keys(record).filter((key) => !DIRECT_META_KEYS.has(key)).some((key) => FILE_ARG_KEYS.has(key))) return void 0;
|
|
2168
|
+
const description = stringOf(record["description"])?.trim() ?? stringOf(record["desc"])?.trim() ?? stringOf(record["summary"])?.trim();
|
|
2169
|
+
return {
|
|
2170
|
+
record,
|
|
2171
|
+
...description === void 0 ? {} : { description },
|
|
2172
|
+
raw: parsed.raw,
|
|
2173
|
+
...parsed.narration === void 0 ? {} : { narration: parsed.narration }
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
/** 参数 schema 里不属于工具参数的元键(扁平 schema 形态下需要排除)。 */
|
|
2177
|
+
const SCHEMA_META_KEYS = /* @__PURE__ */ new Set([
|
|
2178
|
+
"type",
|
|
2179
|
+
"properties",
|
|
2180
|
+
"required",
|
|
2181
|
+
"additionalProperties",
|
|
2182
|
+
"$schema",
|
|
2183
|
+
"title",
|
|
2184
|
+
"description"
|
|
2185
|
+
]);
|
|
2186
|
+
/**
|
|
2187
|
+
* 对象参数 schema 的顶层属性与必填项。
|
|
2188
|
+
*
|
|
2189
|
+
* 兼容宿主的两种真实形态:标准 JSON Schema 的 `{ type, properties, required }`,
|
|
2190
|
+
* 以及 DSH 工具定义常用的「属性名 → 参数规格」扁平对象(必填写在属性上)。
|
|
2191
|
+
*/
|
|
2192
|
+
function objectShapeOf(parameters) {
|
|
2193
|
+
if (!isRecord(parameters)) return void 0;
|
|
2194
|
+
const nested = isRecord(parameters["properties"]) ? parameters["properties"] : void 0;
|
|
2195
|
+
const specs = nested ?? parameters;
|
|
2196
|
+
const properties = new Set(Object.keys(specs).filter((key) => !SCHEMA_META_KEYS.has(key)));
|
|
2197
|
+
const required = /* @__PURE__ */ new Set();
|
|
2198
|
+
if (nested !== void 0 && Array.isArray(parameters["required"])) {
|
|
2199
|
+
for (const key of parameters["required"]) if (typeof key === "string") required.add(key);
|
|
2200
|
+
}
|
|
2201
|
+
for (const [key, spec] of Object.entries(specs)) if (isRecord(spec) && spec["required"] === true) required.add(key);
|
|
2202
|
+
return {
|
|
2203
|
+
properties,
|
|
2204
|
+
required
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* 找出唯一的文件工具承接者。
|
|
2209
|
+
*
|
|
2210
|
+
* 不允许「看起来像」就猜:参数里每个非标题键都必须出现在该工具的 properties 中,
|
|
2211
|
+
* 且该工具声明的 required 必须齐全;多个候选同时成立时按 {@link FILE_TOOL_NAMES}
|
|
2212
|
+
* 的优先级取第一个(例如只有 `file_path` 时优先 `read`,不是 `read_image`)。
|
|
2213
|
+
*/
|
|
2214
|
+
function directFileToolOf(catalog, direct) {
|
|
2215
|
+
for (const name of FILE_TOOL_NAMES) {
|
|
2216
|
+
const entry = catalog.find((candidate) => candidate.name === name);
|
|
2217
|
+
if (entry === void 0) continue;
|
|
2218
|
+
const shape = objectShapeOf(entry.parameters);
|
|
2219
|
+
if (shape === void 0) continue;
|
|
2220
|
+
const normalized = normalizeSubCallArgs(entry, direct.record);
|
|
2221
|
+
if (!isRecord(normalized)) continue;
|
|
2222
|
+
const keys = Object.keys(normalized).filter((key) => !DIRECT_META_KEYS.has(key));
|
|
2223
|
+
if (keys.length === 0) continue;
|
|
2224
|
+
if (!keys.every((key) => shape.properties.has(key))) continue;
|
|
2225
|
+
if ([...shape.required].some((key) => normalized[key] === void 0)) continue;
|
|
2226
|
+
return {
|
|
2227
|
+
entry,
|
|
2228
|
+
args: normalized
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
/** 把文件工具参数包成一条调用真实工具的程序。 */
|
|
2233
|
+
function fileProgramFor(entry, record) {
|
|
2234
|
+
const args = {};
|
|
2235
|
+
for (const key of Object.keys(record)) if (!DIRECT_META_KEYS.has(key)) args[key] = record[key];
|
|
2236
|
+
return "return await tools." + entry.name + "(" + JSON.stringify(args) + ")";
|
|
2237
|
+
}
|
|
2238
|
+
/** 把文件工具调用读成程序传输的标题(真正源码要等工具清单才能生成)。 */
|
|
2239
|
+
function readFileArguments(direct) {
|
|
2240
|
+
return {
|
|
2241
|
+
code: "",
|
|
2242
|
+
description: direct.description ?? "Run a file tool",
|
|
2243
|
+
...direct.narration === void 0 ? {} : { narration: direct.narration }
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2109
2246
|
/** 一段文本像不像程序源码(模型把源码直接发成字符串时判这个)。 */
|
|
2110
2247
|
function looksLikeProgram(text) {
|
|
2111
2248
|
return text.includes("\n") || /\b(await|return|const|let|function|import|console\.)\b/.test(text);
|
package/lib/index.js
CHANGED
|
@@ -891,7 +891,7 @@ const ROUTE_PREFIX$6 = "/api/dsh-chatgpt-subscription";
|
|
|
891
891
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
892
892
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
893
893
|
*/
|
|
894
|
-
const PLUGIN_VERSION = "1.
|
|
894
|
+
const PLUGIN_VERSION = "1.3.0";
|
|
895
895
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
896
896
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
897
897
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -107039,11 +107039,12 @@ function qoderQueueExhaustedError(base, attempts, waitedMs) {
|
|
|
107039
107039
|
/**
|
|
107040
107040
|
* 上游是不是在说「额度用尽」。
|
|
107041
107041
|
*
|
|
107042
|
-
*
|
|
107042
|
+
* 认三种凭据:业务码 112 / 110,以及 403 搭配的额度信号(`isQuotaExceeded` / 购买页)。
|
|
107043
107043
|
* 额度用尽不是「这个账号坏了」,所以它归 QUOTA 而不是 AUTH——它只能等周期重置或加购。
|
|
107044
107044
|
*/
|
|
107045
107045
|
function isQoderQuotaExhausted(facts, status) {
|
|
107046
107046
|
if (facts.codes.includes("112")) return true;
|
|
107047
|
+
if (facts.codes.includes("110")) return true;
|
|
107047
107048
|
if (status !== void 0 && status !== 403) return false;
|
|
107048
107049
|
return facts.quotaExceeded === true || facts.pricingUrl !== void 0;
|
|
107049
107050
|
}
|
|
@@ -122197,8 +122198,8 @@ const REVERSE_PERSONA = [
|
|
|
122197
122198
|
"## R-1 · Planes",
|
|
122198
122199
|
"",
|
|
122199
122200
|
"- Depth 0 = Steward: init, open/close/merge Cells, answer Questions, request handoff, run watchdog, settle finish, report/audit. Do not decompile or trace targets.",
|
|
122200
|
-
"- Depth 1 = Cell: bind to one open Cell on first frontier call, then claim or delegate actions. A later attempt to bind another Cell is denied.",
|
|
122201
|
-
"- Depth 2 = Worker: inherit the parent Cell, claim one action, execute, write evidence, then stop or hand off. May spawn one Subworker for a bounded slice.",
|
|
122201
|
+
"- Depth 1 = Cell: bind to one open Cell on first frontier call, then claim or delegate distinct unclaimed actions. A later attempt to bind another Cell is denied.",
|
|
122202
|
+
"- Depth 2 = Worker: inherit the parent Cell, claim one unclaimed action, execute, write evidence, then stop or hand off. Never contend for a sibling Worker's claim or wait for it. May spawn one Subworker for a bounded slice.",
|
|
122202
122203
|
"- Depth 3 = Subworker: one bounded slice; never spawn another agent.",
|
|
122203
122204
|
"",
|
|
122204
122205
|
"## R-2 · Graph",
|
|
@@ -122209,11 +122210,12 @@ const REVERSE_PERSONA = [
|
|
|
122209
122210
|
"",
|
|
122210
122211
|
"## R-3 · Frontier and Claims",
|
|
122211
122212
|
"",
|
|
122212
|
-
"1. Call reverse_board {action:\"frontier\"}; your Cell is enforced by the host.
|
|
122213
|
-
"2.
|
|
122214
|
-
"3.
|
|
122215
|
-
"4.
|
|
122216
|
-
"5.
|
|
122213
|
+
"1. Call reverse_board {action:\"frontier\"}; your Cell is enforced by the host. A new Cell exposes one plan action, so do not fan out Workers for a singleton frontier: run it in one actor or open another Cell.",
|
|
122214
|
+
"2. frontier hides actions with a live claim and reports status ready/blocked/empty, available and activeClaims. Size Worker count by available actions, not by Cells. empty is not completion.",
|
|
122215
|
+
"3. Prefer {action:\"claim\", operation:\"next\"}: the host selects and claims an unclaimed action atomically. Use actionId with operation:\"acquire\" only when you already have a specific action. Keep the claimToken and fencing. A CLAIM_CONFLICT or NO_ACTION is final for this attempt: hand off or stop. Never poll or wait for the TTL.",
|
|
122216
|
+
"4. Renew before expiry with operation:\"renew\", or release with operation:\"release\". Expired or stale fencing cannot write; reacquire after expiry. Do not use another actor token.",
|
|
122217
|
+
"5. record and evidence require the active claimToken. Cross-Cell nodes and paths outside scope are denied.",
|
|
122218
|
+
"6. The producer of a Finding cannot claim its verify action; leave it for an independent verifier.",
|
|
122217
122219
|
"",
|
|
122218
122220
|
"## R-4 · Route Islands",
|
|
122219
122221
|
"",
|
|
@@ -122222,7 +122224,7 @@ const REVERSE_PERSONA = [
|
|
|
122222
122224
|
"## R-5 · Evidence Gate",
|
|
122223
122225
|
"",
|
|
122224
122226
|
"A new Finding starts proposed/queued. evidence supplies tool, command, inputHash and outputHash or content; content is persisted under evidence/ with its actual SHA-256. Evidence moves the Finding to observed. After reproduction, record reproduced.",
|
|
122225
|
-
"Only another actor can verify: the verifier claims verify, writes independent evidence with reproduction steps, then records verified. The host rejects self-verification and skipped states. The finish intent cites verified Finding ids only; later facts invalidate it. Steward settles after graph quiet and never self-accepts on behalf of a worker.",
|
|
122227
|
+
"Only another actor can verify: the verifier claims verify, writes independent evidence with reproduction steps, then records verified and releases the verify claim. The host rejects self-verification and skipped states. The finish intent cites verified Finding ids only; later facts invalidate it. Steward settles after graph quiet and never self-accepts on behalf of a worker.",
|
|
122226
122228
|
"",
|
|
122227
122229
|
"## R-6 · Locks, Handoff and Watchdog",
|
|
122228
122230
|
"",
|
|
@@ -144942,7 +144944,7 @@ var ChatGptApiAdapter = class extends LlmAdapter {
|
|
|
144942
144944
|
}
|
|
144943
144945
|
async *requestStream(options, entry, signal, activity) {
|
|
144944
144946
|
const settings = await this.settingsStore.read();
|
|
144945
|
-
const commonOptions = options;
|
|
144947
|
+
const commonOptions = normalizeGenerateOptions(options);
|
|
144946
144948
|
const images = this.options.attachments === void 0 ? NO_RESOLVED_IMAGES$3 : await resolveRequestImages$1(commonOptions, this.options.attachments, signal);
|
|
144947
144949
|
const sessionId = typeof options.sessionId === "string" ? options.sessionId : void 0;
|
|
144948
144950
|
const cacheKey = sessionCacheKey(sessionId);
|
package/lib/reverse-board.js
CHANGED
|
@@ -207,6 +207,13 @@ function computeFrontier(state, options = {}) {
|
|
|
207
207
|
params
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
+
if (options.excludeClaimed === true) {
|
|
211
|
+
const now = options.now ?? Date.now();
|
|
212
|
+
actions = actions.filter((action) => {
|
|
213
|
+
const claim = state.claims[action.actionId];
|
|
214
|
+
return claim === void 0 || claim.status !== "active" || claim.expiresAt <= now;
|
|
215
|
+
});
|
|
216
|
+
}
|
|
210
217
|
const eliteCap = Math.max(1, Math.min(20, Math.trunc(options.eliteCap ?? 2)));
|
|
211
218
|
const byIsland = /* @__PURE__ */ new Map();
|
|
212
219
|
for (const action of actions) {
|
|
@@ -325,6 +332,7 @@ function goalFromTemplate(input) {
|
|
|
325
332
|
//#endregion
|
|
326
333
|
//#region src/host/runtime/reverse/store.ts
|
|
327
334
|
/** Append-only reverse graph, claims, evidence and recovery protocols. @module */
|
|
335
|
+
const CLAIM_HANDOFF_AFTER_MS = 10 * 6e4;
|
|
328
336
|
function isRecord$1(value) {
|
|
329
337
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
330
338
|
}
|
|
@@ -735,12 +743,37 @@ var ReverseStore = class ReverseStore {
|
|
|
735
743
|
frontier(options = {}) {
|
|
736
744
|
return computeFrontier(this.stateValue, options);
|
|
737
745
|
}
|
|
738
|
-
|
|
746
|
+
frontierView(options = {}) {
|
|
747
|
+
const now = options.now ?? Date.now();
|
|
748
|
+
const projected = computeFrontier(this.stateValue, {
|
|
749
|
+
...options,
|
|
750
|
+
limit: 1e3,
|
|
751
|
+
eliteCap: 1e3,
|
|
752
|
+
excludeClaimed: false
|
|
753
|
+
});
|
|
754
|
+
const actionIds = new Set(projected.map((action) => action.actionId));
|
|
755
|
+
const activeClaims = Object.values(this.stateValue.claims).filter((claim) => actionIds.has(claim.actionId) && claim.status === "active" && claim.expiresAt > now);
|
|
756
|
+
const available = projected.filter((action) => {
|
|
757
|
+
const claim = this.stateValue.claims[action.actionId];
|
|
758
|
+
return claim === void 0 || claim.status !== "active" || claim.expiresAt <= now;
|
|
759
|
+
});
|
|
760
|
+
return {
|
|
761
|
+
actions: computeFrontier(this.stateValue, {
|
|
762
|
+
...options,
|
|
763
|
+
excludeClaimed: true,
|
|
764
|
+
now
|
|
765
|
+
}),
|
|
766
|
+
available: available.length,
|
|
767
|
+
activeClaims
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
async claim(actionId, actor, ttlSeconds = 900, operation = "acquire", token, filters = {}) {
|
|
739
771
|
return this.withLock(async () => {
|
|
740
772
|
const cell = this.cellFor(actor);
|
|
741
|
-
const existing = this.stateValue.claims[actionId];
|
|
742
773
|
const now = Date.now();
|
|
743
774
|
if (operation === "renew" || operation === "release") {
|
|
775
|
+
if (actionId === void 0) throw new ReverseError("INVALID_INPUT", `${operation} needs actionId`);
|
|
776
|
+
const existing = this.stateValue.claims[actionId];
|
|
744
777
|
if (existing === void 0 || existing.token !== token || existing.actor !== actor) throw new ReverseError("CLAIM_NOT_HELD", "claim token does not match this actor/action");
|
|
745
778
|
if (operation === "renew" && (existing.status !== "active" || existing.expiresAt <= now)) throw new ReverseError("CLAIM_EXPIRED", "expired claims must be reacquired, not renewed");
|
|
746
779
|
const claim = operation === "renew" ? {
|
|
@@ -759,34 +792,57 @@ var ReverseStore = class ReverseStore {
|
|
|
759
792
|
const maxActions = this.stateValue.budget?.maxActions;
|
|
760
793
|
const usedActions = Object.values(this.stateValue.routes).reduce((sum, route) => sum + route.attempts, 0);
|
|
761
794
|
if (maxActions !== void 0 && usedActions >= maxActions) throw new ReverseError("BUDGET_EXHAUSTED", `maxActions=${maxActions} reached`);
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
795
|
+
let targetId = actionId;
|
|
796
|
+
let action;
|
|
797
|
+
if (operation === "next") {
|
|
798
|
+
action = computeFrontier(this.stateValue, {
|
|
799
|
+
...filters,
|
|
800
|
+
cell,
|
|
801
|
+
limit: 1e3,
|
|
802
|
+
eliteCap: 1e3,
|
|
803
|
+
excludeClaimed: true,
|
|
804
|
+
now
|
|
805
|
+
}).find((item) => {
|
|
806
|
+
const finding = this.stateValue.nodes[item.targetId];
|
|
807
|
+
return item.actionType !== "verify" || finding?.attrs.producedBy !== actor;
|
|
808
|
+
});
|
|
809
|
+
if (action === void 0) throw new ReverseError("NO_ACTION", "no unclaimed action is available; do not poll or wait for a TTL, stop or hand off");
|
|
810
|
+
targetId = action.actionId;
|
|
811
|
+
} else {
|
|
812
|
+
if (targetId === void 0) throw new ReverseError("INVALID_INPUT", `${operation} needs actionId`);
|
|
813
|
+
action = computeFrontier(this.stateValue, {
|
|
814
|
+
cell,
|
|
815
|
+
limit: 1e3,
|
|
816
|
+
eliteCap: 1e3
|
|
817
|
+
}).find((item) => item.actionId === targetId);
|
|
818
|
+
}
|
|
767
819
|
if (action === void 0) throw new ReverseError("ACTION_NOT_FOUND", `action is not in the frontier for cell ${cell}`);
|
|
768
820
|
if (action.actionType === "verify") {
|
|
769
821
|
if (this.stateValue.nodes[action.targetId]?.attrs.producedBy === actor) throw new ReverseError("VERIFIER_INDEPENDENCE", "the producer cannot claim verification of its own finding");
|
|
770
822
|
}
|
|
771
|
-
|
|
823
|
+
const existing = this.stateValue.claims[targetId];
|
|
824
|
+
if (existing?.status === "active" && existing.expiresAt > now) throw new ReverseError("CLAIM_CONFLICT", `held by ${existing.actor} until ${new Date(existing.expiresAt).toISOString()}; do not wait for expiry, refresh frontier and choose an unclaimed action, or stop/handoff`);
|
|
772
825
|
const fencing = (existing?.fencing ?? 0) + 1;
|
|
773
826
|
const claim = {
|
|
774
|
-
actionId,
|
|
827
|
+
actionId: targetId,
|
|
775
828
|
actor,
|
|
776
829
|
cell,
|
|
777
830
|
fencing,
|
|
778
831
|
expiresAt: now + this.ttl(ttlSeconds),
|
|
779
832
|
createdAt: now,
|
|
780
833
|
status: "active",
|
|
781
|
-
token: `claim:${
|
|
834
|
+
token: `claim:${targetId}:${fencing}:${actor}`
|
|
782
835
|
};
|
|
783
836
|
await this.appendUnlocked("claim", {
|
|
784
837
|
claim,
|
|
785
|
-
operation
|
|
838
|
+
operation: operation === "next" ? "acquire" : operation
|
|
786
839
|
}, actor, cell);
|
|
787
840
|
return claim;
|
|
788
841
|
});
|
|
789
842
|
}
|
|
843
|
+
async claimNext(actor, ttlSeconds = 900, filters = {}) {
|
|
844
|
+
return this.claim(void 0, actor, ttlSeconds, "next", void 0, filters);
|
|
845
|
+
}
|
|
790
846
|
ttl(seconds) {
|
|
791
847
|
return Math.max(10, Math.min(86400, Math.trunc(seconds))) * 1e3;
|
|
792
848
|
}
|
|
@@ -1032,6 +1088,8 @@ var ReverseStore = class ReverseStore {
|
|
|
1032
1088
|
const current = this.stateValue.finish;
|
|
1033
1089
|
if (current === void 0 || current.status !== "proposed") throw new ReverseError("FINISH_NOT_PROPOSED", `finish is ${current?.status ?? "absent"}`);
|
|
1034
1090
|
if (this.stateValue.lastFactSeq > current.proposedSeq) throw new ReverseError("FINISH_INVALIDATED", "later facts invalidated finish; propose again");
|
|
1091
|
+
const activeClaims = Object.values(this.stateValue.claims).filter((claim) => claim.status === "active" && claim.expiresAt > Date.now());
|
|
1092
|
+
if (activeClaims.length > 0) throw new ReverseError("CLAIMS_ACTIVE", `settle needs active claims released or expired: ${activeClaims.map((claim) => claim.actionId).join(", ")}`);
|
|
1035
1093
|
const finish = {
|
|
1036
1094
|
...current,
|
|
1037
1095
|
status: "settled",
|
|
@@ -1091,13 +1149,17 @@ var ReverseStore = class ReverseStore {
|
|
|
1091
1149
|
}
|
|
1092
1150
|
async watchdog(actor) {
|
|
1093
1151
|
return this.withLock(async () => {
|
|
1152
|
+
const now = Date.now();
|
|
1094
1153
|
const previous = this.stateValue.watchdog;
|
|
1095
1154
|
const noProgress = this.stateValue.lastFactSeq === previous.lastProgressSeq;
|
|
1096
1155
|
let rotations = noProgress ? previous.rotationsWithoutProgress + 1 : 0;
|
|
1097
1156
|
let attempts = noProgress ? previous.recoveryAttempts : 0;
|
|
1098
1157
|
const requests = [];
|
|
1099
|
-
|
|
1100
|
-
|
|
1158
|
+
const activeClaims = Object.values(this.stateValue.claims).filter((claim) => claim.status === "active" && claim.expiresAt > now);
|
|
1159
|
+
const staleClaims = activeClaims.filter((claim) => now - claim.createdAt >= CLAIM_HANDOFF_AFTER_MS);
|
|
1160
|
+
if ((rotations >= 3 || staleClaims.length > 0) && attempts < 2) {
|
|
1161
|
+
const targets = rotations >= 3 ? activeClaims : staleClaims;
|
|
1162
|
+
for (const claim of targets) {
|
|
1101
1163
|
if (claim.status !== "active") continue;
|
|
1102
1164
|
if (Object.values(this.stateValue.handoffs).some((item) => item.actionId === claim.actionId && item.status === "requested")) continue;
|
|
1103
1165
|
const handoff = {
|
|
@@ -1116,8 +1178,10 @@ var ReverseStore = class ReverseStore {
|
|
|
1116
1178
|
await this.appendUnlocked("handoff", { handoff }, actor, claim.cell);
|
|
1117
1179
|
requests.push(handoff);
|
|
1118
1180
|
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1181
|
+
if (requests.length > 0) {
|
|
1182
|
+
attempts += 1;
|
|
1183
|
+
rotations = 0;
|
|
1184
|
+
}
|
|
1121
1185
|
}
|
|
1122
1186
|
const watchdog = {
|
|
1123
1187
|
lastProgressSeq: this.stateValue.lastFactSeq,
|
|
@@ -1131,7 +1195,14 @@ var ReverseStore = class ReverseStore {
|
|
|
1131
1195
|
}, actor);
|
|
1132
1196
|
return {
|
|
1133
1197
|
watchdog,
|
|
1134
|
-
requests
|
|
1198
|
+
requests,
|
|
1199
|
+
claims: activeClaims.map((claim) => ({
|
|
1200
|
+
actionId: claim.actionId,
|
|
1201
|
+
actor: claim.actor,
|
|
1202
|
+
cell: claim.cell,
|
|
1203
|
+
ageSeconds: Math.floor((now - claim.createdAt) / 1e3),
|
|
1204
|
+
expiresAt: new Date(claim.expiresAt).toISOString()
|
|
1205
|
+
}))
|
|
1135
1206
|
};
|
|
1136
1207
|
});
|
|
1137
1208
|
}
|
|
@@ -1151,6 +1222,8 @@ var ReverseStore = class ReverseStore {
|
|
|
1151
1222
|
if (nodes.filter((node) => node.kind === "Finding" && node.status === "verified").length === 0) residualRisk.push("no independently verified findings");
|
|
1152
1223
|
if (pendingHandoffs.length > 0) residualRisk.push(`${pendingHandoffs.length} pending handoff(s)`);
|
|
1153
1224
|
if (openQuestions.length > 0) residualRisk.push(`${openQuestions.length} open question(s)`);
|
|
1225
|
+
const activeClaims = Object.values(state.claims).filter((claim) => claim.status === "active" && claim.expiresAt > Date.now());
|
|
1226
|
+
if (activeClaims.length > 0) residualRisk.push(`${activeClaims.length} active claim(s)`);
|
|
1154
1227
|
if (state.watchdog.needsHuman) residualRisk.push("watchdog exhausted two recovery attempts");
|
|
1155
1228
|
return {
|
|
1156
1229
|
runId: this.runId,
|
|
@@ -1217,7 +1290,7 @@ function openReverseStore(runId, baseDir) {
|
|
|
1217
1290
|
//#endregion
|
|
1218
1291
|
//#region src/host/runtime/reverse/tool.ts
|
|
1219
1292
|
const REVERSE_BOARD_TOOL = "reverse_board";
|
|
1220
|
-
const REVERSE_BOARD_DESCRIPTION = "Operate a scoped reverse graph: init, frontier, claim/renew/release, record, evidence, cells, leases, handoff, watchdog, finish, Markdown/JSON report and audit. Mounted only by the reverse preset.";
|
|
1293
|
+
const REVERSE_BOARD_DESCRIPTION = "Operate a scoped reverse graph: init, frontier (hides live claims), claim/next/renew/release, record, evidence, cells, leases, handoff, watchdog, finish, Markdown/JSON report and audit. Mounted only by the reverse preset.";
|
|
1221
1294
|
function asString(value) {
|
|
1222
1295
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
1223
1296
|
}
|
|
@@ -1308,7 +1381,7 @@ function createReverseTool(deps = {}) {
|
|
|
1308
1381
|
"report",
|
|
1309
1382
|
"audit"
|
|
1310
1383
|
],
|
|
1311
|
-
description: "Graph operation. Claim supports acquire/renew/release through operation."
|
|
1384
|
+
description: "Graph operation. Claim supports acquire/next/renew/release through operation."
|
|
1312
1385
|
},
|
|
1313
1386
|
goal: {
|
|
1314
1387
|
type: "string",
|
|
@@ -1385,7 +1458,7 @@ function createReverseTool(deps = {}) {
|
|
|
1385
1458
|
},
|
|
1386
1459
|
actionId: {
|
|
1387
1460
|
type: "string",
|
|
1388
|
-
description: "claim/handoff: action id."
|
|
1461
|
+
description: "claim/handoff: action id; omit for claim operation next."
|
|
1389
1462
|
},
|
|
1390
1463
|
ttlSeconds: {
|
|
1391
1464
|
type: "number",
|
|
@@ -1395,6 +1468,7 @@ function createReverseTool(deps = {}) {
|
|
|
1395
1468
|
type: "string",
|
|
1396
1469
|
enum: [
|
|
1397
1470
|
"acquire",
|
|
1471
|
+
"next",
|
|
1398
1472
|
"renew",
|
|
1399
1473
|
"release",
|
|
1400
1474
|
"open",
|
|
@@ -1405,7 +1479,7 @@ function createReverseTool(deps = {}) {
|
|
|
1405
1479
|
"propose",
|
|
1406
1480
|
"settle"
|
|
1407
1481
|
],
|
|
1408
|
-
description: "claim/lease/cell/handoff/finish operation."
|
|
1482
|
+
description: "claim/lease/cell/handoff/finish operation; claim next atomically selects and claims an unclaimed action."
|
|
1409
1483
|
},
|
|
1410
1484
|
claimToken: {
|
|
1411
1485
|
type: "string",
|
|
@@ -1532,26 +1606,43 @@ function createReverseTool(deps = {}) {
|
|
|
1532
1606
|
if (action === "frontier") {
|
|
1533
1607
|
requirePlane(plane, workerPlanes);
|
|
1534
1608
|
const member = await bind();
|
|
1609
|
+
const view = store.frontierView({
|
|
1610
|
+
cell: member.cell,
|
|
1611
|
+
posture: typeof args.posture === "string" ? args.posture : void 0,
|
|
1612
|
+
island: typeof args.island === "string" ? args.island : void 0,
|
|
1613
|
+
limit: typeof args.limit === "number" ? args.limit : void 0
|
|
1614
|
+
});
|
|
1615
|
+
const activeClaims = view.activeClaims.map((claim) => ({
|
|
1616
|
+
actionId: claim.actionId,
|
|
1617
|
+
actor: claim.actor,
|
|
1618
|
+
expiresAt: new Date(claim.expiresAt).toISOString(),
|
|
1619
|
+
heldByYou: claim.actor === actor
|
|
1620
|
+
}));
|
|
1621
|
+
const status = view.actions.length > 0 ? "ready" : activeClaims.length > 0 ? "blocked" : "empty";
|
|
1622
|
+
const hint = status === "ready" ? void 0 : activeClaims.some((claim) => claim.heldByYou) ? "You already hold a live claim in this Cell; finish, renew, or release it before asking for more work." : status === "blocked" ? "No unclaimed action is available. Do not poll, wait for the TTL, or retry a held claim; stop or hand off until the holder releases it or new actions are recorded." : "No action is available yet. Do not poll; report to the Cell/Steward and stop.";
|
|
1535
1623
|
return reply({
|
|
1536
1624
|
runId,
|
|
1537
1625
|
cell: member.cell,
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
})
|
|
1626
|
+
status,
|
|
1627
|
+
actions: view.actions,
|
|
1628
|
+
available: view.available,
|
|
1629
|
+
activeClaims,
|
|
1630
|
+
...hint === void 0 ? {} : { hint }
|
|
1544
1631
|
});
|
|
1545
1632
|
}
|
|
1546
1633
|
if (action === "claim") {
|
|
1547
1634
|
requirePlane(plane, workerPlanes);
|
|
1548
1635
|
await bind();
|
|
1549
|
-
const actionId =
|
|
1550
|
-
|
|
1551
|
-
|
|
1636
|
+
const actionId = typeof args.actionId === "string" ? args.actionId : void 0;
|
|
1637
|
+
const operation = args.operation === "renew" || args.operation === "release" || args.operation === "next" ? args.operation : "acquire";
|
|
1638
|
+
if (operation !== "next" && !actionId) throw new ReverseError("INVALID_INPUT", "claim needs actionId unless operation is next");
|
|
1639
|
+
const ttlSeconds = typeof args.ttlSeconds === "number" ? args.ttlSeconds : 900;
|
|
1552
1640
|
return reply({
|
|
1553
1641
|
runId,
|
|
1554
|
-
claim:
|
|
1642
|
+
claim: operation === "next" ? await store.claimNext(actor, ttlSeconds, {
|
|
1643
|
+
posture: typeof args.posture === "string" ? args.posture : void 0,
|
|
1644
|
+
island: typeof args.island === "string" ? args.island : void 0
|
|
1645
|
+
}) : await store.claim(actionId, actor, ttlSeconds, operation, typeof args.claimToken === "string" ? args.claimToken : typeof args.token === "string" ? args.token : void 0)
|
|
1555
1646
|
});
|
|
1556
1647
|
}
|
|
1557
1648
|
if (action === "record") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/settings-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAA6C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjF,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtE,OAAO,KAAK,EAEV,oBAAoB,EAIrB,MAAM,uBAAuB,CAAA;AAE9B,iCAAiC;AACjC,MAAM,WAAW,+BAA+B;IAC9C,iCAAiC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAChC;AAED,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED,6CAA6C;AAC7C,MAAM,MAAM,4BAA4B,GAAG,+BAA+B,GAAG,kBAAkB,GAAG,QAAQ,CAAA;AAE1G,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,YAAY;AACZ,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC,wCAAwC;AACxC,eAAO,MAAM,yBAAyB,IAAI,CAAA;AAE1C,4CAA4C;AAC5C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjB,CAAA;AAkSV;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,4BAA4B,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/settings-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAA6C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjF,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtE,OAAO,KAAK,EAEV,oBAAoB,EAIrB,MAAM,uBAAuB,CAAA;AAE9B,iCAAiC;AACjC,MAAM,WAAW,+BAA+B;IAC9C,iCAAiC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAChC;AAED,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED,6CAA6C;AAC7C,MAAM,MAAM,4BAA4B,GAAG,+BAA+B,GAAG,kBAAkB,GAAG,QAAQ,CAAA;AAE1G,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,YAAY;AACZ,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC,wCAAwC;AACxC,eAAO,MAAM,yBAAyB,IAAI,CAAA;AAE1C,4CAA4C;AAC5C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjB,CAAA;AAkSV;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,4BAA4B,GAAG,SAAS,CA8pB7F"}
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
76
76
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
77
77
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
78
78
|
*/
|
|
79
|
-
export declare const PLUGIN_VERSION: "1.
|
|
79
|
+
export declare const PLUGIN_VERSION: "1.3.0";
|
|
80
80
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
81
81
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
82
82
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/host/providers/chatgpt-api/adapter.ts"],"names":[],"mappings":"AACA,OAA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AAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAalG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAM/F,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;IAMnE,OAAO,CAAC,SAAS;YAiBF,eAAe;YAOf,aAAa;YAkDd,0BAA0B;IA4CxC,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,YAAY;CAIrB;AAED,yEAAyE;AACzE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,oDAExH"}
|
|
@@ -289,6 +289,13 @@ export declare const QODER_ERROR_SUB_RESOURCE_LIMIT_TYPO = "REOSURCE_LIMIT";
|
|
|
289
289
|
* 它与排队是**两回事**:排队等一会儿就好,额度用尽只能等周期重置或加购。
|
|
290
290
|
*/
|
|
291
291
|
export declare const QODER_ERROR_QUOTA_EXCEEDED = "112";
|
|
292
|
+
/**
|
|
293
|
+
* 上游「每日额度用尽」的业务码(403,`Billing daily count exceeded`)。
|
|
294
|
+
*
|
|
295
|
+
* 每日额度会按上游的周期重置;它与 112 一样只影响本次请求,不代表凭据失效。
|
|
296
|
+
* 归 AUTH 会把仍然有效的登录态误标成「需重新登录」。
|
|
297
|
+
*/
|
|
298
|
+
export declare const QODER_ERROR_DAILY_QUOTA_EXCEEDED = "110";
|
|
292
299
|
/**
|
|
293
300
|
* 一次失败里上游报出来的事实(信封层与 body 层都扫,所以字段在哪一层都不丢)。
|
|
294
301
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../../src/host/providers/qoder/mapper.ts"],"names":[],"mappings":"AAAA;;;;;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