oh-my-opencode 5.1.70 → 5.1.71
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/index.js +132 -89
- package/dist/cli/service-auth/protocol-request.d.ts +1 -0
- package/dist/cli/service-auth/protocol.d.ts +2 -2
- package/dist/cli-node/index.js +132 -89
- package/dist/features/team-mode/team-runtime/resolve-member-dependencies.d.ts +6 -3
- package/dist/hooks/legacy-plugin-toast/plugin-entry-migrator.d.ts +2 -1
- package/dist/index.js +1353 -1326
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/tools/session-manager/constants.d.ts +1 -3
- package/dist/tui.js +30 -14
- 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 +10 -0
- 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/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/scripts/install-dist/install-local.mjs +12 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
package/dist/cli-node/index.js
CHANGED
|
@@ -2133,7 +2133,7 @@ var package_default;
|
|
|
2133
2133
|
var init_package = __esm(() => {
|
|
2134
2134
|
package_default = {
|
|
2135
2135
|
name: "oh-my-opencode",
|
|
2136
|
-
version: "5.1.
|
|
2136
|
+
version: "5.1.71",
|
|
2137
2137
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
2138
2138
|
main: "./dist/index.js",
|
|
2139
2139
|
types: "dist/index.d.ts",
|
|
@@ -2331,7 +2331,7 @@ var init_package = __esm(() => {
|
|
|
2331
2331
|
},
|
|
2332
2332
|
devDependencies: {
|
|
2333
2333
|
"@clack/prompts": "^1.8.1",
|
|
2334
|
-
"@code-yeongyu/senpi": "2026.11.
|
|
2334
|
+
"@code-yeongyu/senpi": "2026.11.15",
|
|
2335
2335
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
2336
2336
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
2337
2337
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -2404,18 +2404,18 @@ var init_package = __esm(() => {
|
|
|
2404
2404
|
typescript: "^7.0.2"
|
|
2405
2405
|
},
|
|
2406
2406
|
optionalDependencies: {
|
|
2407
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2408
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2409
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2410
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2411
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2412
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2413
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2414
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2415
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2416
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2417
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2418
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2407
|
+
"oh-my-opencode-darwin-arm64": "5.1.71",
|
|
2408
|
+
"oh-my-opencode-darwin-x64": "5.1.71",
|
|
2409
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.71",
|
|
2410
|
+
"oh-my-opencode-linux-arm64": "5.1.71",
|
|
2411
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.71",
|
|
2412
|
+
"oh-my-opencode-linux-x64": "5.1.71",
|
|
2413
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.71",
|
|
2414
|
+
"oh-my-opencode-linux-x64-musl": "5.1.71",
|
|
2415
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.71",
|
|
2416
|
+
"oh-my-opencode-windows-arm64": "5.1.71",
|
|
2417
|
+
"oh-my-opencode-windows-x64": "5.1.71",
|
|
2418
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.71"
|
|
2419
2419
|
},
|
|
2420
2420
|
overrides: {
|
|
2421
2421
|
hono: "^4.13.8",
|
|
@@ -77835,6 +77835,16 @@ var init_provenance = __esm(() => {
|
|
|
77835
77835
|
}).strict();
|
|
77836
77836
|
});
|
|
77837
77837
|
|
|
77838
|
+
// packages/omo-config-core/src/schema/session-wake.ts
|
|
77839
|
+
var OmoSessionWakeSettingsSchema;
|
|
77840
|
+
var init_session_wake = __esm(() => {
|
|
77841
|
+
init_zod();
|
|
77842
|
+
OmoSessionWakeSettingsSchema = object({
|
|
77843
|
+
same_device: boolean2().optional(),
|
|
77844
|
+
wake_limit: number2().int().min(0).optional()
|
|
77845
|
+
}).strict();
|
|
77846
|
+
});
|
|
77847
|
+
|
|
77838
77848
|
// packages/omo-config-core/src/schema/config.ts
|
|
77839
77849
|
var OmoOpenCodeHarnessConfigSchema, OmoDisabledSkillsSchema, OmoExcludedModelsSchema, OmoTypedHarnessConfigSchema, OmoConfigProfileSchema, OmoConfigSchema, OmoConfigLayerSchema;
|
|
77840
77850
|
var init_config = __esm(() => {
|
|
@@ -77854,11 +77864,13 @@ var init_config = __esm(() => {
|
|
|
77854
77864
|
init_device_service();
|
|
77855
77865
|
init_format_on_mutation();
|
|
77856
77866
|
init_provenance();
|
|
77867
|
+
init_session_wake();
|
|
77857
77868
|
OmoOpenCodeHarnessConfigSchema = record(string2(), unknown());
|
|
77858
77869
|
OmoDisabledSkillsSchema = array(string2());
|
|
77859
77870
|
OmoExcludedModelsSchema = array(string2());
|
|
77860
77871
|
OmoTypedHarnessConfigSchema = object({
|
|
77861
77872
|
provenance: OmoProvenanceSettingsSchema.optional(),
|
|
77873
|
+
session_wake: OmoSessionWakeSettingsSchema.optional(),
|
|
77862
77874
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
77863
77875
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
77864
77876
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -77879,6 +77891,7 @@ var init_config = __esm(() => {
|
|
|
77879
77891
|
}).strict();
|
|
77880
77892
|
OmoConfigProfileSchema = object({
|
|
77881
77893
|
provenance: OmoProvenanceSettingsSchema.optional(),
|
|
77894
|
+
session_wake: OmoSessionWakeSettingsSchema.optional(),
|
|
77882
77895
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
77883
77896
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
77884
77897
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -77903,6 +77916,7 @@ var init_config = __esm(() => {
|
|
|
77903
77916
|
}).strict();
|
|
77904
77917
|
OmoConfigSchema = object({
|
|
77905
77918
|
provenance: OmoProvenanceSettingsSchema.optional(),
|
|
77919
|
+
session_wake: OmoSessionWakeSettingsSchema.optional(),
|
|
77906
77920
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
77907
77921
|
$schema: string2().optional(),
|
|
77908
77922
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
@@ -77931,6 +77945,7 @@ var init_config = __esm(() => {
|
|
|
77931
77945
|
}).strict();
|
|
77932
77946
|
OmoConfigLayerSchema = object({
|
|
77933
77947
|
provenance: OmoProvenanceSettingsSchema.optional(),
|
|
77948
|
+
session_wake: OmoSessionWakeSettingsSchema.optional(),
|
|
77934
77949
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
77935
77950
|
$schema: string2().optional(),
|
|
77936
77951
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
@@ -78092,6 +78107,7 @@ var init_schema = __esm(() => {
|
|
|
78092
78107
|
init_model_profile();
|
|
78093
78108
|
init_model_ref();
|
|
78094
78109
|
init_provenance();
|
|
78110
|
+
init_session_wake();
|
|
78095
78111
|
init_side_panel();
|
|
78096
78112
|
init_task();
|
|
78097
78113
|
init_team();
|
|
@@ -92940,7 +92956,7 @@ var package_default2;
|
|
|
92940
92956
|
var init_package2 = __esm(() => {
|
|
92941
92957
|
package_default2 = {
|
|
92942
92958
|
name: "@oh-my-opencode/omo-codex",
|
|
92943
|
-
version: "5.1.
|
|
92959
|
+
version: "5.1.71",
|
|
92944
92960
|
type: "module",
|
|
92945
92961
|
private: true,
|
|
92946
92962
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -109727,14 +109743,15 @@ var package_default3 = {
|
|
|
109727
109743
|
},
|
|
109728
109744
|
dependencies: {
|
|
109729
109745
|
"@clack/prompts": "^1.8.1",
|
|
109730
|
-
"@code-yeongyu/senpi": "2026.11.
|
|
109731
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.
|
|
109746
|
+
"@code-yeongyu/senpi": "2026.11.15",
|
|
109747
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.15",
|
|
109732
109748
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
109733
109749
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
109734
109750
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
109735
109751
|
"@oh-my-opencode/claude-code-compat-core": "workspace:*",
|
|
109736
109752
|
"@oh-my-opencode/comment-checker-core": "workspace:*",
|
|
109737
109753
|
"@oh-my-opencode/delegate-core": "workspace:*",
|
|
109754
|
+
"@oh-my-opencode/device-service-core": "workspace:*",
|
|
109738
109755
|
"@oh-my-opencode/hashline-core": "workspace:*",
|
|
109739
109756
|
"@oh-my-opencode/mcp-client-core": "workspace:*",
|
|
109740
109757
|
"@oh-my-opencode/model-core": "workspace:*",
|
|
@@ -112753,14 +112770,6 @@ class RequestFailure extends SignInError {
|
|
|
112753
112770
|
this.responseStatus = responseStatus;
|
|
112754
112771
|
}
|
|
112755
112772
|
}
|
|
112756
|
-
|
|
112757
|
-
class InvalidApiResponse extends SignInError {
|
|
112758
|
-
status;
|
|
112759
|
-
constructor(status) {
|
|
112760
|
-
super("The service returned an invalid error response.");
|
|
112761
|
-
this.status = status;
|
|
112762
|
-
}
|
|
112763
|
-
}
|
|
112764
112773
|
var platformSchema = _enum(["macos", "linux", "windows"]);
|
|
112765
112774
|
var nonempty = string2().min(1);
|
|
112766
112775
|
var timestamp = string2().datetime({ offset: true });
|
|
@@ -112792,15 +112801,6 @@ var deviceCodeSchema = object({
|
|
|
112792
112801
|
expiresAt: timestamp,
|
|
112793
112802
|
intervalSeconds: number2().int().min(1).max(60)
|
|
112794
112803
|
});
|
|
112795
|
-
var envelopeSchema = object({
|
|
112796
|
-
error: object({
|
|
112797
|
-
code: nonempty,
|
|
112798
|
-
message: string2(),
|
|
112799
|
-
retryable: boolean2(),
|
|
112800
|
-
requestId: string2(),
|
|
112801
|
-
detail: unknown().optional()
|
|
112802
|
-
})
|
|
112803
|
-
});
|
|
112804
112804
|
var limitSchema = object({
|
|
112805
112805
|
reason: literal("device_limit"),
|
|
112806
112806
|
managementToken: nonempty,
|
|
@@ -112937,59 +112937,6 @@ function serviceOrigin(value) {
|
|
|
112937
112937
|
}
|
|
112938
112938
|
return url.origin;
|
|
112939
112939
|
}
|
|
112940
|
-
async function requestApi(api, path, init, signal) {
|
|
112941
|
-
let response;
|
|
112942
|
-
let body;
|
|
112943
|
-
try {
|
|
112944
|
-
response = await fetch(`${api}${path}`, {
|
|
112945
|
-
...init,
|
|
112946
|
-
redirect: "error",
|
|
112947
|
-
signal: signal ? AbortSignal.any([signal, AbortSignal.timeout(30000)]) : AbortSignal.timeout(30000)
|
|
112948
|
-
});
|
|
112949
|
-
} catch (error) {
|
|
112950
|
-
const cause = error instanceof Error && error.cause instanceof Error ? error.cause : error;
|
|
112951
|
-
const code = cause instanceof Error ? Reflect.get(cause, "code") : undefined;
|
|
112952
|
-
throw new RequestFailure(typeof code === "string" && [
|
|
112953
|
-
"ENOTFOUND",
|
|
112954
|
-
"ECONNREFUSED",
|
|
112955
|
-
"ENETUNREACH",
|
|
112956
|
-
"EHOSTUNREACH",
|
|
112957
|
-
"EAI_AGAIN",
|
|
112958
|
-
"ConnectionRefused",
|
|
112959
|
-
"EADDRNOTAVAIL",
|
|
112960
|
-
"ENETDOWN",
|
|
112961
|
-
"EHOSTDOWN",
|
|
112962
|
-
"UND_ERR_CONNECT_TIMEOUT",
|
|
112963
|
-
"ERR_TLS_HANDSHAKE_TIMEOUT",
|
|
112964
|
-
"DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
112965
|
-
"CERT_HAS_EXPIRED",
|
|
112966
|
-
"ERR_TLS_CERT_ALTNAME_INVALID",
|
|
112967
|
-
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
112968
|
-
"SELF_SIGNED_CERT_IN_CHAIN",
|
|
112969
|
-
"CERT_NOT_YET_VALID",
|
|
112970
|
-
"UNABLE_TO_GET_ISSUER_CERT",
|
|
112971
|
-
"UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
112972
|
-
"CERT_SIGNATURE_FAILURE",
|
|
112973
|
-
"CERT_UNTRUSTED",
|
|
112974
|
-
"CERT_REJECTED"
|
|
112975
|
-
].includes(code));
|
|
112976
|
-
}
|
|
112977
|
-
if (response.status === 204)
|
|
112978
|
-
return null;
|
|
112979
|
-
try {
|
|
112980
|
-
body = await response.json();
|
|
112981
|
-
} catch {
|
|
112982
|
-
throw new RequestFailure(false, response.status);
|
|
112983
|
-
}
|
|
112984
|
-
if (response.ok)
|
|
112985
|
-
return body;
|
|
112986
|
-
const envelope = envelopeSchema.safeParse(body);
|
|
112987
|
-
if (!envelope.success)
|
|
112988
|
-
throw new InvalidApiResponse(response.status);
|
|
112989
|
-
const error = envelope.data.error;
|
|
112990
|
-
const detail = limitSchema.safeParse(error.detail);
|
|
112991
|
-
throw new ApiRefusal(error.code, response.status, error.code === "entitlement_required" && detail.success ? detail.data : undefined, response.headers.get("retry-after"));
|
|
112992
|
-
}
|
|
112993
112940
|
var jsonRequest = (body) => ({
|
|
112994
112941
|
method: "POST",
|
|
112995
112942
|
headers: { "content-type": "application/json" },
|
|
@@ -115442,6 +115389,100 @@ ${key.name}`;
|
|
|
115442
115389
|
// packages/omo-opencode/src/cli/service-auth/session.ts
|
|
115443
115390
|
import { homedir as homedir34 } from "node:os";
|
|
115444
115391
|
|
|
115392
|
+
// packages/device-service-core/src/local-only.ts
|
|
115393
|
+
var KEY2 = Symbol.for("omo.local-only-process.v1");
|
|
115394
|
+
function state3() {
|
|
115395
|
+
const holder = globalThis;
|
|
115396
|
+
holder[KEY2] ??= { marked: false };
|
|
115397
|
+
return holder[KEY2];
|
|
115398
|
+
}
|
|
115399
|
+
|
|
115400
|
+
class LocalOnlyNetworkRefused extends Error {
|
|
115401
|
+
code = "local_only_network_refused";
|
|
115402
|
+
site;
|
|
115403
|
+
constructor(site) {
|
|
115404
|
+
super(`a local-only omo remote command reached the network at ${site}`);
|
|
115405
|
+
this.site = site;
|
|
115406
|
+
}
|
|
115407
|
+
}
|
|
115408
|
+
function refuseIfLocalOnly(site) {
|
|
115409
|
+
if (state3().marked)
|
|
115410
|
+
throw new LocalOnlyNetworkRefused(site);
|
|
115411
|
+
}
|
|
115412
|
+
|
|
115413
|
+
// packages/omo-opencode/src/cli/service-auth/protocol-request.ts
|
|
115414
|
+
init_zod();
|
|
115415
|
+
class InvalidApiResponse extends SignInError {
|
|
115416
|
+
status;
|
|
115417
|
+
constructor(status) {
|
|
115418
|
+
super("The service returned an invalid error response.");
|
|
115419
|
+
this.status = status;
|
|
115420
|
+
}
|
|
115421
|
+
}
|
|
115422
|
+
var envelopeSchema = object({
|
|
115423
|
+
error: object({
|
|
115424
|
+
code: nonempty,
|
|
115425
|
+
message: string2(),
|
|
115426
|
+
retryable: boolean2(),
|
|
115427
|
+
requestId: string2(),
|
|
115428
|
+
detail: unknown().optional()
|
|
115429
|
+
})
|
|
115430
|
+
});
|
|
115431
|
+
async function requestApi(api, path, init, signal) {
|
|
115432
|
+
refuseIfLocalOnly("service-auth/protocol-request.ts requestApi");
|
|
115433
|
+
let response;
|
|
115434
|
+
let body;
|
|
115435
|
+
try {
|
|
115436
|
+
response = await fetch(`${api}${path}`, {
|
|
115437
|
+
...init,
|
|
115438
|
+
redirect: "error",
|
|
115439
|
+
signal: signal ? AbortSignal.any([signal, AbortSignal.timeout(30000)]) : AbortSignal.timeout(30000)
|
|
115440
|
+
});
|
|
115441
|
+
} catch (error) {
|
|
115442
|
+
const cause = error instanceof Error && error.cause instanceof Error ? error.cause : error;
|
|
115443
|
+
const code = cause instanceof Error ? Reflect.get(cause, "code") : undefined;
|
|
115444
|
+
throw new RequestFailure(typeof code === "string" && [
|
|
115445
|
+
"ENOTFOUND",
|
|
115446
|
+
"ECONNREFUSED",
|
|
115447
|
+
"ENETUNREACH",
|
|
115448
|
+
"EHOSTUNREACH",
|
|
115449
|
+
"EAI_AGAIN",
|
|
115450
|
+
"ConnectionRefused",
|
|
115451
|
+
"EADDRNOTAVAIL",
|
|
115452
|
+
"ENETDOWN",
|
|
115453
|
+
"EHOSTDOWN",
|
|
115454
|
+
"UND_ERR_CONNECT_TIMEOUT",
|
|
115455
|
+
"ERR_TLS_HANDSHAKE_TIMEOUT",
|
|
115456
|
+
"DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
115457
|
+
"CERT_HAS_EXPIRED",
|
|
115458
|
+
"ERR_TLS_CERT_ALTNAME_INVALID",
|
|
115459
|
+
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
115460
|
+
"SELF_SIGNED_CERT_IN_CHAIN",
|
|
115461
|
+
"CERT_NOT_YET_VALID",
|
|
115462
|
+
"UNABLE_TO_GET_ISSUER_CERT",
|
|
115463
|
+
"UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
115464
|
+
"CERT_SIGNATURE_FAILURE",
|
|
115465
|
+
"CERT_UNTRUSTED",
|
|
115466
|
+
"CERT_REJECTED"
|
|
115467
|
+
].includes(code));
|
|
115468
|
+
}
|
|
115469
|
+
if (response.status === 204)
|
|
115470
|
+
return null;
|
|
115471
|
+
try {
|
|
115472
|
+
body = await response.json();
|
|
115473
|
+
} catch {
|
|
115474
|
+
throw new RequestFailure(false, response.status);
|
|
115475
|
+
}
|
|
115476
|
+
if (response.ok)
|
|
115477
|
+
return body;
|
|
115478
|
+
const envelope = envelopeSchema.safeParse(body);
|
|
115479
|
+
if (!envelope.success)
|
|
115480
|
+
throw new InvalidApiResponse(response.status);
|
|
115481
|
+
const error = envelope.data.error;
|
|
115482
|
+
const detail = limitSchema.safeParse(error.detail);
|
|
115483
|
+
throw new ApiRefusal(error.code, response.status, error.code === "entitlement_required" && detail.success ? detail.data : undefined, response.headers.get("retry-after"));
|
|
115484
|
+
}
|
|
115485
|
+
|
|
115445
115486
|
// packages/omo-opencode/src/cli/service-auth/signed-out-marker.ts
|
|
115446
115487
|
init_zod();
|
|
115447
115488
|
import { mkdir as mkdir13, readFile as readFile38, rename as rename10, rm as rm19, writeFile as writeFile18 } from "node:fs/promises";
|
|
@@ -115516,6 +115557,7 @@ function createSession(options) {
|
|
|
115516
115557
|
}
|
|
115517
115558
|
if (Date.parse(current.accessTokenExpiresAt) > now() + 30000)
|
|
115518
115559
|
return current;
|
|
115560
|
+
refuseIfLocalOnly("service-auth/session.ts refresh");
|
|
115519
115561
|
await store.write({ ...current, refreshState: "uncertain" });
|
|
115520
115562
|
try {
|
|
115521
115563
|
const tokens = parseReply(tokenSchema, await request("/v1/session/refresh", jsonRequest({ refreshToken: current.refreshToken })));
|
|
@@ -118874,7 +118916,7 @@ var NONE2 = Symbol("none registered");
|
|
|
118874
118916
|
// packages/omo-native/package.json
|
|
118875
118917
|
var package_default4 = {
|
|
118876
118918
|
name: "omo-ai",
|
|
118877
|
-
version: "5.1.
|
|
118919
|
+
version: "5.1.71",
|
|
118878
118920
|
type: "module",
|
|
118879
118921
|
description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
|
|
118880
118922
|
bin: {
|
|
@@ -118891,7 +118933,7 @@ var package_default4 = {
|
|
|
118891
118933
|
postinstall: "node bin/senpi-patch.mjs"
|
|
118892
118934
|
},
|
|
118893
118935
|
dependencies: {
|
|
118894
|
-
"@code-yeongyu/senpi": "2026.11.
|
|
118936
|
+
"@code-yeongyu/senpi": "2026.11.15"
|
|
118895
118937
|
},
|
|
118896
118938
|
repository: {
|
|
118897
118939
|
type: "git",
|
|
@@ -118904,6 +118946,7 @@ var isRecord20 = (value) => typeof value === "object" && value !== null;
|
|
|
118904
118946
|
async function accountOf(api, credentials, doFetch) {
|
|
118905
118947
|
if (credentials.accountId !== undefined)
|
|
118906
118948
|
return credentials.accountId;
|
|
118949
|
+
refuseIfLocalOnly("omo-native/device-service-handoff.ts accountOf");
|
|
118907
118950
|
const response = await doFetch(`${api}/v1/me`, { headers: { authorization: `Bearer ${credentials.accessToken}` } });
|
|
118908
118951
|
if (!response.ok)
|
|
118909
118952
|
throw new Error(`the account read failed (${response.status})`);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { resolveCategoryExecution as resolveCategoryExecutionImpl } from "../../../tools/delegate-task/category-resolver";
|
|
2
|
+
import { buildSystemContent as buildSystemContentImpl } from "../../../tools/delegate-task/prompt-builder";
|
|
3
|
+
import { resolveSubagentExecution as resolveSubagentExecutionImpl } from "../../../tools/delegate-task/subagent-resolver";
|
|
4
|
+
export declare const resolveCategoryExecution: typeof resolveCategoryExecutionImpl;
|
|
5
|
+
export declare const resolveSubagentExecution: typeof resolveSubagentExecutionImpl;
|
|
6
|
+
export declare const buildSystemContent: typeof buildSystemContentImpl;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { migrateLegacyPluginEntry as migrateLegacyPluginEntryImpl } from "../../shared/migrate-legacy-plugin-entry";
|
|
2
|
+
export declare const migrateLegacyPluginEntry: typeof migrateLegacyPluginEntryImpl;
|