lazycodex-ai 5.1.66 → 5.1.68

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.
Files changed (62) hide show
  1. package/dist/cli/index.js +209 -158
  2. package/dist/cli/service-auth/account-home.d.ts +47 -0
  3. package/dist/cli/service-auth/account-home.fixture.d.ts +1 -0
  4. package/dist/cli/service-auth/credential-lock.d.ts +2 -0
  5. package/dist/cli/service-auth/index.d.ts +1 -1
  6. package/dist/cli-node/index.js +209 -158
  7. package/package.json +1 -1
  8. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  9. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +1 -1
  10. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  11. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  12. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  13. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  14. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  15. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  16. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  17. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  18. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  19. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  20. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  21. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  22. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  23. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  24. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  25. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  26. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  27. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  28. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  29. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  30. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  31. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  32. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  33. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  34. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  35. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  36. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  37. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  38. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  39. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  40. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  41. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  42. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  43. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  44. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  45. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  46. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  47. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  48. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  49. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  50. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  51. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  52. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  53. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  54. package/packages/omo-codex/plugin/package-lock.json +12 -12
  55. package/packages/omo-codex/plugin/package.json +1 -1
  56. package/packages/omo-codex/plugin/skills/browser/ATTRIBUTION.md +11 -7
  57. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/LICENSE +21 -0
  58. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -3
  59. package/packages/omo-codex/scripts/install-dist/install-local.mjs +3 -3
  60. package/packages/shared-skills/skills/browser/ATTRIBUTION.md +11 -7
  61. package/packages/shared-skills/skills/browser/runtime/omowright/LICENSE +21 -0
  62. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -3
@@ -0,0 +1,47 @@
1
+ /** What the OS says about the user running this process; tests pass their own (#12978). */
2
+ export interface PlatformFacts {
3
+ readonly platform: NodeJS.Platform;
4
+ readonly uid: number | undefined;
5
+ readonly env: Readonly<Record<string, string | undefined>>;
6
+ readonly readFile: (path: string) => string;
7
+ readonly isFile: (path: string) => boolean;
8
+ /** Always called with an absolute executable path, never a bare name a search could resolve. */
9
+ readonly run: (command: string, args: readonly string[]) => string;
10
+ }
11
+ /** What the default lock home is chosen from. Tests and fixtures pass their own; there is no environment override (#12978). */
12
+ export interface AccountFacts {
13
+ /** The home the OS user record names, independent of $HOME and %USERPROFILE%; undefined when the OS cannot say. */
14
+ readonly recordHome: () => string | undefined;
15
+ /** $HOME or %USERPROFILE%: the lock home before #12978, and the fallback when the record's home cannot hold the lock. */
16
+ readonly homedir: () => string;
17
+ /** Creates the lock directory and proves it writable, or throws. */
18
+ readonly prepareLockDirectory: (directory: string) => void;
19
+ readonly warn: (message: string) => void;
20
+ }
21
+ export declare const lockDirectoryIn: (home: string) => string;
22
+ /**
23
+ * The OS user record's home. The credential item belongs to the OS user (the Secret Service on the session bus, the
24
+ * login Keychain, Credential Manager), not to $HOME, and Bun's homedir() and userInfo() both answer $HOME/%USERPROFILE%.
25
+ */
26
+ export declare function userRecordHome(facts: PlatformFacts): string | undefined;
27
+ /**
28
+ * The record's home when it can hold the lock; otherwise today's homedir() with one warning, so a read-only or missing
29
+ * account home never fails a sign-in because of where the lock lives.
30
+ */
31
+ export declare function chooseLockHome(facts: AccountFacts): string;
32
+ export declare const systemPlatformFacts: PlatformFacts;
33
+ export declare const systemAccountFacts: AccountFacts;
34
+ /** Names the lock home of a CLI child a test starts; read only in a process whose credential store is a test stand-in. */
35
+ export declare const TEST_LOCK_HOME_ENV = "OMO_TEST_CREDENTIAL_LOCK_HOME";
36
+ /**
37
+ * The lock home a test hands to the real CLI it starts as a child, whose in-process facts the test cannot replace.
38
+ * Honored only when the process's Bun.secrets carries the stand-in marker that the test preload (test-hermetic-home.ts)
39
+ * and the launcher-child fixtures set: such a process holds no real credential, so moving its lock cannot split one.
40
+ * A production process never has the marker and ignores the variable. An override it honored would put two processes of
41
+ * one OS user on different locks for the same sign-in again, which is #12978 itself.
42
+ */
43
+ export declare function testLockHome(env: Readonly<Record<string, string | undefined>>, secrets: unknown): string | undefined;
44
+ /** Where every process of this OS user meets on one credential lock, chosen once per process (#12978). */
45
+ export declare function accountHome(): string;
46
+ /** Test preloads and fixtures only; returns the facts it replaced. */
47
+ export declare function useAccountFacts(next: AccountFacts): AccountFacts;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  import { type LockLease } from "@oh-my-opencode/team-core/team-state-store/locks";
2
+ import { accountHome } from "./account-home";
3
+ export { accountHome };
2
4
  /**
3
5
  * The one per-origin lock and desktop generation record (account-transport-api v7 section 4.1). The CLI, desktop main
4
6
  * and the engine pin boundary all derive these paths here or with the same inputs; never pass a path around instead.
@@ -1,4 +1,4 @@
1
- export { credentialLockPaths, withCredentialLock } from "./credential-lock";
1
+ export { accountHome, credentialLockPaths, withCredentialLock } from "./credential-lock";
2
2
  export { currentServiceDevice } from "./protocol";
3
3
  export { CredentialIdentityChanged, type CredentialStore, createCredentialStore, KeychainApprovalPendingError, quietNotice } from "./keystore";
4
4
  export { type Credentials, SignInError, serviceOrigin } from "./protocol";