omo-ai 5.1.69 → 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/bin/darwin/omo-keychain +0 -0
- package/bin/lib/agent-dir.js +8 -1
- package/bin/lib/auth-store.js +11 -1
- package/bin/lib/bun-bin-shim.js +12 -2
- package/bin/lib/category-coverage.js +56 -18
- package/bin/lib/child-process.js +2 -1
- package/bin/lib/compile-safe-engine.js +14 -2
- package/bin/lib/daemon-adopt.js +41 -10
- package/bin/lib/daemon-config.js +9 -3
- package/bin/lib/daemon-operations.js +11 -3
- package/bin/lib/daemon-rollback.js +28 -23
- package/bin/lib/daemon-status.js +9 -3
- package/bin/lib/daemon.js +18 -3
- package/bin/lib/doctor-memory-runtime.js +46 -12
- package/bin/lib/doctor-migration.js +65 -38
- package/bin/lib/doctor-pi-config.js +8 -3
- package/bin/lib/doctor-reflection-lock.js +35 -12
- package/bin/lib/doctor.js +64 -49
- package/bin/lib/engine-boot.js +3 -1
- package/bin/lib/engine-commands.js +11 -1
- package/bin/lib/engine-environment.js +8 -1
- package/bin/lib/engine-models.js +2 -1
- package/bin/lib/engine-prepare.js +18 -3
- package/bin/lib/host-status.js +5 -1
- package/bin/lib/jsonc-edit.js +10 -6
- package/bin/lib/keychain-helper-doctor.js +13 -3
- package/bin/lib/launch-spec-mode.js +6 -2
- package/bin/lib/launcher.js +31 -19
- package/bin/lib/model-chains.js +12 -5
- package/bin/lib/npm-dist-tags.js +2 -1
- package/bin/lib/package-paths.js +18 -10
- package/bin/lib/private-fd-table.js +19 -10
- package/bin/lib/process-list.js +26 -0
- package/bin/lib/provider-map.json +1 -1
- package/bin/lib/rpc-stream-errors.js +6 -2
- package/bin/lib/same-version.js +6 -1
- package/bin/lib/self-update.js +41 -10
- package/bin/lib/service-auth.generated.js +57 -43
- package/bin/lib/setup-assets-import.js +25 -5
- package/bin/lib/setup-commandcode.js +5 -2
- package/bin/lib/setup-credentials.js +12 -2
- package/bin/lib/setup-detect-refresh.js +9 -6
- package/bin/lib/setup-detect.js +4 -5
- package/bin/lib/setup-guidance.js +1 -1
- package/bin/lib/setup-import.js +35 -7
- package/bin/lib/setup-model-choices-import.js +61 -10
- package/bin/lib/setup-models.js +9 -5
- package/bin/lib/setup-opencode-assets.js +26 -9
- package/bin/lib/setup-opencode-models.d.ts +4 -1
- package/bin/lib/setup-opencode-models.js +76 -30
- package/bin/lib/setup-opencode-providers.js +58 -17
- package/bin/lib/setup-providers-import.js +38 -6
- package/bin/lib/setup-report.js +9 -7
- package/bin/lib/setup-stream-items.js +29 -5
- package/bin/lib/setup-stream.d.ts +13 -3
- package/bin/lib/setup-stream.js +92 -15
- package/bin/lib/setup-summary.js +61 -18
- package/bin/lib/sqlite-rows.js +3 -1
- package/bin/lib/thread-output.js +14 -4
- package/bin/lib/thread.js +224 -38
- package/bin/lib/update-args.js +5 -1
- package/bin/lib/update-lock.js +13 -2
- package/bin/omo.js +1 -1
- package/package.json +2 -2
- package/plugin/CHANGELOG.md +148 -0
- package/plugin/README.md +9 -1
- package/plugin/extensions/gateway-store-worker.mjs +2 -2
- package/plugin/extensions/memory-run-supervisor.mjs +1 -1
- package/plugin/extensions/omo-claim-receipt.js +1 -1
- package/plugin/extensions/omo-computer-run-worker.mjs +1 -1
- package/plugin/extensions/omo-computer-use.js +2 -2
- package/plugin/extensions/omo-desktop-toolkit.js +1 -1
- package/plugin/extensions/omo-device-account.js +4 -4
- package/plugin/extensions/omo-device-service.js +5 -5
- package/plugin/extensions/omo-feedback.js +2 -2
- package/plugin/extensions/omo-init-deep-advisor.js +2 -2
- package/plugin/extensions/omo-member.js +2 -2
- package/plugin/extensions/omo-memory-commands.js +2 -2
- package/plugin/extensions/omo-memory-doctor.js +3 -3
- package/plugin/extensions/omo-memory-memfs.js +1 -1
- package/plugin/extensions/omo-memory-palace.js +3 -3
- package/plugin/extensions/omo-memory-sync.js +2 -2
- package/plugin/extensions/omo-onboarding-scan.js +2 -2
- package/plugin/extensions/omo-recall-store.js +1 -1
- package/plugin/extensions/omo-session-history.js +1 -1
- package/plugin/extensions/omo-side-panel.js +3 -3
- package/plugin/extensions/omo-task.js +2 -2
- package/plugin/extensions/omo-telemetry-otlp.js +2 -2
- package/plugin/extensions/omo-telemetry-posthog.js +1 -1
- package/plugin/extensions/omo-telemetry-recovery.js +1 -1
- package/plugin/extensions/omo-thread-client.js +5 -5
- package/plugin/extensions/omo.js +3 -3
- package/plugin/package.json +1 -1
- package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
- package/plugin/runtime/ast-grep-mcp/cli.js +26 -5
- package/plugin/runtime/ast-grep-mcp/manifest.json +2 -2
- package/plugin/runtime/bunshin-ts/sdk.js +4 -4
- package/plugin/runtime/category-coverage/index.js +6 -6
- package/plugin/runtime/lsp-daemon/dist/.omo-runtime-manifest.json +4 -4
- package/plugin/runtime/lsp-daemon/dist/cli.js +8 -2
- package/plugin/runtime/lsp-daemon/dist/client.js +8 -2
- package/plugin/runtime/lsp-daemon/dist/index.js +8 -2
- package/plugin/runtime/rollback-migrate.js +2 -2
- package/plugin/runtime/task-config/index.js +3 -3
- package/plugin/runtime/thread-sdk/sdk.js +5 -5
- package/plugin/scripts/install.mjs +20 -15
- package/plugin/skills/ast-grep/references/recipes.md +1 -1
- package/plugin/skills/ast-grep/tests/smoke.ps1 +1 -1
- package/plugin/skills/ast-grep/tests/smoke.sh +1 -1
- package/plugin/skills/browser/runtime/omowright/index.js +16 -16
- package/plugin/skills/browser/runtime/omowright/manifest.json +5 -5
- package/plugin/skills/browser/runtime/omowright/page-bundle.js +14 -4
- package/plugin/skills/browser/scripts/browser-doctor-report.mjs +36 -9
- package/plugin/skills/browser/scripts/browser-doctor.mjs +24 -7
- package/plugin/skills/browser/scripts/browser-engine-guard.mjs +2 -1
- package/plugin/skills/browser/scripts/browser-install.mjs +40 -8
- package/plugin/skills/debugging/references/scripts/dap.mjs +280 -170
- package/plugin/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
- package/plugin/skills/frontend/scripts/detect/cli.ts +67 -50
- package/plugin/skills/frontend/scripts/detect/config.ts +41 -38
- package/plugin/skills/frontend/scripts/detect/core/color.ts +109 -94
- package/plugin/skills/frontend/scripts/detect/core/page.ts +43 -42
- package/plugin/skills/frontend/scripts/detect/core/shadow.ts +38 -29
- package/plugin/skills/frontend/scripts/detect/core/source.ts +25 -20
- package/plugin/skills/frontend/scripts/detect/detect.ts +63 -45
- package/plugin/skills/frontend/scripts/detect/lint.ts +78 -69
- package/plugin/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
- package/plugin/skills/frontend/scripts/detect/render/renderer.ts +14 -13
- package/plugin/skills/frontend/scripts/detect/render/webview.ts +53 -50
- package/plugin/skills/frontend/scripts/detect/report.ts +20 -18
- package/plugin/skills/frontend/scripts/detect/rule.ts +21 -21
- package/plugin/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
- package/plugin/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
- package/plugin/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
- package/plugin/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
- package/plugin/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
- package/plugin/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
- package/plugin/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
- package/plugin/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
- package/plugin/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
- package/plugin/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
- package/plugin/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
- package/plugin/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
- package/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
- package/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
- package/plugin/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
- package/plugin/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
- package/plugin/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
- package/plugin/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
- package/plugin/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
- package/plugin/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
- package/plugin/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
- package/plugin/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
- package/plugin/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
- package/plugin/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
- package/plugin/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
- package/plugin/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
- package/plugin/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
- package/plugin/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
- package/plugin/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
- package/plugin/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
- package/plugin/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
- package/plugin/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
- package/plugin/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
- package/plugin/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
- package/plugin/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
- package/plugin/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
- package/plugin/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
- package/plugin/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
- package/plugin/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
- package/plugin/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
- package/plugin/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
- package/plugin/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
- package/plugin/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
- package/plugin/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
- package/plugin/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
- package/plugin/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
- package/plugin/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
- package/plugin/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
- package/plugin/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
- package/plugin/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
- package/plugin/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
- package/plugin/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
- package/plugin/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
- package/plugin/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
- package/plugin/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
- package/plugin/skills/frontend/scripts/detect/rules/index.ts +6 -6
- package/plugin/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
- package/plugin/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
- package/plugin/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
- package/plugin/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
- package/plugin/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
- package/plugin/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
- package/plugin/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
- package/plugin/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
- package/plugin/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
- package/plugin/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
- package/plugin/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
- package/plugin/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
- package/plugin/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
- package/plugin/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
- package/plugin/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
- package/plugin/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
- package/plugin/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
- package/plugin/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
- package/plugin/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
- package/plugin/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
- package/plugin/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
- package/plugin/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
- package/plugin/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
- package/plugin/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
- package/plugin/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
- package/plugin/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
- package/plugin/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
- package/plugin/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
- package/plugin/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
- package/plugin/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
- package/plugin/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
- package/plugin/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
- package/plugin/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
- package/plugin/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
- package/plugin/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
- package/plugin/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
- package/plugin/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
- package/plugin/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
- package/plugin/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
- package/plugin/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
- package/plugin/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
- package/plugin/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
- package/plugin/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
- package/plugin/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
- package/plugin/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
- package/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
- package/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
- package/plugin/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
- package/plugin/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
- package/plugin/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
- package/plugin/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
- package/plugin/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
- package/plugin/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
- package/plugin/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
- package/plugin/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
- package/plugin/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
- package/plugin/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
- package/plugin/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
- package/plugin/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
- package/plugin/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
- package/plugin/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
- package/plugin/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
- package/plugin/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
- package/plugin/skills/frontend/scripts/detect/types.ts +81 -76
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
- package/plugin/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
- package/plugin/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
- package/plugin/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
- package/plugin/skills/frontend/scripts/perfection/collect-files.ts +49 -36
- package/plugin/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
- package/plugin/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
- package/plugin/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
- package/plugin/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
- package/plugin/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
- package/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
- package/plugin/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
- package/plugin/skills/programming/SKILL.md +2 -2
- package/plugin/skills/programming/scripts/go/new-project.ts +68 -68
- package/plugin/skills/programming/scripts/python/new-project.ts +64 -64
- package/plugin/skills/programming/scripts/python/new-script.ts +39 -39
- package/plugin/skills/programming/scripts/rust/new-project.ts +60 -57
- package/plugin/skills/programming/scripts/shared/run-tool.ts +7 -7
- package/plugin/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
- package/plugin/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
- package/plugin/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
- package/plugin/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
- package/plugin/skills/programming/scripts/typescript/new-project.ts +21 -21
- package/plugin/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
- package/plugin/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
- package/plugin/skills/ulw-plan/scripts/plan-templates.mjs +30 -30
- package/plugin/skills/ulw-plan/scripts/scaffold-plan.mjs +131 -123
- package/plugin/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
- package/plugin/skills/ulw-research/scripts/claims-index.mjs +117 -93
- package/plugin/skills/ulw-research/scripts/cli-support.mjs +73 -73
- package/plugin/skills/ulw-research/scripts/contracts.mjs +604 -174
- package/plugin/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
- package/plugin/skills/ulw-research/scripts/css-hiding.mjs +126 -92
- package/plugin/skills/ulw-research/scripts/css-lite.mjs +143 -137
- package/plugin/skills/ulw-research/scripts/design-spec.mjs +123 -107
- package/plugin/skills/ulw-research/scripts/entities.mjs +66 -30
- package/plugin/skills/ulw-research/scripts/entry-guard.mjs +8 -8
- package/plugin/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
- package/plugin/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
- package/plugin/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
- package/plugin/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
- package/plugin/skills/ulw-research/scripts/fact-commands.mjs +264 -151
- package/plugin/skills/ulw-research/scripts/fact-derive.mjs +92 -48
- package/plugin/skills/ulw-research/scripts/fact-expr.mjs +90 -78
- package/plugin/skills/ulw-research/scripts/fact-fill.mjs +215 -127
- package/plugin/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
- package/plugin/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
- package/plugin/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
- package/plugin/skills/ulw-research/scripts/fact-locate.mjs +204 -147
- package/plugin/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
- package/plugin/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
- package/plugin/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
- package/plugin/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
- package/plugin/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
- package/plugin/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
- package/plugin/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
- package/plugin/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
- package/plugin/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
- package/plugin/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
- package/plugin/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
- package/plugin/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
- package/plugin/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
- package/plugin/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
- package/plugin/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
- package/plugin/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
- package/plugin/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
- package/plugin/skills/ulw-research/scripts/format-extract.mjs +161 -134
- package/plugin/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
- package/plugin/skills/ulw-research/scripts/gates-figures.mjs +192 -141
- package/plugin/skills/ulw-research/scripts/gates-layout.mjs +119 -85
- package/plugin/skills/ulw-research/scripts/gates-static.mjs +109 -102
- package/plugin/skills/ulw-research/scripts/gates-structure.mjs +105 -86
- package/plugin/skills/ulw-research/scripts/gates-text.mjs +169 -113
- package/plugin/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
- package/plugin/skills/ulw-research/scripts/html-lite.mjs +230 -176
- package/plugin/skills/ulw-research/scripts/html-markup.mjs +150 -128
- package/plugin/skills/ulw-research/scripts/html-text-map.mjs +125 -96
- package/plugin/skills/ulw-research/scripts/layout-probe.mjs +10 -8
- package/plugin/skills/ulw-research/scripts/lexicon.mjs +36 -19
- package/plugin/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
- package/plugin/skills/ulw-research/scripts/md-lite.mjs +133 -125
- package/plugin/skills/ulw-research/scripts/meaning-check.mjs +154 -123
- package/plugin/skills/ulw-research/scripts/number-grammar.mjs +10 -8
- package/plugin/skills/ulw-research/scripts/numerals.mjs +181 -137
- package/plugin/skills/ulw-research/scripts/outcome-start.mjs +50 -36
- package/plugin/skills/ulw-research/scripts/outcome.mjs +194 -153
- package/plugin/skills/ulw-research/scripts/particles-ko.mjs +72 -70
- package/plugin/skills/ulw-research/scripts/placeholder.mjs +130 -112
- package/plugin/skills/ulw-research/scripts/polish-apply.mjs +67 -51
- package/plugin/skills/ulw-research/scripts/polish-diff.mjs +10 -5
- package/plugin/skills/ulw-research/scripts/polish-project.mjs +67 -57
- package/plugin/skills/ulw-research/scripts/polish-rules.mjs +120 -100
- package/plugin/skills/ulw-research/scripts/rational.mjs +74 -73
- package/plugin/skills/ulw-research/scripts/raw-decode.mjs +74 -74
- package/plugin/skills/ulw-research/scripts/raw-locator.mjs +32 -24
- package/plugin/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
- package/plugin/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
- package/plugin/skills/ulw-research/scripts/report-tools.mjs +65 -62
- package/plugin/skills/ulw-research/scripts/sentence-split.mjs +63 -43
- package/plugin/skills/ulw-research/scripts/source-commands.mjs +199 -125
- package/plugin/skills/ulw-research/scripts/source-refresh.mjs +91 -54
- package/plugin/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
- package/plugin/skills/ulw-research/scripts/source-view.mjs +82 -46
- package/plugin/skills/ulw-research/scripts/sources-citation.mjs +135 -96
- package/plugin/skills/ulw-research/scripts/text-normalize.mjs +63 -48
- package/plugin/skills/ulw-research/scripts/text-similarity.mjs +15 -15
- package/plugin/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
- package/plugin/skills/ulw-research/scripts/unit-errors.mjs +14 -14
- package/plugin/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
- package/plugin/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
- package/plugin/skills/ulw-research/scripts/unit-precision.mjs +39 -25
- package/plugin/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
- package/plugin/skills/ulw-research/scripts/unit-rules.mjs +262 -135
- package/plugin/skills/ulw-research/scripts/units.mjs +96 -65
- package/plugin/skills/visual-qa/scripts/ansi.ts +3 -6
- package/plugin/skills/visual-qa/scripts/cli.ts +52 -52
- package/plugin/skills/visual-qa/scripts/east-asian-width.ts +53 -53
- package/plugin/skills/visual-qa/scripts/image-diff.ts +86 -86
- package/plugin/skills/visual-qa/scripts/png-crc.ts +16 -16
- package/plugin/skills/visual-qa/scripts/png-decode.ts +167 -167
- package/plugin/skills/visual-qa/scripts/png-synth.ts +36 -40
- package/plugin/skills/visual-qa/scripts/tui-grid.ts +63 -63
- package/plugin/skills/visual-qa/scripts/types.ts +37 -37
- package/plugin/skills/visual-qa/scripts/visual-qa.mjs +268 -289
package/bin/lib/setup-stream.js
CHANGED
|
@@ -11,12 +11,31 @@ import { createHash } from "node:crypto"
|
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs"
|
|
12
12
|
import { join, resolve } from "node:path"
|
|
13
13
|
import { detectHarnesses } from "./setup-detect.js"
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
applyCredentials,
|
|
16
|
+
credentialCounts,
|
|
17
|
+
credentialPlanLines,
|
|
18
|
+
credentialQuestion,
|
|
19
|
+
opencodeOauthProviders,
|
|
20
|
+
planCredentials,
|
|
21
|
+
} from "./setup-credentials.js"
|
|
15
22
|
import { applyAssets, assetCounts, assetPlanLines, assetQuestion, planAssets } from "./setup-assets-import.js"
|
|
16
23
|
import { planOpencodeProviders } from "./setup-opencode-providers.js"
|
|
17
24
|
import { withCommandCodeProvider } from "./setup-commandcode.js"
|
|
18
|
-
import {
|
|
19
|
-
|
|
25
|
+
import {
|
|
26
|
+
applyProviders,
|
|
27
|
+
planProviders,
|
|
28
|
+
providerCounts,
|
|
29
|
+
providerPlanLines,
|
|
30
|
+
providerQuestion,
|
|
31
|
+
} from "./setup-providers-import.js"
|
|
32
|
+
import {
|
|
33
|
+
applyModelChoices,
|
|
34
|
+
modelChoiceCounts,
|
|
35
|
+
modelChoicePlanLines,
|
|
36
|
+
modelChoiceQuestion,
|
|
37
|
+
planModelChoices,
|
|
38
|
+
} from "./setup-model-choices-import.js"
|
|
20
39
|
import { setupStageItems } from "./setup-stream-items.js"
|
|
21
40
|
|
|
22
41
|
export { canonicalAgentDir } from "./agent-dir.js"
|
|
@@ -37,7 +56,13 @@ async function settle(work) {
|
|
|
37
56
|
function stageResult(source, settled, disabled = false) {
|
|
38
57
|
if (settled.error !== undefined) return { source, items: [], notices: [], plan: { pending: 0 }, error: settled.error }
|
|
39
58
|
const plan = settled.plan
|
|
40
|
-
return {
|
|
59
|
+
return {
|
|
60
|
+
source,
|
|
61
|
+
items: disabled ? [] : setupStageItems(source, plan),
|
|
62
|
+
notices: plan.notices ?? [],
|
|
63
|
+
plan,
|
|
64
|
+
...(disabled ? { disabled: true } : {}),
|
|
65
|
+
}
|
|
41
66
|
}
|
|
42
67
|
|
|
43
68
|
/**
|
|
@@ -108,10 +133,42 @@ export async function collectSetupPlans(stream) {
|
|
|
108
133
|
*/
|
|
109
134
|
export function setupStages(plans) {
|
|
110
135
|
return [
|
|
111
|
-
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
136
|
+
{
|
|
137
|
+
id: "credentials",
|
|
138
|
+
plan: plans.credentials,
|
|
139
|
+
present: plans.credentials !== undefined && !plans.credentials.malformed,
|
|
140
|
+
lines: credentialPlanLines,
|
|
141
|
+
counts: credentialCounts,
|
|
142
|
+
question: credentialQuestion,
|
|
143
|
+
apply: (plan, options) => applyCredentials(plan, options),
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "assets",
|
|
147
|
+
plan: plans.assets,
|
|
148
|
+
present: plans.assets?.present === true,
|
|
149
|
+
lines: assetPlanLines,
|
|
150
|
+
counts: assetCounts,
|
|
151
|
+
question: assetQuestion,
|
|
152
|
+
apply: (plan) => applyAssets(plan),
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "providers",
|
|
156
|
+
plan: plans.providers,
|
|
157
|
+
present: plans.providers?.present === true,
|
|
158
|
+
lines: providerPlanLines,
|
|
159
|
+
counts: providerCounts,
|
|
160
|
+
question: providerQuestion,
|
|
161
|
+
apply: (plan, options) => applyProviders(plan, options),
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "model-choices",
|
|
165
|
+
plan: plans.modelChoices,
|
|
166
|
+
present: plans.modelChoices?.present === true,
|
|
167
|
+
lines: modelChoicePlanLines,
|
|
168
|
+
counts: modelChoiceCounts,
|
|
169
|
+
question: modelChoiceQuestion,
|
|
170
|
+
apply: (plan, options) => applyModelChoices(plan, options),
|
|
171
|
+
},
|
|
115
172
|
]
|
|
116
173
|
}
|
|
117
174
|
|
|
@@ -129,7 +186,9 @@ export class SetupStaleError extends Error {
|
|
|
129
186
|
// matches would be overwritten with the scan-time copy, so it counts as stale; an absent file is its
|
|
130
187
|
// own expected state, and mtime alone never decides anything.
|
|
131
188
|
function targetDigest(bytes) {
|
|
132
|
-
return createHash("sha256")
|
|
189
|
+
return createHash("sha256")
|
|
190
|
+
.update(bytes === undefined ? "\0absent" : bytes)
|
|
191
|
+
.digest("hex")
|
|
133
192
|
}
|
|
134
193
|
|
|
135
194
|
function staleTarget(path, expectedBytes) {
|
|
@@ -192,16 +251,28 @@ export function staleSetupTargets(plans, stageIds, written = new Set()) {
|
|
|
192
251
|
/** The files a stage writes when it applies (resolved), so later stages of one apply can tell them apart. */
|
|
193
252
|
function stageWrittenPaths(plans, id) {
|
|
194
253
|
if (id === "credentials") return plans.credentials?.target === undefined ? [] : [plans.credentials.target]
|
|
195
|
-
if (id === "assets")
|
|
196
|
-
|
|
197
|
-
|
|
254
|
+
if (id === "assets")
|
|
255
|
+
return plans.assets?.paths?.mcp === undefined
|
|
256
|
+
? []
|
|
257
|
+
: [
|
|
258
|
+
plans.assets.paths.mcp,
|
|
259
|
+
...(plans.assets.result?.skills?.added ?? []).map((skill) => join(plans.assets.paths.skills, skill.name)),
|
|
260
|
+
]
|
|
261
|
+
if (id === "providers")
|
|
262
|
+
return [plans.providers?.paths?.models, plans.providers?.paths?.auth].filter((path) => path !== undefined)
|
|
263
|
+
if (id === "model-choices")
|
|
264
|
+
return (plans.modelChoices?.items ?? []).map((item) => item.target?.path).filter((path) => path !== undefined)
|
|
198
265
|
return []
|
|
199
266
|
}
|
|
200
267
|
|
|
201
268
|
/** True when any of the given stages would write into a credential store. */
|
|
202
269
|
export function authWritesPending(plans, stageIds) {
|
|
203
270
|
const ids = new Set(stageIds)
|
|
204
|
-
const credentials =
|
|
271
|
+
const credentials =
|
|
272
|
+
ids.has("credentials") &&
|
|
273
|
+
plans.credentials !== undefined &&
|
|
274
|
+
!plans.credentials.malformed &&
|
|
275
|
+
plans.credentials.pending > 0
|
|
205
276
|
const keys = ids.has("providers") && plans.providers !== undefined && (plans.providers.result?.keys?.length ?? 0) > 0
|
|
206
277
|
return credentials || keys
|
|
207
278
|
}
|
|
@@ -220,14 +291,20 @@ export async function applySetupStages(plans, confirm, report = () => {}, option
|
|
|
220
291
|
// user's change (the credentials stage and the provider keys share auth.json; #10496 review).
|
|
221
292
|
const written = new Set()
|
|
222
293
|
for (const stage of setupStages(plans)) {
|
|
223
|
-
if (
|
|
294
|
+
if (
|
|
295
|
+
stage.id === "model-choices" &&
|
|
296
|
+
stage.plan !== undefined &&
|
|
297
|
+
plans.planChoices !== undefined &&
|
|
298
|
+
(plans.providers?.pending ?? 0) > 0 &&
|
|
299
|
+
!applied.has("providers")
|
|
300
|
+
) {
|
|
224
301
|
const shown = new Set(plans.modelChoices.notices)
|
|
225
302
|
plans.modelChoices = await plans.planChoices([])
|
|
226
303
|
stage.plan = plans.modelChoices
|
|
227
304
|
for (const notice of plans.modelChoices.notices) if (!shown.has(notice)) report(notice)
|
|
228
305
|
}
|
|
229
306
|
if (stage.plan === undefined || stage.plan.pending === 0) continue
|
|
230
|
-
if (!await confirm(stage)) continue
|
|
307
|
+
if (!(await confirm(stage))) continue
|
|
231
308
|
if (options.staleGuard !== undefined) {
|
|
232
309
|
const stale = options.staleGuard(stage.id, written)
|
|
233
310
|
if (stale !== undefined && stale.length > 0) throw new SetupStaleError(stale, [...applied])
|
package/bin/lib/setup-summary.js
CHANGED
|
@@ -38,27 +38,50 @@ function row(label, parts) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
function loginParts({ credentials, agentDir, home }) {
|
|
41
|
-
if (credentials.malformed)
|
|
41
|
+
if (credentials.malformed)
|
|
42
|
+
return credentials.found > 0
|
|
43
|
+
? [`${count(credentials.found, "login")} found - not imported: omo's auth.json is malformed (see notes)`]
|
|
44
|
+
: []
|
|
42
45
|
const { result, guidance } = credentials
|
|
43
46
|
const parts = []
|
|
44
47
|
const keyName = (item) => (item.source === "opencode" ? item.provider : `${item.provider} from ${item.source}`)
|
|
45
|
-
if (result.additions.length > 0)
|
|
46
|
-
|
|
48
|
+
if (result.additions.length > 0)
|
|
49
|
+
parts.push(
|
|
50
|
+
`${count(result.additions.length, "API key")} (${result.additions.map(keyName).join(", ")}) - will be imported`,
|
|
51
|
+
)
|
|
52
|
+
if (result.skippedExisting.length > 0)
|
|
53
|
+
parts.push(
|
|
54
|
+
`${count(result.skippedExisting.length, "API key")} omo already has (${result.skippedExisting.join(", ")}) - kept as is`,
|
|
55
|
+
)
|
|
47
56
|
const byState = (state) => guidance.logins.filter((login) => login.state === state)
|
|
48
57
|
const login = byState("login")
|
|
49
58
|
if (login.length > 0) {
|
|
50
59
|
// One command per omo provider, naming the logins it replaces when their id differs.
|
|
51
60
|
const targets = new Map()
|
|
52
61
|
for (const item of login) targets.set(item.target, [...(targets.get(item.target) ?? []), item.provider])
|
|
53
|
-
const commands = [...targets].map(([target, providers]) =>
|
|
54
|
-
|
|
62
|
+
const commands = [...targets].map(([target, providers]) =>
|
|
63
|
+
providers.every((provider) => provider === target)
|
|
64
|
+
? `/login ${target}`
|
|
65
|
+
: `/login ${target} (for ${providers.join(", ")})`,
|
|
66
|
+
)
|
|
67
|
+
parts.push(
|
|
68
|
+
`${count(login.length, "OAuth login")} (${login.map((item) => item.provider).join(", ")}) - sign in again inside omo: ${commands.join(", ")}`,
|
|
69
|
+
)
|
|
55
70
|
}
|
|
56
71
|
const signedIn = byState("signed-in")
|
|
57
|
-
if (signedIn.length > 0)
|
|
72
|
+
if (signedIn.length > 0)
|
|
73
|
+
parts.push(
|
|
74
|
+
`${count(signedIn.length, "OAuth login")} (${signedIn.map((item) => item.provider).join(", ")}) - already signed in inside omo`,
|
|
75
|
+
)
|
|
58
76
|
const unsupported = byState("unsupported")
|
|
59
|
-
if (unsupported.length > 0)
|
|
77
|
+
if (unsupported.length > 0)
|
|
78
|
+
parts.push(
|
|
79
|
+
`${count(unsupported.length, "OAuth login")} (${unsupported.map((item) => item.provider).join(", ")}) - omo has no provider for it; keep using the other agent for it`,
|
|
80
|
+
)
|
|
60
81
|
if (guidance.unmapped.length > 0) {
|
|
61
|
-
parts.push(
|
|
82
|
+
parts.push(
|
|
83
|
+
`${count(guidance.unmapped.length, "API key")} for providers omo does not serve (${guidance.unmapped.join(", ")}) - define the provider and its baseUrl in ${displayPath(join(agentDir, "models.json"), home)}, then /login <provider> inside omo`,
|
|
84
|
+
)
|
|
62
85
|
}
|
|
63
86
|
return parts
|
|
64
87
|
}
|
|
@@ -101,7 +124,10 @@ function providerParts({ providers }) {
|
|
|
101
124
|
return [
|
|
102
125
|
...added,
|
|
103
126
|
...segments([
|
|
104
|
-
[
|
|
127
|
+
[
|
|
128
|
+
result.skippedExisting,
|
|
129
|
+
(items) => `${items.length} already in omo's models.json (${items.join(", ")}) - kept as is`,
|
|
130
|
+
],
|
|
105
131
|
[result.blocked, (items) => `${items.length} not imported: omo's models.json is malformed (${items.join(", ")})`],
|
|
106
132
|
[providers.skipped, (items) => `${items.length} not carried (${items.join(", ")}) - see notes`],
|
|
107
133
|
]),
|
|
@@ -120,7 +146,10 @@ function modelChoiceParts({ modelChoices }) {
|
|
|
120
146
|
return [
|
|
121
147
|
...(chosen.length > 0 ? [`${chosen.join("; ")} - will be written`] : []),
|
|
122
148
|
...segments([
|
|
123
|
-
[
|
|
149
|
+
[
|
|
150
|
+
labels("kept"),
|
|
151
|
+
(items) => `${items.length} you already set differently in omo (${items.join(", ")}) - kept as is`,
|
|
152
|
+
],
|
|
124
153
|
[labels("carried"), (items) => `${items.length} already carried (${items.join(", ")})`],
|
|
125
154
|
[labels("blocked"), (items) => `${items.length} not written (${items.join(", ")}) - see notes`],
|
|
126
155
|
[modelChoices.dropped, (items) => `${items.length} not carried - see notes`],
|
|
@@ -131,13 +160,24 @@ function modelChoiceParts({ modelChoices }) {
|
|
|
131
160
|
// The harnesses setup reads from, only the installed ones. OpenCode also counts as found when only
|
|
132
161
|
// its config (MCP servers, skills, providers, model choices) exists and it never stored a login.
|
|
133
162
|
function sourceNames(context) {
|
|
134
|
-
const installed = new Set(
|
|
163
|
+
const installed = new Set(
|
|
164
|
+
context.inventory.harnesses.filter((harness) => harness.installed).map((harness) => harness.id),
|
|
165
|
+
)
|
|
135
166
|
const { assets, providers, modelChoices } = context
|
|
136
|
-
const configFound =
|
|
137
|
-
|
|
167
|
+
const configFound =
|
|
168
|
+
assets.present ||
|
|
169
|
+
assets.refusedServers.length > 0 ||
|
|
170
|
+
assets.skippedSkills.length > 0 ||
|
|
171
|
+
providers.present ||
|
|
172
|
+
providers.skipped.length > 0 ||
|
|
173
|
+
modelChoices.present
|
|
138
174
|
if (configFound) installed.add("opencode")
|
|
139
|
-
const names = Object.keys(SOURCE_HARNESSES)
|
|
140
|
-
|
|
175
|
+
const names = Object.keys(SOURCE_HARNESSES)
|
|
176
|
+
.filter((id) => installed.has(id))
|
|
177
|
+
.map((id) => SOURCE_HARNESSES[id])
|
|
178
|
+
return providers.result.added.some((provider) => provider.origin === "commandcode")
|
|
179
|
+
? [...names, "Command Code"]
|
|
180
|
+
: names
|
|
141
181
|
}
|
|
142
182
|
|
|
143
183
|
// Every stage notice once. Of the detect notices only omo's own store is added: the credential
|
|
@@ -145,7 +185,9 @@ function sourceNames(context) {
|
|
|
145
185
|
function notes(context) {
|
|
146
186
|
const detect = context.inventory.harnesses
|
|
147
187
|
.filter((harness) => harness.installed && !Object.hasOwn(SOURCE_HARNESSES, harness.id))
|
|
148
|
-
.flatMap((harness) =>
|
|
188
|
+
.flatMap((harness) =>
|
|
189
|
+
harness.notices.map((notice) => `${notice.startsWith("could not") ? "WARN" : "NOTICE"} ${harness.id}: ${notice}`),
|
|
190
|
+
)
|
|
149
191
|
const stages = [context.credentials, context.assets, context.providers, context.modelChoices]
|
|
150
192
|
return [...new Set([...detect, ...stages.flatMap((stage) => stage.notices)])]
|
|
151
193
|
}
|
|
@@ -176,8 +218,9 @@ export function formatSetupSummary(context) {
|
|
|
176
218
|
// The Command Code guidance speaks to a user the plan already has a Command Code stake for: the
|
|
177
219
|
// key env var is set (the preset is on its way into models.json) or an entry the plan carries or
|
|
178
220
|
// refused is already there. A user with neither sees no Command Code guidance at all.
|
|
179
|
-
const commandCodePlanned =
|
|
180
|
-
|
|
221
|
+
const commandCodePlanned =
|
|
222
|
+
context.providers.result.added.some((item) => item.id === COMMANDCODE_PROVIDER_ID) ||
|
|
223
|
+
context.providers.skipped.includes(COMMANDCODE_PROVIDER_ID)
|
|
181
224
|
lines.push(...(commandCodePlanned ? commandCodeGuidance() : []))
|
|
182
225
|
lines.push(MODEL_GUIDE_LINE)
|
|
183
226
|
if (rows.length === 0) lines.push(...formatModelTemplate())
|
package/bin/lib/sqlite-rows.js
CHANGED
|
@@ -18,7 +18,9 @@ export function readRows(database, columns, sql) {
|
|
|
18
18
|
const sink = `omo_sink_${Math.random().toString(36).slice(2, 10)}`
|
|
19
19
|
database.function(sink, { varargs: true, deterministic: false }, (...values) => {
|
|
20
20
|
const row = {}
|
|
21
|
-
columns.forEach((column, index) => {
|
|
21
|
+
columns.forEach((column, index) => {
|
|
22
|
+
row[column] = values[index]
|
|
23
|
+
})
|
|
22
24
|
rows.push(row)
|
|
23
25
|
return null
|
|
24
26
|
})
|
package/bin/lib/thread-output.js
CHANGED
|
@@ -16,8 +16,13 @@ const RENDER = {
|
|
|
16
16
|
list: (result) =>
|
|
17
17
|
result.threads.length === 0
|
|
18
18
|
? [`no threads in ${result.scope === "all" ? "any workspace" : "this workspace"} (try --all-scope)`]
|
|
19
|
-
: result.threads.map(
|
|
20
|
-
|
|
19
|
+
: result.threads.map(
|
|
20
|
+
(thread) =>
|
|
21
|
+
`${thread.thread_id} ${thread.surface ?? "?"} ${thread.status} ${thread.name || "(unnamed)"} ${thread.cwd}`,
|
|
22
|
+
),
|
|
23
|
+
send: (result) => [
|
|
24
|
+
`${result.delivery?.kind ?? "sent"}: delivery ${result.delivery_id} to ${result.thread_id}${result.deduplicated ? " (already sent)" : ""}`,
|
|
25
|
+
],
|
|
21
26
|
read: (result) => [
|
|
22
27
|
...result.items.map((item) => `[${item.role}] ${item.content}`),
|
|
23
28
|
...(result.truncated ? [`(truncated; continue with --cursor ${result.next_cursor})`] : []),
|
|
@@ -25,8 +30,13 @@ const RENDER = {
|
|
|
25
30
|
bind: (result) => [`bound ${bindingLine(result.binding)}${result.deduplicated ? " (already bound)" : ""}`],
|
|
26
31
|
unbind: (result) => [`unbound ${bindingLine(result.binding)}${result.already_closed ? " (already closed)" : ""}`],
|
|
27
32
|
rebind: (result) => [`rebound ${bindingLine(result.binding)}`],
|
|
28
|
-
bindings: (result) => [
|
|
29
|
-
|
|
33
|
+
bindings: (result) => [
|
|
34
|
+
...result.bindings.map(bindingLine),
|
|
35
|
+
...(result.next_cursor === null ? [] : [`(more: --cursor ${result.next_cursor})`]),
|
|
36
|
+
],
|
|
37
|
+
report: (result) => [
|
|
38
|
+
`reported ${result.event} to ${result.binding_id} at cursor ${result.cursor}${result.reply_token ? ` (reply token ${result.reply_token})` : ""}`,
|
|
39
|
+
],
|
|
30
40
|
answer: (result) => [`answered through ${result.binding_id} (cursor ${result.cursor})`],
|
|
31
41
|
outbox: (result) => [
|
|
32
42
|
...result.rows.map(rowLine),
|