codehere 0.7.1 → 1.0.1
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.md +22 -13
- package/dist/application/services/verdict-service.js +154 -0
- package/dist/application/use-cases/assess-cross-vendor.js +126 -0
- package/dist/application/use-cases/build-cross-vendor-verdict.js +118 -0
- package/dist/application/use-cases/export-aat.js +107 -0
- package/dist/application/use-cases/generate-acceptance-criteria.js +223 -0
- package/dist/application/use-cases/generate-final-report.js +140 -15
- package/dist/application/use-cases/generate-narration.js +5 -3
- package/dist/application/use-cases/generate-thread-title.js +5 -2
- package/dist/application/use-cases/narrator-prompt-template.js +1 -1
- package/dist/application/use-cases/plan-auto-review.js +57 -0
- package/dist/application/use-cases/reconcile-audit.js +100 -0
- package/dist/application/use-cases/rerun-tests.js +226 -0
- package/dist/application/use-cases/search-sessions.js +70 -0
- package/dist/application/use-cases/should-auto-review.js +71 -0
- package/dist/application/use-cases/thread-export.js +90 -0
- package/dist/application/use-cases/verify-claim.js +187 -5
- package/dist/domain/audit.js +11 -0
- package/dist/domain/services/codebase-detector.js +0 -6
- package/dist/domain/task.js +91 -0
- package/dist/error-handler.js +3 -115
- package/dist/index.js +279 -31
- package/dist/infrastructure/completion/bash-completion.js +7 -3
- package/dist/infrastructure/completion/fish-completion.js +7 -12
- package/dist/infrastructure/completion/zsh-completion.js +7 -12
- package/dist/infrastructure/config/config-manager.js +4 -3
- package/dist/infrastructure/config/product-context.js +1 -19
- package/dist/infrastructure/context/adapters/figma-source.js +37 -2
- package/dist/infrastructure/context/adapters/github-issue-source.js +3 -2
- package/dist/infrastructure/context/github-api.js +110 -0
- package/dist/infrastructure/context/github-device-flow.js +65 -0
- package/dist/infrastructure/context/oauth-store.js +5 -2
- package/dist/infrastructure/context/registry-bootstrap.js +0 -4
- package/dist/infrastructure/cost/budget-config.js +4 -3
- package/dist/infrastructure/cost/cost-router.js +16 -23
- package/dist/infrastructure/cost/spend-aggregator.js +91 -16
- package/dist/infrastructure/cost/team-ledger.js +355 -0
- package/dist/infrastructure/discovery/discovery-log.js +85 -0
- package/dist/infrastructure/hooks/audit-tip-signature.js +336 -0
- package/dist/infrastructure/hooks/claude-sdk-hook.js +139 -3
- package/dist/infrastructure/hooks/hook-mode.js +20 -4
- package/dist/infrastructure/hooks/mirror-tool-call-to-audit.js +8 -2
- package/dist/infrastructure/hooks/pre-prompt-scan.js +3 -3
- package/dist/infrastructure/observability/execution-tracer.js +1 -1
- package/dist/infrastructure/orchestration/agents-config-seed.js +23 -11
- package/dist/infrastructure/orchestration/aider-adapter.js +188 -24
- package/dist/infrastructure/orchestration/artifacts-extractor.js +60 -2
- package/dist/infrastructure/orchestration/cassette-recorder.js +1 -1
- package/dist/infrastructure/orchestration/claude-code-adapter.js +117 -3
- package/dist/infrastructure/orchestration/codex-adapter.js +52 -16
- package/dist/infrastructure/orchestration/conductor-adapter.js +46 -7
- package/dist/infrastructure/orchestration/context-handoff.js +32 -14
- package/dist/infrastructure/orchestration/detect-ollama.js +75 -0
- package/dist/infrastructure/orchestration/failover-config.js +1 -11
- package/dist/infrastructure/orchestration/gemini-adapter.js +92 -12
- package/dist/infrastructure/orchestration/generic-cli-adapter.js +134 -3
- package/dist/infrastructure/orchestration/graphify-context.js +14 -59
- package/dist/infrastructure/orchestration/memory-injector.js +4 -1
- package/dist/infrastructure/orchestration/mocks/mock-agent-repl.js +167 -9
- package/dist/infrastructure/orchestration/opencode-adapter.js +84 -14
- package/dist/infrastructure/orchestration/progress-aggregator.js +275 -23
- package/dist/infrastructure/orchestration/session-manager.js +593 -94
- package/dist/infrastructure/orchestration/session-persistence.js +177 -41
- package/dist/infrastructure/orchestration/thread-key-store.js +1 -1
- package/dist/infrastructure/orchestration/write-pass-store.js +0 -8
- package/dist/infrastructure/protocols/cloud-sync.js +2 -2
- package/dist/infrastructure/protocols/mcp-helpers.js +1 -1
- package/dist/infrastructure/protocols/mcp-server-impl.js +1498 -354
- package/dist/infrastructure/protocols/mcp-tools.js +401 -0
- package/dist/infrastructure/protocols/ui/app-script-artifacts.js +121 -0
- package/dist/infrastructure/protocols/ui/app-script-audit-footer.js +44 -0
- package/dist/infrastructure/protocols/ui/app-script-audit-verify.js +56 -0
- package/dist/infrastructure/protocols/ui/app-script-composer-cost.js +588 -0
- package/dist/infrastructure/protocols/ui/app-script-context-sources.js +168 -0
- package/dist/infrastructure/protocols/ui/app-script-conversation.js +67 -0
- package/dist/infrastructure/protocols/ui/app-script-drawer.js +115 -0
- package/dist/infrastructure/protocols/ui/app-script-failover.js +133 -0
- package/dist/infrastructure/protocols/ui/app-script-github.js +113 -0
- package/dist/infrastructure/protocols/ui/app-script-observer.js +104 -0
- package/dist/infrastructure/protocols/ui/app-script-onboarding.js +80 -0
- package/dist/infrastructure/protocols/ui/app-script-overlay.js +203 -0
- package/dist/infrastructure/protocols/ui/app-script-recovery.js +136 -0
- package/dist/infrastructure/protocols/ui/app-script-render.js +166 -0
- package/dist/infrastructure/protocols/ui/app-script-share.js +78 -0
- package/dist/infrastructure/protocols/ui/app-script-sidebar.js +194 -0
- package/dist/infrastructure/protocols/ui/app-script-tour.js +78 -0
- package/dist/infrastructure/protocols/ui/app-script-wpass.js +312 -0
- package/dist/infrastructure/protocols/ui/app-script.js +2998 -0
- package/dist/infrastructure/protocols/ui/font-faces.js +7 -0
- package/dist/infrastructure/protocols/ui/styles.js +2147 -0
- package/dist/infrastructure/protocols/ui/tokens.js +96 -0
- package/dist/infrastructure/protocols/ui-page-v2.js +116 -4126
- package/dist/infrastructure/protocols/verify-page.js +884 -148
- package/dist/infrastructure/security/fix-code.js +144 -0
- package/dist/infrastructure/security/fix-secret.js +89 -0
- package/dist/infrastructure/security/permissions-config.js +3 -2
- package/dist/infrastructure/security/scan-types.js +10 -0
- package/dist/infrastructure/security/ship-scan.js +195 -0
- package/dist/infrastructure/security/trust-scorer.js +70 -3
- package/dist/infrastructure/security/vibe-checks.js +99 -0
- package/dist/infrastructure/storage/atomic-write.js +86 -0
- package/dist/infrastructure/storage/project-thread-mirror.js +151 -4
- package/dist/infrastructure/storage/project-thread-reader.js +262 -25
- package/dist/infrastructure/storage/project-thread-title-backfill.js +1 -1
- package/dist/monitoring.js +2 -2
- package/dist/presentation/cli/commands/audit-command.js +79 -4
- package/dist/presentation/cli/commands/budget-command.js +2 -2
- package/dist/presentation/cli/commands/check-command.js +96 -0
- package/dist/presentation/cli/commands/context-source-command.js +20 -1
- package/dist/presentation/cli/commands/help-command.js +5 -5
- package/dist/presentation/cli/commands/hook-command.js +5 -5
- package/dist/presentation/cli/commands/init-command.js +89 -66
- package/dist/presentation/cli/commands/memory-command.js +28 -28
- package/dist/presentation/cli/commands/permission-command.js +1 -12
- package/dist/presentation/cli/commands/protocols-builder.js +2 -2
- package/dist/presentation/cli/commands/protocols-command.js +4 -4
- package/dist/presentation/cli/commands/repo-map-builder.js +1 -1
- package/dist/presentation/cli/commands/report-command.js +48 -32
- package/dist/presentation/cli/commands/scan-command.js +52 -0
- package/dist/presentation/cli/commands/scan-tool-command.js +24 -8
- package/dist/presentation/cli/commands/search-command.js +51 -0
- package/dist/presentation/cli/commands/setup-command.js +31 -8
- package/dist/presentation/cli/commands/status-command.js +39 -86
- package/dist/presentation/cli/commands/team-command.js +256 -0
- package/dist/presentation/cli/commands/thread-command.js +87 -5
- package/dist/presentation/cli/commands/trust-command.js +53 -31
- package/dist/presentation/cli/commands/verify-command.js +74 -9
- package/dist/presentation/cli/error-display.js +0 -8
- package/dist/presentation/cli/repl.js +15 -7
- package/dist/presentation/cli/task-deliverable.js +36 -10
- package/dist/testing/replay-adapter.js +0 -19
- package/dist/ui.js +51 -239
- package/dist/utils/version.js +0 -6
- package/package.json +30 -10
- package/dist/domain/entities/task.js +0 -61
- package/dist/infrastructure/protocols/ui-page.js +0 -2377
- package/dist/infrastructure/security/input-validator.js +0 -152
- package/dist/infrastructure/storage/embeddings-path.js +0 -37
- package/dist/infrastructure/storage/task-repository.js +0 -206
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The design tokens, in one place, for every page the daemon serves.
|
|
3
|
+
*
|
|
4
|
+
* Values AND names are DESIGN.md "Instrument" (2026-08-07). Change a token here
|
|
5
|
+
* and every surface moves together — which is the whole reason this file exists.
|
|
6
|
+
*
|
|
7
|
+
* Why this file exists: the product shipped three different "verified" greens.
|
|
8
|
+
* styles.ts said --allow:#84b594, verify-page.ts said #28c840 (a macOS traffic
|
|
9
|
+
* light), and DESIGN.md ratified a third. For a product whose claim is "green
|
|
10
|
+
* only when independently verified", one surface's green did not mean the same
|
|
11
|
+
* thing as another's.
|
|
12
|
+
*
|
|
13
|
+
* The semantic tokens say what they mean now: --verified / --caught, renamed
|
|
14
|
+
* from --allow / --block across 158 call sites. The aliases are deleted rather
|
|
15
|
+
* than left kind, because an undeclared token resolves to nothing instead of
|
|
16
|
+
* failing, so a resurrected --allow would silently drop the colour off a verdict.
|
|
17
|
+
* ui-token-gate.mjs carries a `retired-token` rule so it cannot come back.
|
|
18
|
+
*
|
|
19
|
+
* NOT DONE, do not read this file as "DESIGN.md is fully implemented":
|
|
20
|
+
* - --accent is still named --accent, not --ember (109 call sites, its own
|
|
21
|
+
* increment). The VALUE is right; only the name lags.
|
|
22
|
+
* - --blue survives in the wordmark gradient only. That is the logotype and it
|
|
23
|
+
* is synced with codehere-landing, so changing it is a cross-repo brand call
|
|
24
|
+
* and Ega's. Every other use was deleted; the gate enforces the carve-out.
|
|
25
|
+
*/
|
|
26
|
+
export const DESIGN_TOKENS = `
|
|
27
|
+
:root {
|
|
28
|
+
/* ── surfaces · graphite, TRUE neutral (DESIGN.md §5) ──────────────────
|
|
29
|
+
Deliberately not the old warm ramp: every peer reviewed on 2026-08-07
|
|
30
|
+
(Linear, Vercel, Sentry, Depot) is cool or neutral, and neutral reads as
|
|
31
|
+
instrument rather than either cosy room or blue console. */
|
|
32
|
+
--bg: #0e0f10; --bg-1: #16181a; --bg-2: #1e2124; --bg-3: #282c30;
|
|
33
|
+
--glass-1: rgba(232,234,236,0.025); --glass-2: rgba(232,234,236,0.03);
|
|
34
|
+
--glass-3: rgba(232,234,236,0.06); --glass-4: rgba(232,234,236,0.12);
|
|
35
|
+
--glass-5: rgba(232,234,236,0.15);
|
|
36
|
+
--fg: #e8eaec; --fg-90: rgba(232,234,236,0.90);
|
|
37
|
+
--fg-80: rgba(232,234,236,0.80); --fg-70: rgba(232,234,236,0.70);
|
|
38
|
+
--fg-50: rgba(232,234,236,0.50); --fg-40: rgba(232,234,236,0.45);
|
|
39
|
+
--fg-30: rgba(232,234,236,0.28); --fg-20: rgba(232,234,236,0.20);
|
|
40
|
+
--border: rgba(232,234,236,0.09); --border-soft: rgba(232,234,236,0.055);
|
|
41
|
+
|
|
42
|
+
/* ── the accent · the human, and the only warm colour in the product ──
|
|
43
|
+
The named risk of an instrument aesthetic is that it goes cold. This is
|
|
44
|
+
the fix. Never decorative, never a status. */
|
|
45
|
+
--accent: #ff9a76; --accent-soft: #f5c6b0; --accent-wash: rgba(255,154,118,0.10);
|
|
46
|
+
|
|
47
|
+
/* ── semantic state (DESIGN.md §1 · the trust rule) ────────────────────
|
|
48
|
+
--verified is reachable ONLY from MEASURED evidence: something codehere
|
|
49
|
+
re-executed and can machine-check. An LLM judgement may never render in
|
|
50
|
+
it. --warn carries JUDGED as well as budget/partial. */
|
|
51
|
+
--verified: #7fc39a; --caught: #e2827f;
|
|
52
|
+
--warn: #d9a441;
|
|
53
|
+
--info: #8ab8ee;
|
|
54
|
+
|
|
55
|
+
/* DEPRECATED · DESIGN.md §5 bans a second accent. 16 var refs + 23 raw
|
|
56
|
+
#4a90e2 across ui.ts, mcp-server-impl.ts, styles.ts, app-script.ts and
|
|
57
|
+
verify-page.ts. Deleting it is its own increment; it is kept here so the
|
|
58
|
+
product does not render invalid CSS in the meantime. */
|
|
59
|
+
--blue: #4a90e2; --blue-soft: #8ab8ee; --blue-wash: rgba(74,144,226,0.08);
|
|
60
|
+
|
|
61
|
+
/* ── type scale · CLOSED at six values (DESIGN.md §6) ──────────────────
|
|
62
|
+
Closed is what makes it enforceable. scripts/ui-token-gate.mjs allows
|
|
63
|
+
exactly this set and nothing else. */
|
|
64
|
+
--fs-reading: 40px; /* the one measured fact per card */
|
|
65
|
+
--fs-title: 20px; /* room and section titles */
|
|
66
|
+
--fs-body: 14.5px; /* anything said */
|
|
67
|
+
--fs-ui: 13px; /* controls, rail, cards */
|
|
68
|
+
--fs-fact: 12px; /* costs, counts, hashes */
|
|
69
|
+
--fs-label: 10.5px; /* instrument marks, column heads */
|
|
70
|
+
|
|
71
|
+
/* ── spacing · 4px base, 9 steps ── */
|
|
72
|
+
--sp-0: 2px; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
|
|
73
|
+
--sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
|
|
74
|
+
|
|
75
|
+
/* ── radius · tight corners are instrument corners ── */
|
|
76
|
+
--r-sm: 2px; --r-md: 4px;
|
|
77
|
+
--radius: 4px; --radius-chip: 2px;
|
|
78
|
+
|
|
79
|
+
/* ── motion · 200ms default, 300ms max, one canonical ease ── */
|
|
80
|
+
--dur: 200ms; --dur-max: 300ms;
|
|
81
|
+
--ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
82
|
+
|
|
83
|
+
/* ── typefaces · DESIGN.md §6, one superfamily, three jobs ────────────
|
|
84
|
+
IBM Plex was drawn for an engineering company: machine authority without
|
|
85
|
+
costume, and absent from this category where everything is Inter or a
|
|
86
|
+
Geist-shaped substitute. Self-hosted base64 via FONT_FACES, zero external
|
|
87
|
+
fetch — that constraint never changes.
|
|
88
|
+
The load-bearing rule: anything SAID is sans, anything a machine RECORDED
|
|
89
|
+
is mono. --display is Mono because the biggest thing on a surface is a
|
|
90
|
+
measured fact, never a heading (DESIGN.md §0). */
|
|
91
|
+
--sans: var(--voice);
|
|
92
|
+
--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
93
|
+
--voice: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
94
|
+
--display: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
95
|
+
}`;
|
|
96
|
+
//# sourceMappingURL=tokens.js.map
|