oh-my-opencode 5.1.83 → 5.1.84
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/cli/cli-program.d.ts +3 -0
- package/dist/cli/index.js +202 -193
- package/dist/cli-node/index.js +202 -193
- package/dist/index.js +28 -22
- package/dist/skills/browser/SKILL.md +97 -91
- package/dist/skills/browser/references/commands.md +88 -26
- package/dist/skills/browser/references/desktop.md +21 -0
- package/dist/skills/browser/references/install.md +18 -0
- package/dist/skills/browser/references/owned-engine/README.md +5 -2
- package/dist/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
- package/dist/skills/browser/references/owned-engine/network.md +4 -3
- package/dist/skills/browser/references/recipes/1password.md +4 -2
- package/dist/skills/browser/runtime/omowright/index.js +7 -7
- package/dist/skills/browser/runtime/omowright/manifest.json +4 -4
- package/dist/skills/debugging/references/tools/browser-qa.md +1 -1
- package/dist/skills/programming/SKILL.md +51 -320
- package/dist/skills/programming/references/go/README.md +1 -0
- package/dist/skills/programming/references/python/README.md +21 -3
- package/dist/skills/programming/references/python/error-handling.md +14 -0
- package/dist/skills/programming/references/rust/README.md +5 -1
- package/dist/skills/programming/references/typescript/README.md +9 -3
- package/dist/skills/programming/references/typescript/error-handling.md +18 -0
- package/dist/skills/ultimate-browsing/SKILL.md +1 -1
- package/dist/skills/visual-qa/references/browser-setup.md +5 -5
- package/dist/tui.js +16 -16
- package/package.json +14 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2 -2
- 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/dist/cli.js +8711 -172
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +8660 -121
- 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/telemetry/src/posthog.ts +5 -0
- package/packages/omo-codex/plugin/components/telemetry/tsconfig.json +2 -2
- 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/shared/src/config-loader.ts +15 -1
- package/packages/omo-codex/plugin/skills/browser/SKILL.md +97 -91
- package/packages/omo-codex/plugin/skills/browser/references/commands.md +88 -26
- package/packages/omo-codex/plugin/skills/browser/references/desktop.md +21 -0
- package/packages/omo-codex/plugin/skills/browser/references/install.md +18 -0
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +5 -2
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +4 -3
- package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +4 -2
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +7 -7
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -4
- package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +1 -1
- package/packages/omo-codex/plugin/skills/programming/SKILL.md +51 -320
- package/packages/omo-codex/plugin/skills/programming/references/go/README.md +1 -0
- package/packages/omo-codex/plugin/skills/programming/references/python/README.md +21 -3
- package/packages/omo-codex/plugin/skills/programming/references/python/error-handling.md +14 -0
- package/packages/omo-codex/plugin/skills/programming/references/rust/README.md +5 -1
- package/packages/omo-codex/plugin/skills/programming/references/typescript/README.md +9 -3
- package/packages/omo-codex/plugin/skills/programming/references/typescript/error-handling.md +18 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +5 -5
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +21189 -20653
- package/packages/shared-skills/skills/browser/SKILL.md +97 -91
- package/packages/shared-skills/skills/browser/references/commands.md +88 -26
- package/packages/shared-skills/skills/browser/references/desktop.md +21 -0
- package/packages/shared-skills/skills/browser/references/install.md +18 -0
- package/packages/shared-skills/skills/browser/references/owned-engine/README.md +5 -2
- package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +7 -2
- package/packages/shared-skills/skills/browser/references/owned-engine/network.md +4 -3
- package/packages/shared-skills/skills/browser/references/recipes/1password.md +4 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/index.js +7 -7
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -4
- package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +1 -1
- package/packages/shared-skills/skills/programming/SKILL.md +51 -320
- package/packages/shared-skills/skills/programming/references/go/README.md +1 -0
- package/packages/shared-skills/skills/programming/references/python/README.md +21 -3
- package/packages/shared-skills/skills/programming/references/python/error-handling.md +14 -0
- package/packages/shared-skills/skills/programming/references/rust/README.md +5 -1
- package/packages/shared-skills/skills/programming/references/typescript/README.md +9 -3
- package/packages/shared-skills/skills/programming/references/typescript/error-handling.md +18 -0
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +5 -5
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.84",
|
|
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",
|
|
@@ -2396,7 +2396,7 @@ var init_package = __esm(() => {
|
|
|
2396
2396
|
"jsonc-parser": "^3.3.1",
|
|
2397
2397
|
knip: "6.43.0",
|
|
2398
2398
|
"node-pty": "^1.1.0",
|
|
2399
|
-
omowright: "^0.3.
|
|
2399
|
+
omowright: "^0.3.4",
|
|
2400
2400
|
"oxc-parser": "0.148.0",
|
|
2401
2401
|
oxlint: "1.89.0",
|
|
2402
2402
|
picocolors: "^1.1.1",
|
|
@@ -2406,18 +2406,18 @@ var init_package = __esm(() => {
|
|
|
2406
2406
|
typescript: "^7.0.2"
|
|
2407
2407
|
},
|
|
2408
2408
|
optionalDependencies: {
|
|
2409
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2410
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2411
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2412
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2413
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2414
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2415
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2416
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2417
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2418
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2419
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2420
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2409
|
+
"oh-my-opencode-darwin-arm64": "5.1.84",
|
|
2410
|
+
"oh-my-opencode-darwin-x64": "5.1.84",
|
|
2411
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.84",
|
|
2412
|
+
"oh-my-opencode-linux-arm64": "5.1.84",
|
|
2413
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.84",
|
|
2414
|
+
"oh-my-opencode-linux-x64": "5.1.84",
|
|
2415
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.84",
|
|
2416
|
+
"oh-my-opencode-linux-x64-musl": "5.1.84",
|
|
2417
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.84",
|
|
2418
|
+
"oh-my-opencode-windows-arm64": "5.1.84",
|
|
2419
|
+
"oh-my-opencode-windows-x64": "5.1.84",
|
|
2420
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.84"
|
|
2421
2421
|
},
|
|
2422
2422
|
overrides: {
|
|
2423
2423
|
hono: "^4.13.8",
|
|
@@ -2433,6 +2433,91 @@ var init_package = __esm(() => {
|
|
|
2433
2433
|
};
|
|
2434
2434
|
});
|
|
2435
2435
|
|
|
2436
|
+
// packages/telemetry-core/src/constants.ts
|
|
2437
|
+
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
2438
|
+
|
|
2439
|
+
// packages/telemetry-core/src/env.ts
|
|
2440
|
+
function normalizeEnvValue(value) {
|
|
2441
|
+
return value?.trim().toLowerCase();
|
|
2442
|
+
}
|
|
2443
|
+
function includesValue(values, value) {
|
|
2444
|
+
const normalized = normalizeEnvValue(value);
|
|
2445
|
+
return normalized !== undefined && values.includes(normalized);
|
|
2446
|
+
}
|
|
2447
|
+
function isDisableFlag(value) {
|
|
2448
|
+
return includesValue(TRUTHY_DISABLE_VALUES, value);
|
|
2449
|
+
}
|
|
2450
|
+
function isSendOptOutFlag(value) {
|
|
2451
|
+
return includesValue(SEND_OPT_OUT_VALUES, value);
|
|
2452
|
+
}
|
|
2453
|
+
function shouldDisableTelemetry(input) {
|
|
2454
|
+
const env = input.env ?? process.env;
|
|
2455
|
+
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
2456
|
+
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
2457
|
+
if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
|
|
2458
|
+
return true;
|
|
2459
|
+
}
|
|
2460
|
+
if (env["OTEL_SDK_DISABLED"]?.trim().toLowerCase() === "true") {
|
|
2461
|
+
return true;
|
|
2462
|
+
}
|
|
2463
|
+
for (const prefix of prefixes) {
|
|
2464
|
+
if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
|
|
2465
|
+
return true;
|
|
2466
|
+
}
|
|
2467
|
+
if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
|
|
2468
|
+
return true;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
return false;
|
|
2472
|
+
}
|
|
2473
|
+
function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
2474
|
+
return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
2475
|
+
}
|
|
2476
|
+
function isConfiguredTelemetryApiKey(apiKey) {
|
|
2477
|
+
const normalized = apiKey.trim();
|
|
2478
|
+
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
2479
|
+
}
|
|
2480
|
+
function hasTelemetryApiKey(env, defaultApiKey) {
|
|
2481
|
+
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
|
|
2482
|
+
}
|
|
2483
|
+
function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
2484
|
+
return env["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
2485
|
+
}
|
|
2486
|
+
var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
|
|
2487
|
+
var init_env = __esm(() => {
|
|
2488
|
+
TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
2489
|
+
SEND_OPT_OUT_VALUES = ["0", "false", "no"];
|
|
2490
|
+
});
|
|
2491
|
+
|
|
2492
|
+
// packages/telemetry-core/src/otlp-config.ts
|
|
2493
|
+
var DEFAULT_OTLP_ENDPOINT = "https://t.omo.dev", RESOURCE_OR_RELAY_KEYS;
|
|
2494
|
+
var init_otlp_config = __esm(() => {
|
|
2495
|
+
RESOURCE_OR_RELAY_KEYS = new Set([
|
|
2496
|
+
"$os",
|
|
2497
|
+
"$os_version",
|
|
2498
|
+
"$process_person_profile",
|
|
2499
|
+
"$session_id",
|
|
2500
|
+
"ci",
|
|
2501
|
+
"event_id",
|
|
2502
|
+
"install_hash",
|
|
2503
|
+
"package_version",
|
|
2504
|
+
"platform",
|
|
2505
|
+
"product_name",
|
|
2506
|
+
"schema_version",
|
|
2507
|
+
"surface"
|
|
2508
|
+
]);
|
|
2509
|
+
});
|
|
2510
|
+
|
|
2511
|
+
// packages/telemetry-core/src/destinations.ts
|
|
2512
|
+
var TELEMETRY_DESTINATIONS;
|
|
2513
|
+
var init_destinations = __esm(() => {
|
|
2514
|
+
init_otlp_config();
|
|
2515
|
+
TELEMETRY_DESTINATIONS = [
|
|
2516
|
+
{ kind: "posthog", label: "PostHog in the United States", host: DEFAULT_POSTHOG_HOST },
|
|
2517
|
+
{ kind: "otlp", label: "the OmO telemetry collector", host: DEFAULT_OTLP_ENDPOINT }
|
|
2518
|
+
];
|
|
2519
|
+
});
|
|
2520
|
+
|
|
2436
2521
|
// node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
2437
2522
|
var require_picocolors = __commonJS(function(exports, module) {
|
|
2438
2523
|
var p = process || {};
|
|
@@ -77745,6 +77830,9 @@ var init_team = __esm(() => {
|
|
|
77745
77830
|
});
|
|
77746
77831
|
|
|
77747
77832
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
77833
|
+
function isOmoTelemetryEnabled(config) {
|
|
77834
|
+
return config.telemetry?.enabled ?? true;
|
|
77835
|
+
}
|
|
77748
77836
|
var OmoTelemetrySettingsShape, OmoTelemetrySettingsLayerSchema, OmoTelemetrySettingsSchema;
|
|
77749
77837
|
var init_telemetry = __esm(() => {
|
|
77750
77838
|
init_zod();
|
|
@@ -77968,7 +78056,7 @@ var init_config = __esm(() => {
|
|
|
77968
78056
|
|
|
77969
78057
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
77970
78058
|
function canonicalCategoryName(name) {
|
|
77971
|
-
return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;
|
|
78059
|
+
return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] ?? name : name;
|
|
77972
78060
|
}
|
|
77973
78061
|
function isRecord9(value) {
|
|
77974
78062
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -78030,7 +78118,7 @@ var init_legacy_category_names = __esm(() => {
|
|
|
78030
78118
|
|
|
78031
78119
|
// packages/omo-config-core/src/schema/legacy-harness-names.ts
|
|
78032
78120
|
function canonicalHarnessName(name) {
|
|
78033
|
-
return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;
|
|
78121
|
+
return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] ?? name : name;
|
|
78034
78122
|
}
|
|
78035
78123
|
function harnessBlockKey(harness) {
|
|
78036
78124
|
return `[${harness}]`;
|
|
@@ -79719,15 +79807,15 @@ function stripRetiredCodegraph(document) {
|
|
|
79719
79807
|
if (!isPlainObject5(value))
|
|
79720
79808
|
return;
|
|
79721
79809
|
if (Object.prototype.hasOwnProperty.call(value, "codegraph")) {
|
|
79722
|
-
delete value
|
|
79810
|
+
delete value["codegraph"];
|
|
79723
79811
|
removedPaths.push([...path, "codegraph"]);
|
|
79724
79812
|
}
|
|
79725
79813
|
};
|
|
79726
79814
|
strip(stripped, []);
|
|
79727
79815
|
for (const harness of OMO_HARNESS_BLOCKS)
|
|
79728
79816
|
strip(stripped[harness], [harness]);
|
|
79729
|
-
if (isPlainObject5(stripped
|
|
79730
|
-
for (const [profileName, profile] of Object.entries(stripped
|
|
79817
|
+
if (isPlainObject5(stripped["profiles"])) {
|
|
79818
|
+
for (const [profileName, profile] of Object.entries(stripped["profiles"])) {
|
|
79731
79819
|
strip(profile, ["profiles", profileName]);
|
|
79732
79820
|
if (!isPlainObject5(profile))
|
|
79733
79821
|
continue;
|
|
@@ -82975,9 +83063,6 @@ var init_activity_state = __esm(() => {
|
|
|
82975
83063
|
// packages/telemetry-core/src/consent-gated-fetch.ts
|
|
82976
83064
|
var init_consent_gated_fetch = () => {};
|
|
82977
83065
|
|
|
82978
|
-
// packages/telemetry-core/src/constants.ts
|
|
82979
|
-
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
82980
|
-
|
|
82981
83066
|
// packages/telemetry-core/src/diagnostics.ts
|
|
82982
83067
|
import { appendFileSync as appendFileSync2, existsSync as existsSync26, mkdirSync as mkdirSync11, readFileSync as readFileSync13 } from "fs";
|
|
82983
83068
|
import { join as join57 } from "path";
|
|
@@ -83099,56 +83184,6 @@ var init_diagnostics = __esm(() => {
|
|
|
83099
83184
|
DIAGNOSTICS_MAX_BYTES = 256 * 1024;
|
|
83100
83185
|
});
|
|
83101
83186
|
|
|
83102
|
-
// packages/telemetry-core/src/env.ts
|
|
83103
|
-
function normalizeEnvValue(value) {
|
|
83104
|
-
return value?.trim().toLowerCase();
|
|
83105
|
-
}
|
|
83106
|
-
function includesValue(values, value) {
|
|
83107
|
-
const normalized = normalizeEnvValue(value);
|
|
83108
|
-
return normalized !== undefined && values.includes(normalized);
|
|
83109
|
-
}
|
|
83110
|
-
function isDisableFlag(value) {
|
|
83111
|
-
return includesValue(TRUTHY_DISABLE_VALUES, value);
|
|
83112
|
-
}
|
|
83113
|
-
function isSendOptOutFlag(value) {
|
|
83114
|
-
return includesValue(SEND_OPT_OUT_VALUES, value);
|
|
83115
|
-
}
|
|
83116
|
-
function shouldDisableTelemetry(input) {
|
|
83117
|
-
const env = input.env ?? process.env;
|
|
83118
|
-
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
83119
|
-
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
83120
|
-
if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
|
|
83121
|
-
return true;
|
|
83122
|
-
}
|
|
83123
|
-
for (const prefix of prefixes) {
|
|
83124
|
-
if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
|
|
83125
|
-
return true;
|
|
83126
|
-
}
|
|
83127
|
-
if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
|
|
83128
|
-
return true;
|
|
83129
|
-
}
|
|
83130
|
-
}
|
|
83131
|
-
return false;
|
|
83132
|
-
}
|
|
83133
|
-
function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
83134
|
-
return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
83135
|
-
}
|
|
83136
|
-
function isConfiguredTelemetryApiKey(apiKey) {
|
|
83137
|
-
const normalized = apiKey.trim();
|
|
83138
|
-
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
83139
|
-
}
|
|
83140
|
-
function hasTelemetryApiKey(env, defaultApiKey) {
|
|
83141
|
-
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
|
|
83142
|
-
}
|
|
83143
|
-
function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
83144
|
-
return env["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
83145
|
-
}
|
|
83146
|
-
var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
|
|
83147
|
-
var init_env = __esm(() => {
|
|
83148
|
-
TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
83149
|
-
SEND_OPT_OUT_VALUES = ["0", "false", "no", "yes"];
|
|
83150
|
-
});
|
|
83151
|
-
|
|
83152
83187
|
// packages/telemetry-core/src/event-id.ts
|
|
83153
83188
|
import { randomBytes as nodeRandomBytes } from "crypto";
|
|
83154
83189
|
function createUuidV7Generator(source = {}) {
|
|
@@ -92934,6 +92969,7 @@ var init_turn_trace_bridge = __esm(() => {
|
|
|
92934
92969
|
var init_src5 = __esm(() => {
|
|
92935
92970
|
init_activity_state();
|
|
92936
92971
|
init_consent_gated_fetch();
|
|
92972
|
+
init_destinations();
|
|
92937
92973
|
init_diagnostics();
|
|
92938
92974
|
init_env();
|
|
92939
92975
|
init_event_id();
|
|
@@ -92950,7 +92986,7 @@ var package_default2;
|
|
|
92950
92986
|
var init_package2 = __esm(() => {
|
|
92951
92987
|
package_default2 = {
|
|
92952
92988
|
name: "@oh-my-opencode/omo-codex",
|
|
92953
|
-
version: "5.1.
|
|
92989
|
+
version: "5.1.84",
|
|
92954
92990
|
type: "module",
|
|
92955
92991
|
private: true,
|
|
92956
92992
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -92981,6 +93017,7 @@ var init_package2 = __esm(() => {
|
|
|
92981
93017
|
"sync:skills": "node plugin/scripts/sync-skills.mjs"
|
|
92982
93018
|
},
|
|
92983
93019
|
dependencies: {
|
|
93020
|
+
"@oh-my-opencode/omo-config-core": "workspace:*",
|
|
92984
93021
|
"@oh-my-opencode/shared-skills": "workspace:*",
|
|
92985
93022
|
"@oh-my-opencode/utils": "workspace:*"
|
|
92986
93023
|
},
|
|
@@ -93036,6 +93073,18 @@ var init_data_path2 = __esm(() => {
|
|
|
93036
93073
|
init_product_identity();
|
|
93037
93074
|
});
|
|
93038
93075
|
|
|
93076
|
+
// packages/omo-codex/src/telemetry/config-gate.ts
|
|
93077
|
+
function isOmoConfigTelemetryEnabled(env = process.env) {
|
|
93078
|
+
try {
|
|
93079
|
+
return isOmoTelemetryEnabled(loadOmoConfig({ env, harness: "codex" }).config);
|
|
93080
|
+
} catch {
|
|
93081
|
+
return true;
|
|
93082
|
+
}
|
|
93083
|
+
}
|
|
93084
|
+
var init_config_gate = __esm(() => {
|
|
93085
|
+
init_src4();
|
|
93086
|
+
});
|
|
93087
|
+
|
|
93039
93088
|
// packages/omo-codex/src/telemetry/diagnostics.ts
|
|
93040
93089
|
function writeTelemetryDiagnostic2(input, now = new Date) {
|
|
93041
93090
|
writeTelemetryDiagnostic(input, {
|
|
@@ -93079,6 +93128,9 @@ function resolveActivityStateProvider(options) {
|
|
|
93079
93128
|
return () => getPostHogActivityCaptureState(options.now ?? new Date);
|
|
93080
93129
|
}
|
|
93081
93130
|
function createPostHogClient(source, options = {}) {
|
|
93131
|
+
if (!isOmoConfigTelemetryEnabled(options.env ?? process.env)) {
|
|
93132
|
+
return NO_OP_POSTHOG;
|
|
93133
|
+
}
|
|
93082
93134
|
const client = createTelemetryClient2({
|
|
93083
93135
|
diagnostics: writeTelemetryDiagnostic2,
|
|
93084
93136
|
env: options.env ?? process.env,
|
|
@@ -93119,6 +93171,7 @@ var osProviderOverride2 = null, activityStateProviderOverride = null, transportF
|
|
|
93119
93171
|
var init_posthog = __esm(() => {
|
|
93120
93172
|
init_src5();
|
|
93121
93173
|
init_data_path2();
|
|
93174
|
+
init_config_gate();
|
|
93122
93175
|
init_diagnostics2();
|
|
93123
93176
|
init_posthog_activity_state();
|
|
93124
93177
|
init_product_identity();
|
|
@@ -97739,6 +97792,7 @@ var init_unsettled_command = __esm(() => {
|
|
|
97739
97792
|
import { randomBytes as randomBytes9 } from "crypto";
|
|
97740
97793
|
function openAttach(client, device, sessionId, timers = realTimers) {
|
|
97741
97794
|
const early = [];
|
|
97795
|
+
const ATTACH_HISTORY_MAX = 512;
|
|
97742
97796
|
const history = [];
|
|
97743
97797
|
const listeners = new Set;
|
|
97744
97798
|
let handle;
|
|
@@ -97790,6 +97844,8 @@ function openAttach(client, device, sessionId, timers = realTimers) {
|
|
|
97790
97844
|
resolveSnapshot(remote.snapshot);
|
|
97791
97845
|
}
|
|
97792
97846
|
history.push(remote);
|
|
97847
|
+
if (history.length > ATTACH_HISTORY_MAX)
|
|
97848
|
+
history.splice(0, history.length - ATTACH_HISTORY_MAX);
|
|
97793
97849
|
for (const listener of [...listeners]) {
|
|
97794
97850
|
try {
|
|
97795
97851
|
listener(remote);
|
|
@@ -103773,13 +103829,6 @@ var init_build = __esm(() => {
|
|
|
103773
103829
|
init_types10();
|
|
103774
103830
|
});
|
|
103775
103831
|
|
|
103776
|
-
// packages/omo-senpi/src/components/thread/gateway/bindings.ts
|
|
103777
|
-
var BINDING_MAX_TTL_SECONDS, OUTBOX_RETENTION_MS, RELAY_TEXT_MAX_BYTES = 32768;
|
|
103778
|
-
var init_bindings = __esm(() => {
|
|
103779
|
-
BINDING_MAX_TTL_SECONDS = 366 * 24 * 60 * 60;
|
|
103780
|
-
OUTBOX_RETENTION_MS = 30 * 24 * 60 * 60 * 1000;
|
|
103781
|
-
});
|
|
103782
|
-
|
|
103783
103832
|
// packages/omo-senpi/src/components/thread/contracts/fields.ts
|
|
103784
103833
|
var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_READ_DEFAULT_BYTES = 131072, THREAD_READ_MAX_BYTES = 1048576, ThreadAddress, AllScope, IdempotencyKey, CollapseKey, ExpectedTurnId, Summary, Message2, thinkingLevel = (description) => Union([
|
|
103785
103834
|
Literal("off"),
|
|
@@ -103789,10 +103838,9 @@ var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_RE
|
|
|
103789
103838
|
Literal("high"),
|
|
103790
103839
|
Literal("xhigh"),
|
|
103791
103840
|
Literal("max")
|
|
103792
|
-
], { description }),
|
|
103841
|
+
], { description }), DEFAULT_THREAD_DELIVERY = "auto", ThreadDeliveryMode;
|
|
103793
103842
|
var init_fields = __esm(() => {
|
|
103794
103843
|
init_build();
|
|
103795
|
-
init_bindings();
|
|
103796
103844
|
ThreadAddress = String2({
|
|
103797
103845
|
description: "Recipient thread: the thread value of a thread_list row (tool.thread_list() in an eval cell) or of any thread tool result, an alias, a unique name, or the first 8+ characters of a thread value when only one thread starts with them. A name or prefix shared by several threads returns ambiguous_target with candidates. self addresses the caller's own session."
|
|
103798
103846
|
});
|
|
@@ -103818,13 +103866,6 @@ var init_fields = __esm(() => {
|
|
|
103818
103866
|
maxLength: THREAD_MESSAGE_MAX_BYTES,
|
|
103819
103867
|
description: `Instruction to deliver to the target thread; longer than ${THREAD_MESSAGE_MAX_BYTES} UTF-8 bytes returns message_too_large.`
|
|
103820
103868
|
});
|
|
103821
|
-
BindingId = String2({
|
|
103822
|
-
minLength: 1,
|
|
103823
|
-
description: "Id of the chat binding the gateway keeps for the thread."
|
|
103824
|
-
});
|
|
103825
|
-
RelayText = String2({
|
|
103826
|
-
description: `Text relayed to or from the external thread; longer than ${RELAY_TEXT_MAX_BYTES} UTF-8 bytes returns message_too_large.`
|
|
103827
|
-
});
|
|
103828
103869
|
ThreadDeliveryMode = Union([Literal("auto"), Literal("steer"), Literal("follow_up")], {
|
|
103829
103870
|
default: DEFAULT_THREAD_DELIVERY,
|
|
103830
103871
|
description: "Omitted: auto. auto steers the running turn when one is active and starts a new turn otherwise; steer requires expected_turn_id and becomes turn_conflict when the active turn changed; follow_up queues the message behind the running turn (pass it only when the message must wait for that turn to end)."
|
|
@@ -103890,13 +103931,6 @@ var init_errors5 = __esm(() => {
|
|
|
103890
103931
|
"loop_detected",
|
|
103891
103932
|
"pair_loop_guard",
|
|
103892
103933
|
"chain_count_limit",
|
|
103893
|
-
"binding_conflict",
|
|
103894
|
-
"binding_mismatch",
|
|
103895
|
-
"binding_inactive",
|
|
103896
|
-
"stale_revision",
|
|
103897
|
-
"stale_token",
|
|
103898
|
-
"already_answered",
|
|
103899
|
-
"answer_in_progress",
|
|
103900
103934
|
"device_offline",
|
|
103901
103935
|
"relay_requires_paid_plan",
|
|
103902
103936
|
"alias_taken",
|
|
@@ -103914,7 +103948,7 @@ var init_result2 = __esm(() => {
|
|
|
103914
103948
|
});
|
|
103915
103949
|
|
|
103916
103950
|
// packages/omo-senpi/src/components/thread/remote/outcome.ts
|
|
103917
|
-
var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN;
|
|
103951
|
+
var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN, ENGINE_NOT_READY;
|
|
103918
103952
|
var init_outcome = __esm(() => {
|
|
103919
103953
|
init_errors5();
|
|
103920
103954
|
init_result2();
|
|
@@ -103948,6 +103982,7 @@ var init_outcome = __esm(() => {
|
|
|
103948
103982
|
...Object.entries(READ_UNCERTAIN).filter(([, answer]) => answer === "retry").map(([reason]) => reason)
|
|
103949
103983
|
]);
|
|
103950
103984
|
NOT_SIGNED_IN = new Set(["sign_in_required", "signed_out"]);
|
|
103985
|
+
ENGINE_NOT_READY = new Set(["attach_required", "daemon_unavailable"]);
|
|
103951
103986
|
});
|
|
103952
103987
|
|
|
103953
103988
|
// packages/omo-senpi/src/components/thread/address/refusals.ts
|
|
@@ -104061,7 +104096,7 @@ var init_create_params = __esm(() => {
|
|
|
104061
104096
|
});
|
|
104062
104097
|
|
|
104063
104098
|
// packages/omo-senpi/src/components/thread/contracts/params.ts
|
|
104064
|
-
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams
|
|
104099
|
+
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams;
|
|
104065
104100
|
var init_params = __esm(() => {
|
|
104066
104101
|
init_build();
|
|
104067
104102
|
init_fields();
|
|
@@ -104070,14 +104105,25 @@ var init_params = __esm(() => {
|
|
|
104070
104105
|
all_scope: Optional(Boolean2({
|
|
104071
104106
|
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."
|
|
104072
104107
|
})),
|
|
104073
|
-
state: Optional(_Array_(Union([
|
|
104108
|
+
state: Optional(_Array_(Union([
|
|
104109
|
+
Literal("opening"),
|
|
104110
|
+
Literal("running"),
|
|
104111
|
+
Literal("idle"),
|
|
104112
|
+
Literal("inactive"),
|
|
104113
|
+
Literal("archived")
|
|
104114
|
+
]), {
|
|
104074
104115
|
minItems: 1,
|
|
104075
|
-
description: "Thread states to list: running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
|
|
104116
|
+
description: "Thread states to list: opening (not yet ready for controls), running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
|
|
104076
104117
|
})),
|
|
104077
104118
|
idempotency_key: IdempotencyKey
|
|
104078
104119
|
});
|
|
104079
104120
|
ThreadReadParams = _Object_({
|
|
104080
104121
|
thread: ThreadAddress,
|
|
104122
|
+
delivery_id: Optional(String2({
|
|
104123
|
+
minLength: 1,
|
|
104124
|
+
maxLength: 128,
|
|
104125
|
+
description: "Query only the outcome of your original delivery to this exact thread ID. Reads no conversation, sends no message and wakes no session; after evidence expires answers outcome_unavailable."
|
|
104126
|
+
})),
|
|
104081
104127
|
cursor: Optional(String2({
|
|
104082
104128
|
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."
|
|
104083
104129
|
})),
|
|
@@ -104190,61 +104236,6 @@ var init_params = __esm(() => {
|
|
|
104190
104236
|
all_scope: AllScope,
|
|
104191
104237
|
idempotency_key: IdempotencyKey
|
|
104192
104238
|
});
|
|
104193
|
-
ThreadReportParams = _Object_({
|
|
104194
|
-
binding_id: Optional(String2({
|
|
104195
|
-
minLength: 1,
|
|
104196
|
-
description: "Binding to report to; defaults to the originating binding, the one the message this session is answering now arrived through; refused when that is ambiguous."
|
|
104197
|
-
})),
|
|
104198
|
-
kind: Union([Literal("milestone"), Literal("report"), Literal("question"), Literal("completion")], {
|
|
104199
|
-
description: "milestone updates the thread's progress message, report posts a result, question relays a pending question of this session and returns a reply_token, completion is written once when this session's run settles, with the run's real outcome."
|
|
104200
|
-
}),
|
|
104201
|
-
text: RelayText,
|
|
104202
|
-
request_id: Optional(String2({
|
|
104203
|
-
minLength: 1,
|
|
104204
|
-
description: "For kind question: the id of this session's pending extension UI request the answer resolves."
|
|
104205
|
-
})),
|
|
104206
|
-
request_kind: Optional(Union([
|
|
104207
|
-
Literal("question"),
|
|
104208
|
-
Literal("select"),
|
|
104209
|
-
Literal("confirm"),
|
|
104210
|
-
Literal("input"),
|
|
104211
|
-
Literal("editor")
|
|
104212
|
-
], {
|
|
104213
|
-
description: "For kind question: which extension UI request request_id is. It decides the answer forms thread_answer (tool.thread_answer() in an eval cell) accepts: confirm takes yes/no (any case, surrounding spaces ignored), input and editor take any text including empty, question and select take non-blank text. Without it the answer goes out in every text form at once, so a question, select, input or editor each reads its own and the text must be non-blank; a yes/no word also goes out as the confirm field, so an undeclared confirm reads yes/no too (any other text reads as no)."
|
|
104214
|
-
})),
|
|
104215
|
-
idempotency_key: IdempotencyKey
|
|
104216
|
-
});
|
|
104217
|
-
ThreadOutboxParams = _Object_({
|
|
104218
|
-
binding_id: BindingId,
|
|
104219
|
-
after_cursor: Optional(Integer({
|
|
104220
|
-
minimum: 0,
|
|
104221
|
-
description: "Read rows after this cursor; unset continues after the binding's acknowledged cursor."
|
|
104222
|
-
})),
|
|
104223
|
-
limit: Optional(Integer({ minimum: 1, maximum: 500, description: "Rows per read, default 100 and at most 500." })),
|
|
104224
|
-
idempotency_key: IdempotencyKey
|
|
104225
|
-
});
|
|
104226
|
-
ThreadOutboxAckParams = _Object_({
|
|
104227
|
-
binding_id: BindingId,
|
|
104228
|
-
cursor: Integer({
|
|
104229
|
-
minimum: 1,
|
|
104230
|
-
description: "Every outbox row up to this cursor is marked delivered; an older cursor changes nothing."
|
|
104231
|
-
}),
|
|
104232
|
-
provider_message_id: Optional(String2({
|
|
104233
|
-
minLength: 1,
|
|
104234
|
-
maxLength: 256,
|
|
104235
|
-
description: "Platform id of the message posted for the row at cursor; the first one for a milestone becomes the progress message later milestones edit."
|
|
104236
|
-
})),
|
|
104237
|
-
idempotency_key: IdempotencyKey
|
|
104238
|
-
});
|
|
104239
|
-
ThreadAnswerParams = _Object_({
|
|
104240
|
-
binding_id: String2({
|
|
104241
|
-
minLength: 1,
|
|
104242
|
-
description: "Binding the answer arrived through; it must be the binding that asked the question."
|
|
104243
|
-
}),
|
|
104244
|
-
reply_token: String2({ minLength: 1, description: "reply_token of the question row being answered." }),
|
|
104245
|
-
answer: RelayText,
|
|
104246
|
-
idempotency_key: IdempotencyKey
|
|
104247
|
-
});
|
|
104248
104239
|
});
|
|
104249
104240
|
|
|
104250
104241
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/schema/types/_refine.mjs
|
|
@@ -108854,7 +108845,7 @@ var init_metadata = __esm(() => {
|
|
|
108854
108845
|
{
|
|
108855
108846
|
name: "thread_send",
|
|
108856
108847
|
label: "Send message to session",
|
|
108857
|
-
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
|
|
108848
|
+
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 (tool.thread_read() in an eval cell)" + ROUTE_TO_TASK,
|
|
108858
108849
|
exposure: THREAD_TOOL_EXPOSURE
|
|
108859
108850
|
},
|
|
108860
108851
|
{
|
|
@@ -108898,30 +108889,6 @@ var init_metadata = __esm(() => {
|
|
|
108898
108889
|
label: "Archive session",
|
|
108899
108890
|
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",
|
|
108900
108891
|
exposure: THREAD_TOOL_EXPOSURE
|
|
108901
|
-
},
|
|
108902
|
-
{
|
|
108903
|
-
name: "thread_report",
|
|
108904
|
-
label: "Report to chat thread",
|
|
108905
|
-
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())",
|
|
108906
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108907
|
-
},
|
|
108908
|
-
{
|
|
108909
|
-
name: "thread_outbox",
|
|
108910
|
-
label: "Read chat outbox",
|
|
108911
|
-
description: "Returns the reports waiting for a bound chat thread with a cursor, for when a connector collects what sessions posted",
|
|
108912
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108913
|
-
},
|
|
108914
|
-
{
|
|
108915
|
-
name: "thread_outbox_ack",
|
|
108916
|
-
label: "Acknowledge chat outbox",
|
|
108917
|
-
description: "Marks outbox rows up to a cursor as posted to the chat, for when a connector confirms delivery",
|
|
108918
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108919
|
-
},
|
|
108920
|
-
{
|
|
108921
|
-
name: "thread_answer",
|
|
108922
|
-
label: "Answer relayed question",
|
|
108923
|
-
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",
|
|
108924
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108925
108892
|
}
|
|
108926
108893
|
];
|
|
108927
108894
|
});
|
|
@@ -109095,8 +109062,14 @@ var init_session_state = __esm(() => {
|
|
|
109095
109062
|
// packages/omo-senpi/src/components/thread/remote/remote-watch.ts
|
|
109096
109063
|
var init_remote_watch = __esm(() => {
|
|
109097
109064
|
init_device_service2();
|
|
109065
|
+
init_ports();
|
|
109098
109066
|
init_session_state();
|
|
109099
109067
|
});
|
|
109068
|
+
// packages/omo-senpi/src/components/remote/port/lookup-gate.ts
|
|
109069
|
+
var init_lookup_gate = __esm(() => {
|
|
109070
|
+
init_ports();
|
|
109071
|
+
});
|
|
109072
|
+
|
|
109100
109073
|
// packages/omo-senpi/src/components/remote/port/device-service.ts
|
|
109101
109074
|
var READ_ONLY_RECORDS, MARKED_RECORDS, LOOKUP_NONE;
|
|
109102
109075
|
var init_device_service3 = __esm(() => {
|
|
@@ -109105,6 +109078,7 @@ var init_device_service3 = __esm(() => {
|
|
|
109105
109078
|
init_attach_pool();
|
|
109106
109079
|
init_remote_watch();
|
|
109107
109080
|
init_call_deadline();
|
|
109081
|
+
init_lookup_gate();
|
|
109108
109082
|
READ_ONLY_RECORDS = new Set([
|
|
109109
109083
|
"get_state",
|
|
109110
109084
|
"get_messages",
|
|
@@ -109207,6 +109181,9 @@ var init_follow = __esm(() => {
|
|
|
109207
109181
|
RUN_OVER = new Set(["waiting_children", "waiting_background", "done", "failed", "cancelled"]);
|
|
109208
109182
|
});
|
|
109209
109183
|
|
|
109184
|
+
// packages/omo-senpi/src/components/thread/gateway/hash-args.ts
|
|
109185
|
+
var init_hash_args = () => {};
|
|
109186
|
+
|
|
109210
109187
|
// packages/omo-senpi/src/components/thread/gateway/provenance-resolver.ts
|
|
109211
109188
|
var init_provenance_resolver = () => {};
|
|
109212
109189
|
// packages/omo-senpi/src/components/thread/gateway/constants.ts
|
|
@@ -109240,19 +109217,35 @@ var init_find_session = __esm(() => {
|
|
|
109240
109217
|
]);
|
|
109241
109218
|
});
|
|
109242
109219
|
|
|
109220
|
+
// packages/omo-senpi/src/components/thread/remote/reopen-parked.ts
|
|
109221
|
+
var init_reopen_parked = __esm(() => {
|
|
109222
|
+
init_device();
|
|
109223
|
+
init_relay_session_host();
|
|
109224
|
+
init_errors5();
|
|
109225
|
+
init_find_session();
|
|
109226
|
+
});
|
|
109227
|
+
|
|
109228
|
+
// packages/omo-senpi/src/components/thread/remote/receipt.ts
|
|
109229
|
+
var init_receipt = __esm(() => {
|
|
109230
|
+
init_remote_ops();
|
|
109231
|
+
init_outcome();
|
|
109232
|
+
});
|
|
109233
|
+
|
|
109243
109234
|
// packages/omo-senpi/src/components/thread/remote/relay-transport.ts
|
|
109244
109235
|
var ADMIT_UNSUPPORTED, WAITS;
|
|
109245
109236
|
var init_relay_transport = __esm(() => {
|
|
109246
109237
|
init_ports();
|
|
109247
109238
|
init_errors5();
|
|
109248
|
-
|
|
109239
|
+
init_hash_args();
|
|
109249
109240
|
init_provenance2();
|
|
109250
109241
|
init_result2();
|
|
109251
109242
|
init_remote_ops();
|
|
109252
109243
|
init_device();
|
|
109253
109244
|
init_outcome();
|
|
109254
109245
|
init_find_session();
|
|
109246
|
+
init_reopen_parked();
|
|
109255
109247
|
init_call_deadline();
|
|
109248
|
+
init_receipt();
|
|
109256
109249
|
ADMIT_UNSUPPORTED = new Set([
|
|
109257
109250
|
"method_unclassified",
|
|
109258
109251
|
"delegation_unclassified",
|
|
@@ -109282,7 +109275,7 @@ var init_sessions = __esm(() => {
|
|
|
109282
109275
|
init_port();
|
|
109283
109276
|
init_relay_control();
|
|
109284
109277
|
init_relay_session_host();
|
|
109285
|
-
|
|
109278
|
+
init_hash_args();
|
|
109286
109279
|
init_provenance_resolver();
|
|
109287
109280
|
init_address_book();
|
|
109288
109281
|
init_outcome();
|
|
@@ -109337,6 +109330,11 @@ var init_ladder = __esm(() => {
|
|
|
109337
109330
|
init_errors5();
|
|
109338
109331
|
});
|
|
109339
109332
|
|
|
109333
|
+
// packages/omo-senpi/src/components/thread/address/solo-retry.ts
|
|
109334
|
+
var init_solo_retry = __esm(() => {
|
|
109335
|
+
init_call_deadline();
|
|
109336
|
+
});
|
|
109337
|
+
|
|
109340
109338
|
// packages/omo-senpi/src/components/thread/address/probe.ts
|
|
109341
109339
|
var init_probe = __esm(() => {
|
|
109342
109340
|
init_errors5();
|
|
@@ -109345,6 +109343,7 @@ var init_probe = __esm(() => {
|
|
|
109345
109343
|
init_remote_ops();
|
|
109346
109344
|
init_account();
|
|
109347
109345
|
init_refusals();
|
|
109346
|
+
init_solo_retry();
|
|
109348
109347
|
});
|
|
109349
109348
|
|
|
109350
109349
|
// packages/omo-senpi/src/components/thread/address/bare.ts
|
|
@@ -109400,10 +109399,11 @@ init_package();
|
|
|
109400
109399
|
import { createInterface as createInterface2 } from "readline/promises";
|
|
109401
109400
|
|
|
109402
109401
|
// packages/telemetry-core/src/install-disclosure.ts
|
|
109402
|
+
init_destinations();
|
|
109403
109403
|
var TELEMETRY_PRIVACY_POLICY_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/legal/privacy-policy.md";
|
|
109404
109404
|
var TELEMETRY_INSTALL_DISCLOSURE_LINES = [
|
|
109405
109405
|
"OmO sends anonymous usage telemetry (no prompts, code, file paths, or account data) to improve the product.",
|
|
109406
|
-
|
|
109406
|
+
`The data goes to ${TELEMETRY_DESTINATIONS.map((destination) => `${destination.label} (${destination.host})`).join(" and ")}.`,
|
|
109407
109407
|
"Turn it off with DO_NOT_TRACK=1 (or OMO_DISABLE_TELEMETRY=1).",
|
|
109408
109408
|
`Details: ${TELEMETRY_PRIVACY_POLICY_URL}`
|
|
109409
109409
|
];
|
|
@@ -131719,8 +131719,11 @@ function createSession(options) {
|
|
|
131719
131719
|
return await locked(async () => {
|
|
131720
131720
|
let current = null;
|
|
131721
131721
|
let account;
|
|
131722
|
+
let readSettled = false;
|
|
131723
|
+
let storeUnavailable = false;
|
|
131722
131724
|
try {
|
|
131723
131725
|
current = await store.readAuthoritative();
|
|
131726
|
+
readSettled = true;
|
|
131724
131727
|
if (current !== null) {
|
|
131725
131728
|
if (current.refreshState === "uncertain")
|
|
131726
131729
|
return false;
|
|
@@ -131735,15 +131738,21 @@ function createSession(options) {
|
|
|
131735
131738
|
} catch (error) {
|
|
131736
131739
|
if (error instanceof SessionEnded)
|
|
131737
131740
|
return error.deviceRevoked;
|
|
131741
|
+
if (!readSettled && error instanceof CredentialStoreError) {
|
|
131742
|
+
storeUnavailable = true;
|
|
131743
|
+
throw error;
|
|
131744
|
+
}
|
|
131738
131745
|
if (error instanceof SignInError)
|
|
131739
131746
|
return false;
|
|
131740
131747
|
throw error;
|
|
131741
131748
|
} finally {
|
|
131742
|
-
|
|
131743
|
-
|
|
131744
|
-
|
|
131745
|
-
|
|
131746
|
-
|
|
131749
|
+
if (!storeUnavailable) {
|
|
131750
|
+
await writeSignedOutMarker(markerPath, current?.device.id ?? null);
|
|
131751
|
+
const stored = current === null ? null : await store.read().catch(() => current);
|
|
131752
|
+
if (stored !== null)
|
|
131753
|
+
await beforeKeysDiscarded(discardedOf(stored.accountId === undefined && account !== undefined ? { ...stored, accountId: account } : stored, "logout"));
|
|
131754
|
+
await store.clear();
|
|
131755
|
+
}
|
|
131747
131756
|
}
|
|
131748
131757
|
});
|
|
131749
131758
|
} finally {
|
|
@@ -132285,8 +132294,9 @@ async function run3(action, options, hooks = {}) {
|
|
|
132285
132294
|
console.log(`This computer's earlier OmO device (id ${terminalText(replacedDeviceId)}) was signed out.`);
|
|
132286
132295
|
await signedIn();
|
|
132287
132296
|
} catch (error) {
|
|
132288
|
-
|
|
132289
|
-
|
|
132297
|
+
const storeUnavailable = action === "logout" && error instanceof CredentialStoreError;
|
|
132298
|
+
console.error(controller.signal.aborted ? "Sign-in cancelled." : storeUnavailable ? "OmO could not read the credential store. Stored credentials and device keys were left untouched; run omo logout again when the keyring answers." : error instanceof SignInError ? error.message : "OmO sign-in stopped on an unexpected error. Run the command again, and report it with /bug if it keeps failing.");
|
|
132299
|
+
process.exitCode = storeUnavailable ? 9 : 1;
|
|
132290
132300
|
} finally {
|
|
132291
132301
|
process.removeListener("SIGINT", cancel);
|
|
132292
132302
|
process.removeListener("SIGTERM", cancel);
|
|
@@ -132567,7 +132577,7 @@ init_timers();
|
|
|
132567
132577
|
// packages/omo-native/package.json
|
|
132568
132578
|
var package_default4 = {
|
|
132569
132579
|
name: "omo-ai",
|
|
132570
|
-
version: "5.1.
|
|
132580
|
+
version: "5.1.84",
|
|
132571
132581
|
type: "module",
|
|
132572
132582
|
description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
|
|
132573
132583
|
bin: {
|
|
@@ -132769,7 +132779,6 @@ init_address();
|
|
|
132769
132779
|
init_errors5();
|
|
132770
132780
|
// packages/omo-senpi/src/components/thread/gateway/store.ts
|
|
132771
132781
|
init_constants6();
|
|
132772
|
-
init_provenance_resolver();
|
|
132773
132782
|
|
|
132774
132783
|
// packages/omo-senpi/src/components/thread/gateway/session-args-schema.ts
|
|
132775
132784
|
var TYPES = new Set(["object", "string", "number", "integer", "boolean", "array", "null"]);
|
|
@@ -132880,7 +132889,7 @@ var USAGE_ENTRIES = [
|
|
|
132880
132889
|
},
|
|
132881
132890
|
{
|
|
132882
132891
|
verbs: ["send"],
|
|
132883
|
-
text: ` send <session> <text
|
|
132892
|
+
text: ` send <session> <text|-> [--steer|--follow-up] [--no-wait]
|
|
132884
132893
|
send a message and print the answer as it arrives (--steer: into the
|
|
132885
132894
|
running turn; --no-wait: return once the session took it).
|
|
132886
132895
|
Use the thread value from open --json, or <device>/<session>.`
|