oh-my-opencode 5.1.63 → 5.1.65
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 +98 -60
- package/dist/cli/service-auth/closed-device-login.d.ts +16 -0
- package/dist/cli/service-auth/commands.d.ts +9 -2
- package/dist/cli/service-auth/session.d.ts +12 -0
- package/dist/cli-node/index.js +98 -60
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/hooks/runtime-fallback/auto-retry-timeout.d.ts +1 -1
- package/dist/hooks/runtime-fallback/auto-retry.d.ts +1 -1
- package/dist/hooks/runtime-fallback/constants.d.ts +1 -0
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -0
- package/dist/hooks/runtime-fallback/types.d.ts +10 -1
- package/dist/index.js +881 -234
- package/dist/shared/compaction-in-flight.d.ts +15 -0
- package/dist/shared/runtime-fallback-recovery.d.ts +38 -0
- package/dist/shared/runtime-fallback-retry-marker.d.ts +2 -0
- package/dist/skills/browser/SKILL.md +3 -1
- package/dist/skills/browser/runtime/omowright/index.js +232 -341
- package/dist/skills/browser/runtime/omowright/manifest.json +5 -5
- package/dist/skills/browser/runtime/omowright/page-bundle.js +1586 -1394
- package/dist/skills/browser/scripts/browser-doctor-report.mjs +68 -0
- package/dist/skills/browser/scripts/browser-doctor.mjs +8 -43
- package/dist/skills/browser/scripts/omowright.mjs +7 -1
- package/dist/tui.js +35 -16
- package/package.json +15 -15
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +19 -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/SKILL.md +3 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +232 -341
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +5 -5
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/page-bundle.js +1586 -1394
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor-report.mjs +68 -0
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor.mjs +8 -43
- package/packages/omo-codex/plugin/skills/browser/scripts/omowright.mjs +7 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +21 -2
- package/packages/shared-skills/skills/browser/SKILL.md +3 -1
- package/packages/shared-skills/skills/browser/runtime/omowright/index.js +232 -341
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +5 -5
- package/packages/shared-skills/skills/browser/runtime/omowright/page-bundle.js +1586 -1394
- package/packages/shared-skills/skills/browser/scripts/browser-doctor-report.mjs +68 -0
- package/packages/shared-skills/skills/browser/scripts/browser-doctor.mjs +8 -43
- package/packages/shared-skills/skills/browser/scripts/omowright.mjs +7 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type CompactionInFlight = {
|
|
2
|
+
gen: number;
|
|
3
|
+
startedAt: number;
|
|
4
|
+
messageID?: string;
|
|
5
|
+
endedAt?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function recordCompactionStart(sessionID: string, messageID?: string): void;
|
|
8
|
+
export declare function recordCompactionEnd(sessionID: string, expectedGeneration?: number, expectedMessageID?: string): void;
|
|
9
|
+
export declare function clearAllCompactions(): void;
|
|
10
|
+
export declare function getCompaction(sessionID: string): CompactionInFlight | undefined;
|
|
11
|
+
export declare function isCompactionInFlight(sessionID: string): boolean;
|
|
12
|
+
export declare function observeCompactionEvent(event: {
|
|
13
|
+
type: string;
|
|
14
|
+
properties?: unknown;
|
|
15
|
+
}): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Arbitration between the runtime-fallback hook (same-session retry) and the
|
|
3
|
+
* background manager (terminal error finalization) for one `session.error` event.
|
|
4
|
+
*
|
|
5
|
+
* The event dispatcher runs the background manager before runtime-fallback, and
|
|
6
|
+
* runtime-fallback resolves its agent asynchronously before it decides anything,
|
|
7
|
+
* so the manager cannot read runtime-fallback's state at the moment the error
|
|
8
|
+
* arrives. Each `session.error` event therefore carries a claim: the dispatcher
|
|
9
|
+
* opens it before any hook runs, runtime-fallback settles it once it has decided,
|
|
10
|
+
* and the manager awaits it before finalizing the task.
|
|
11
|
+
*
|
|
12
|
+
* Claims are keyed by the event object, not by session or message id. Retry
|
|
13
|
+
* prompts can reuse the original user message id, so neither a session id nor a
|
|
14
|
+
* marker on a message can tell a stale error from the failure of the retry; the
|
|
15
|
+
* event itself is the only identity that stays attached to one error.
|
|
16
|
+
*/
|
|
17
|
+
export type RuntimeFallbackRecoveryDecision = "retry-owned" | "declined" | "timed-out";
|
|
18
|
+
type SettledDecision = Exclude<RuntimeFallbackRecoveryDecision, "timed-out">;
|
|
19
|
+
/** Called by the runtime-fallback hook for its lifetime. Without an owner no claim is ever opened. */
|
|
20
|
+
export declare function registerRuntimeFallbackRecoveryOwner(): () => void;
|
|
21
|
+
/** Called by the event dispatcher before any hook sees the event. */
|
|
22
|
+
export declare function openRuntimeFallbackRecoveryClaim(event: object, sessionID: string): void;
|
|
23
|
+
/** Called by the runtime-fallback hook once it has finished handling the event. */
|
|
24
|
+
export declare function settleRuntimeFallbackRecoveryClaim(event: object, decision: SettledDecision): void;
|
|
25
|
+
/**
|
|
26
|
+
* Called by consumers that would otherwise terminalize on the event. Returns
|
|
27
|
+
* undefined when no claim was opened for it, so callers pay no extra await in
|
|
28
|
+
* that case. A timeout is not a refusal: the hook may still commit a dispatch.
|
|
29
|
+
* Consumers must not start competing recovery on `timed-out`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function awaitRuntimeFallbackRecoveryDecision(event: object, timeoutMs?: number): Promise<RuntimeFallbackRecoveryDecision> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The decision the hook settles after a waiter already timed out. Resolves once the claim is settled,
|
|
34
|
+
* including by the last owner's release, so a late `declined` can still finalize the task.
|
|
35
|
+
*/
|
|
36
|
+
export declare function awaitLateRuntimeFallbackRecoveryDecision(event: object): Promise<SettledDecision> | undefined;
|
|
37
|
+
export declare function _resetRuntimeFallbackRecoveryForTesting(): void;
|
|
38
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const OMO_RUNTIME_FALLBACK_RETRY_MARKER = "<!-- OMO_RUNTIME_FALLBACK_RETRY -->";
|
|
2
|
+
export declare const RUNTIME_FALLBACK_RETRY_CONTINUATION_TEXT = "continue";
|
|
2
3
|
type RuntimeFallbackRetryTextPartLike = {
|
|
3
4
|
type?: string;
|
|
4
5
|
text?: string;
|
|
@@ -13,4 +14,5 @@ export declare function createRuntimeFallbackRetryTextPart(text: string): {
|
|
|
13
14
|
text: string;
|
|
14
15
|
};
|
|
15
16
|
export declare function isRuntimeFallbackRetryTextParts(parts: readonly RuntimeFallbackRetryTextPartLike[] | undefined): boolean;
|
|
17
|
+
export declare function hasSubstantivePromptText(parts: unknown): boolean;
|
|
16
18
|
export {};
|
|
@@ -14,7 +14,8 @@ One library, two engines. omowright ships inside this skill; choose the engine b
|
|
|
14
14
|
| A 403/WAF host the attached engine cannot open, a platform with a native reader, an archive snapshot | neither | the `ultimate-browsing` skill |
|
|
15
15
|
|
|
16
16
|
**Attached is the default,** because it is the only engine carrying the user's logins and the only
|
|
17
|
-
one where a human is a single call away.
|
|
17
|
+
one where a human is a single call away. It works in an Agent Window inside the user's own browser profile, never in
|
|
18
|
+
a copy of that profile, and exists only where the user installed and enabled the BrowserSkill extension. Never substitute one engine for the other silently: if
|
|
18
19
|
the attached engine is not set up, run the onboarding script and tell the user its one remaining
|
|
19
20
|
step.
|
|
20
21
|
|
|
@@ -58,6 +59,7 @@ node "<skill-root>/scripts/browser-doctor.mjs" --json
|
|
|
58
59
|
| `no-cli` / `no-daemon` / `no-extension` | something is missing | `node "<skill-root>/scripts/browser-install.mjs" [--browser=<id>]` prepares everything it can for **the browser the user uses**, then prints the **single** step only the user can do (relaunch that browser and click **Enable**); relay it verbatim, wait, re-run the doctor |
|
|
59
60
|
| `choose-browser` | the signals do not single out one browser (Safari/Firefox default, an idle default while another browser runs, several in use) | nothing was installed; take the browser from memory or ask the user, then `browser-install.mjs --browser=<id>` |
|
|
60
61
|
| `no-browser-support` | no Chromium-family profile on this machine | say so and stop |
|
|
62
|
+
| `outdated-extension` | the only connected extension is BrowserSkill 0.4.0, which leaves a "BrowserSkill" tab group in the user's browser after every task | start no session; relay the doctor's remedy (update the extension to 0.4.1 or later, delete saved "BrowserSkill" groups by hand), then re-run the doctor |
|
|
61
63
|
|
|
62
64
|
**Install into the browser the user actually uses, never into whatever happens to be on disk.** Before
|
|
63
65
|
installing, check your memory for the user's browser; otherwise read the doctor's `browser` (picked
|