oh-my-opencode 5.1.77 → 5.1.78
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/dist/agents/hephaestus/model-support.d.ts +1 -0
- package/dist/agents/native-prompt-frame.d.ts +9 -1
- package/dist/agents/refusal-rule.d.ts +4 -1
- package/dist/cli/index.js +606 -402
- package/dist/cli-node/index.js +606 -402
- package/dist/index.js +571 -331
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/tui.js +18 -14
- package/package.json +14 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/README.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/explorer.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/librarian.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +2 -2
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2132,7 +2132,7 @@ var package_default;
|
|
|
2132
2132
|
var init_package = __esm(() => {
|
|
2133
2133
|
package_default = {
|
|
2134
2134
|
name: "oh-my-opencode",
|
|
2135
|
-
version: "5.1.
|
|
2135
|
+
version: "5.1.78",
|
|
2136
2136
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
2137
2137
|
main: "./dist/index.js",
|
|
2138
2138
|
types: "dist/index.d.ts",
|
|
@@ -2330,7 +2330,7 @@ var init_package = __esm(() => {
|
|
|
2330
2330
|
},
|
|
2331
2331
|
devDependencies: {
|
|
2332
2332
|
"@clack/prompts": "^1.8.1",
|
|
2333
|
-
"@code-yeongyu/senpi": "2026.11.18",
|
|
2333
|
+
"@code-yeongyu/senpi": "2026.11.18-2",
|
|
2334
2334
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
2335
2335
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
2336
2336
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -2403,18 +2403,18 @@ var init_package = __esm(() => {
|
|
|
2403
2403
|
typescript: "^7.0.2"
|
|
2404
2404
|
},
|
|
2405
2405
|
optionalDependencies: {
|
|
2406
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2407
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2408
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2409
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2410
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2411
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2412
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2413
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2414
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2415
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2416
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2417
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2406
|
+
"oh-my-opencode-darwin-arm64": "5.1.78",
|
|
2407
|
+
"oh-my-opencode-darwin-x64": "5.1.78",
|
|
2408
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.78",
|
|
2409
|
+
"oh-my-opencode-linux-arm64": "5.1.78",
|
|
2410
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.78",
|
|
2411
|
+
"oh-my-opencode-linux-x64": "5.1.78",
|
|
2412
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.78",
|
|
2413
|
+
"oh-my-opencode-linux-x64-musl": "5.1.78",
|
|
2414
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.78",
|
|
2415
|
+
"oh-my-opencode-windows-arm64": "5.1.78",
|
|
2416
|
+
"oh-my-opencode-windows-x64": "5.1.78",
|
|
2417
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.78"
|
|
2418
2418
|
},
|
|
2419
2419
|
overrides: {
|
|
2420
2420
|
hono: "^4.13.8",
|
|
@@ -2537,6 +2537,9 @@ var init_deep_merge = __esm(() => {
|
|
|
2537
2537
|
DANGEROUS_KEYS = new Set(["__proto__", "constructor", "prototype"]);
|
|
2538
2538
|
});
|
|
2539
2539
|
|
|
2540
|
+
// packages/utils/src/escape-for-display.ts
|
|
2541
|
+
var init_escape_for_display = () => {};
|
|
2542
|
+
|
|
2540
2543
|
// packages/utils/src/config-merge.ts
|
|
2541
2544
|
function mergeUniqueStrings(base, override) {
|
|
2542
2545
|
return [...new Set([...base ?? [], ...override ?? []])];
|
|
@@ -9301,6 +9304,7 @@ var init_zip_entry_listing = () => {};
|
|
|
9301
9304
|
// packages/utils/src/index.ts
|
|
9302
9305
|
var init_src = __esm(() => {
|
|
9303
9306
|
init_deep_merge();
|
|
9307
|
+
init_escape_for_display();
|
|
9304
9308
|
init_config_section_parser();
|
|
9305
9309
|
init_env_expansion();
|
|
9306
9310
|
init_snake_case();
|
|
@@ -92925,7 +92929,7 @@ var package_default2;
|
|
|
92925
92929
|
var init_package2 = __esm(() => {
|
|
92926
92930
|
package_default2 = {
|
|
92927
92931
|
name: "@oh-my-opencode/omo-codex",
|
|
92928
|
-
version: "5.1.
|
|
92932
|
+
version: "5.1.78",
|
|
92929
92933
|
type: "module",
|
|
92930
92934
|
private: true,
|
|
92931
92935
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -94157,142 +94161,6 @@ var init_auto_update_checker = __esm(() => {
|
|
|
94157
94161
|
init_cache();
|
|
94158
94162
|
});
|
|
94159
94163
|
|
|
94160
|
-
// packages/memory-core/src/fs/retry.ts
|
|
94161
|
-
function fsErrorCode(error) {
|
|
94162
|
-
if (!(error instanceof Error) || !("code" in error))
|
|
94163
|
-
return;
|
|
94164
|
-
return typeof error.code === "string" ? error.code : undefined;
|
|
94165
|
-
}
|
|
94166
|
-
async function retryOnEintr(operation) {
|
|
94167
|
-
for (let attempt = 0;; attempt += 1) {
|
|
94168
|
-
try {
|
|
94169
|
-
return await operation();
|
|
94170
|
-
} catch (error) {
|
|
94171
|
-
if (fsErrorCode(error) !== "EINTR" || attempt >= EINTR_RETRY_CAP)
|
|
94172
|
-
throw error;
|
|
94173
|
-
}
|
|
94174
|
-
}
|
|
94175
|
-
}
|
|
94176
|
-
function retryOnEintrSync(operation) {
|
|
94177
|
-
for (let attempt = 0;; attempt += 1) {
|
|
94178
|
-
try {
|
|
94179
|
-
return operation();
|
|
94180
|
-
} catch (error) {
|
|
94181
|
-
if (fsErrorCode(error) !== "EINTR" || attempt >= EINTR_RETRY_CAP)
|
|
94182
|
-
throw error;
|
|
94183
|
-
}
|
|
94184
|
-
}
|
|
94185
|
-
}
|
|
94186
|
-
var EINTR_RETRY_CAP = 128;
|
|
94187
|
-
|
|
94188
|
-
// packages/memory-core/src/fs/rename-contention.ts
|
|
94189
|
-
async function renameWithContentionRetry(from, to, deps) {
|
|
94190
|
-
const delays = deps.platform === "win32" ? deps.delaysMs ?? CONTENTION_DELAYS_MS : [];
|
|
94191
|
-
const sleep = deps.sleep ?? sleepFor;
|
|
94192
|
-
for (let attempt = 0;; attempt += 1) {
|
|
94193
|
-
try {
|
|
94194
|
-
await retryOnEintr(() => deps.admit === undefined ? deps.rename(from, to) : deps.admit(() => deps.rename(from, to)));
|
|
94195
|
-
return;
|
|
94196
|
-
} catch (error) {
|
|
94197
|
-
const delay = delays[attempt];
|
|
94198
|
-
const code = fsErrorCode(error);
|
|
94199
|
-
if (delay === undefined || code === undefined || !CONTENTION_CODES.has(code))
|
|
94200
|
-
throw error;
|
|
94201
|
-
await sleep(delay);
|
|
94202
|
-
}
|
|
94203
|
-
}
|
|
94204
|
-
}
|
|
94205
|
-
var CONTENTION_CODES, CONTENTION_DELAYS_MS, sleepFor = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
94206
|
-
var init_rename_contention = __esm(() => {
|
|
94207
|
-
CONTENTION_CODES = new Set(["EPERM", "EBUSY", "EACCES"]);
|
|
94208
|
-
CONTENTION_DELAYS_MS = [10, 25, 50, 100, 200, 400];
|
|
94209
|
-
});
|
|
94210
|
-
|
|
94211
|
-
// packages/memory-core/src/fs/write-all.ts
|
|
94212
|
-
var init_write_all = () => {};
|
|
94213
|
-
|
|
94214
|
-
// packages/memory-core/src/fs/resilient.ts
|
|
94215
|
-
import * as fsSync from "fs";
|
|
94216
|
-
import * as fsp from "fs/promises";
|
|
94217
|
-
function isFunction2(value) {
|
|
94218
|
-
return typeof value === "function";
|
|
94219
|
-
}
|
|
94220
|
-
function withAsyncRetry(operation) {
|
|
94221
|
-
return (...args) => retryOnEintr(async () => operation(...args));
|
|
94222
|
-
}
|
|
94223
|
-
function withSyncRetry(operation) {
|
|
94224
|
-
return (...args) => retryOnEintrSync(() => operation(...args));
|
|
94225
|
-
}
|
|
94226
|
-
function resilientNamespace(namespace, kind) {
|
|
94227
|
-
const wrapFunction = kind === "async" ? withAsyncRetry : withSyncRetry;
|
|
94228
|
-
const cache = new Map;
|
|
94229
|
-
return new Proxy(namespace, {
|
|
94230
|
-
get(target, property) {
|
|
94231
|
-
if (cache.has(property))
|
|
94232
|
-
return cache.get(property);
|
|
94233
|
-
const value = Reflect.get(target, property);
|
|
94234
|
-
if (!isFunction2(value))
|
|
94235
|
-
return value;
|
|
94236
|
-
const wrapped = wrapFunction(value);
|
|
94237
|
-
const native = Reflect.get(value, "native");
|
|
94238
|
-
if (isFunction2(native))
|
|
94239
|
-
Object.assign(wrapped, { native: wrapFunction(native) });
|
|
94240
|
-
cache.set(property, wrapped);
|
|
94241
|
-
return wrapped;
|
|
94242
|
-
}
|
|
94243
|
-
});
|
|
94244
|
-
}
|
|
94245
|
-
function rename8(from, to, admit) {
|
|
94246
|
-
return renameWithContentionRetry(from, to, {
|
|
94247
|
-
rename: (source, target) => fsp.rename(source, target),
|
|
94248
|
-
platform: process.platform,
|
|
94249
|
-
...admit === undefined ? {} : { admit }
|
|
94250
|
-
});
|
|
94251
|
-
}
|
|
94252
|
-
var IDEMPOTENT_HANDLE_METHODS, promises, sync, access4, chmod2, copyFile4, cp5, link, lstat18, mkdir10, mkdtemp2, readFile34, readdir17, readlink7, realpath2, rm16, rmdir2, stat8, statfs, unlink3, accessSync5, chmodSync7, fsyncSync3, linkSync, lstatSync5, mkdirSync19, readFileSync44, readdirSync14, realpathSync13, statSync8, unlinkSync10, writeFileSync17, writeSync;
|
|
94253
|
-
var init_resilient = __esm(() => {
|
|
94254
|
-
init_rename_contention();
|
|
94255
|
-
init_write_all();
|
|
94256
|
-
init_write_all();
|
|
94257
|
-
IDEMPOTENT_HANDLE_METHODS = new Set(["stat", "sync", "datasync", "chmod", "chown", "utimes", "truncate"]);
|
|
94258
|
-
promises = resilientNamespace(fsp, "async");
|
|
94259
|
-
sync = resilientNamespace(fsSync, "sync");
|
|
94260
|
-
({
|
|
94261
|
-
access: access4,
|
|
94262
|
-
chmod: chmod2,
|
|
94263
|
-
copyFile: copyFile4,
|
|
94264
|
-
cp: cp5,
|
|
94265
|
-
link,
|
|
94266
|
-
lstat: lstat18,
|
|
94267
|
-
mkdir: mkdir10,
|
|
94268
|
-
mkdtemp: mkdtemp2,
|
|
94269
|
-
readFile: readFile34,
|
|
94270
|
-
readdir: readdir17,
|
|
94271
|
-
readlink: readlink7,
|
|
94272
|
-
realpath: realpath2,
|
|
94273
|
-
rm: rm16,
|
|
94274
|
-
rmdir: rmdir2,
|
|
94275
|
-
stat: stat8,
|
|
94276
|
-
statfs,
|
|
94277
|
-
unlink: unlink3
|
|
94278
|
-
} = promises);
|
|
94279
|
-
({
|
|
94280
|
-
accessSync: accessSync5,
|
|
94281
|
-
chmodSync: chmodSync7,
|
|
94282
|
-
fsyncSync: fsyncSync3,
|
|
94283
|
-
linkSync,
|
|
94284
|
-
lstatSync: lstatSync5,
|
|
94285
|
-
mkdirSync: mkdirSync19,
|
|
94286
|
-
readFileSync: readFileSync44,
|
|
94287
|
-
readdirSync: readdirSync14,
|
|
94288
|
-
realpathSync: realpathSync13,
|
|
94289
|
-
statSync: statSync8,
|
|
94290
|
-
unlinkSync: unlinkSync10,
|
|
94291
|
-
writeFileSync: writeFileSync17,
|
|
94292
|
-
writeSync
|
|
94293
|
-
} = sync);
|
|
94294
|
-
});
|
|
94295
|
-
|
|
94296
94164
|
// packages/device-service-core/src/local-api/errors.ts
|
|
94297
94165
|
var LocalApiError, protocolViolation = (detail) => {
|
|
94298
94166
|
throw new LocalApiError("protocol_violation", detail);
|
|
@@ -97553,14 +97421,21 @@ var init_background_transport = __esm(() => {
|
|
|
97553
97421
|
});
|
|
97554
97422
|
|
|
97555
97423
|
// packages/device-service-core/src/not-sent-error.ts
|
|
97556
|
-
|
|
97557
|
-
|
|
97558
|
-
|
|
97559
|
-
|
|
97560
|
-
|
|
97561
|
-
|
|
97562
|
-
|
|
97563
|
-
|
|
97424
|
+
function markNotSent(error) {
|
|
97425
|
+
if (error instanceof NotSentError)
|
|
97426
|
+
return error;
|
|
97427
|
+
if (!(error instanceof LocalApiError))
|
|
97428
|
+
return error;
|
|
97429
|
+
return new NotSentError(error.code, error.reason, {
|
|
97430
|
+
action: error.action,
|
|
97431
|
+
...error.limit_chars === undefined ? {} : { limit_chars: error.limit_chars },
|
|
97432
|
+
...error.path_refusal === undefined ? {} : { path_refusal: error.path_refusal },
|
|
97433
|
+
...error.candidates === undefined ? {} : { candidates: error.candidates },
|
|
97434
|
+
...error.incomplete === undefined ? {} : { incomplete: error.incomplete },
|
|
97435
|
+
...error.sign_in_reason === undefined ? {} : { sign_in_reason: error.sign_in_reason }
|
|
97436
|
+
});
|
|
97437
|
+
}
|
|
97438
|
+
var NotSentError, olderThanWakeMinimum = (serviceVersion, minimum) => minimum === null ? new NotSentError("unsupported", "this omo build does not send the wake target") : new NotSentError("unsupported", `device service ${serviceVersion} is older than ${minimum}; update it`, {
|
|
97564
97439
|
action: `Run omo remote bootstrap to install device service ${minimum} or later.`
|
|
97565
97440
|
});
|
|
97566
97441
|
var init_not_sent_error = __esm(() => {
|
|
@@ -97701,6 +97576,26 @@ var init_timers = __esm(() => {
|
|
|
97701
97576
|
};
|
|
97702
97577
|
});
|
|
97703
97578
|
|
|
97579
|
+
// packages/device-service-core/src/unsettled-command.ts
|
|
97580
|
+
var DELIVERED, UnsettledCommandError;
|
|
97581
|
+
var init_unsettled_command = __esm(() => {
|
|
97582
|
+
init_errors4();
|
|
97583
|
+
DELIVERED = new Set(["transport_confirmed", "engine_dispatched"]);
|
|
97584
|
+
UnsettledCommandError = class UnsettledCommandError extends LocalApiError {
|
|
97585
|
+
progress;
|
|
97586
|
+
delivered;
|
|
97587
|
+
constructor(commandId, waitMs, progress) {
|
|
97588
|
+
const last = progress === undefined ? "" : ` (last state ${progress})`;
|
|
97589
|
+
super("request_timeout", `no final state for command ${commandId} within ${waitMs} ms${last}`, {
|
|
97590
|
+
command_id: commandId
|
|
97591
|
+
});
|
|
97592
|
+
this.name = "UnsettledCommandError";
|
|
97593
|
+
this.progress = progress;
|
|
97594
|
+
this.delivered = progress !== undefined && DELIVERED.has(progress);
|
|
97595
|
+
}
|
|
97596
|
+
};
|
|
97597
|
+
});
|
|
97598
|
+
|
|
97704
97599
|
// packages/device-service-core/src/remote-attach.ts
|
|
97705
97600
|
import { randomBytes as randomBytes8 } from "crypto";
|
|
97706
97601
|
function openAttach(client, device, sessionId, timers = realTimers) {
|
|
@@ -97812,6 +97707,7 @@ function openAttach(client, device, sessionId, timers = realTimers) {
|
|
|
97812
97707
|
return reject(new Error("the attach has ended"));
|
|
97813
97708
|
const { waitMs = ATTACH_COMMAND_WAIT_MS, accepts } = options;
|
|
97814
97709
|
const commandId = randomBytes8(16).toString("base64url");
|
|
97710
|
+
let progress;
|
|
97815
97711
|
const settle = () => {
|
|
97816
97712
|
stopState();
|
|
97817
97713
|
cancelWait();
|
|
@@ -97826,8 +97722,10 @@ function openAttach(client, device, sessionId, timers = realTimers) {
|
|
|
97826
97722
|
const stopState = client.onEvent((event) => {
|
|
97827
97723
|
if (event.kind !== "session.command_state" || event.command_id !== commandId)
|
|
97828
97724
|
return;
|
|
97829
|
-
if (PROGRESS_STATES.has(event.state))
|
|
97725
|
+
if (PROGRESS_STATES.has(event.state)) {
|
|
97726
|
+
progress = event.state;
|
|
97830
97727
|
return;
|
|
97728
|
+
}
|
|
97831
97729
|
const response = delegated.takeReply(commandId);
|
|
97832
97730
|
settle();
|
|
97833
97731
|
resolve(response === undefined ? { outcome: event } : { outcome: event, response });
|
|
@@ -97835,9 +97733,7 @@ function openAttach(client, device, sessionId, timers = realTimers) {
|
|
|
97835
97733
|
const cancelWait = timers.after(waitMs, () => {
|
|
97836
97734
|
settle();
|
|
97837
97735
|
delegated.forget(commandId);
|
|
97838
|
-
reject(new
|
|
97839
|
-
command_id: commandId
|
|
97840
|
-
}));
|
|
97736
|
+
reject(new UnsettledCommandError(commandId, waitMs, progress));
|
|
97841
97737
|
});
|
|
97842
97738
|
commands.add(end);
|
|
97843
97739
|
client.commandTo({ attach }, rpc, commandId, { delegated: true }, accepts === undefined ? undefined : { accepts }).catch((error) => {
|
|
@@ -97897,6 +97793,7 @@ var init_remote_attach = __esm(() => {
|
|
|
97897
97793
|
init_delegated_channel();
|
|
97898
97794
|
init_errors4();
|
|
97899
97795
|
init_timers();
|
|
97796
|
+
init_unsettled_command();
|
|
97900
97797
|
PROGRESS_STATES = new Set([
|
|
97901
97798
|
"queued",
|
|
97902
97799
|
"transport_confirmed",
|
|
@@ -97904,9 +97801,45 @@ var init_remote_attach = __esm(() => {
|
|
|
97904
97801
|
]);
|
|
97905
97802
|
});
|
|
97906
97803
|
|
|
97804
|
+
// packages/device-service-core/src/refused-before-sending.ts
|
|
97805
|
+
var REFUSED_BEFORE_SENDING;
|
|
97806
|
+
var init_refused_before_sending = __esm(() => {
|
|
97807
|
+
REFUSED_BEFORE_SENDING = new Set([
|
|
97808
|
+
"unauthenticated",
|
|
97809
|
+
"client_proof_invalid",
|
|
97810
|
+
"invalid_request",
|
|
97811
|
+
"unknown_type",
|
|
97812
|
+
"forbidden",
|
|
97813
|
+
"owner_transfer",
|
|
97814
|
+
"signed_out",
|
|
97815
|
+
"device_mismatch",
|
|
97816
|
+
"device_changed",
|
|
97817
|
+
"account_changed",
|
|
97818
|
+
"device_key_invalid",
|
|
97819
|
+
"service_disabled",
|
|
97820
|
+
"sign_in_required",
|
|
97821
|
+
"plan_required",
|
|
97822
|
+
"activation_pending",
|
|
97823
|
+
"authorization_stale",
|
|
97824
|
+
"peer_not_found",
|
|
97825
|
+
"peer_not_session_client",
|
|
97826
|
+
"session_not_found",
|
|
97827
|
+
"engine_too_old",
|
|
97828
|
+
"not_attached",
|
|
97829
|
+
"command_id_conflict",
|
|
97830
|
+
"message_too_long",
|
|
97831
|
+
"upload_incomplete",
|
|
97832
|
+
"malformed",
|
|
97833
|
+
"method_unclassified",
|
|
97834
|
+
"method_local_only",
|
|
97835
|
+
"host_not_answering",
|
|
97836
|
+
"unsupported"
|
|
97837
|
+
]);
|
|
97838
|
+
});
|
|
97839
|
+
|
|
97907
97840
|
// packages/device-service-core/src/listing-rows.ts
|
|
97908
97841
|
function newestRowsListing(client) {
|
|
97909
|
-
let rows =
|
|
97842
|
+
let rows = 4;
|
|
97910
97843
|
return async function list(filter, onRevision) {
|
|
97911
97844
|
for (;; ) {
|
|
97912
97845
|
try {
|
|
@@ -97914,7 +97847,7 @@ function newestRowsListing(client) {
|
|
|
97914
97847
|
} catch (error) {
|
|
97915
97848
|
if (rows === undefined || !(error instanceof LocalApiError) || error.code !== "invalid_request")
|
|
97916
97849
|
throw error;
|
|
97917
|
-
rows = rows === 3 ? 2 : undefined;
|
|
97850
|
+
rows = rows === 4 ? 3 : rows === 3 ? 2 : undefined;
|
|
97918
97851
|
}
|
|
97919
97852
|
}
|
|
97920
97853
|
};
|
|
@@ -97996,6 +97929,32 @@ function deviceServiceStateDir(platform = process.platform, env = process.env, h
|
|
|
97996
97929
|
}
|
|
97997
97930
|
var DEVICE_SERVICE_STATE_DIR_ENV = "OMO_DEVICE_SERVICE_STATE_DIR", LOCATION_FILE = "device-service.location.json", isAbsoluteOn = (platform, path) => (platform === "win32" ? win3212 : posix17).isAbsolute(path);
|
|
97998
97931
|
var init_state_dir = () => {};
|
|
97932
|
+
|
|
97933
|
+
// packages/device-service-core/src/engine-endpoint.ts
|
|
97934
|
+
async function engineEndpointOf(client, device) {
|
|
97935
|
+
const asksPrimary = compareVersions4(client.welcome.service_version, ENDPOINT_PRIMARY_MIN_SERVICE_VERSION) >= 0;
|
|
97936
|
+
const listed = await client.request("session.endpoints", asksPrimary ? { device, primary: true } : { device });
|
|
97937
|
+
if (listed.primary !== undefined)
|
|
97938
|
+
return listed.primary;
|
|
97939
|
+
const [only, ...rest] = listed.endpoints;
|
|
97940
|
+
if (only === undefined)
|
|
97941
|
+
throw new NotSentError("unsupported", "the device lists no engine endpoint");
|
|
97942
|
+
if (!asksPrimary && rest.length === 0)
|
|
97943
|
+
return only;
|
|
97944
|
+
throw new NoPrimaryEndpointError(device, listed.endpoints.length);
|
|
97945
|
+
}
|
|
97946
|
+
var ENDPOINT_PRIMARY_MIN_SERVICE_VERSION = "0.1.11", NoPrimaryEndpointError;
|
|
97947
|
+
var init_engine_endpoint = __esm(() => {
|
|
97948
|
+
init_not_sent_error();
|
|
97949
|
+
init_version2();
|
|
97950
|
+
NoPrimaryEndpointError = class NoPrimaryEndpointError extends NotSentError {
|
|
97951
|
+
constructor(device, listed) {
|
|
97952
|
+
super("unsupported", `${device} lists ${listed} engine endpoint(s) and names none as its own engine; nothing was opened`, {
|
|
97953
|
+
action: `Start or restart omo on ${device}; if that does not help, update the device service on both devices.`
|
|
97954
|
+
});
|
|
97955
|
+
}
|
|
97956
|
+
};
|
|
97957
|
+
});
|
|
97999
97958
|
// packages/device-service-core/src/local-api/protocol.ts
|
|
98000
97959
|
var init_protocol = __esm(() => {
|
|
98001
97960
|
init_vocabulary();
|
|
@@ -98005,13 +97964,13 @@ var init_protocol = __esm(() => {
|
|
|
98005
97964
|
// packages/device-service-core/src/device-service.ts
|
|
98006
97965
|
import { join as join124 } from "path";
|
|
98007
97966
|
import { randomBytes as randomBytes9 } from "crypto";
|
|
98008
|
-
function sendToEndpoint(client, device, endpoint, rpc, locate, timers) {
|
|
97967
|
+
function sendToEndpoint(client, device, endpoint, rpc, locate, timers, waitMs) {
|
|
98009
97968
|
return followDelegatedCommand(client, device, timers, (commandId) => {
|
|
98010
97969
|
const send = (asked) => client.commandTo({ device, endpoint }, rpc, commandId, asked ? { locate: true } : {});
|
|
98011
97970
|
return send(locate).catch((error) => locate && error instanceof LocalApiError && error.code === "invalid_request" ? send(false) : Promise.reject(error));
|
|
98012
|
-
});
|
|
97971
|
+
}, waitMs);
|
|
98013
97972
|
}
|
|
98014
|
-
function followDelegatedCommand(client, device, timers, send) {
|
|
97973
|
+
function followDelegatedCommand(client, device, timers, send, waitMs = ENDPOINT_COMMAND_WAIT_MS) {
|
|
98015
97974
|
return new Promise((resolve, reject) => {
|
|
98016
97975
|
const commandId = randomBytes9(16).toString("base64url");
|
|
98017
97976
|
const channel = followDelegatedChannel(device);
|
|
@@ -98043,7 +98002,7 @@ function followDelegatedCommand(client, device, timers, send) {
|
|
|
98043
98002
|
...located === undefined ? {} : { located }
|
|
98044
98003
|
});
|
|
98045
98004
|
});
|
|
98046
|
-
const cancelTimer = timers.after(
|
|
98005
|
+
const cancelTimer = timers.after(waitMs, () => fail(new Error(`no final state for endpoint command ${commandId} within ${waitMs} ms`)));
|
|
98047
98006
|
client.closed.then(() => fail(new Error("the connection closed before the endpoint command settled")));
|
|
98048
98007
|
send(commandId).catch(fail);
|
|
98049
98008
|
});
|
|
@@ -98116,16 +98075,40 @@ async function connectDeviceService(options) {
|
|
|
98116
98075
|
};
|
|
98117
98076
|
},
|
|
98118
98077
|
endpointCommand: async (device, rpc, options) => {
|
|
98119
|
-
|
|
98120
|
-
|
|
98121
|
-
|
|
98122
|
-
|
|
98123
|
-
|
|
98078
|
+
const started = timers.now();
|
|
98079
|
+
let endpoint = options?.endpoint;
|
|
98080
|
+
if (endpoint === undefined) {
|
|
98081
|
+
const lookup = engineEndpointOf(client, device);
|
|
98082
|
+
const waitMs = options?.waitMs;
|
|
98083
|
+
const bounded = waitMs === undefined ? lookup : new Promise((resolve, reject) => {
|
|
98084
|
+
const cancel = timers.after(waitMs, () => reject(new NotSentError("request_timeout", "the wait ran out during the endpoint lookup; nothing was sent")));
|
|
98085
|
+
lookup.then((answer) => {
|
|
98086
|
+
cancel();
|
|
98087
|
+
resolve(answer);
|
|
98088
|
+
}, (error) => {
|
|
98089
|
+
cancel();
|
|
98090
|
+
reject(error);
|
|
98091
|
+
});
|
|
98092
|
+
});
|
|
98093
|
+
try {
|
|
98094
|
+
endpoint = await bounded;
|
|
98095
|
+
} catch (error) {
|
|
98096
|
+
throw markNotSent(error);
|
|
98097
|
+
}
|
|
98124
98098
|
}
|
|
98125
98099
|
if (endpoint === undefined)
|
|
98126
98100
|
throw new NotSentError("unsupported", "the device lists no engine endpoint");
|
|
98127
|
-
|
|
98101
|
+
const waitMs = options?.waitMs === undefined ? undefined : options.waitMs - (timers.now() - started);
|
|
98102
|
+
if (waitMs !== undefined && waitMs <= 0)
|
|
98103
|
+
throw new NotSentError("request_timeout", "the wait ran out during the endpoint lookup; nothing was sent");
|
|
98104
|
+
return {
|
|
98105
|
+
...await sendToEndpoint(client, device, endpoint, rpc, options?.locate === true, timers, waitMs),
|
|
98106
|
+
endpoint
|
|
98107
|
+
};
|
|
98128
98108
|
},
|
|
98109
|
+
sessionCommand: (device, key, rpc, options) => followDelegatedCommand(client, device, timers, (commandId) => client.commandTo({ session: `${device}.${key}` }, rpc, commandId).catch((error) => {
|
|
98110
|
+
throw error instanceof LocalApiError && error.command_id === undefined ? markNotSent(error) : error;
|
|
98111
|
+
}), options?.waitMs),
|
|
98129
98112
|
close: () => client.close(),
|
|
98130
98113
|
closed: client.closed,
|
|
98131
98114
|
locate: (device, engineId, options) => client.request("session.locate", {
|
|
@@ -98133,16 +98116,16 @@ async function connectDeviceService(options) {
|
|
|
98133
98116
|
engine_id: engineId,
|
|
98134
98117
|
...options?.single === true && takesSingleLocate ? { single: true } : {}
|
|
98135
98118
|
}),
|
|
98136
|
-
wakeCommand: async (device, durableId, rpc) => {
|
|
98119
|
+
wakeCommand: async (device, durableId, rpc, options) => {
|
|
98137
98120
|
if (!carriesWakeMark)
|
|
98138
98121
|
throw olderThanWakeMinimum(client.welcome.service_version, wakeMarkMinimum);
|
|
98139
98122
|
return await followDelegatedCommand(client, device, timers, (commandId) => client.commandTo({ wake: { device, durable_id: durableId } }, rpc, commandId).catch((error) => {
|
|
98140
|
-
throw error instanceof LocalApiError && error.command_id === undefined ? markNotSent(error) : error;
|
|
98141
|
-
}));
|
|
98123
|
+
throw error instanceof LocalApiError && error.command_id === undefined && REFUSED_BEFORE_SENDING.has(error.code) ? markNotSent(error) : error;
|
|
98124
|
+
}), options?.waitMs);
|
|
98142
98125
|
}
|
|
98143
98126
|
};
|
|
98144
98127
|
}
|
|
98145
|
-
var ENDPOINT_COMMAND_WAIT_MS = 120000, ADOPT_ACCOUNT_MIN_SERVICE_VERSION = "0.1.3", acceptsAdoptAccount = (serviceVersion) => compareVersions4(serviceVersion, ADOPT_ACCOUNT_MIN_SERVICE_VERSION) >= 0, WAKE_MARK_MIN_SERVICE_VERSION = "0.1.31", LOCATE_SINGLE_MIN_SERVICE_VERSION = "0.1.13", serviceAtLeast = (serviceVersion, minimum) => minimum !== null && compareVersions4(serviceVersion, minimum) >= 0;
|
|
98128
|
+
var ENDPOINT_COMMAND_WAIT_MS = 120000, UPDATE_IN_FLIGHT_MAX_MS, UPDATE_IN_FLIGHT, ADOPT_ACCOUNT_MIN_SERVICE_VERSION = "0.1.3", acceptsAdoptAccount = (serviceVersion) => compareVersions4(serviceVersion, ADOPT_ACCOUNT_MIN_SERVICE_VERSION) >= 0, WAKE_MARK_MIN_SERVICE_VERSION = "0.1.31", LOCATE_SINGLE_MIN_SERVICE_VERSION = "0.1.13", serviceAtLeast = (serviceVersion, minimum) => minimum !== null && compareVersions4(serviceVersion, minimum) >= 0;
|
|
98146
98129
|
var init_device_service2 = __esm(() => {
|
|
98147
98130
|
init_access();
|
|
98148
98131
|
init_client4();
|
|
@@ -98152,15 +98135,22 @@ var init_device_service2 = __esm(() => {
|
|
|
98152
98135
|
init_remote_attach();
|
|
98153
98136
|
init_delegated_channel();
|
|
98154
98137
|
init_errors4();
|
|
98138
|
+
init_refused_before_sending();
|
|
98155
98139
|
init_listing_rows();
|
|
98156
98140
|
init_version2();
|
|
98157
98141
|
init_state_dir();
|
|
98142
|
+
init_engine_endpoint();
|
|
98158
98143
|
init_timers();
|
|
98159
98144
|
init_errors4();
|
|
98145
|
+
init_refused_before_sending();
|
|
98160
98146
|
init_not_sent_error();
|
|
98147
|
+
init_engine_endpoint();
|
|
98161
98148
|
init_protocol();
|
|
98149
|
+
init_unsettled_command();
|
|
98162
98150
|
init_state_dir();
|
|
98163
98151
|
init_timers();
|
|
98152
|
+
UPDATE_IN_FLIGHT_MAX_MS = 15 * 60000;
|
|
98153
|
+
UPDATE_IN_FLIGHT = new Set(["pending", "trial"]);
|
|
98164
98154
|
});
|
|
98165
98155
|
|
|
98166
98156
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/system/memory/metrics.mjs
|
|
@@ -103696,6 +103686,15 @@ var init_permission_presets = __esm(() => {
|
|
|
103696
103686
|
PERMISSION_PRESETS = ["full-access", "workspace", "accept-edits", "auto", "read-only", "ask"];
|
|
103697
103687
|
});
|
|
103698
103688
|
// packages/omo-senpi/src/components/thread/errors.ts
|
|
103689
|
+
function isThreadErrorCode(value) {
|
|
103690
|
+
return typeof value === "string" && CODE_SET.has(value);
|
|
103691
|
+
}
|
|
103692
|
+
function threadToolFailure(code, message, nextAction, details) {
|
|
103693
|
+
if (!isThreadErrorCode(code)) {
|
|
103694
|
+
throw new Error(`unknown thread error code: ${String(code)}`);
|
|
103695
|
+
}
|
|
103696
|
+
return { code, message, next_action: nextAction, ...details === undefined ? {} : { details } };
|
|
103697
|
+
}
|
|
103699
103698
|
var THREAD_ERROR_CODES, CODE_SET;
|
|
103700
103699
|
var init_errors5 = __esm(() => {
|
|
103701
103700
|
THREAD_ERROR_CODES = [
|
|
@@ -103711,6 +103710,7 @@ var init_errors5 = __esm(() => {
|
|
|
103711
103710
|
"foreign_live_owner",
|
|
103712
103711
|
"no_active_turn",
|
|
103713
103712
|
"turn_conflict",
|
|
103713
|
+
"turn_active",
|
|
103714
103714
|
"not_steerable",
|
|
103715
103715
|
"message_too_large",
|
|
103716
103716
|
"queue_full",
|
|
@@ -103719,6 +103719,7 @@ var init_errors5 = __esm(() => {
|
|
|
103719
103719
|
"idempotency_conflict",
|
|
103720
103720
|
"idempotency_in_progress",
|
|
103721
103721
|
"idempotency_uncertain",
|
|
103722
|
+
"delivered_unconfirmed",
|
|
103722
103723
|
"approval_unavailable",
|
|
103723
103724
|
"approval_route_locked",
|
|
103724
103725
|
"partial_commit",
|
|
@@ -103731,6 +103732,7 @@ var init_errors5 = __esm(() => {
|
|
|
103731
103732
|
"model_ambiguous",
|
|
103732
103733
|
"thinking_level_unsupported",
|
|
103733
103734
|
"loop_detected",
|
|
103735
|
+
"chain_count_limit",
|
|
103734
103736
|
"binding_conflict",
|
|
103735
103737
|
"binding_mismatch",
|
|
103736
103738
|
"binding_inactive",
|
|
@@ -103740,7 +103742,8 @@ var init_errors5 = __esm(() => {
|
|
|
103740
103742
|
"answer_in_progress",
|
|
103741
103743
|
"device_offline",
|
|
103742
103744
|
"relay_requires_paid_plan",
|
|
103743
|
-
"alias_taken"
|
|
103745
|
+
"alias_taken",
|
|
103746
|
+
"gateway_schema_too_new"
|
|
103744
103747
|
];
|
|
103745
103748
|
CODE_SET = new Set(THREAD_ERROR_CODES);
|
|
103746
103749
|
});
|
|
@@ -103749,7 +103752,7 @@ var init_errors5 = __esm(() => {
|
|
|
103749
103752
|
var init_initial_skills = () => {};
|
|
103750
103753
|
|
|
103751
103754
|
// packages/omo-senpi/src/components/thread/remote/outcome.ts
|
|
103752
|
-
var READ_UNCERTAIN, UNANSWERED;
|
|
103755
|
+
var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN;
|
|
103753
103756
|
var init_outcome = __esm(() => {
|
|
103754
103757
|
init_errors5();
|
|
103755
103758
|
READ_UNCERTAIN = {
|
|
@@ -103775,11 +103778,13 @@ var init_outcome = __esm(() => {
|
|
|
103775
103778
|
"handshake_timeout",
|
|
103776
103779
|
"attach_failed",
|
|
103777
103780
|
"reply_lost",
|
|
103781
|
+
"delivered_unconfirmed",
|
|
103778
103782
|
"host_not_answering",
|
|
103779
103783
|
"peer_not_found",
|
|
103780
103784
|
"engine_stale",
|
|
103781
103785
|
...Object.entries(READ_UNCERTAIN).filter(([, answer]) => answer === "retry").map(([reason]) => reason)
|
|
103782
103786
|
]);
|
|
103787
|
+
NOT_SIGNED_IN = new Set(["sign_in_required", "signed_out"]);
|
|
103783
103788
|
});
|
|
103784
103789
|
// packages/omo-senpi/src/components/thread/remote/remote-ops.ts
|
|
103785
103790
|
var init_remote_ops = __esm(() => {
|
|
@@ -103834,162 +103839,6 @@ var init_thread_link = __esm(() => {
|
|
|
103834
103839
|
PREFIX = `${THREAD_LINK_SCHEME}://v1/`;
|
|
103835
103840
|
});
|
|
103836
103841
|
|
|
103837
|
-
// packages/omo-senpi/src/components/thread/remote/address-book.ts
|
|
103838
|
-
var REMOTE_NOT_SET_UP;
|
|
103839
|
-
var init_address_book = __esm(() => {
|
|
103840
|
-
init_remote_ops();
|
|
103841
|
-
REMOTE_NOT_SET_UP = new Set(["not_configured", "disabled", "signed_out", "sign_in_required"]);
|
|
103842
|
-
});
|
|
103843
|
-
|
|
103844
|
-
// packages/omo-senpi/src/components/thread/addressing.ts
|
|
103845
|
-
var init_addressing = __esm(() => {
|
|
103846
|
-
init_errors5();
|
|
103847
|
-
});
|
|
103848
|
-
|
|
103849
|
-
// packages/omo-senpi/src/components/thread/session-facts.ts
|
|
103850
|
-
var SESSION_FACTS_WINDOW_BYTES, SESSION_FACTS_LAST_LINE_MAX_BYTES;
|
|
103851
|
-
var init_session_facts = __esm(() => {
|
|
103852
|
-
SESSION_FACTS_WINDOW_BYTES = 64 * 1024;
|
|
103853
|
-
SESSION_FACTS_LAST_LINE_MAX_BYTES = SESSION_FACTS_WINDOW_BYTES * 4;
|
|
103854
|
-
});
|
|
103855
|
-
|
|
103856
|
-
// packages/omo-senpi/src/components/thread/address-book.ts
|
|
103857
|
-
var init_address_book2 = __esm(() => {
|
|
103858
|
-
init_addressing();
|
|
103859
|
-
init_session_facts();
|
|
103860
|
-
});
|
|
103861
|
-
|
|
103862
|
-
// packages/omo-senpi/src/components/thread/metadata.ts
|
|
103863
|
-
var THREAD_TOOL_EXPOSURE = "eval", ROUTE_TO_TASK = "; to spawn a child task instead, use task.", THREAD_TOOL_METADATA;
|
|
103864
|
-
var init_metadata = __esm(() => {
|
|
103865
|
-
THREAD_TOOL_METADATA = [
|
|
103866
|
-
{
|
|
103867
|
-
name: "thread_create",
|
|
103868
|
-
label: "Create session",
|
|
103869
|
-
description: "Starts a fresh agent session that runs alongside this one, for when the user wants a second session working in parallel" + ROUTE_TO_TASK,
|
|
103870
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103871
|
-
},
|
|
103872
|
-
{
|
|
103873
|
-
name: "thread_list",
|
|
103874
|
-
label: "List sessions",
|
|
103875
|
-
description: "Shows every addressable session on this device and the account's other devices with its id, name, status and device, plus the account's devices, for when the user needs a valid target address before acting on a session" + ROUTE_TO_TASK,
|
|
103876
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103877
|
-
},
|
|
103878
|
-
{
|
|
103879
|
-
name: "thread_read",
|
|
103880
|
-
label: "Read session",
|
|
103881
|
-
description: "Returns the transcript and latest output of another session, for when the user asks what another session said or produced" + ROUTE_TO_TASK,
|
|
103882
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103883
|
-
},
|
|
103884
|
-
{
|
|
103885
|
-
name: "thread_send",
|
|
103886
|
-
label: "Send message to session",
|
|
103887
|
-
description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read, and a bound chat thread's replies through thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())" + ROUTE_TO_TASK,
|
|
103888
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103889
|
-
},
|
|
103890
|
-
{
|
|
103891
|
-
name: "thread_interrupt",
|
|
103892
|
-
label: "Interrupt session turn",
|
|
103893
|
-
description: "Stops the turn running in another session, and the background jobs that turn started, for when the user wants to halt a session that is going down the wrong path; the result's background lists what was stopped" + ROUTE_TO_TASK,
|
|
103894
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103895
|
-
},
|
|
103896
|
-
{
|
|
103897
|
-
name: "thread_close",
|
|
103898
|
-
label: "Close session",
|
|
103899
|
-
description: "Closes a session. Omit thread or pass self to close this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; the result is closed true or false plus a reason" + ROUTE_TO_TASK,
|
|
103900
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103901
|
-
},
|
|
103902
|
-
{
|
|
103903
|
-
name: "thread_handoff",
|
|
103904
|
-
label: "Hand off session",
|
|
103905
|
-
description: "Moves the current request to an old session that has the context, for when the user says to hand this off or reopen that earlier conversation" + ROUTE_TO_TASK,
|
|
103906
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103907
|
-
},
|
|
103908
|
-
{
|
|
103909
|
-
name: "thread_rename",
|
|
103910
|
-
label: "Rename session",
|
|
103911
|
-
description: "Renames a session's label, for when the user asks to call a session something clearer. Omit thread or pass self to rename this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; a miss names the thread value to pass",
|
|
103912
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103913
|
-
},
|
|
103914
|
-
{
|
|
103915
|
-
name: "thread_set_model",
|
|
103916
|
-
label: "Switch session model",
|
|
103917
|
-
description: "Moves a session onto a different model, for when the user asks to switch that session to another model or a cheaper one",
|
|
103918
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103919
|
-
},
|
|
103920
|
-
{
|
|
103921
|
-
name: "thread_set_reasoning",
|
|
103922
|
-
label: "Set session reasoning level",
|
|
103923
|
-
description: "Sets how much reasoning a session applies, for when the user asks to raise or lower the thinking effort of a session",
|
|
103924
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103925
|
-
},
|
|
103926
|
-
{
|
|
103927
|
-
name: "thread_report",
|
|
103928
|
-
label: "Report to chat thread",
|
|
103929
|
-
description: "Posts a milestone, result, question or completion from this session to its bound chat thread, for when the user wants progress relayed to that chat; replies flow back through thread_read, thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())",
|
|
103930
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103931
|
-
},
|
|
103932
|
-
{
|
|
103933
|
-
name: "thread_outbox",
|
|
103934
|
-
label: "Read chat outbox",
|
|
103935
|
-
description: "Returns the reports waiting for a bound chat thread with a cursor, for when a connector collects what sessions posted",
|
|
103936
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103937
|
-
},
|
|
103938
|
-
{
|
|
103939
|
-
name: "thread_outbox_ack",
|
|
103940
|
-
label: "Acknowledge chat outbox",
|
|
103941
|
-
description: "Marks outbox rows up to a cursor as posted to the chat, for when a connector confirms delivery",
|
|
103942
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103943
|
-
},
|
|
103944
|
-
{
|
|
103945
|
-
name: "thread_answer",
|
|
103946
|
-
label: "Answer relayed question",
|
|
103947
|
-
description: "Resolves a question a session relayed to a chat thread with the answer that arrived there, for when a connector hands back a chat user's reply",
|
|
103948
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
103949
|
-
}
|
|
103950
|
-
];
|
|
103951
|
-
});
|
|
103952
|
-
// packages/omo-senpi/src/components/thread/tools/internals.ts
|
|
103953
|
-
var init_internals = __esm(() => {
|
|
103954
|
-
init_address_book();
|
|
103955
|
-
init_remote_ops();
|
|
103956
|
-
init_address_book2();
|
|
103957
|
-
init_addressing();
|
|
103958
|
-
init_errors5();
|
|
103959
|
-
init_metadata();
|
|
103960
|
-
init_session_facts();
|
|
103961
|
-
init_thread_link();
|
|
103962
|
-
});
|
|
103963
|
-
|
|
103964
|
-
// packages/omo-senpi/src/components/thread/control/session-host.ts
|
|
103965
|
-
var init_session_host = __esm(() => {
|
|
103966
|
-
init_internals();
|
|
103967
|
-
});
|
|
103968
|
-
|
|
103969
|
-
// packages/omo-senpi/src/components/thread/control/relay-session-host.ts
|
|
103970
|
-
var init_relay_session_host = __esm(() => {
|
|
103971
|
-
init_errors5();
|
|
103972
|
-
init_initial_skills();
|
|
103973
|
-
init_outcome();
|
|
103974
|
-
init_remote_ops();
|
|
103975
|
-
init_remote_worktree();
|
|
103976
|
-
init_open_reply();
|
|
103977
|
-
init_thread_link();
|
|
103978
|
-
init_session_host();
|
|
103979
|
-
});
|
|
103980
|
-
|
|
103981
|
-
// packages/omo-senpi/src/components/thread/tools/model-match.ts
|
|
103982
|
-
var init_model_match = __esm(() => {
|
|
103983
|
-
init_internals();
|
|
103984
|
-
});
|
|
103985
|
-
|
|
103986
|
-
// packages/omo-senpi/src/components/thread/control/operations.ts
|
|
103987
|
-
var init_operations = __esm(() => {
|
|
103988
|
-
init_internals();
|
|
103989
|
-
init_model_match();
|
|
103990
|
-
init_port();
|
|
103991
|
-
});
|
|
103992
|
-
|
|
103993
103842
|
// packages/omo-senpi/src/components/thread/contracts/create-params.ts
|
|
103994
103843
|
var ThreadCreateParams;
|
|
103995
103844
|
var init_create_params = __esm(() => {
|
|
@@ -104058,7 +103907,7 @@ var init_create_params = __esm(() => {
|
|
|
104058
103907
|
});
|
|
104059
103908
|
|
|
104060
103909
|
// packages/omo-senpi/src/components/thread/contracts/params.ts
|
|
104061
|
-
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadReportParams, ThreadOutboxParams, ThreadOutboxAckParams, ThreadAnswerParams;
|
|
103910
|
+
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams, ThreadReportParams, ThreadOutboxParams, ThreadOutboxAckParams, ThreadAnswerParams;
|
|
104062
103911
|
var init_params = __esm(() => {
|
|
104063
103912
|
init_build();
|
|
104064
103913
|
init_fields();
|
|
@@ -104066,12 +103915,16 @@ var init_params = __esm(() => {
|
|
|
104066
103915
|
ThreadListParams = _Object_({
|
|
104067
103916
|
all_scope: Optional(Boolean2({
|
|
104068
103917
|
description: "List this machine's threads from every workspace; the default returns only the caller's workspace here. The account's other devices' threads are always listed."
|
|
103918
|
+
})),
|
|
103919
|
+
state: Optional(_Array_(Union([Literal("running"), Literal("idle"), Literal("inactive"), Literal("archived")]), {
|
|
103920
|
+
minItems: 1,
|
|
103921
|
+
description: "Thread states to list: running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
|
|
104069
103922
|
}))
|
|
104070
103923
|
});
|
|
104071
103924
|
ThreadReadParams = _Object_({
|
|
104072
103925
|
thread: ThreadAddress,
|
|
104073
103926
|
cursor: Optional(String2({
|
|
104074
|
-
description: "Opaque cursor from an earlier thread_read (tool.thread_read() in an eval cell) to
|
|
103927
|
+
description: "Opaque cursor from an earlier thread_read (tool.thread_read() in an eval cell) to page the older messages of a truncated read (a read without one returns the newest messages that fit max_bytes); a transcript revision that moved past it returns cursor_stale."
|
|
104075
103928
|
})),
|
|
104076
103929
|
max_bytes: Optional(Integer({
|
|
104077
103930
|
minimum: 1,
|
|
@@ -104160,6 +104013,14 @@ var init_params = __esm(() => {
|
|
|
104160
104013
|
all_scope: AllScope,
|
|
104161
104014
|
idempotency_key: IdempotencyKey
|
|
104162
104015
|
});
|
|
104016
|
+
ThreadArchiveParams = _Object_({
|
|
104017
|
+
thread: ThreadAddress,
|
|
104018
|
+
archived: Optional(Boolean2({
|
|
104019
|
+
description: "true (the default) archives the thread, so thread_list (tool.thread_list() in an eval cell) hides it unless state includes archived; false unarchives it."
|
|
104020
|
+
})),
|
|
104021
|
+
all_scope: AllScope,
|
|
104022
|
+
idempotency_key: IdempotencyKey
|
|
104023
|
+
});
|
|
104163
104024
|
ThreadReportParams = _Object_({
|
|
104164
104025
|
binding_id: Optional(String2({
|
|
104165
104026
|
minLength: 1,
|
|
@@ -108700,11 +108561,209 @@ var init_parse6 = __esm(() => {
|
|
|
108700
108561
|
init_value2();
|
|
108701
108562
|
init_errors5();
|
|
108702
108563
|
});
|
|
108564
|
+
|
|
108565
|
+
// packages/omo-senpi/src/components/thread/contracts/state.ts
|
|
108566
|
+
var THREAD_ACTIVITIES;
|
|
108567
|
+
var init_state2 = __esm(() => {
|
|
108568
|
+
THREAD_ACTIVITIES = ["idle", "running", "awaiting_approval", "queued", "errored"];
|
|
108569
|
+
});
|
|
108570
|
+
|
|
108571
|
+
// packages/omo-senpi/src/components/thread/contracts/results.ts
|
|
108572
|
+
var init_results = __esm(() => {
|
|
108573
|
+
init_state2();
|
|
108574
|
+
});
|
|
108575
|
+
|
|
108703
108576
|
// packages/omo-senpi/src/components/thread/contracts/index.ts
|
|
108704
108577
|
var init_contracts = __esm(() => {
|
|
108705
108578
|
init_fields();
|
|
108706
108579
|
init_params();
|
|
108707
108580
|
init_parse6();
|
|
108581
|
+
init_results();
|
|
108582
|
+
});
|
|
108583
|
+
|
|
108584
|
+
// packages/omo-senpi/src/components/thread/tools/thread-state.ts
|
|
108585
|
+
var ACTIVITIES;
|
|
108586
|
+
var init_thread_state = __esm(() => {
|
|
108587
|
+
init_contracts();
|
|
108588
|
+
ACTIVITIES = new Set(THREAD_ACTIVITIES);
|
|
108589
|
+
});
|
|
108590
|
+
|
|
108591
|
+
// packages/omo-senpi/src/components/thread/remote/address-book.ts
|
|
108592
|
+
var lastListed, REMOTE_NOT_SET_UP;
|
|
108593
|
+
var init_address_book = __esm(() => {
|
|
108594
|
+
init_errors5();
|
|
108595
|
+
init_remote_ops();
|
|
108596
|
+
lastListed = new WeakMap;
|
|
108597
|
+
REMOTE_NOT_SET_UP = new Set(["not_configured", "disabled", "signed_out", "sign_in_required"]);
|
|
108598
|
+
});
|
|
108599
|
+
|
|
108600
|
+
// packages/omo-senpi/src/components/thread/addressing.ts
|
|
108601
|
+
var init_addressing = __esm(() => {
|
|
108602
|
+
init_errors5();
|
|
108603
|
+
});
|
|
108604
|
+
|
|
108605
|
+
// packages/omo-senpi/src/components/thread/session-facts.ts
|
|
108606
|
+
var SESSION_FACTS_WINDOW_BYTES, SESSION_FACTS_LAST_LINE_MAX_BYTES;
|
|
108607
|
+
var init_session_facts = __esm(() => {
|
|
108608
|
+
SESSION_FACTS_WINDOW_BYTES = 64 * 1024;
|
|
108609
|
+
SESSION_FACTS_LAST_LINE_MAX_BYTES = SESSION_FACTS_WINDOW_BYTES * 4;
|
|
108610
|
+
});
|
|
108611
|
+
|
|
108612
|
+
// packages/omo-senpi/src/components/thread/address-book.ts
|
|
108613
|
+
var init_address_book2 = __esm(() => {
|
|
108614
|
+
init_addressing();
|
|
108615
|
+
init_session_facts();
|
|
108616
|
+
});
|
|
108617
|
+
|
|
108618
|
+
// packages/omo-senpi/src/components/thread/metadata.ts
|
|
108619
|
+
var THREAD_TOOL_EXPOSURE = "eval", ROUTE_TO_TASK = "; to spawn a child task instead, use task.", THREAD_TOOL_METADATA;
|
|
108620
|
+
var init_metadata = __esm(() => {
|
|
108621
|
+
THREAD_TOOL_METADATA = [
|
|
108622
|
+
{
|
|
108623
|
+
name: "thread_create",
|
|
108624
|
+
label: "Create session",
|
|
108625
|
+
description: "Starts a fresh agent session that runs alongside this one, for when the user wants a second session working in parallel" + ROUTE_TO_TASK,
|
|
108626
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108627
|
+
},
|
|
108628
|
+
{
|
|
108629
|
+
name: "thread_list",
|
|
108630
|
+
label: "List sessions",
|
|
108631
|
+
description: "Shows every addressable session on this device and the account's other devices with its id, name, status and device, plus the account's devices, for when the user needs a valid target address before acting on a session" + ROUTE_TO_TASK,
|
|
108632
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108633
|
+
},
|
|
108634
|
+
{
|
|
108635
|
+
name: "thread_read",
|
|
108636
|
+
label: "Read session",
|
|
108637
|
+
description: "Returns the transcript and latest output of another session, for when the user asks what another session said or produced" + ROUTE_TO_TASK,
|
|
108638
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108639
|
+
},
|
|
108640
|
+
{
|
|
108641
|
+
name: "thread_send",
|
|
108642
|
+
label: "Send message to session",
|
|
108643
|
+
description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read, and a bound chat thread's replies through thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())" + ROUTE_TO_TASK,
|
|
108644
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108645
|
+
},
|
|
108646
|
+
{
|
|
108647
|
+
name: "thread_interrupt",
|
|
108648
|
+
label: "Interrupt session turn",
|
|
108649
|
+
description: "Stops the turn running in another session, and the background jobs that turn started, for when the user wants to halt a session that is going down the wrong path; the result's background lists what was stopped" + ROUTE_TO_TASK,
|
|
108650
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108651
|
+
},
|
|
108652
|
+
{
|
|
108653
|
+
name: "thread_close",
|
|
108654
|
+
label: "Close session",
|
|
108655
|
+
description: "Closes a session. Omit thread or pass self to close this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; the result is closed true or false plus a reason" + ROUTE_TO_TASK,
|
|
108656
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108657
|
+
},
|
|
108658
|
+
{
|
|
108659
|
+
name: "thread_handoff",
|
|
108660
|
+
label: "Hand off session",
|
|
108661
|
+
description: "Moves the current request to an old session that has the context, for when the user says to hand this off or reopen that earlier conversation" + ROUTE_TO_TASK,
|
|
108662
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108663
|
+
},
|
|
108664
|
+
{
|
|
108665
|
+
name: "thread_rename",
|
|
108666
|
+
label: "Rename session",
|
|
108667
|
+
description: "Renames a session's label, for when the user asks to call a session something clearer. Omit thread or pass self to rename this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; a miss names the thread value to pass",
|
|
108668
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108669
|
+
},
|
|
108670
|
+
{
|
|
108671
|
+
name: "thread_set_model",
|
|
108672
|
+
label: "Switch session model",
|
|
108673
|
+
description: "Moves a session onto a different model, for when the user asks to switch that session to another model or a cheaper one",
|
|
108674
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108675
|
+
},
|
|
108676
|
+
{
|
|
108677
|
+
name: "thread_set_reasoning",
|
|
108678
|
+
label: "Set session reasoning level",
|
|
108679
|
+
description: "Sets how much reasoning a session applies, for when the user asks to raise or lower the thinking effort of a session",
|
|
108680
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108681
|
+
},
|
|
108682
|
+
{
|
|
108683
|
+
name: "thread_archive",
|
|
108684
|
+
label: "Archive session",
|
|
108685
|
+
description: "Archives or unarchives a session so the session list hides or shows it again, for when the user is finished with a session but wants to keep it",
|
|
108686
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108687
|
+
},
|
|
108688
|
+
{
|
|
108689
|
+
name: "thread_report",
|
|
108690
|
+
label: "Report to chat thread",
|
|
108691
|
+
description: "Posts a milestone, result, question or completion from this session to its bound chat thread, for when the user wants progress relayed to that chat; replies flow back through thread_read, thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())",
|
|
108692
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108693
|
+
},
|
|
108694
|
+
{
|
|
108695
|
+
name: "thread_outbox",
|
|
108696
|
+
label: "Read chat outbox",
|
|
108697
|
+
description: "Returns the reports waiting for a bound chat thread with a cursor, for when a connector collects what sessions posted",
|
|
108698
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108699
|
+
},
|
|
108700
|
+
{
|
|
108701
|
+
name: "thread_outbox_ack",
|
|
108702
|
+
label: "Acknowledge chat outbox",
|
|
108703
|
+
description: "Marks outbox rows up to a cursor as posted to the chat, for when a connector confirms delivery",
|
|
108704
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108705
|
+
},
|
|
108706
|
+
{
|
|
108707
|
+
name: "thread_answer",
|
|
108708
|
+
label: "Answer relayed question",
|
|
108709
|
+
description: "Resolves a question a session relayed to a chat thread with the answer that arrived there, for when a connector hands back a chat user's reply",
|
|
108710
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
108711
|
+
}
|
|
108712
|
+
];
|
|
108713
|
+
});
|
|
108714
|
+
// packages/omo-senpi/src/components/thread/tools/internals.ts
|
|
108715
|
+
function failure3(code, message, next, details) {
|
|
108716
|
+
return { kind: "error", error: threadToolFailure(code, message, next, details) };
|
|
108717
|
+
}
|
|
108718
|
+
var init_internals = __esm(() => {
|
|
108719
|
+
init_address_book();
|
|
108720
|
+
init_remote_ops();
|
|
108721
|
+
init_address_book2();
|
|
108722
|
+
init_addressing();
|
|
108723
|
+
init_errors5();
|
|
108724
|
+
init_metadata();
|
|
108725
|
+
init_session_facts();
|
|
108726
|
+
init_thread_link();
|
|
108727
|
+
init_thread_state();
|
|
108728
|
+
});
|
|
108729
|
+
|
|
108730
|
+
// packages/omo-senpi/src/components/thread/control/session-host.ts
|
|
108731
|
+
var init_session_host = __esm(() => {
|
|
108732
|
+
init_internals();
|
|
108733
|
+
});
|
|
108734
|
+
|
|
108735
|
+
// packages/omo-senpi/src/components/thread/control/relay-session-host.ts
|
|
108736
|
+
var init_relay_session_host = __esm(() => {
|
|
108737
|
+
init_errors5();
|
|
108738
|
+
init_initial_skills();
|
|
108739
|
+
init_outcome();
|
|
108740
|
+
init_remote_ops();
|
|
108741
|
+
init_remote_worktree();
|
|
108742
|
+
init_open_reply();
|
|
108743
|
+
init_thread_link();
|
|
108744
|
+
init_thread_state();
|
|
108745
|
+
init_session_host();
|
|
108746
|
+
});
|
|
108747
|
+
|
|
108748
|
+
// packages/omo-senpi/src/components/thread/tools/model-match.ts
|
|
108749
|
+
var init_model_match = __esm(() => {
|
|
108750
|
+
init_internals();
|
|
108751
|
+
});
|
|
108752
|
+
|
|
108753
|
+
// packages/omo-senpi/src/components/thread/control/operations.ts
|
|
108754
|
+
var NOT_LIVE;
|
|
108755
|
+
var init_operations = __esm(() => {
|
|
108756
|
+
init_internals();
|
|
108757
|
+
init_model_match();
|
|
108758
|
+
init_port();
|
|
108759
|
+
NOT_LIVE = failure3("not_resumable", "The thread has no live owner.", "Retry when the target is live.");
|
|
108760
|
+
});
|
|
108761
|
+
|
|
108762
|
+
// packages/omo-senpi/src/components/call-budget/call-deadline.ts
|
|
108763
|
+
import { AsyncLocalStorage as AsyncLocalStorage4 } from "async_hooks";
|
|
108764
|
+
var scope;
|
|
108765
|
+
var init_call_deadline = __esm(() => {
|
|
108766
|
+
scope = new AsyncLocalStorage4;
|
|
108708
108767
|
});
|
|
108709
108768
|
// packages/omo-senpi/src/components/thread/reader.ts
|
|
108710
108769
|
var init_reader = __esm(() => {
|
|
@@ -108759,12 +108818,20 @@ var init_wait_settled = __esm(() => {
|
|
|
108759
108818
|
"tool_execution_update",
|
|
108760
108819
|
"tool_execution_end",
|
|
108761
108820
|
"turn_end",
|
|
108762
|
-
"agent_end"
|
|
108821
|
+
"agent_end",
|
|
108822
|
+
"auto_retry_start",
|
|
108823
|
+
"auto_retry_end"
|
|
108763
108824
|
]);
|
|
108764
108825
|
});
|
|
108765
108826
|
|
|
108827
|
+
// packages/omo-senpi/src/components/thread/tools/thread-row.ts
|
|
108828
|
+
var init_thread_row = __esm(() => {
|
|
108829
|
+
init_thread_link();
|
|
108830
|
+
});
|
|
108831
|
+
|
|
108766
108832
|
// packages/omo-senpi/src/components/thread/control/relay-control.ts
|
|
108767
108833
|
var init_relay_control = __esm(() => {
|
|
108834
|
+
init_call_deadline();
|
|
108768
108835
|
init_address_book();
|
|
108769
108836
|
init_outcome();
|
|
108770
108837
|
init_transcript_tail();
|
|
@@ -108773,6 +108840,8 @@ var init_relay_control = __esm(() => {
|
|
|
108773
108840
|
init_close_ladder();
|
|
108774
108841
|
init_port();
|
|
108775
108842
|
init_wait_settled();
|
|
108843
|
+
init_relay_session_host();
|
|
108844
|
+
init_thread_row();
|
|
108776
108845
|
});
|
|
108777
108846
|
|
|
108778
108847
|
// packages/omo-senpi/src/components/thread/remote/attach-pool.ts
|
|
@@ -108814,45 +108883,14 @@ var init_remote_watch = __esm(() => {
|
|
|
108814
108883
|
init_device_service2();
|
|
108815
108884
|
init_session_state();
|
|
108816
108885
|
});
|
|
108817
|
-
|
|
108818
108886
|
// packages/omo-senpi/src/components/remote/port/device-service.ts
|
|
108819
|
-
var
|
|
108887
|
+
var READ_ONLY_RECORDS, MARKED_RECORDS, LOOKUP_NONE;
|
|
108820
108888
|
var init_device_service3 = __esm(() => {
|
|
108821
108889
|
init_outcome();
|
|
108822
108890
|
init_device_service2();
|
|
108823
108891
|
init_attach_pool();
|
|
108824
108892
|
init_remote_watch();
|
|
108825
|
-
|
|
108826
|
-
"unauthenticated",
|
|
108827
|
-
"client_proof_invalid",
|
|
108828
|
-
"invalid_request",
|
|
108829
|
-
"unknown_type",
|
|
108830
|
-
"forbidden",
|
|
108831
|
-
"owner_transfer",
|
|
108832
|
-
"signed_out",
|
|
108833
|
-
"device_mismatch",
|
|
108834
|
-
"device_changed",
|
|
108835
|
-
"account_changed",
|
|
108836
|
-
"device_key_invalid",
|
|
108837
|
-
"service_disabled",
|
|
108838
|
-
"sign_in_required",
|
|
108839
|
-
"plan_required",
|
|
108840
|
-
"activation_pending",
|
|
108841
|
-
"authorization_stale",
|
|
108842
|
-
"peer_not_found",
|
|
108843
|
-
"peer_not_session_client",
|
|
108844
|
-
"session_not_found",
|
|
108845
|
-
"engine_too_old",
|
|
108846
|
-
"not_attached",
|
|
108847
|
-
"command_id_conflict",
|
|
108848
|
-
"message_too_long",
|
|
108849
|
-
"upload_incomplete",
|
|
108850
|
-
"malformed",
|
|
108851
|
-
"method_unclassified",
|
|
108852
|
-
"method_local_only",
|
|
108853
|
-
"host_not_answering",
|
|
108854
|
-
"unsupported"
|
|
108855
|
-
]);
|
|
108893
|
+
init_call_deadline();
|
|
108856
108894
|
READ_ONLY_RECORDS = new Set(["get_state", "get_messages", "get_entries"]);
|
|
108857
108895
|
MARKED_RECORDS = new Set(["admit_external_message"]);
|
|
108858
108896
|
LOOKUP_NONE = new Set(["session_not_found", "peer_not_found", "peer_not_session_client"]);
|
|
@@ -108892,6 +108930,12 @@ var init_codes = __esm(() => {
|
|
|
108892
108930
|
]);
|
|
108893
108931
|
});
|
|
108894
108932
|
|
|
108933
|
+
// packages/omo-senpi/src/components/remote/connection-of.ts
|
|
108934
|
+
var lenders;
|
|
108935
|
+
var init_connection_of = __esm(() => {
|
|
108936
|
+
lenders = new WeakMap;
|
|
108937
|
+
});
|
|
108938
|
+
|
|
108895
108939
|
// packages/omo-senpi/src/components/remote/deadlines.ts
|
|
108896
108940
|
var init_deadlines = __esm(() => {
|
|
108897
108941
|
init_codes();
|
|
@@ -108964,6 +109008,21 @@ var init_result2 = __esm(() => {
|
|
|
108964
109008
|
init_errors5();
|
|
108965
109009
|
});
|
|
108966
109010
|
|
|
109011
|
+
// packages/omo-senpi/src/components/thread/remote/find-session.ts
|
|
109012
|
+
var NO_FIND_SESSION;
|
|
109013
|
+
var init_find_session = __esm(() => {
|
|
109014
|
+
init_errors5();
|
|
109015
|
+
init_outcome();
|
|
109016
|
+
init_remote_ops();
|
|
109017
|
+
NO_FIND_SESSION = new Set([
|
|
109018
|
+
"method_unclassified",
|
|
109019
|
+
"unknown_command",
|
|
109020
|
+
"unknown_type",
|
|
109021
|
+
"unsupported",
|
|
109022
|
+
"find_session_unsupported"
|
|
109023
|
+
]);
|
|
109024
|
+
});
|
|
109025
|
+
|
|
108967
109026
|
// packages/omo-senpi/src/components/thread/remote/relay-transport.ts
|
|
108968
109027
|
var ADMIT_UNSUPPORTED, WAITS;
|
|
108969
109028
|
var init_relay_transport = __esm(() => {
|
|
@@ -108973,6 +109032,8 @@ var init_relay_transport = __esm(() => {
|
|
|
108973
109032
|
init_result2();
|
|
108974
109033
|
init_remote_ops();
|
|
108975
109034
|
init_outcome();
|
|
109035
|
+
init_find_session();
|
|
109036
|
+
init_call_deadline();
|
|
108976
109037
|
ADMIT_UNSUPPORTED = new Set([
|
|
108977
109038
|
"method_unclassified",
|
|
108978
109039
|
"delegation_unclassified",
|
|
@@ -109022,6 +109083,7 @@ var init_unknown_device = __esm(() => {
|
|
|
109022
109083
|
|
|
109023
109084
|
// packages/omo-senpi/src/components/remote/client.ts
|
|
109024
109085
|
var init_client5 = __esm(() => {
|
|
109086
|
+
init_connection_of();
|
|
109025
109087
|
init_device_service2();
|
|
109026
109088
|
init_aliases();
|
|
109027
109089
|
init_attach();
|
|
@@ -109034,9 +109096,24 @@ var init_client5 = __esm(() => {
|
|
|
109034
109096
|
init_unknown_device();
|
|
109035
109097
|
});
|
|
109036
109098
|
|
|
109037
|
-
// packages/omo-senpi/src/components/
|
|
109038
|
-
var
|
|
109039
|
-
|
|
109099
|
+
// packages/omo-senpi/src/components/remote/factories.ts
|
|
109100
|
+
var init_factories = __esm(() => {
|
|
109101
|
+
init_client5();
|
|
109102
|
+
});
|
|
109103
|
+
|
|
109104
|
+
// packages/omo-senpi/src/components/thread/remote/plan-create.ts
|
|
109105
|
+
var ALIASES_UNAVAILABLE;
|
|
109106
|
+
var init_plan_create = __esm(() => {
|
|
109107
|
+
init_addressing();
|
|
109108
|
+
init_relay_session_host();
|
|
109109
|
+
init_errors5();
|
|
109110
|
+
init_thread_row();
|
|
109111
|
+
init_find_session();
|
|
109112
|
+
init_remote_ops();
|
|
109113
|
+
ALIASES_UNAVAILABLE = {
|
|
109114
|
+
kind: "error",
|
|
109115
|
+
error: threadToolFailure("host_unavailable", "Thread aliases need the account's alias registry, which this device cannot reach.", "Create or address the thread by its id; retry the alias later.")
|
|
109116
|
+
};
|
|
109040
109117
|
});
|
|
109041
109118
|
|
|
109042
109119
|
// packages/omo-opencode/src/cli/cli-program.ts
|
|
@@ -124602,8 +124679,8 @@ var package_default3 = {
|
|
|
124602
124679
|
},
|
|
124603
124680
|
dependencies: {
|
|
124604
124681
|
"@clack/prompts": "^1.8.1",
|
|
124605
|
-
"@code-yeongyu/senpi": "2026.11.18",
|
|
124606
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.18",
|
|
124682
|
+
"@code-yeongyu/senpi": "2026.11.18-2",
|
|
124683
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.18-2",
|
|
124607
124684
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
124608
124685
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
124609
124686
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
@@ -127859,7 +127936,135 @@ import { createHash as createHash10 } from "crypto";
|
|
|
127859
127936
|
|
|
127860
127937
|
// packages/memory-core/src/sync/item/machine-id.ts
|
|
127861
127938
|
import { execFile as execFile7 } from "child_process";
|
|
127862
|
-
|
|
127939
|
+
|
|
127940
|
+
// packages/memory-core/src/fs/resilient.ts
|
|
127941
|
+
import * as fsSync from "fs";
|
|
127942
|
+
import * as fsp from "fs/promises";
|
|
127943
|
+
|
|
127944
|
+
// packages/memory-core/src/fs/retry.ts
|
|
127945
|
+
var EINTR_RETRY_CAP = 128;
|
|
127946
|
+
function fsErrorCode(error) {
|
|
127947
|
+
if (!(error instanceof Error) || !("code" in error))
|
|
127948
|
+
return;
|
|
127949
|
+
return typeof error.code === "string" ? error.code : undefined;
|
|
127950
|
+
}
|
|
127951
|
+
async function retryOnEintr(operation) {
|
|
127952
|
+
for (let attempt = 0;; attempt += 1) {
|
|
127953
|
+
try {
|
|
127954
|
+
return await operation();
|
|
127955
|
+
} catch (error) {
|
|
127956
|
+
if (fsErrorCode(error) !== "EINTR" || attempt >= EINTR_RETRY_CAP)
|
|
127957
|
+
throw error;
|
|
127958
|
+
}
|
|
127959
|
+
}
|
|
127960
|
+
}
|
|
127961
|
+
function retryOnEintrSync(operation) {
|
|
127962
|
+
for (let attempt = 0;; attempt += 1) {
|
|
127963
|
+
try {
|
|
127964
|
+
return operation();
|
|
127965
|
+
} catch (error) {
|
|
127966
|
+
if (fsErrorCode(error) !== "EINTR" || attempt >= EINTR_RETRY_CAP)
|
|
127967
|
+
throw error;
|
|
127968
|
+
}
|
|
127969
|
+
}
|
|
127970
|
+
}
|
|
127971
|
+
|
|
127972
|
+
// packages/memory-core/src/fs/rename-contention.ts
|
|
127973
|
+
var CONTENTION_CODES = new Set(["EPERM", "EBUSY", "EACCES"]);
|
|
127974
|
+
var CONTENTION_DELAYS_MS = [10, 25, 50, 100, 200, 400];
|
|
127975
|
+
var sleepFor = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
127976
|
+
async function renameWithContentionRetry(from, to, deps) {
|
|
127977
|
+
const delays = deps.platform === "win32" ? deps.delaysMs ?? CONTENTION_DELAYS_MS : [];
|
|
127978
|
+
const sleep = deps.sleep ?? sleepFor;
|
|
127979
|
+
for (let attempt = 0;; attempt += 1) {
|
|
127980
|
+
try {
|
|
127981
|
+
await retryOnEintr(() => deps.admit === undefined ? deps.rename(from, to) : deps.admit(() => deps.rename(from, to)));
|
|
127982
|
+
return;
|
|
127983
|
+
} catch (error) {
|
|
127984
|
+
const delay = delays[attempt];
|
|
127985
|
+
const code = fsErrorCode(error);
|
|
127986
|
+
if (delay === undefined || code === undefined || !CONTENTION_CODES.has(code))
|
|
127987
|
+
throw error;
|
|
127988
|
+
await sleep(delay);
|
|
127989
|
+
}
|
|
127990
|
+
}
|
|
127991
|
+
}
|
|
127992
|
+
|
|
127993
|
+
// packages/memory-core/src/fs/resilient.ts
|
|
127994
|
+
function isFunction2(value) {
|
|
127995
|
+
return typeof value === "function";
|
|
127996
|
+
}
|
|
127997
|
+
function withAsyncRetry(operation) {
|
|
127998
|
+
return (...args) => retryOnEintr(async () => operation(...args));
|
|
127999
|
+
}
|
|
128000
|
+
function withSyncRetry(operation) {
|
|
128001
|
+
return (...args) => retryOnEintrSync(() => operation(...args));
|
|
128002
|
+
}
|
|
128003
|
+
function resilientNamespace(namespace, kind) {
|
|
128004
|
+
const wrapFunction = kind === "async" ? withAsyncRetry : withSyncRetry;
|
|
128005
|
+
const cache = new Map;
|
|
128006
|
+
return new Proxy(namespace, {
|
|
128007
|
+
get(target, property) {
|
|
128008
|
+
if (cache.has(property))
|
|
128009
|
+
return cache.get(property);
|
|
128010
|
+
const value = Reflect.get(target, property);
|
|
128011
|
+
if (!isFunction2(value))
|
|
128012
|
+
return value;
|
|
128013
|
+
const wrapped = wrapFunction(value);
|
|
128014
|
+
const native = Reflect.get(value, "native");
|
|
128015
|
+
if (isFunction2(native))
|
|
128016
|
+
Object.assign(wrapped, { native: wrapFunction(native) });
|
|
128017
|
+
cache.set(property, wrapped);
|
|
128018
|
+
return wrapped;
|
|
128019
|
+
}
|
|
128020
|
+
});
|
|
128021
|
+
}
|
|
128022
|
+
var IDEMPOTENT_HANDLE_METHODS = new Set(["stat", "sync", "datasync", "chmod", "chown", "utimes", "truncate"]);
|
|
128023
|
+
var promises = resilientNamespace(fsp, "async");
|
|
128024
|
+
function rename8(from, to, admit) {
|
|
128025
|
+
return renameWithContentionRetry(from, to, {
|
|
128026
|
+
rename: (source, target) => fsp.rename(source, target),
|
|
128027
|
+
platform: process.platform,
|
|
128028
|
+
...admit === undefined ? {} : { admit }
|
|
128029
|
+
});
|
|
128030
|
+
}
|
|
128031
|
+
var sync = resilientNamespace(fsSync, "sync");
|
|
128032
|
+
var {
|
|
128033
|
+
access: access4,
|
|
128034
|
+
chmod: chmod2,
|
|
128035
|
+
copyFile: copyFile4,
|
|
128036
|
+
cp: cp5,
|
|
128037
|
+
link,
|
|
128038
|
+
lstat: lstat18,
|
|
128039
|
+
mkdir: mkdir10,
|
|
128040
|
+
mkdtemp: mkdtemp2,
|
|
128041
|
+
readFile: readFile34,
|
|
128042
|
+
readdir: readdir17,
|
|
128043
|
+
readlink: readlink7,
|
|
128044
|
+
realpath: realpath2,
|
|
128045
|
+
rm: rm16,
|
|
128046
|
+
rmdir: rmdir2,
|
|
128047
|
+
stat: stat8,
|
|
128048
|
+
statfs,
|
|
128049
|
+
unlink: unlink3
|
|
128050
|
+
} = promises;
|
|
128051
|
+
var {
|
|
128052
|
+
accessSync: accessSync5,
|
|
128053
|
+
chmodSync: chmodSync7,
|
|
128054
|
+
fsyncSync: fsyncSync3,
|
|
128055
|
+
linkSync,
|
|
128056
|
+
lstatSync: lstatSync5,
|
|
128057
|
+
mkdirSync: mkdirSync19,
|
|
128058
|
+
readFileSync: readFileSync44,
|
|
128059
|
+
readdirSync: readdirSync14,
|
|
128060
|
+
realpathSync: realpathSync13,
|
|
128061
|
+
statSync: statSync8,
|
|
128062
|
+
unlinkSync: unlinkSync10,
|
|
128063
|
+
writeFileSync: writeFileSync17,
|
|
128064
|
+
writeSync
|
|
128065
|
+
} = sync;
|
|
128066
|
+
|
|
128067
|
+
// packages/memory-core/src/sync/item/machine-id.ts
|
|
127863
128068
|
async function darwinPlatformUuid() {
|
|
127864
128069
|
const out = await run2("/usr/sbin/ioreg", ["-rd1", "-c", "IOPlatformExpertDevice"]);
|
|
127865
128070
|
return /"IOPlatformUUID" = "([^"]+)"/.exec(out ?? "")?.[1] ?? null;
|
|
@@ -128860,7 +129065,6 @@ import { randomUUID as randomUUID6 } from "crypto";
|
|
|
128860
129065
|
import { readFile as readFile36, stat as stat11 } from "fs/promises";
|
|
128861
129066
|
|
|
128862
129067
|
// packages/memory-core/src/locks/process-identity.ts
|
|
128863
|
-
init_resilient();
|
|
128864
129068
|
import { execFile as execFile8 } from "child_process";
|
|
128865
129069
|
|
|
128866
129070
|
// packages/memory-core/src/locks/process-start-time.ts
|
|
@@ -130358,6 +130562,15 @@ function refuseIfLocalOnly(site) {
|
|
|
130358
130562
|
throw new LocalOnlyNetworkRefused(site);
|
|
130359
130563
|
}
|
|
130360
130564
|
|
|
130565
|
+
// packages/memory-core/src/sync/contract-version.ts
|
|
130566
|
+
var SYNC_CONTRACT_VERSION = "1.44.0";
|
|
130567
|
+
var SYNC_CAPABILITIES = "phrase";
|
|
130568
|
+
var syncRequestHeaders = (token) => ({
|
|
130569
|
+
"omo-contract-version": SYNC_CONTRACT_VERSION,
|
|
130570
|
+
"omo-sync-capabilities": SYNC_CAPABILITIES,
|
|
130571
|
+
authorization: `Bearer ${token}`
|
|
130572
|
+
});
|
|
130573
|
+
|
|
130361
130574
|
// packages/omo-opencode/src/cli/service-auth/protocol-request.ts
|
|
130362
130575
|
init_zod();
|
|
130363
130576
|
class InvalidApiResponse extends SignInError {
|
|
@@ -130436,10 +130649,10 @@ async function requestApi(api, path, init, signal) {
|
|
|
130436
130649
|
}
|
|
130437
130650
|
|
|
130438
130651
|
// packages/omo-opencode/src/cli/service-auth/machine-reconcile.ts
|
|
130439
|
-
init_zod();
|
|
130440
130652
|
import { createHash as createHash15, createPrivateKey as createPrivateKey3, sign } from "crypto";
|
|
130441
130653
|
import { mkdir as mkdir14, readFile as readFile39, rename as rename11, rm as rm19, writeFile as writeFile18 } from "fs/promises";
|
|
130442
130654
|
import { dirname as dirname48, join as join115 } from "path";
|
|
130655
|
+
init_zod();
|
|
130443
130656
|
var MACHINE_BIND_CONTEXT = "omo-machine-bind-v1";
|
|
130444
130657
|
var DEVICE_FIXUP_BUDGET_MS = 5000;
|
|
130445
130658
|
var MACHINE_EXISTS_RETRY_MS = 7 * 24 * 60 * 60 * 1000;
|
|
@@ -130494,7 +130707,7 @@ async function reconcileDevice(options) {
|
|
|
130494
130707
|
if (!signal.aborted)
|
|
130495
130708
|
options.log(line);
|
|
130496
130709
|
};
|
|
130497
|
-
const auth =
|
|
130710
|
+
const auth = syncRequestHeaders(credentials.accessToken);
|
|
130498
130711
|
let own;
|
|
130499
130712
|
try {
|
|
130500
130713
|
const listed = deviceListSchema2.safeParse(await request("/v1/devices", { headers: auth }));
|
|
@@ -130643,7 +130856,7 @@ function createSession(options) {
|
|
|
130643
130856
|
}
|
|
130644
130857
|
const request = (path, init) => requestApi(api, path, init, signal);
|
|
130645
130858
|
const accountOf = async (access, stop = signal) => {
|
|
130646
|
-
const body = await requestApi(api, "/v1/me", { headers:
|
|
130859
|
+
const body = await requestApi(api, "/v1/me", { headers: syncRequestHeaders(access) }, stop).catch(() => null);
|
|
130647
130860
|
const id = typeof body === "object" && body !== null && "account" in body && typeof body.account === "object" && body.account !== null && "id" in body.account ? body.account.id : undefined;
|
|
130648
130861
|
return typeof id === "string" && id !== "" ? id : undefined;
|
|
130649
130862
|
};
|
|
@@ -130730,7 +130943,7 @@ function createSession(options) {
|
|
|
130730
130943
|
});
|
|
130731
130944
|
}
|
|
130732
130945
|
async function emailOf(access) {
|
|
130733
|
-
const body = await request("/v1/me", { headers:
|
|
130946
|
+
const body = await request("/v1/me", { headers: syncRequestHeaders(access) }).catch(() => null);
|
|
130734
130947
|
const user = typeof body === "object" && body !== null && "user" in body ? body.user : undefined;
|
|
130735
130948
|
const email = typeof user === "object" && user !== null && "email" in user ? user.email : undefined;
|
|
130736
130949
|
return typeof email === "string" && email !== "" ? email : undefined;
|
|
@@ -130816,7 +131029,7 @@ function createSession(options) {
|
|
|
130816
131029
|
}
|
|
130817
131030
|
await request(`/v1/devices/${encodeURIComponent(current.device.id)}`, {
|
|
130818
131031
|
method: "DELETE",
|
|
130819
|
-
headers:
|
|
131032
|
+
headers: syncRequestHeaders(access)
|
|
130820
131033
|
});
|
|
130821
131034
|
}
|
|
130822
131035
|
return true;
|
|
@@ -130842,7 +131055,7 @@ function createSession(options) {
|
|
|
130842
131055
|
async removeForLimit(error, choose) {
|
|
130843
131056
|
if (!(error instanceof ApiRefusal) || error.detail === undefined)
|
|
130844
131057
|
throw error;
|
|
130845
|
-
const headers =
|
|
131058
|
+
const headers = syncRequestHeaders(error.detail.managementToken);
|
|
130846
131059
|
const listed = parseReply(deviceListSchema, await request("/v1/devices", { headers }));
|
|
130847
131060
|
const devices = listed.devices.filter((device) => device.revokedAt === null);
|
|
130848
131061
|
const chosen = await choose(devices);
|
|
@@ -131166,7 +131379,6 @@ function decideReplace(options) {
|
|
|
131166
131379
|
}
|
|
131167
131380
|
|
|
131168
131381
|
// packages/memory-core/src/sync/device-retire.ts
|
|
131169
|
-
init_resilient();
|
|
131170
131382
|
import { createHash as createHash17, randomBytes as randomBytes6 } from "crypto";
|
|
131171
131383
|
import { join as join119 } from "path";
|
|
131172
131384
|
|
|
@@ -131680,7 +131892,7 @@ init_timers();
|
|
|
131680
131892
|
// packages/omo-native/package.json
|
|
131681
131893
|
var package_default4 = {
|
|
131682
131894
|
name: "omo-ai",
|
|
131683
|
-
version: "5.1.
|
|
131895
|
+
version: "5.1.78",
|
|
131684
131896
|
type: "module",
|
|
131685
131897
|
description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
|
|
131686
131898
|
bin: {
|
|
@@ -131697,7 +131909,7 @@ var package_default4 = {
|
|
|
131697
131909
|
postinstall: "node bin/senpi-patch.mjs"
|
|
131698
131910
|
},
|
|
131699
131911
|
dependencies: {
|
|
131700
|
-
"@code-yeongyu/senpi": "2026.11.18"
|
|
131912
|
+
"@code-yeongyu/senpi": "2026.11.18-2"
|
|
131701
131913
|
},
|
|
131702
131914
|
repository: {
|
|
131703
131915
|
type: "git",
|
|
@@ -131711,7 +131923,7 @@ async function accountOf(api, credentials, doFetch) {
|
|
|
131711
131923
|
if (credentials.accountId !== undefined)
|
|
131712
131924
|
return credentials.accountId;
|
|
131713
131925
|
refuseIfLocalOnly("omo-native/device-service-handoff.ts accountOf");
|
|
131714
|
-
const response = await doFetch(`${api}/v1/me`, { headers:
|
|
131926
|
+
const response = await doFetch(`${api}/v1/me`, { headers: syncRequestHeaders(credentials.accessToken) });
|
|
131715
131927
|
if (!response.ok)
|
|
131716
131928
|
throw new Error(`the account read failed (${response.status})`);
|
|
131717
131929
|
const body = await response.json();
|
|
@@ -131785,11 +131997,7 @@ function cliDeviceServiceHandoff(options) {
|
|
|
131785
131997
|
// packages/omo-native/remote-entry.ts
|
|
131786
131998
|
init_device_service2();
|
|
131787
131999
|
|
|
131788
|
-
// packages/memory-core/src/sync/crypto/trust-pin.ts
|
|
131789
|
-
init_resilient();
|
|
131790
|
-
|
|
131791
132000
|
// packages/memory-core/src/journal/fsync.ts
|
|
131792
|
-
init_resilient();
|
|
131793
132001
|
var SKIPPABLE_SYNC_CODES = new Set(["ENOENT", "EISDIR", "EPERM", "EACCES", "EINVAL"]);
|
|
131794
132002
|
|
|
131795
132003
|
// packages/memory-core/src/sync/crypto/vendor/sync-format/keys.ts
|
|
@@ -131825,9 +132033,6 @@ var D2 = mod2(-121665n * power2(121666n, P2 - 2n));
|
|
|
131825
132033
|
var SQRT_MINUS_ONE2 = power2(2n, (P2 - 1n) / 4n);
|
|
131826
132034
|
var keyCache2 = new Map;
|
|
131827
132035
|
|
|
131828
|
-
// packages/memory-core/src/sync/publication.ts
|
|
131829
|
-
init_resilient();
|
|
131830
|
-
|
|
131831
132036
|
// packages/memory-core/src/sync/crypto/trust-pin.ts
|
|
131832
132037
|
var SOURCES = new Set(["pairing", "recovery", "creator"]);
|
|
131833
132038
|
|
|
@@ -131880,13 +132085,12 @@ init_device_service3();
|
|
|
131880
132085
|
|
|
131881
132086
|
// packages/omo-senpi/src/components/remote/index.ts
|
|
131882
132087
|
init_codes();
|
|
131883
|
-
|
|
131884
|
-
// packages/omo-senpi/src/components/remote/factories.ts
|
|
131885
|
-
init_client5();
|
|
131886
|
-
|
|
131887
|
-
// packages/omo-senpi/src/components/remote/index.ts
|
|
132088
|
+
init_factories();
|
|
131888
132089
|
init_seams();
|
|
131889
132090
|
|
|
132091
|
+
// packages/omo-senpi/src/components/remote/device-address.ts
|
|
132092
|
+
init_plan_create();
|
|
132093
|
+
init_remote_ops();
|
|
131890
132094
|
// packages/omo-senpi/src/components/thread/gateway/store.ts
|
|
131891
132095
|
init_constants6();
|
|
131892
132096
|
init_provenance_resolver();
|