lazycodex-ai 5.0.0-beta.89 → 5.0.0-beta.90
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/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/README.zh-cn.md +1 -1
- package/dist/cli/config-manager/refresh-opencode-plugin-sandbox.d.ts +31 -0
- package/dist/cli/doctor/checks/tui-plugin-config.d.ts +11 -0
- package/dist/cli/index.js +1661 -859
- package/dist/cli/install-native/index.d.ts +9 -1
- package/dist/cli/install-native/legacy-omo-bin.d.ts +27 -0
- package/dist/cli/install-native/offer-native-setup.d.ts +31 -0
- package/dist/cli/install-native/omo-bin-test-fixtures.d.ts +35 -0
- package/dist/cli/install-native/plan.d.ts +8 -0
- package/dist/cli/install-native/repair-legacy-omo-bin.d.ts +26 -0
- package/dist/cli/install-native/run-native-install.d.ts +11 -1
- package/dist/cli/install-native/verify-omo-command.d.ts +22 -0
- package/dist/cli/native-edition-hint.d.ts +2 -2
- package/dist/cli-node/index.js +1661 -859
- package/package.json +1 -1
- 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/bundled-rules/hephaestus/gpt-5.6.md +5 -1
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus/gpt-6.md +5 -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/dist/cli.js +7 -3
- 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/ultrawork/src/directive-content.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/directive.md +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/directive.md +7 -3
- 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/scripts/sync-skills.mjs +2 -2
- package/packages/omo-codex/plugin/skills/browser/SKILL.md +8 -1
- package/packages/omo-codex/plugin/skills/browser/references/install.md +34 -5
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +2 -2
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +3 -3
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor.mjs +14 -3
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-install.mjs +13 -1
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +7 -3
- package/packages/omo-codex/plugin/skills/ulw-research/AGENTS.md +63 -0
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +37 -25
- package/packages/omo-codex/plugin/skills/ulw-research/references/deliverable-phase.md +187 -0
- package/packages/omo-codex/plugin/skills/ulw-research/references/report-gates.md +66 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/cli-support.mjs +102 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/contracts.mjs +162 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/css-lite.mjs +204 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/design-spec.mjs +161 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/entities.mjs +39 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/entry-guard.mjs +21 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract-css.mjs +122 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract.mjs +229 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-figures.mjs +173 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-layout.mjs +146 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-static.mjs +167 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-structure.mjs +118 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-text.mjs +190 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-lite.mjs +239 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/layout-probe.mjs +83 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/outcome.mjs +250 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/repair-tracker.mjs +171 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools-commands.mjs +214 -0
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools.mjs +61 -0
- package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +3 -1
- package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +11 -0
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -2
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +20 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
- package/packages/prompts-core/prompts/ultrawork/codex.md +7 -3
- package/packages/shared-skills/skills/browser/SKILL.md +8 -1
- package/packages/shared-skills/skills/browser/references/install.md +34 -5
- package/packages/shared-skills/skills/browser/runtime/omowright/index.js +2 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +3 -3
- package/packages/shared-skills/skills/browser/scripts/browser-doctor.mjs +14 -3
- package/packages/shared-skills/skills/browser/scripts/browser-install.mjs +13 -1
- package/packages/shared-skills/skills/ulw-research/AGENTS.md +63 -0
- package/packages/shared-skills/skills/ulw-research/SKILL.md +38 -26
- package/packages/shared-skills/skills/ulw-research/references/deliverable-phase.md +187 -0
- package/packages/shared-skills/skills/ulw-research/references/report-gates.md +66 -0
- package/packages/shared-skills/skills/ulw-research/scripts/cli-support.mjs +102 -0
- package/packages/shared-skills/skills/ulw-research/scripts/cli-support.test.ts +88 -0
- package/packages/shared-skills/skills/ulw-research/scripts/contracts.mjs +162 -0
- package/packages/shared-skills/skills/ulw-research/scripts/contracts.test.ts +177 -0
- package/packages/shared-skills/skills/ulw-research/scripts/css-lite.mjs +204 -0
- package/packages/shared-skills/skills/ulw-research/scripts/css-lite.test.ts +159 -0
- package/packages/shared-skills/skills/ulw-research/scripts/design-spec.mjs +161 -0
- package/packages/shared-skills/skills/ulw-research/scripts/design-spec.test.ts +162 -0
- package/packages/shared-skills/skills/ulw-research/scripts/entities.mjs +39 -0
- package/packages/shared-skills/skills/ulw-research/scripts/entry-guard.mjs +21 -0
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract-css.mjs +122 -0
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract.mjs +229 -0
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract.test.ts +243 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-figures.mjs +173 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.mjs +146 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.test.ts +236 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-static.mjs +167 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-static.test.ts +265 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-structure.mjs +118 -0
- package/packages/shared-skills/skills/ulw-research/scripts/gates-text.mjs +190 -0
- package/packages/shared-skills/skills/ulw-research/scripts/glossary-vocabulary.test.ts +43 -0
- package/packages/shared-skills/skills/ulw-research/scripts/html-lite.mjs +239 -0
- package/packages/shared-skills/skills/ulw-research/scripts/html-lite.test.ts +191 -0
- package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.mjs +83 -0
- package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.test.ts +89 -0
- package/packages/shared-skills/skills/ulw-research/scripts/outcome.mjs +250 -0
- package/packages/shared-skills/skills/ulw-research/scripts/outcome.test.ts +281 -0
- package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.mjs +171 -0
- package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.test.ts +246 -0
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-commands.mjs +214 -0
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools.mjs +61 -0
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools.test.ts +213 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/assets/figure-1.svg +1 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/bad-report.html +44 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/boxes.json +90 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/design-spec.md +29 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/good-report.html +57 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/reference-report.html +86 -0
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fixtures/reference.md +23 -0
- package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +3 -1
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
export { formatNativeInstallCommand, NATIVE_PACKAGE_SPEC, NATIVE_RECOMMENDED_RUNTIME_NOTE, NATIVE_SETUP_COMMAND, resolveNativeInstallPlan, } from "./plan";
|
|
1
|
+
export { formatNativeInstallCommand, formatNativeInstallEntryCommand, NATIVE_PACKAGE_SPEC, NATIVE_RECOMMENDED_RUNTIME_NOTE, NATIVE_SETUP_COMMAND, resolveNativeInstallPlan, } from "./plan";
|
|
2
2
|
export type { NativeInstallPlan, NativePackageManager } from "./plan";
|
|
3
|
+
export { firstOmoBinOnPath, LEGACY_OMO_BIN_PACKAGES, legacyOmoBins, NATIVE_OMO_PACKAGE, nativeOmoBin, resolveOmoBinEnvironment, scanOmoBins, } from "./legacy-omo-bin";
|
|
4
|
+
export type { OmoBinEntry, OmoBinEnvironment, OmoBinKind } from "./legacy-omo-bin";
|
|
5
|
+
export { removeFileCommand, repairLegacyOmoBins } from "./repair-legacy-omo-bin";
|
|
6
|
+
export type { LegacyOmoBinRepair } from "./repair-legacy-omo-bin";
|
|
7
|
+
export { pathOrderFix, verifyOmoCommand } from "./verify-omo-command";
|
|
8
|
+
export type { OmoCommandVerification, OmoVersionProbe } from "./verify-omo-command";
|
|
3
9
|
export { nativeInstallFailureLines, nativeInstallSuccessLine, runNativeInstall, } from "./run-native-install";
|
|
10
|
+
export { NATIVE_SETUP_OFFER_QUESTION, nativeSetupFollowUpLine, nativeSetupStartLine, offerNativeSetup, } from "./offer-native-setup";
|
|
11
|
+
export type { NativeSetupOfferDependencies, NativeSetupOfferResult, NativeSetupRun } from "./offer-native-setup";
|
|
4
12
|
export type { NativeInstallDependencies, NativeInstallFailure, NativeInstallOutcome, NativeInstallSpawn, NativeInstallSpawnResult, } from "./run-native-install";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const NATIVE_OMO_PACKAGE = "omo-ai";
|
|
2
|
+
export declare const LEGACY_OMO_BIN_PACKAGES: readonly string[];
|
|
3
|
+
export type OmoBinKind = "native" | "legacy" | "foreign";
|
|
4
|
+
export interface OmoBinEnvironment {
|
|
5
|
+
readonly pathDirectories: readonly string[];
|
|
6
|
+
readonly extraDirectories: readonly string[];
|
|
7
|
+
readonly isWindows: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface OmoBinEntry {
|
|
10
|
+
readonly binPath: string;
|
|
11
|
+
readonly directory: string;
|
|
12
|
+
readonly onPath: boolean;
|
|
13
|
+
readonly kind: OmoBinKind;
|
|
14
|
+
readonly packageName: string | null;
|
|
15
|
+
readonly packageVersion: string | null;
|
|
16
|
+
/** Every file that carries this `omo` command, including the Windows `.cmd` / `.ps1` siblings. */
|
|
17
|
+
readonly shimPaths: readonly string[];
|
|
18
|
+
}
|
|
19
|
+
export declare function resolveOmoBinEnvironment(input: {
|
|
20
|
+
readonly env: Record<string, string | undefined>;
|
|
21
|
+
readonly platform: string;
|
|
22
|
+
readonly homeDir: string;
|
|
23
|
+
}): OmoBinEnvironment;
|
|
24
|
+
export declare function scanOmoBins(environment: OmoBinEnvironment): readonly OmoBinEntry[];
|
|
25
|
+
export declare function legacyOmoBins(entries: readonly OmoBinEntry[]): readonly OmoBinEntry[];
|
|
26
|
+
export declare function nativeOmoBin(entries: readonly OmoBinEntry[]): OmoBinEntry | null;
|
|
27
|
+
export declare function firstOmoBinOnPath(entries: readonly OmoBinEntry[]): OmoBinEntry | null;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { NativeInstallOutcome } from "./run-native-install";
|
|
2
|
+
export declare const NATIVE_SETUP_OFFER_QUESTION = "Run omo setup now to carry your OpenCode credentials, MCP servers and skills over?";
|
|
3
|
+
export type NativeSetupRun = (binPath: string, args: readonly string[]) => Promise<number>;
|
|
4
|
+
export interface NativeSetupOfferDependencies {
|
|
5
|
+
readonly confirm: (question: string) => Promise<boolean>;
|
|
6
|
+
readonly runSetup?: NativeSetupRun;
|
|
7
|
+
/** Receives the start line right before the setup process takes over the terminal. */
|
|
8
|
+
readonly onStart?: (line: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export type NativeSetupOfferResult = {
|
|
11
|
+
readonly kind: "not-offered";
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: "declined";
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: "ran";
|
|
16
|
+
readonly binPath: string;
|
|
17
|
+
readonly exitCode: number;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "failed";
|
|
20
|
+
readonly binPath: string;
|
|
21
|
+
readonly reason: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Offers to run onboarding with the exact binary the install just verified. An unverified install
|
|
25
|
+
* is never offered: whatever `omo` PATH resolves there is, by definition, not omo-ai, and the PATH
|
|
26
|
+
* fix printed by the verify step stays the next thing to do.
|
|
27
|
+
*/
|
|
28
|
+
export declare function offerNativeSetup(outcome: Pick<NativeInstallOutcome, "verified" | "omoBinPath">, dependencies: NativeSetupOfferDependencies): Promise<NativeSetupOfferResult>;
|
|
29
|
+
export declare function nativeSetupStartLine(binPath: string): string;
|
|
30
|
+
/** The line to print after the offer, or null when the offer already finished onboarding. */
|
|
31
|
+
export declare function nativeSetupFollowUpLine(result: NativeSetupOfferResult): string | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface GlobalBinFixture {
|
|
2
|
+
readonly root: string;
|
|
3
|
+
readonly binDir: string;
|
|
4
|
+
readonly binPath: string;
|
|
5
|
+
readonly packageDir: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GlobalBinFixtureOptions {
|
|
8
|
+
readonly root: string;
|
|
9
|
+
readonly packageName: string;
|
|
10
|
+
readonly version: string;
|
|
11
|
+
readonly bins?: readonly string[];
|
|
12
|
+
readonly link?: "symlink" | "script";
|
|
13
|
+
}
|
|
14
|
+
export declare function createBinFixtureRoot(label: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Lays out a global install the way npm and bun really do it: the package under
|
|
17
|
+
* `lib/node_modules/<name>`, and one entry per bin in `bin/`, either a relative symlink
|
|
18
|
+
* (npm and bun on POSIX) or a launcher script that names the package path (Windows shims and
|
|
19
|
+
* omo-ai's own bun shim).
|
|
20
|
+
*/
|
|
21
|
+
export declare function writeGlobalPackageBin(options: GlobalBinFixtureOptions): GlobalBinFixture;
|
|
22
|
+
/**
|
|
23
|
+
* Lays out the `omo` command the Codex Light installer of a pre-rename release wrote into
|
|
24
|
+
* `~/.local/bin`: a generated shell wrapper, not a package-manager link, that execs the CLI out of
|
|
25
|
+
* `<CODEX_HOME>/plugins/cache/sisyphuslabs/omo/<version>/`. The marker comment is what the Light
|
|
26
|
+
* installer itself matches on when it retires the wrapper.
|
|
27
|
+
*/
|
|
28
|
+
export declare function writeCodexLightRuntimeWrapper(options: {
|
|
29
|
+
readonly root: string;
|
|
30
|
+
readonly version: string;
|
|
31
|
+
readonly marker?: string;
|
|
32
|
+
}): {
|
|
33
|
+
readonly binDir: string;
|
|
34
|
+
readonly binPath: string;
|
|
35
|
+
};
|
|
@@ -9,3 +9,11 @@ export interface NativeInstallPlan {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function resolveNativeInstallPlan(bunAvailable: boolean): NativeInstallPlan;
|
|
11
11
|
export declare function formatNativeInstallCommand(plan: NativeInstallPlan): string;
|
|
12
|
+
/**
|
|
13
|
+
* The command every user-facing surface advertises. It is the raw package install plus the parts a
|
|
14
|
+
* raw install cannot do: clearing a stale global `omo` left by a pre-rename release, and checking
|
|
15
|
+
* that the `omo` PATH resolves afterwards is the one omo-ai owns. The tag follows the channel of the
|
|
16
|
+
* running plugin: a prerelease build advertises `@beta` (while `latest` is 4.19.4, which rejects
|
|
17
|
+
* `--platform=native`), a stable build advertises the bare name, which resolves to `latest`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatNativeInstallEntryCommand(plan: NativeInstallPlan, pluginVersion?: string): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { OmoBinEntry } from "./legacy-omo-bin";
|
|
2
|
+
export interface LegacyOmoBinRemoval {
|
|
3
|
+
readonly binPath: string;
|
|
4
|
+
readonly packageName: string;
|
|
5
|
+
readonly packageVersion: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface LegacyOmoBinRepairFailure {
|
|
8
|
+
readonly binPath: string;
|
|
9
|
+
readonly reason: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LegacyOmoBinRepair {
|
|
12
|
+
readonly removed: readonly LegacyOmoBinRemoval[];
|
|
13
|
+
readonly failures: readonly LegacyOmoBinRepairFailure[];
|
|
14
|
+
readonly notes: readonly string[];
|
|
15
|
+
readonly warnings: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
export declare function describePackage(entry: OmoBinEntry): string;
|
|
18
|
+
export declare function removeFileCommand(binPath: string, isWindows: boolean): string;
|
|
19
|
+
/**
|
|
20
|
+
* Removes only the `omo` command that a pre-rename release left behind. The package that owns it, and
|
|
21
|
+
* every other command it installs, stay in place: the rename orphaned this one alias, and uninstalling
|
|
22
|
+
* somebody's whole global package to install ours is not a decision an installer gets to make.
|
|
23
|
+
*/
|
|
24
|
+
export declare function repairLegacyOmoBins(entries: readonly OmoBinEntry[], options: {
|
|
25
|
+
readonly isWindows: boolean;
|
|
26
|
+
}): LegacyOmoBinRepair;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { OmoBinEnvironment } from "./legacy-omo-bin";
|
|
2
|
+
import type { OmoVersionProbe } from "./verify-omo-command";
|
|
1
3
|
import type { NativeInstallPlan } from "./plan";
|
|
2
4
|
export interface NativeInstallSpawnResult {
|
|
3
5
|
readonly exitCode: number;
|
|
@@ -7,17 +9,25 @@ export type NativeInstallSpawn = (command: string, args: readonly string[]) => P
|
|
|
7
9
|
export interface NativeInstallDependencies {
|
|
8
10
|
readonly isBunAvailable: () => boolean | Promise<boolean>;
|
|
9
11
|
readonly spawn: NativeInstallSpawn;
|
|
12
|
+
readonly environment: OmoBinEnvironment;
|
|
13
|
+
readonly probeVersion: OmoVersionProbe;
|
|
10
14
|
}
|
|
11
15
|
export interface NativeInstallFailure {
|
|
12
16
|
readonly reason: string;
|
|
13
17
|
readonly manualCommand: string;
|
|
18
|
+
readonly hints?: readonly string[];
|
|
14
19
|
}
|
|
15
20
|
export interface NativeInstallOutcome {
|
|
16
21
|
readonly ok: boolean;
|
|
22
|
+
/** The `omo` that PATH resolves after the install is the one omo-ai owns. */
|
|
23
|
+
readonly verified: boolean;
|
|
24
|
+
/** The verified omo-ai binary; set only when `verified`, so onboarding never runs a bare `omo` lookup. */
|
|
25
|
+
readonly omoBinPath?: string;
|
|
17
26
|
readonly plan: NativeInstallPlan;
|
|
18
27
|
readonly notes: readonly string[];
|
|
28
|
+
readonly warnings: readonly string[];
|
|
19
29
|
readonly failure?: NativeInstallFailure;
|
|
20
30
|
}
|
|
21
31
|
export declare function runNativeInstall(dependencies?: NativeInstallDependencies): Promise<NativeInstallOutcome>;
|
|
22
|
-
export declare function nativeInstallSuccessLine(): string;
|
|
32
|
+
export declare function nativeInstallSuccessLine(verified: boolean): string;
|
|
23
33
|
export declare function nativeInstallFailureLines(failure: NativeInstallFailure): readonly string[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { OmoBinEnvironment } from "./legacy-omo-bin";
|
|
2
|
+
export interface OmoVersionProbeResult {
|
|
3
|
+
readonly exitCode: number;
|
|
4
|
+
readonly stdout: string;
|
|
5
|
+
}
|
|
6
|
+
export type OmoVersionProbe = (command: string, args: readonly string[]) => Promise<OmoVersionProbeResult>;
|
|
7
|
+
export type OmoCommandVerification = {
|
|
8
|
+
readonly ok: true;
|
|
9
|
+
/** The omo-ai `omo` that was verified. */
|
|
10
|
+
readonly binPath: string;
|
|
11
|
+
readonly notes: readonly string[];
|
|
12
|
+
readonly warnings: readonly string[];
|
|
13
|
+
} | {
|
|
14
|
+
readonly ok: false;
|
|
15
|
+
readonly notes: readonly string[];
|
|
16
|
+
readonly warnings: readonly string[];
|
|
17
|
+
};
|
|
18
|
+
export declare function pathOrderFix(directory: string, isWindows: boolean): string;
|
|
19
|
+
export declare function verifyOmoCommand(options: {
|
|
20
|
+
readonly environment: OmoBinEnvironment;
|
|
21
|
+
readonly probeVersion: OmoVersionProbe;
|
|
22
|
+
}): Promise<OmoCommandVerification>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InstallConfig } from "./types";
|
|
2
|
-
export declare const NATIVE_EDITION_INSTALL_COMMAND
|
|
3
|
-
export declare const NATIVE_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/
|
|
2
|
+
export declare const NATIVE_EDITION_INSTALL_COMMAND: string;
|
|
3
|
+
export declare const NATIVE_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/migrating-from-opencode.md";
|
|
4
4
|
export declare const NATIVE_EDITION_HINT_TITLE = "OmO Native (beta)";
|
|
5
5
|
export type NativeEditionHintPaint = {
|
|
6
6
|
readonly command: (text: string) => string;
|