@alecsibilia/luca 14.0.0-alpha.2 → 14.0.0-alpha.21
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/CHANGELOG.md +76 -0
- package/README.md +7 -2
- package/board/client/board-look.ts +31 -1
- package/board/client/board-panel-parts.tsx +150 -0
- package/board/client/board-panel-stages.ts +99 -0
- package/board/client/board-panel-styles.ts +223 -0
- package/board/client/board-panel.tsx +77 -1275
- package/board/client/engine-life.ts +48 -0
- package/board/client/final-review-stack.tsx +144 -0
- package/board/client/heartbeat.tsx +61 -0
- package/board/client/helper-lines.tsx +69 -0
- package/board/client/live-feed.tsx +86 -0
- package/board/client/live-line.ts +73 -0
- package/board/client/model-line.tsx +178 -0
- package/board/client/needs-you-section.tsx +133 -0
- package/board/client/one-line.tsx +193 -0
- package/board/client/repo-wait-banner.tsx +69 -0
- package/board/client/run-footer.tsx +68 -0
- package/board/client/run-header.tsx +189 -0
- package/board/client/run-picker.tsx +98 -0
- package/board/client/status-bar.tsx +131 -0
- package/board/client/step-dots.tsx +127 -0
- package/board/client/stuck-actions.tsx +269 -0
- package/board/client/ticket-card-view.tsx +238 -0
- package/board/client/ticket-detail.tsx +87 -0
- package/board/client/ticket-stack.tsx +119 -0
- package/board/client/ticket-wait.ts +188 -0
- package/board/client/timeline-rows.tsx +41 -14
- package/board/client/usage-line.tsx +51 -0
- package/board/client/wait-line.tsx +39 -0
- package/board/index.client.tsx +1 -1
- package/board/index.server.ts +7 -1
- package/board/package.json +1 -1
- package/board/server/board-panel-state-helpers.ts +67 -0
- package/board/server/board-server-check.ts +294 -0
- package/board/server/board-server-engine.ts +129 -0
- package/board/server/board-server-events.ts +134 -0
- package/board/server/board-server-read.ts +190 -0
- package/board/server/board-server-resume.ts +164 -0
- package/board/server/board-server-start.ts +174 -0
- package/board/server/board-server-store.ts +281 -0
- package/board/server/board-server-types.ts +114 -0
- package/board/server/board-server-util.ts +4 -0
- package/board/server/board-server.ts +52 -943
- package/board/server/board-vocabulary-engine.ts +144 -0
- package/board/server/board-vocabulary-review.ts +115 -0
- package/board/server/board-vocabulary-run.ts +145 -0
- package/board/server/board-vocabulary-shapes.ts +153 -0
- package/board/server/board-vocabulary.ts +20 -375
- package/board/server/current-step-panel-helpers.ts +108 -0
- package/board/server/describe-record.ts +403 -0
- package/board/server/engine-launch.ts +20 -3
- package/board/server/engine-restart-helpers.ts +105 -0
- package/board/server/engine-watch.ts +45 -5
- package/board/server/journal-rebuild-helpers.ts +169 -0
- package/board/server/live-file.ts +130 -0
- package/board/server/luca-version.ts +1 -1
- package/board/server/make-rows.ts +14 -629
- package/board/server/record-texts.ts +350 -0
- package/board/server/reduce-board-agent-start.ts +224 -0
- package/board/server/reduce-board-agents.ts +160 -0
- package/board/server/reduce-board-counters.ts +138 -0
- package/board/server/reduce-board-create.ts +148 -0
- package/board/server/reduce-board-final-review.ts +174 -0
- package/board/server/reduce-board-needs-you.ts +283 -0
- package/board/server/reduce-board-reasons.ts +59 -0
- package/board/server/reduce-board-run.ts +255 -0
- package/board/server/reduce-board-settle.ts +88 -0
- package/board/server/reduce-board-steps.ts +226 -0
- package/board/server/reduce-board-text.ts +139 -0
- package/board/server/reduce-board-ticket-checks.ts +168 -0
- package/board/server/reduce-board-ticket-join.ts +144 -0
- package/board/server/reduce-board-ticket-start.ts +132 -0
- package/board/server/reduce-board-update.ts +117 -0
- package/board/server/reduce-board-usage.ts +247 -0
- package/board/server/reduce-board.ts +100 -1917
- package/board/server/reply-post.ts +407 -0
- package/board/server/run-registry.ts +8 -4
- package/board/server/ticket-stages-panel-helpers.ts +296 -0
- package/board/shared/board-rows.ts +9 -0
- package/board/shared/board-rpc.ts +42 -0
- package/board/shared/board-state-counts.ts +77 -0
- package/board/shared/board-state-live.ts +99 -0
- package/board/shared/board-state-review.ts +59 -0
- package/board/shared/board-state-run.ts +236 -0
- package/board/shared/board-state-ticket.ts +257 -0
- package/board/shared/board-state-usage.ts +107 -0
- package/board/shared/board-state.ts +97 -567
- package/board/shared/reply-actions.ts +207 -0
- package/engine/agents/agent-launcher.ts +27 -4
- package/engine/agents/claude-launcher-helpers.ts +233 -0
- package/engine/agents/claude-launcher.ts +28 -669
- package/engine/agents/claude-messages.ts +212 -0
- package/engine/agents/claude-options.ts +43 -8
- package/engine/agents/common-instructions.ts +138 -0
- package/engine/agents/input-channel.ts +36 -0
- package/engine/agents/launch-paths.ts +29 -0
- package/engine/agents/launch-session.ts +227 -0
- package/engine/agents/learner-instructions.ts +31 -0
- package/engine/agents/open-session.ts +210 -0
- package/engine/agents/prompt-sections.ts +95 -0
- package/engine/agents/rejoin-prompts.ts +135 -0
- package/engine/agents/reviewer-instructions.ts +99 -0
- package/engine/agents/role-instructions.ts +31 -244
- package/engine/agents/role-prompts.ts +39 -109
- package/engine/agents/role-results.ts +106 -7
- package/engine/agents/scripted-launcher.ts +21 -6
- package/engine/agents/session-pool.ts +124 -0
- package/engine/agents/turn-progress.ts +283 -0
- package/engine/agents/writer-instructions.ts +151 -0
- package/engine/cli/computer-adapters-real.ts +15 -3
- package/engine/cli/computer-adapters.ts +2 -0
- package/engine/cli/computer-checks.ts +87 -4
- package/engine/cli/config-reload-text.ts +39 -0
- package/engine/cli/decision-model-setup.ts +70 -0
- package/engine/cli/doctor-command.ts +1 -0
- package/engine/cli/doctor.ts +21 -3
- package/engine/cli/going-runs.ts +192 -36
- package/engine/cli/init-command.ts +1 -0
- package/engine/cli/init.ts +23 -1
- package/engine/cli/live-runs.ts +73 -0
- package/engine/cli/luca-run.ts +42 -7
- package/engine/cli/luca-skills.ts +183 -0
- package/engine/cli/luca.ts +8 -1
- package/engine/cli/models-command.ts +119 -0
- package/engine/cli/read-run.ts +81 -0
- package/engine/cli/run-args.ts +33 -6
- package/engine/cli/run-demo.ts +143 -0
- package/engine/cli/run-end.ts +184 -0
- package/engine/cli/run-modes-helpers.ts +81 -0
- package/engine/cli/run-modes.ts +62 -439
- package/engine/cli/setup.ts +5 -48
- package/engine/cli/unfinished-runs.ts +122 -0
- package/engine/cli/upgrade-command.ts +212 -30
- package/engine/cli/upgrade-finish.ts +149 -0
- package/engine/cli/upgrade.ts +112 -71
- package/engine/config/config-fields.ts +127 -0
- package/engine/config/config-reload.ts +250 -0
- package/engine/config/engine-config-schema.ts +235 -0
- package/engine/config/engine-config.ts +72 -142
- package/engine/config/test-commands.ts +102 -0
- package/engine/core/agent-guards-helpers.ts +84 -0
- package/engine/core/agent-turn.ts +395 -0
- package/engine/core/already-done.ts +44 -1
- package/engine/core/build-action.ts +214 -0
- package/engine/core/build-context.ts +135 -0
- package/engine/core/build-launch.ts +259 -0
- package/engine/core/commit-in.ts +282 -0
- package/engine/core/decide-build-early.ts +108 -0
- package/engine/core/decide-build-ending.ts +145 -0
- package/engine/core/decide-build-helpers.ts +87 -0
- package/engine/core/decide-build-tickets.ts +207 -0
- package/engine/core/decide-build-view.ts +103 -0
- package/engine/core/decide-build.ts +101 -1368
- package/engine/core/decide-final-fix.ts +203 -0
- package/engine/core/decide-final-review.ts +55 -310
- package/engine/core/decide-red-green.ts +398 -0
- package/engine/core/decide-rejoin.ts +259 -0
- package/engine/core/decide-repo-wait.ts +129 -0
- package/engine/core/decide-run-budget.ts +86 -12
- package/engine/core/decide-stuck-helpers.ts +127 -0
- package/engine/core/decide-stuck.ts +60 -8
- package/engine/core/decide-ticket-review.ts +95 -0
- package/engine/core/decide-ticket.ts +267 -0
- package/engine/core/decide-waits.ts +47 -0
- package/engine/core/decide.ts +74 -23
- package/engine/core/engine-chores.ts +163 -0
- package/engine/core/environment-rerun.ts +83 -0
- package/engine/core/evidence-text.ts +84 -0
- package/engine/core/execute-action.ts +303 -0
- package/engine/core/execute-already-done-check.ts +133 -0
- package/engine/core/execute-build.ts +68 -944
- package/engine/core/execute-changeset.ts +5 -7
- package/engine/core/execute-final-review.ts +125 -13
- package/engine/core/execute-gates.ts +182 -0
- package/engine/core/execute-intake.ts +130 -0
- package/engine/core/execute-join.ts +276 -0
- package/engine/core/execute-memory.ts +12 -0
- package/engine/core/execute-pull-request.ts +84 -0
- package/engine/core/execute-red-check.ts +219 -0
- package/engine/core/execute-repo-wait.ts +129 -0
- package/engine/core/execute-stuck.ts +25 -10
- package/engine/core/execute-waits.ts +158 -0
- package/engine/core/execute-with-jev.ts +118 -0
- package/engine/core/execute.ts +124 -831
- package/engine/core/final-failure-cap.ts +38 -0
- package/engine/core/final-review-action.ts +125 -0
- package/engine/core/final-review-text.ts +63 -17
- package/engine/core/final-stuck-text.ts +86 -0
- package/engine/core/fix-loop-text.ts +49 -2
- package/engine/core/left-out.ts +120 -0
- package/engine/core/live-file.ts +372 -0
- package/engine/core/loop-caps.ts +25 -2
- package/engine/core/not-in-run.ts +7 -3
- package/engine/core/pull-request-text.ts +255 -6
- package/engine/core/repo-wait-text.ts +81 -0
- package/engine/core/review-text.ts +55 -1
- package/engine/core/run-crash-recovery-helpers.ts +16 -0
- package/engine/core/run-session-close-helpers.ts +96 -0
- package/engine/core/run-start.ts +148 -0
- package/engine/core/run-stuck-text.ts +86 -0
- package/engine/core/schedule-rules.ts +193 -0
- package/engine/core/stuck-detail-text.ts +89 -0
- package/engine/core/stuck-format.ts +22 -0
- package/engine/core/stuck-text.ts +29 -332
- package/engine/core/ticket-stuck-text.ts +192 -0
- package/engine/core/worktree-changes.ts +106 -0
- package/engine/gates/already-done-check.ts +120 -0
- package/engine/gates/feature-map.ts +96 -0
- package/engine/gates/gate-runner.ts +108 -108
- package/engine/gates/gate-schemas.ts +61 -2
- package/engine/gates/leftover-scan.ts +154 -31
- package/engine/gates/new-tests.ts +45 -0
- package/engine/gates/own-files-check.ts +98 -0
- package/engine/gates/prepare-check.ts +60 -0
- package/engine/gates/prepare-slots.ts +99 -0
- package/engine/gates/red-check.ts +184 -16
- package/engine/gates/shell-check.ts +64 -0
- package/engine/gates/slot-waits.ts +55 -0
- package/engine/gates/slow-test-runner.ts +59 -0
- package/engine/gates/test-checks.ts +161 -0
- package/engine/gates/test-runner.ts +164 -5
- package/engine/gates/test-slots.ts +48 -0
- package/engine/git/git-adapter.ts +55 -396
- package/engine/git/git-commits.ts +132 -0
- package/engine/git/git-join.ts +139 -0
- package/engine/git/git-read.ts +123 -0
- package/engine/git/git-run.ts +32 -0
- package/engine/git/git-worktrees.ts +143 -0
- package/engine/git/outside-links.ts +55 -0
- package/engine/guards/after-turn-check.ts +31 -5
- package/engine/guards/guard-hook.ts +60 -12
- package/engine/guards/guard-roles.ts +68 -0
- package/engine/guards/helper-rules.ts +92 -0
- package/engine/guards/permission-rules.ts +161 -0
- package/engine/guards/role-rules-helpers.ts +48 -0
- package/engine/guards/role-rules.ts +34 -606
- package/engine/guards/shell-rules.ts +344 -0
- package/engine/guards/worktree-git.ts +208 -0
- package/engine/guards/worktree-snapshot.ts +412 -0
- package/engine/guards/worktree-state.ts +28 -825
- package/engine/guards/worktree-undo.ts +260 -0
- package/engine/guards/write-rules.ts +149 -0
- package/engine/index.ts +30 -9
- package/engine/intake/criteria-checks.ts +114 -0
- package/engine/intake/intake-checks.ts +164 -30
- package/engine/intake/intake-schemas.ts +37 -2
- package/engine/jev/clef-client.ts +259 -0
- package/engine/jev/decision-model-credentials.ts +212 -0
- package/engine/jev/jev-jobs.ts +144 -60
- package/engine/jev/jev-schemas.ts +86 -5
- package/engine/jev/jev-shadow-helpers.ts +218 -0
- package/engine/jev/jev-shadow.ts +109 -64
- package/engine/jev/model-pick.ts +275 -0
- package/engine/journal/agent-entries.ts +167 -0
- package/engine/journal/agent-message-entries.ts +72 -0
- package/engine/journal/agent-turn-replay.ts +203 -0
- package/engine/journal/already-done-entries.ts +55 -0
- package/engine/journal/commit-entries.ts +56 -0
- package/engine/journal/cross-ticket-replay.ts +222 -0
- package/engine/journal/decision-model-entries.ts +86 -0
- package/engine/journal/entry-fields.ts +10 -0
- package/engine/journal/final-review-entries.ts +128 -0
- package/engine/journal/final-review-replay.ts +324 -0
- package/engine/journal/final-review-round.ts +320 -0
- package/engine/journal/final-review-state.ts +180 -0
- package/engine/journal/gate-entries.ts +81 -0
- package/engine/journal/intake-entries.ts +87 -0
- package/engine/journal/join-entries.ts +126 -0
- package/engine/journal/journal-entry-schema.ts +218 -0
- package/engine/journal/journal-kinds.ts +97 -0
- package/engine/journal/journal-record-schema.ts +218 -0
- package/engine/journal/journal-record.ts +43 -1400
- package/engine/journal/journal.ts +6 -1
- package/engine/journal/limit-entries.ts +90 -0
- package/engine/journal/memory-entries.ts +124 -0
- package/engine/journal/memory-replay.ts +157 -0
- package/engine/journal/plan-replay.ts +139 -0
- package/engine/journal/pull-request-entries.ts +41 -0
- package/engine/journal/replay.ts +157 -2144
- package/engine/journal/reply-replay.ts +144 -0
- package/engine/journal/repo-wait-entries.ts +53 -0
- package/engine/journal/run-entries.ts +172 -0
- package/engine/journal/run-state.ts +264 -0
- package/engine/journal/shared-failure-replay.ts +133 -0
- package/engine/journal/stuck-entries.ts +193 -0
- package/engine/journal/ticket-progress.ts +392 -0
- package/engine/journal/ticket-replay.ts +411 -0
- package/engine/journal/ticket-result-replay.ts +364 -0
- package/engine/journal/ticket-retry-replay.ts +142 -0
- package/engine/journal/worktree-entries.ts +122 -0
- package/engine/models/model-score.ts +512 -0
- package/engine/shell/run-command.ts +187 -18
- package/engine/testing/agent-turn-fixtures.ts +287 -0
- package/engine/testing/already-done-fixtures.ts +97 -0
- package/engine/testing/build-fixtures.ts +68 -973
- package/engine/testing/checkouts-fixtures.ts +48 -0
- package/engine/testing/final-review-fixtures.ts +62 -1
- package/engine/testing/final-review-steps.ts +143 -0
- package/engine/testing/limit-fixtures.ts +85 -0
- package/engine/testing/live-file-fixtures.ts +57 -0
- package/engine/testing/practice-repo.ts +10 -4
- package/engine/testing/practice-run.ts +1 -1
- package/engine/testing/reply-fixtures.ts +88 -0
- package/engine/testing/run-budget-fixtures.ts +165 -0
- package/engine/testing/run-fixtures.ts +219 -0
- package/engine/testing/sdk-play.ts +177 -0
- package/engine/testing/setup-repo.ts +194 -0
- package/engine/testing/step-record-fixtures.ts +55 -0
- package/engine/testing/ticket-step-fixtures.ts +272 -0
- package/engine/testing/wait-scenarios.ts +186 -0
- package/engine/tracker/gh-retry.ts +217 -0
- package/engine/tracker/github-tracker.ts +310 -90
- package/engine/tracker/in-memory-tracker.ts +8 -4
- package/engine/tracker/tracker.ts +131 -6
- package/package.json +2 -1
- package/skills/luca-retro/SKILL.md +74 -0
- package/skills/luca-retro/scripts/retro-summary.ts +1356 -0
- package/skills/luca-unstick/SKILL.md +153 -0
- package/skills/luca-unstick/scripts/stuck-summary.ts +1063 -0
- package/engine/jev/jev-client.ts +0 -173
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# @alecsibilia/luca
|
|
2
2
|
|
|
3
|
+
## 14.0.0-alpha.21
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 14.0.0-alpha.20
|
|
8
|
+
|
|
9
|
+
No changes in this release.
|
|
10
|
+
|
|
11
|
+
## 14.0.0-alpha.19
|
|
12
|
+
|
|
13
|
+
No changes in this release.
|
|
14
|
+
|
|
15
|
+
## 14.0.0-alpha.18
|
|
16
|
+
|
|
17
|
+
No changes in this release.
|
|
18
|
+
|
|
19
|
+
## 14.0.0-alpha.17
|
|
20
|
+
|
|
21
|
+
No changes in this release.
|
|
22
|
+
|
|
23
|
+
## 14.0.0-alpha.16
|
|
24
|
+
|
|
25
|
+
No changes in this release.
|
|
26
|
+
|
|
27
|
+
## 14.0.0-alpha.15
|
|
28
|
+
|
|
29
|
+
No changes in this release.
|
|
30
|
+
|
|
31
|
+
## 14.0.0-alpha.14
|
|
32
|
+
|
|
33
|
+
No changes in this release.
|
|
34
|
+
|
|
35
|
+
## 14.0.0-alpha.13
|
|
36
|
+
|
|
37
|
+
No changes in this release.
|
|
38
|
+
|
|
39
|
+
## 14.0.0-alpha.12
|
|
40
|
+
|
|
41
|
+
No changes in this release.
|
|
42
|
+
|
|
43
|
+
## 14.0.0-alpha.11
|
|
44
|
+
|
|
45
|
+
No changes in this release.
|
|
46
|
+
|
|
47
|
+
## 14.0.0-alpha.10
|
|
48
|
+
|
|
49
|
+
No changes in this release.
|
|
50
|
+
|
|
51
|
+
## 14.0.0-alpha.9
|
|
52
|
+
|
|
53
|
+
No changes in this release.
|
|
54
|
+
|
|
55
|
+
## 14.0.0-alpha.8
|
|
56
|
+
|
|
57
|
+
No changes in this release.
|
|
58
|
+
|
|
59
|
+
## 14.0.0-alpha.7
|
|
60
|
+
|
|
61
|
+
No changes in this release.
|
|
62
|
+
|
|
63
|
+
## 14.0.0-alpha.6
|
|
64
|
+
|
|
65
|
+
No changes in this release.
|
|
66
|
+
|
|
67
|
+
## 14.0.0-alpha.5
|
|
68
|
+
|
|
69
|
+
No changes in this release.
|
|
70
|
+
|
|
71
|
+
## 14.0.0-alpha.4
|
|
72
|
+
|
|
73
|
+
No changes in this release.
|
|
74
|
+
|
|
75
|
+
## 14.0.0-alpha.3
|
|
76
|
+
|
|
77
|
+
No changes in this release.
|
|
78
|
+
|
|
3
79
|
## 14.0.0-alpha.2
|
|
4
80
|
|
|
5
81
|
No changes in this release.
|
package/README.md
CHANGED
|
@@ -38,14 +38,18 @@ This is Luca v14, in alpha. Old Luca (v13) is still on npm; see [Coming from v13
|
|
|
38
38
|
5. Write a spec with `/to-spec`, then split it into tickets with `/to-tickets`.
|
|
39
39
|
6. In a Paseo chat, type `/luca-run <spec number>`. The board shows the run in the side panel, and the run ends in one pull request.
|
|
40
40
|
|
|
41
|
+
If a ticket gets stuck, Luca comments on the spec and waits for your one-word reply. Type `/luca-unstick` in Claude Code or a Paseo chat, in the repo: it reads why, says what to do, and posts the reply once you say yes.
|
|
42
|
+
|
|
43
|
+
After a run, type `/luca-retro` the same way to look back on it: it reads the run's journal, ranks what went wrong, and suggests a check, a rule, or a deletion for each, not a code change. It opens an issue for each one you pick, once you say yes.
|
|
44
|
+
|
|
41
45
|
## Commands
|
|
42
46
|
|
|
43
47
|
| Command | What it does |
|
|
44
48
|
| ------- | ------------ |
|
|
45
|
-
| `luca init` | Sets up this computer, once (safe to run again): MuninnDB and its Claude Code entry, the board in Paseo with its engine and Bun paths,
|
|
49
|
+
| `luca init` | Sets up this computer, once (safe to run again): MuninnDB and its Claude Code entry, the board in Paseo with its engine and Bun paths, the planning skills (`to-spec`, `to-tickets`, `setup-matt-pocock-skills`, `grilling`, `domain-modeling`), and Luca's own `/luca-unstick` and `/luca-retro` skills. It asks before turning on Paseo's plugins, and leaves skills you already have alone (it only replaces its own two). `--skip-skills` skips the planning skills. Inside a git repo, it then runs `luca setup` for that repo. |
|
|
46
50
|
| `luca setup` | Gets the repo in this folder ready: the labels a run needs (and the `release:*` labels when the repo uses changesets), `.luca/config.json` (a new one gets the repo's GitHub name as its vault; an existing vault is kept), and a check of GitHub sub-issues and dependencies. `--base <branch>` names the base branch. |
|
|
47
51
|
| `luca doctor` | Checks this computer, this repo when you're in one, and what v13 left behind. Each problem comes with its exact fix. `luca doctor --fix` fixes what's safe without asking: it never deletes (v13 files go to a dated backup folder) and never commits, and it lists the repo files to commit. |
|
|
48
|
-
| `luca upgrade` | Moves to the newest Luca on your channel: `alpha` stays on `alpha`, and it never goes back to v13. It refuses while any run is going (stuck runs and limit waits count) and lists them. Then it reloads the board and says when to run `/reload-skills`. |
|
|
52
|
+
| `luca upgrade` | Moves to the newest Luca on your channel: `alpha` stays on `alpha`, and it never goes back to v13. It refuses while any run is going (stuck runs and limit waits count) and lists them. A run that crashed, with no engine running it, doesn't stop it: upgrade says how to resume it on the new version. Then the version it just installed finishes the job with its own code: it reloads the board, copies its skills (every one it ships, new ones included), and says when to run `/reload-skills`. |
|
|
49
53
|
| `luca upgrade --to <version>` | Installs that exact version, an older one too, to go back when a version breaks. |
|
|
50
54
|
|
|
51
55
|
`init`, `setup`, and `upgrade` end with their part of `luca doctor`'s checks.
|
|
@@ -88,6 +92,7 @@ This is the one package that goes to npm. It's TypeScript source with no build a
|
|
|
88
92
|
| ------ | ---------- |
|
|
89
93
|
| `engine/` | The engine's source, from [`packages/engine/src`](../engine/src). Both bins point into it. |
|
|
90
94
|
| `board/` | The board plugin's folder, from [`packages/board`](../board): `paseo-plugin.json`, its entry points, its client, server, and shared code, and its own `package.json`, so Paseo can install it as a folder source. |
|
|
95
|
+
| `skills/` | Luca's own Claude Code skills, `luca-unstick` and `luca-retro`, from [`packages/engine/skills`](../engine/skills). `luca init` and `luca upgrade` copy every folder in it with a `SKILL.md` to `~/.claude/skills`. |
|
|
91
96
|
| `LICENSE` | The repo's license. |
|
|
92
97
|
|
|
93
98
|
Test files and test helpers stay out. The engine and the board stay private workspace packages, and this package lists every package they import at runtime as its own dependency.
|
|
@@ -13,7 +13,8 @@ import type {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Colors and words shared by the side panel and the chat rows, so both views
|
|
16
|
-
* match. Every color comes from the host theme
|
|
16
|
+
* match. Every color comes from the host theme, except the models' own
|
|
17
|
+
* (`MODEL_COLORS`).
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
export const MONO = Platform.select({ ios: 'Menlo', default: 'monospace' })
|
|
@@ -73,7 +74,11 @@ export const stageColor = ({
|
|
|
73
74
|
switch (stage) {
|
|
74
75
|
case 'building':
|
|
75
76
|
case 'reviewing':
|
|
77
|
+
case 'testing':
|
|
78
|
+
case 'joining':
|
|
76
79
|
return theme.colors.accent
|
|
80
|
+
case 'fixing':
|
|
81
|
+
return theme.colors.statusWarning
|
|
77
82
|
case 'stuck':
|
|
78
83
|
return theme.colors.statusDanger
|
|
79
84
|
case 'done':
|
|
@@ -150,6 +155,31 @@ export const statusColor = ({
|
|
|
150
155
|
}
|
|
151
156
|
}
|
|
152
157
|
|
|
158
|
+
/**
|
|
159
|
+
* The models' colors (#630): Opus purple, Sonnet orange, Haiku blue, and
|
|
160
|
+
* Clef (the decision model) green. Fixed hues that read on light and dark
|
|
161
|
+
* themes alike: the one exception to "every color from the host theme".
|
|
162
|
+
*/
|
|
163
|
+
export const MODEL_COLORS: ReadonlyMap<string, string> = new Map([
|
|
164
|
+
['opus', '#a371f7'],
|
|
165
|
+
['sonnet', '#e8833a'],
|
|
166
|
+
['haiku', '#3b9fe8'],
|
|
167
|
+
['clef', '#3fb950'],
|
|
168
|
+
])
|
|
169
|
+
|
|
170
|
+
/** Clef's confidence bar: green when sharp, orange when split. */
|
|
171
|
+
export const CONFIDENCE_COLORS = { sharp: '#3fb950', split: '#e3a23b' }
|
|
172
|
+
|
|
173
|
+
/** A model's color; the engine, or a model the board doesn't know, is muted. */
|
|
174
|
+
export const modelColor = ({
|
|
175
|
+
model,
|
|
176
|
+
theme,
|
|
177
|
+
}: {
|
|
178
|
+
model: string
|
|
179
|
+
theme: PluginTheme
|
|
180
|
+
}): string =>
|
|
181
|
+
MODEL_COLORS.get(model.toLowerCase()) ?? theme.colors.foregroundMuted
|
|
182
|
+
|
|
153
183
|
/** A run status in words. */
|
|
154
184
|
export const statusText = ({ status }: { status: RunStatus }): string => {
|
|
155
185
|
switch (status) {
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The small pieces the panel's sections share: a fix-loop counter, a running
|
|
3
|
+
* step with its time, a stage header, a banner, and a section.
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactNode } from 'react'
|
|
6
|
+
|
|
7
|
+
import { Icon } from '@getpaseo/plugin/client/react-native'
|
|
8
|
+
import { Pressable, Text, View } from 'react-native'
|
|
9
|
+
|
|
10
|
+
import { useNow } from './board-look'
|
|
11
|
+
import type { Look, Styles } from './board-panel-styles'
|
|
12
|
+
import { CutLine, useCloseBubble } from './one-line'
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
LOOP_CAP,
|
|
16
|
+
currentStepText,
|
|
17
|
+
type CurrentStep,
|
|
18
|
+
} from '../shared/board-state'
|
|
19
|
+
|
|
20
|
+
export const Counter = ({
|
|
21
|
+
label,
|
|
22
|
+
value,
|
|
23
|
+
theme,
|
|
24
|
+
styles,
|
|
25
|
+
}: { label: string; value: number } & Look) => {
|
|
26
|
+
const color =
|
|
27
|
+
value >= LOOP_CAP
|
|
28
|
+
? theme.colors.statusDanger
|
|
29
|
+
: value > 0
|
|
30
|
+
? theme.colors.statusWarning
|
|
31
|
+
: theme.colors.foregroundMuted
|
|
32
|
+
return (
|
|
33
|
+
<Text
|
|
34
|
+
style={[styles.counter, { color, borderColor: color }]}
|
|
35
|
+
numberOfLines={1}
|
|
36
|
+
>
|
|
37
|
+
{label} {value}/{LOOP_CAP}
|
|
38
|
+
</Text>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** A running step with its time, counting up by itself, on one line. */
|
|
43
|
+
export const StepLine = ({
|
|
44
|
+
step,
|
|
45
|
+
prefix,
|
|
46
|
+
at = null,
|
|
47
|
+
styles,
|
|
48
|
+
}: {
|
|
49
|
+
step: CurrentStep
|
|
50
|
+
prefix: string
|
|
51
|
+
/** A stopped clock (#635), in ms, in place of the ticking one. */
|
|
52
|
+
at?: number | null
|
|
53
|
+
styles: Styles
|
|
54
|
+
}) => {
|
|
55
|
+
const ticking = useNow()
|
|
56
|
+
const now = at ?? ticking
|
|
57
|
+
return (
|
|
58
|
+
<CutLine
|
|
59
|
+
text={`${prefix}${currentStepText({ step, now })}`}
|
|
60
|
+
style={styles.muted}
|
|
61
|
+
styles={styles}
|
|
62
|
+
/>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const StageHeader = ({
|
|
67
|
+
title,
|
|
68
|
+
hint,
|
|
69
|
+
icon,
|
|
70
|
+
count,
|
|
71
|
+
color,
|
|
72
|
+
folded,
|
|
73
|
+
onPress,
|
|
74
|
+
theme,
|
|
75
|
+
styles,
|
|
76
|
+
}: {
|
|
77
|
+
title: string
|
|
78
|
+
hint: string
|
|
79
|
+
icon: string
|
|
80
|
+
count: number
|
|
81
|
+
color: string
|
|
82
|
+
folded: boolean | null
|
|
83
|
+
onPress: (() => void) | null
|
|
84
|
+
} & Look) => {
|
|
85
|
+
const closeBubble = useCloseBubble()
|
|
86
|
+
const empty = count === 0
|
|
87
|
+
const tint = empty ? theme.colors.foregroundMuted : color
|
|
88
|
+
const content = (
|
|
89
|
+
<>
|
|
90
|
+
<Icon name={icon} size={13} color={tint} />
|
|
91
|
+
<Text style={[styles.stageTitle, { color: tint }]}>
|
|
92
|
+
{title.toUpperCase()}
|
|
93
|
+
</Text>
|
|
94
|
+
<Text style={styles.stageCount}>{count}</Text>
|
|
95
|
+
{empty || hint === '' ? null : (
|
|
96
|
+
<Text style={styles.stageHint} numberOfLines={1}>
|
|
97
|
+
{hint}
|
|
98
|
+
</Text>
|
|
99
|
+
)}
|
|
100
|
+
<View style={styles.spacer} />
|
|
101
|
+
{folded === null || empty ? null : (
|
|
102
|
+
<Icon
|
|
103
|
+
name={folded ? 'ChevronRight' : 'ChevronDown'}
|
|
104
|
+
size={13}
|
|
105
|
+
color={theme.colors.foregroundMuted}
|
|
106
|
+
/>
|
|
107
|
+
)}
|
|
108
|
+
</>
|
|
109
|
+
)
|
|
110
|
+
const style = [styles.stageHeader, empty ? styles.stageHeaderThin : null]
|
|
111
|
+
if (!onPress || empty) return <View style={style}>{content}</View>
|
|
112
|
+
return (
|
|
113
|
+
<Pressable
|
|
114
|
+
accessibilityRole="button"
|
|
115
|
+
accessibilityLabel={`${title}, ${count}. ${folded ? 'Open' : 'Fold'} this stage`}
|
|
116
|
+
onPress={() => {
|
|
117
|
+
closeBubble()
|
|
118
|
+
onPress()
|
|
119
|
+
}}
|
|
120
|
+
style={style}
|
|
121
|
+
>
|
|
122
|
+
{content}
|
|
123
|
+
</Pressable>
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const Banner = ({
|
|
128
|
+
icon,
|
|
129
|
+
color,
|
|
130
|
+
children,
|
|
131
|
+
styles,
|
|
132
|
+
}: {
|
|
133
|
+
icon: string
|
|
134
|
+
color: string
|
|
135
|
+
children: ReactNode
|
|
136
|
+
styles: Styles
|
|
137
|
+
}) => (
|
|
138
|
+
<View style={[styles.banner, { borderColor: color }]}>
|
|
139
|
+
<Icon name={icon} size={13} color={color} />
|
|
140
|
+
<Text style={[styles.bannerText, { color }]}>{children}</Text>
|
|
141
|
+
</View>
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
export const Section = ({
|
|
145
|
+
children,
|
|
146
|
+
styles,
|
|
147
|
+
}: {
|
|
148
|
+
children: ReactNode
|
|
149
|
+
styles: Styles
|
|
150
|
+
}) => <View style={styles.block}>{children}</View>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stages the panel stacks tickets and lenses in, and the keys of the
|
|
3
|
+
* cards and stages a person opens or folds.
|
|
4
|
+
*/
|
|
5
|
+
import type { LensState, TicketStage } from '../shared/board-state'
|
|
6
|
+
|
|
7
|
+
type StackStage = Exclude<TicketStage, 'stuck'>
|
|
8
|
+
|
|
9
|
+
export const TICKET_STAGES: {
|
|
10
|
+
stage: StackStage
|
|
11
|
+
title: string
|
|
12
|
+
hint: string
|
|
13
|
+
icon: string
|
|
14
|
+
folded: boolean
|
|
15
|
+
}[] = [
|
|
16
|
+
{
|
|
17
|
+
stage: 'blocked',
|
|
18
|
+
title: 'Blocked',
|
|
19
|
+
hint: "waits on a ticket that isn't done",
|
|
20
|
+
icon: 'Lock',
|
|
21
|
+
folded: false,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
stage: 'building',
|
|
25
|
+
title: 'Building',
|
|
26
|
+
hint: 'the first tests and code',
|
|
27
|
+
icon: 'Hammer',
|
|
28
|
+
folded: false,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
stage: 'reviewing',
|
|
32
|
+
title: 'Reviewing',
|
|
33
|
+
hint: 'a reviewer reads the ticket',
|
|
34
|
+
icon: 'ScanSearch',
|
|
35
|
+
folded: false,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
stage: 'testing',
|
|
39
|
+
title: 'Testing',
|
|
40
|
+
hint: 'the red check or the checks running',
|
|
41
|
+
icon: 'FlaskConical',
|
|
42
|
+
folded: false,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
stage: 'fixing',
|
|
46
|
+
title: 'Fixing',
|
|
47
|
+
hint: 'a fix round after the checks, a review or a join',
|
|
48
|
+
icon: 'Wrench',
|
|
49
|
+
folded: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
stage: 'joining',
|
|
53
|
+
title: 'Joining',
|
|
54
|
+
hint: 'joining the run branch and its checks there',
|
|
55
|
+
icon: 'GitMerge',
|
|
56
|
+
folded: false,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
stage: 'done',
|
|
60
|
+
title: 'Done',
|
|
61
|
+
hint: 'joined the run branch',
|
|
62
|
+
icon: 'CircleCheck',
|
|
63
|
+
folded: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
stage: 'skipped',
|
|
67
|
+
title: 'Skipped',
|
|
68
|
+
hint: 'left out of this run, stays open',
|
|
69
|
+
icon: 'SkipForward',
|
|
70
|
+
folded: true,
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
export const LENS_STAGES: { stage: LensState; title: string; icon: string }[] =
|
|
75
|
+
[
|
|
76
|
+
{ stage: 'waiting', title: 'Waiting', icon: 'Clock' },
|
|
77
|
+
{ stage: 'reviewing', title: 'Reviewing', icon: 'ScanSearch' },
|
|
78
|
+
{ stage: 'fixing', title: 'Fixing', icon: 'Wrench' },
|
|
79
|
+
{ stage: 'clean', title: 'Clean', icon: 'CircleCheck' },
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
/** A card or stage key. */
|
|
83
|
+
export type Key = string
|
|
84
|
+
|
|
85
|
+
/** The key of the fold for tickets left out for a person (#499). */
|
|
86
|
+
export const FOR_A_PERSON: Key = 'for_a_person'
|
|
87
|
+
|
|
88
|
+
export const toggled = ({
|
|
89
|
+
set,
|
|
90
|
+
key,
|
|
91
|
+
}: {
|
|
92
|
+
set: ReadonlySet<Key>
|
|
93
|
+
key: string
|
|
94
|
+
}): Set<Key> => {
|
|
95
|
+
const next = new Set(set)
|
|
96
|
+
if (next.has(key)) next.delete(key)
|
|
97
|
+
else next.add(key)
|
|
98
|
+
return next
|
|
99
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The side panel's styles: one `StyleSheet` made from the host theme, and
|
|
3
|
+
* the `Look` (theme and styles) every piece of the panel takes.
|
|
4
|
+
*/
|
|
5
|
+
import type { PluginTheme } from '@getpaseo/plugin'
|
|
6
|
+
import { StyleSheet } from 'react-native'
|
|
7
|
+
|
|
8
|
+
import { DIMMED, MONO } from './board-look'
|
|
9
|
+
|
|
10
|
+
export const makeStyles = ({
|
|
11
|
+
theme,
|
|
12
|
+
compact,
|
|
13
|
+
}: {
|
|
14
|
+
theme: PluginTheme
|
|
15
|
+
compact: boolean
|
|
16
|
+
}) => {
|
|
17
|
+
const { colors } = theme
|
|
18
|
+
return StyleSheet.create({
|
|
19
|
+
screen: { flex: 1, backgroundColor: colors.surface0 },
|
|
20
|
+
content: { padding: compact ? 10 : 16, gap: 8 },
|
|
21
|
+
/** Fills the scroll area, so a tap on its blank part lands too. */
|
|
22
|
+
fill: { flexGrow: 1 },
|
|
23
|
+
/** The cards' scroll area, above the pinned status bar. */
|
|
24
|
+
scroll: { flex: 1 },
|
|
25
|
+
/** The status bar, pinned at the bottom of the panel. */
|
|
26
|
+
statusBar: {
|
|
27
|
+
flexShrink: 0,
|
|
28
|
+
gap: 4,
|
|
29
|
+
borderTopColor: colors.border,
|
|
30
|
+
borderTopWidth: 1,
|
|
31
|
+
backgroundColor: colors.surface1,
|
|
32
|
+
paddingHorizontal: compact ? 10 : 16,
|
|
33
|
+
paddingVertical: 5,
|
|
34
|
+
},
|
|
35
|
+
row: {
|
|
36
|
+
flexDirection: 'row',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
flexWrap: 'wrap',
|
|
39
|
+
gap: compact ? 6 : 10,
|
|
40
|
+
},
|
|
41
|
+
/** A row that stays on one line: its cut lines give way. */
|
|
42
|
+
line: {
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
gap: compact ? 6 : 10,
|
|
46
|
+
},
|
|
47
|
+
/** A part that never shrinks or gets cut: a number, tag or time. */
|
|
48
|
+
fixed: { flexShrink: 0 },
|
|
49
|
+
/** What holds a cut line: it gives way, down to nothing. */
|
|
50
|
+
cut: { flexShrink: 1, minWidth: 0 },
|
|
51
|
+
/** The bubble a tap on a cut line opens, with its full text. */
|
|
52
|
+
bubble: {
|
|
53
|
+
color: colors.foreground,
|
|
54
|
+
backgroundColor: colors.surface2,
|
|
55
|
+
borderColor: colors.border,
|
|
56
|
+
borderWidth: 1,
|
|
57
|
+
borderRadius: 6,
|
|
58
|
+
paddingHorizontal: 8,
|
|
59
|
+
paddingVertical: 5,
|
|
60
|
+
fontSize: 12,
|
|
61
|
+
},
|
|
62
|
+
title: { color: colors.foreground, fontSize: 16, fontWeight: '700' },
|
|
63
|
+
spacer: { flex: 1 },
|
|
64
|
+
text: { color: colors.foreground, fontSize: 13 },
|
|
65
|
+
muted: { color: colors.foregroundMuted, fontSize: 12 },
|
|
66
|
+
mono: { color: colors.foregroundMuted, fontSize: 12, fontFamily: MONO },
|
|
67
|
+
small: { color: colors.foregroundMuted, fontSize: 11 },
|
|
68
|
+
pill: {
|
|
69
|
+
flexShrink: 0,
|
|
70
|
+
borderWidth: 1,
|
|
71
|
+
borderRadius: 999,
|
|
72
|
+
paddingHorizontal: 7,
|
|
73
|
+
paddingVertical: 1,
|
|
74
|
+
fontSize: 11,
|
|
75
|
+
fontWeight: '700',
|
|
76
|
+
},
|
|
77
|
+
chip: {
|
|
78
|
+
borderWidth: 1,
|
|
79
|
+
borderColor: colors.border,
|
|
80
|
+
borderRadius: 6,
|
|
81
|
+
paddingHorizontal: 8,
|
|
82
|
+
paddingVertical: 3,
|
|
83
|
+
},
|
|
84
|
+
chipOn: {
|
|
85
|
+
borderColor: colors.accent,
|
|
86
|
+
backgroundColor: colors.surface2,
|
|
87
|
+
},
|
|
88
|
+
banner: {
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
gap: 6,
|
|
92
|
+
borderWidth: 1,
|
|
93
|
+
borderRadius: 6,
|
|
94
|
+
paddingHorizontal: 8,
|
|
95
|
+
paddingVertical: 5,
|
|
96
|
+
},
|
|
97
|
+
bannerText: { fontSize: 12, flexShrink: 1 },
|
|
98
|
+
block: { gap: 6 },
|
|
99
|
+
stageHeader: {
|
|
100
|
+
flexDirection: 'row',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
gap: 6,
|
|
103
|
+
paddingVertical: 4,
|
|
104
|
+
paddingHorizontal: 6,
|
|
105
|
+
borderRadius: 6,
|
|
106
|
+
},
|
|
107
|
+
stageHeaderThin: { paddingVertical: 1, opacity: DIMMED },
|
|
108
|
+
stageTitle: { fontSize: 12, fontWeight: '700', letterSpacing: 1 },
|
|
109
|
+
stageCount: {
|
|
110
|
+
color: colors.foregroundMuted,
|
|
111
|
+
fontSize: 12,
|
|
112
|
+
fontFamily: MONO,
|
|
113
|
+
},
|
|
114
|
+
stageHint: {
|
|
115
|
+
color: colors.foregroundMuted,
|
|
116
|
+
fontSize: 11,
|
|
117
|
+
flexShrink: 1,
|
|
118
|
+
},
|
|
119
|
+
stageBody: { gap: 6, paddingLeft: compact ? 0 : 8 },
|
|
120
|
+
card: {
|
|
121
|
+
backgroundColor: colors.surface1,
|
|
122
|
+
borderColor: colors.border,
|
|
123
|
+
borderWidth: 1,
|
|
124
|
+
borderRadius: 8,
|
|
125
|
+
paddingHorizontal: compact ? 8 : 10,
|
|
126
|
+
paddingVertical: compact ? 7 : 8,
|
|
127
|
+
gap: 5,
|
|
128
|
+
},
|
|
129
|
+
cardStuck: { borderColor: colors.statusDanger, borderLeftWidth: 4 },
|
|
130
|
+
cardPressed: { backgroundColor: colors.surface2 },
|
|
131
|
+
cardTop: { flexDirection: 'row', alignItems: 'center', gap: 6 },
|
|
132
|
+
number: {
|
|
133
|
+
flexShrink: 0,
|
|
134
|
+
color: colors.foregroundMuted,
|
|
135
|
+
fontSize: 12,
|
|
136
|
+
fontWeight: '700',
|
|
137
|
+
fontFamily: MONO,
|
|
138
|
+
},
|
|
139
|
+
cardTitle: {
|
|
140
|
+
color: colors.foreground,
|
|
141
|
+
fontSize: 13,
|
|
142
|
+
fontWeight: '600',
|
|
143
|
+
flexShrink: 1,
|
|
144
|
+
},
|
|
145
|
+
tag: {
|
|
146
|
+
flexShrink: 0,
|
|
147
|
+
color: colors.foregroundMuted,
|
|
148
|
+
borderColor: colors.border,
|
|
149
|
+
borderWidth: 1,
|
|
150
|
+
borderRadius: 4,
|
|
151
|
+
paddingHorizontal: 4,
|
|
152
|
+
fontSize: 10,
|
|
153
|
+
},
|
|
154
|
+
/** Clef's confidence bar, and its part filled to the confidence. */
|
|
155
|
+
confidence: {
|
|
156
|
+
flexShrink: 0,
|
|
157
|
+
width: 28,
|
|
158
|
+
height: 5,
|
|
159
|
+
borderRadius: 3,
|
|
160
|
+
overflow: 'hidden',
|
|
161
|
+
backgroundColor: colors.surface2,
|
|
162
|
+
},
|
|
163
|
+
confidenceFill: { height: 5 },
|
|
164
|
+
/** A running helper's line (#636), its left edge in its model's colour. */
|
|
165
|
+
helperLine: { borderLeftWidth: 2, paddingLeft: 6 },
|
|
166
|
+
dots: { flexDirection: 'row', alignItems: 'center', flexShrink: 0 },
|
|
167
|
+
dotCell: { flexDirection: 'row', alignItems: 'center' },
|
|
168
|
+
link: { width: compact ? 7 : 10, height: 2 },
|
|
169
|
+
dot: { width: 8, height: 8, borderRadius: 4, borderWidth: 1.5 },
|
|
170
|
+
dotCurrent: { width: 12, height: 12, borderRadius: 6, borderWidth: 2 },
|
|
171
|
+
dotSkip: { borderStyle: 'dashed' },
|
|
172
|
+
stepLabel: { fontSize: 12, fontWeight: '600', marginLeft: 6 },
|
|
173
|
+
/** A waiting card's amber bar, where a heartbeat would be. */
|
|
174
|
+
waitBar: {
|
|
175
|
+
flexShrink: 0,
|
|
176
|
+
width: 28,
|
|
177
|
+
height: 4,
|
|
178
|
+
borderRadius: 2,
|
|
179
|
+
opacity: 0.8,
|
|
180
|
+
},
|
|
181
|
+
/** A busy card's heartbeat, and each of its bars, standing on the bottom. */
|
|
182
|
+
heartbeat: {
|
|
183
|
+
flexDirection: 'row',
|
|
184
|
+
alignItems: 'flex-end',
|
|
185
|
+
flexShrink: 0,
|
|
186
|
+
height: 14,
|
|
187
|
+
gap: 1,
|
|
188
|
+
},
|
|
189
|
+
heartbeatBar: { width: 2, borderRadius: 1 },
|
|
190
|
+
counter: {
|
|
191
|
+
flexShrink: 0,
|
|
192
|
+
borderWidth: 1,
|
|
193
|
+
borderRadius: 5,
|
|
194
|
+
paddingHorizontal: 5,
|
|
195
|
+
fontSize: 11,
|
|
196
|
+
fontFamily: MONO,
|
|
197
|
+
},
|
|
198
|
+
detail: {
|
|
199
|
+
gap: 3,
|
|
200
|
+
borderTopColor: colors.border,
|
|
201
|
+
borderTopWidth: 1,
|
|
202
|
+
paddingTop: 5,
|
|
203
|
+
},
|
|
204
|
+
label: {
|
|
205
|
+
color: colors.foregroundMuted,
|
|
206
|
+
fontSize: 12,
|
|
207
|
+
fontWeight: '700',
|
|
208
|
+
},
|
|
209
|
+
rule: { height: 1, backgroundColor: colors.border, marginVertical: 4 },
|
|
210
|
+
reviewTitle: {
|
|
211
|
+
color: colors.foreground,
|
|
212
|
+
fontSize: 14,
|
|
213
|
+
fontWeight: '700',
|
|
214
|
+
},
|
|
215
|
+
prLink: { color: colors.accent, fontSize: 12 },
|
|
216
|
+
})
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type MakeStyles = typeof makeStyles
|
|
220
|
+
|
|
221
|
+
export type Styles = ReturnType<MakeStyles>
|
|
222
|
+
|
|
223
|
+
export type Look = { theme: PluginTheme; styles: Styles }
|