teamsmith 0.1.2 → 0.3.0
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 +13 -7
- package/package.json +1 -1
- package/skills/teamsmith/CHANGELOG.md +67 -0
- package/skills/teamsmith/SKILL.md +26 -8
- package/skills/teamsmith/extension/team-notify.ts +37 -6
- package/skills/teamsmith/extension/team.ts +438 -0
- package/skills/teamsmith/references/agent-adapters.md +7 -7
- package/skills/teamsmith/references/config.md +65 -18
- package/skills/teamsmith/references/migration.md +220 -34
- package/skills/teamsmith/references/protocol.md +250 -25
- package/skills/teamsmith/references/troubleshooting.md +124 -7
- package/skills/teamsmith/references/workflows.md +66 -20
- package/skills/teamsmith/scripts/lib/cmd-agents.sh +525 -90
- package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +71 -10
- package/skills/teamsmith/scripts/lib/cmd-config.sh +562 -128
- package/skills/teamsmith/scripts/lib/cmd-death.sh +2 -15
- package/skills/teamsmith/scripts/lib/cmd-docs.sh +6 -3
- package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
- package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
- package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
- package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
- package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
- package/skills/teamsmith/scripts/lib/cmd-project.sh +149 -105
- package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
- package/skills/teamsmith/scripts/lib/cmd-reply.sh +96 -0
- package/skills/teamsmith/scripts/lib/cmd-review.sh +188 -40
- package/skills/teamsmith/scripts/lib/cmd-status.sh +268 -30
- package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
- package/skills/teamsmith/scripts/lib/cmd-watch.sh +634 -54
- package/skills/teamsmith/scripts/lib/common.sh +1560 -109
- package/skills/teamsmith/scripts/lib/gate-lock.sh +544 -0
- package/skills/teamsmith/scripts/monitor.mjs +34 -3
- package/skills/teamsmith/scripts/panel/README.md +22 -11
- package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
- package/skills/teamsmith/scripts/panel/panel.js +226 -224
- package/skills/teamsmith/scripts/panel/src/App.tsx +478 -184
- package/skills/teamsmith/scripts/panel/src/clipboard.ts +11 -5
- package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
- package/skills/teamsmith/scripts/panel/src/data.ts +95 -7
- package/skills/teamsmith/scripts/panel/src/layout.ts +703 -152
- package/skills/teamsmith/scripts/panel/src/main.tsx +129 -19
- package/skills/teamsmith/scripts/panel/src/settings.ts +1 -1
- package/skills/teamsmith/scripts/panel/src/strings/en.ts +76 -31
- package/skills/teamsmith/scripts/panel/src/strings/zh.ts +78 -33
- package/skills/teamsmith/scripts/panel/src/types.ts +204 -17
- package/skills/teamsmith/scripts/replies.mjs +896 -0
- package/skills/teamsmith/scripts/shim/tmux +18 -0
- package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
- package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
- package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
- package/skills/teamsmith/scripts/team +20 -6
- package/skills/teamsmith/templates/AGENTS.section.md.tmpl +23 -3
- package/skills/teamsmith/templates/BOARD.md.tmpl +2 -2
- package/skills/teamsmith/templates/OWNERSHIP.md.tmpl +7 -3
- package/skills/teamsmith/templates/PROTOCOL.md.tmpl +17 -0
- package/skills/teamsmith/templates/config.sh.tmpl +29 -5
- package/skills/teamsmith/templates/memory-seed.md.tmpl +3 -0
- package/skills/teamsmith/templates/pm-prompt.md.tmpl +41 -1
- package/skills/teamsmith/templates/report.md.tmpl +12 -0
- package/skills/teamsmith/templates/task.md.tmpl +4 -0
- package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
- package/skills/teamsmith/tests/bg-ledger.sh +168 -10
- package/skills/teamsmith/tests/checkout-shape-probe.sh +3 -1
- package/skills/teamsmith/tests/config-cli.sh +320 -300
- package/skills/teamsmith/tests/death-cause.sh +5 -2
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
- package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
- package/skills/teamsmith/tests/flip-m33.sh +5 -3
- package/skills/teamsmith/tests/flip-m37.sh +4 -1
- package/skills/teamsmith/tests/flip-m4.3.sh +4 -1
- package/skills/teamsmith/tests/flip-m6.3.sh +4 -1
- package/skills/teamsmith/tests/flip-m6.5.sh +4 -1
- package/skills/teamsmith/tests/flip-m7.2.sh +4 -1
- package/skills/teamsmith/tests/flip-p158.sh +2 -1
- package/skills/teamsmith/tests/flip-p210.sh +4 -1
- package/skills/teamsmith/tests/flip-p217.sh +4 -1
- package/skills/teamsmith/tests/flip-p287-lock.sh +342 -0
- package/skills/teamsmith/tests/flip-p287-name.sh +279 -0
- package/skills/teamsmith/tests/flip-p304-read-side.sh +98 -0
- package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
- package/skills/teamsmith/tests/flip-p309-p162-deep.sh +122 -0
- package/skills/teamsmith/tests/flip-p310-lock.sh +216 -0
- package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
- package/skills/teamsmith/tests/help-surface.sh +1664 -0
- package/skills/teamsmith/tests/install-shape.sh +283 -22
- package/skills/teamsmith/tests/key-replies-pty.sh +374 -0
- package/skills/teamsmith/tests/key-replies-ui.sh +325 -0
- package/skills/teamsmith/tests/key-replies.sh +1314 -0
- package/skills/teamsmith/tests/ledger-ban.sh +9 -8
- package/skills/teamsmith/tests/ledger-claim.sh +248 -0
- package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
- package/skills/teamsmith/tests/lib/model-policy.sh +30 -0
- package/skills/teamsmith/tests/lib/model-routing-boundary.sh +420 -0
- package/skills/teamsmith/tests/lib/model-routing-expansion.sh +155 -0
- package/skills/teamsmith/tests/lib/model-routing-flips.py +187 -0
- package/skills/teamsmith/tests/lib/model-routing-roles.sh +250 -0
- package/skills/teamsmith/tests/lib/proc-io.sh +103 -0
- package/skills/teamsmith/tests/lib/reply-fixture.sh +367 -0
- package/skills/teamsmith/tests/lib/section-guard.sh +258 -13
- package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
- package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
- package/skills/teamsmith/tests/lib/tmux-iso.sh +39 -13
- package/skills/teamsmith/tests/loop-inventory.tsv +59 -47
- package/skills/teamsmith/tests/panel-b2.sh +107 -4
- package/skills/teamsmith/tests/panel-b3-stub.sh +139 -4
- package/skills/teamsmith/tests/panel-b3.sh +189 -29
- package/skills/teamsmith/tests/panel-choices.sh +81 -63
- package/skills/teamsmith/tests/panel-cpu.sh +3 -2
- package/skills/teamsmith/tests/panel-knobs.sh +7 -1
- package/skills/teamsmith/tests/panel-p21.sh +445 -241
- package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
- package/skills/teamsmith/tests/panel-strings.mjs +33 -18
- package/skills/teamsmith/tests/perf.sh +122 -31
- package/skills/teamsmith/tests/pm-box-real.sh +1 -1
- package/skills/teamsmith/tests/pulse-nudge-key.sh +1 -1
- package/skills/teamsmith/tests/routes.sh +364 -109
- package/skills/teamsmith/tests/seat-interrupt.sh +1002 -0
- package/skills/teamsmith/tests/seat-visibility.sh +675 -0
- package/skills/teamsmith/tests/section-budgets.tsv +26 -12
- package/skills/teamsmith/tests/section-guard.sh +6 -1
- package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
- package/skills/teamsmith/tests/section-paths.tsv +42 -26
- package/skills/teamsmith/tests/section-select.sh +90 -7
- package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
- package/skills/teamsmith/tests/slash-team.sh +617 -0
- package/skills/teamsmith/tests/smoke.sh +3762 -628
- package/skills/teamsmith/tests/snapshots/zh-dark-120-detail.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-120-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-120.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-dark-160-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-160.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-dark-59-detail.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-dark-59-p4.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-dark-59.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-dark-99-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-99.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-light-120-detail.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-120-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-120.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-light-160-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-160.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-light-59-detail.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-light-59-p4.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-light-59.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-light-99-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-99.txt +5 -5
- package/skills/teamsmith/tests/task-header-model.sh +2 -1
- package/skills/teamsmith/tests/task-model-routing.sh +1511 -0
- package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
- package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
- package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
- package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
- package/skills/teamsmith-init/SKILL.md +43 -43
- package/skills/teamsmith-init/references/bootstrap.md +8 -6
- package/skills/teamsmith-init/templates/bootstrap-prompt.md.tmpl +9 -5
|
@@ -81,24 +81,35 @@ window, one process, the tick keeps logging. `team pulse up` restores the consol
|
|
|
81
81
|
The settings overlay (`,`) carries one navigation row — `项目设置` / `Project settings` — which opens the
|
|
82
82
|
project-settings view. It replaces the page's blocks (title band, tabs and key band stay) and lists the project
|
|
83
83
|
contract from `team __panel-data --block settings`, whose payload is exactly `team config list --json`: one row
|
|
84
|
-
per schema key plus one per key the file carries that the schema does not know, grouped by the **
|
|
85
|
-
command reports** (
|
|
86
|
-
|
|
87
|
-
row, a second click opens it), `/` opens the
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
per schema key plus one per key the file carries that the schema does not know, grouped by the **functional
|
|
85
|
+
group the command reports** (the schema row's `group`, rendered as a section rule), with the file's value, the
|
|
86
|
+
schema's default for an unset key, the line's own inline comment, the effect-class badge and the command's
|
|
87
|
+
warning/route text. `↑`/`↓` walk the row window (a click focuses a row, a second click opens it), `/` opens the
|
|
88
|
+
compose editor in `filter` mode (matches label, raw key, value, category or assignment; `esc` clears), and `esc`
|
|
89
|
+
returns to the overlay row it was opened from (`q` keeps its global collapse meaning). A `refuse` row opens no
|
|
90
|
+
editor — the command's route is shown. An editable row opens the compose line's `setting` mode holding the
|
|
90
91
|
file's value (or the schema default): the first `enter` runs `team config set … --dry-run` and renders the
|
|
91
92
|
confirmation (the class's timing; a danger reply needs one more `enter`), the second `enter` runs
|
|
92
93
|
`team config set … --yes` with the fingerprint pinned when the editor opened; the exit code maps to the receipt
|
|
93
|
-
and every settle re-reads the list and the audit footer.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
and every settle re-reads the list and the audit footer.
|
|
95
|
+
|
|
96
|
+
Under the keys, the same view separates **future policy** from **committed records** (P232). The categories
|
|
97
|
+
block lists one row per `TEAM_TASK_MODELS` entry in the read's own order; `enter` opens a picker built from the
|
|
98
|
+
project's known models plus a free-text entry (no removal entry: the writer has none) and every accept writes
|
|
99
|
+
through `team config set-task-model <category> <model>` — the pair list is never composed in the console. The
|
|
100
|
+
category receipt says the write affects new tasks only and that a committed task keeps its model/SID. The
|
|
101
|
+
`TEAM_TASK_MODELS` row itself routes to that block instead of opening an editor, and `TEAM_PM_MODEL` keeps its
|
|
102
|
+
ordinary model editor (`team config set TEAM_PM_MODEL …`). The assignments block below is **read-only**: one row
|
|
103
|
+
per seat showing the committed `state/<seat>.env` record (task, category, complete model, `selected_via`/
|
|
104
|
+
`launch_via`, SID) plus the PM's own `state/pm-launch.env` record — a seat without a complete record says so
|
|
105
|
+
rather than borrowing the policy's model. Nothing in the view restarts a pulse, a PM or a seat; a legacy
|
|
106
|
+
contract (retired model keys) shows the command's migration diagnosis, naming the CLI route, and offers no
|
|
107
|
+
seat/default editor.
|
|
97
108
|
|
|
98
109
|
The view is console-only: `--print`/`--json` never read it, a parked console spawns no `settings` child (the
|
|
99
110
|
`detail` block's on-demand rule), and the reader rides the open view, never the frame cadence.
|
|
100
111
|
|
|
101
|
-
The pty fixtures for it are `tests/panel-p21.sh` (scenarios `settings write conflict
|
|
112
|
+
The pty fixtures for it are `tests/panel-p21.sh` (scenarios `settings write conflict categories readonly`, driven
|
|
102
113
|
through the real CLI behind an argv-logging wrapper).
|
|
103
114
|
|
|
104
115
|
## Compose and the three actions (pulse-console B2)
|
|
@@ -22,6 +22,9 @@ set -uo pipefail
|
|
|
22
22
|
|
|
23
23
|
self="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
24
24
|
skill="$(cd -P "$self/../.." && pwd)"
|
|
25
|
+
# P309: the temp root comes from the one resolver (no second `${TMPDIR:-/tmp}` here)
|
|
26
|
+
# shellcheck source=../lib/common.sh
|
|
27
|
+
. "$skill/scripts/lib/common.sh"
|
|
25
28
|
file="${1:-}"
|
|
26
29
|
if [ -n "$file" ]; then shift || true; fi
|
|
27
30
|
|
|
@@ -33,7 +36,14 @@ if [ -z "$file" ] || [ ! -f "$file" ]; then
|
|
|
33
36
|
exit 2
|
|
34
37
|
fi
|
|
35
38
|
|
|
36
|
-
|
|
39
|
+
# P309: the resolved root is only *ours* to create on the default leg; an explicit root that is
|
|
40
|
+
# unusable fails loudly instead of sending through some other directory.
|
|
41
|
+
if ! team_tmp_root_prepare >/dev/null 2>&1; then
|
|
42
|
+
printf 'draft-send: 临时根不可用(%s)\n' "$(team_tmp_root 2>/dev/null || printf '?')" >&2
|
|
43
|
+
emit 2
|
|
44
|
+
exit 2
|
|
45
|
+
fi
|
|
46
|
+
log="$(mktemp "$(team_tmp_root)/.teamsmith-panel-draft-send.XXXXXX")"
|
|
37
47
|
trap 'rm -f "$log"' EXIT
|
|
38
48
|
|
|
39
49
|
TEAM_SKILL_DIR="${TEAM_SKILL_DIR:-$skill}"; export TEAM_SKILL_DIR
|