@renaiss-shipflow/cli 0.16.0 → 0.17.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/dist/commands/activity.d.ts.map +1 -1
- package/dist/commands/activity.js +2 -4
- package/dist/commands/activity.js.map +1 -1
- package/dist/commands/channels.d.ts.map +1 -1
- package/dist/commands/channels.js +3 -6
- package/dist/commands/channels.js.map +1 -1
- package/dist/commands/claims.d.ts.map +1 -1
- package/dist/commands/claims.js +12 -24
- package/dist/commands/claims.js.map +1 -1
- package/dist/commands/features.d.ts.map +1 -1
- package/dist/commands/features.js +25 -37
- package/dist/commands/features.js.map +1 -1
- package/dist/commands/helpers.d.ts +61 -0
- package/dist/commands/helpers.d.ts.map +1 -1
- package/dist/commands/helpers.js +60 -6
- package/dist/commands/helpers.js.map +1 -1
- package/dist/commands/inbox.d.ts.map +1 -1
- package/dist/commands/inbox.js +18 -29
- package/dist/commands/inbox.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +3 -10
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/issue.d.ts.map +1 -1
- package/dist/commands/issue.js +22 -51
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/issues.d.ts.map +1 -1
- package/dist/commands/issues.js +9 -21
- package/dist/commands/issues.js.map +1 -1
- package/dist/commands/pr.d.ts.map +1 -1
- package/dist/commands/pr.js +51 -125
- package/dist/commands/pr.js.map +1 -1
- package/dist/commands/regression.d.ts.map +1 -1
- package/dist/commands/regression.js +4 -22
- package/dist/commands/regression.js.map +1 -1
- package/dist/commands/release.d.ts.map +1 -1
- package/dist/commands/release.js +9 -21
- package/dist/commands/release.js.map +1 -1
- package/dist/commands/repos.d.ts.map +1 -1
- package/dist/commands/repos.js +4 -9
- package/dist/commands/repos.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +2 -4
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +14 -26
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/trigger.d.ts.map +1 -1
- package/dist/commands/trigger.js +3 -8
- package/dist/commands/trigger.js.map +1 -1
- package/dist/commands/workflows.d.ts.map +1 -1
- package/dist/commands/workflows.js +5 -10
- package/dist/commands/workflows.js.map +1 -1
- package/dist/escalation-format.d.ts +4 -2
- package/dist/escalation-format.d.ts.map +1 -1
- package/dist/escalation-format.js +14 -8
- package/dist/escalation-format.js.map +1 -1
- package/dist/gh.d.ts.map +1 -1
- package/dist/gh.js +12 -28
- package/dist/gh.js.map +1 -1
- package/dist/issue-order.d.ts +2 -2
- package/dist/issue-order.d.ts.map +1 -1
- package/dist/issue-order.js +9 -7
- package/dist/issue-order.js.map +1 -1
- package/dist/pr-state.d.ts.map +1 -1
- package/dist/pr-state.js +5 -2
- package/dist/pr-state.js.map +1 -1
- package/dist/review-contract-data.d.ts +7 -0
- package/dist/review-contract-data.d.ts.map +1 -1
- package/dist/review-contract-data.js +9 -2
- package/dist/review-contract-data.js.map +1 -1
- package/dist/review-contract.d.ts +3 -1
- package/dist/review-contract.d.ts.map +1 -1
- package/dist/review-contract.js +5 -7
- package/dist/review-contract.js.map +1 -1
- package/dist/shipflow-contract-data.d.ts +52 -0
- package/dist/shipflow-contract-data.d.ts.map +1 -0
- package/dist/shipflow-contract-data.js +69 -0
- package/dist/shipflow-contract-data.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Mirror of contracts/shipflow-contract.json (a canonical ShipFlow contract).
|
|
3
|
+
// Regenerate with: node scripts/sync-review-contract.mjs
|
|
4
|
+
// The contract-parity test fails if this file drifts from the canonical one.
|
|
5
|
+
export const SHIPFLOW_CONTRACT = {
|
|
6
|
+
"$comment": "Canonical ShipFlow contract (issue #179), a SIBLING of review-contract.json: the single source of truth for cross-surface ShipFlow constants that are NOT specific to the review packet — the workflow-type taxonomy, the GitHub label palette + lifecycle label names, the hidden issue-lifecycle markers, and the message-readability word cap. These are shared by a BROADER audience than the two reviewers (the server webhook/issue handlers, the CLI issue/PR commands, and the dashboard), so they live beside — not inside — review-contract.json, whose scope stays exactly 'constants both reviewers share' and whose caps/lists/mirrors are left untouched. Mirrors (regenerate with `node scripts/sync-review-contract.mjs`; parity tests on all three sides fail on drift): apps/renaissshipflow-server/internal/shipflowcontract/shipflow-contract.json (go:embed, byte-identical), apps/renaissshipflow-cli/src/shipflow-contract-data.ts (generated), apps/renaissshipflow-dashboard/src/lib/shipflow-contract-data.ts (generated). Only the LITERALS are single-sourced — each consumer keeps its own MATCHING semantics (the server matches the escalation banner with a loose HasPrefix on markers.escalationBannerEmoji; the CLI matches with the stricter startsWith on markers.escalationBannerHeading).",
|
|
7
|
+
"version": 1,
|
|
8
|
+
"workflowTypes": {
|
|
9
|
+
"$comment": "The complete WorkflowType taxonomy. The Go domain.WorkflowType constants (domain/workflow.go — the dispatch source of truth, enumerated as domain.AllWorkflowTypes) are pinned to this list by a parity test, and the dashboard's WorkflowType union derives from it directly (typeof SHIPFLOW_CONTRACT.workflowTypes.values[number]). `uat_tests` is real (it has a Go runner + constant) and was missing from the dashboard union; `dependency_audit` was a phantom TS-only value with NO server constant or runner and has been removed (issue #179).",
|
|
10
|
+
"values": [
|
|
11
|
+
"issue_triage",
|
|
12
|
+
"commit_impact",
|
|
13
|
+
"patch_notes",
|
|
14
|
+
"regression_tests",
|
|
15
|
+
"uat_tests",
|
|
16
|
+
"weekly_summary",
|
|
17
|
+
"planning_summary",
|
|
18
|
+
"pr_notification",
|
|
19
|
+
"pr_review",
|
|
20
|
+
"bug_report_triage",
|
|
21
|
+
"test_runner",
|
|
22
|
+
"codebase_qa"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"labels": {
|
|
26
|
+
"$comment": "ShipFlow's GitHub label palette + the lifecycle label NAMES. `colors` maps a label name to its 6-hex color; ShipFlow owns these colors and BOTH the server's ensureLabels and the CLI's ghEnsureLabel source this ONE map (pre-contract they were byte-identical copies, so a color edit on one side flip-flopped the label). `prefixColors` colors open-ended label groups by name prefix. `names` are the lifecycle labels the code references by MEANING (claim / escalation / approval / reporter-review); every `names` value is also a `colors` key (parity-tested). Repaint/matching semantics stay per-consumer — only the literals are shared.",
|
|
27
|
+
"colors": {
|
|
28
|
+
"bug": "d73a4a",
|
|
29
|
+
"enhancement": "a2eeef",
|
|
30
|
+
"feature": "a2eeef",
|
|
31
|
+
"task": "0052cc",
|
|
32
|
+
"priority:low": "0e8a16",
|
|
33
|
+
"priority:medium": "fbca04",
|
|
34
|
+
"priority:high": "ff9f1c",
|
|
35
|
+
"priority:critical": "e11d48",
|
|
36
|
+
"severity:cosmetic": "c5def5",
|
|
37
|
+
"severity:minor": "0e8a16",
|
|
38
|
+
"severity:major": "ff9f1c",
|
|
39
|
+
"severity:blocking": "e11d48",
|
|
40
|
+
"🤖 in-progress": "1d76db",
|
|
41
|
+
"needs-reporter-review": "d4c5f9",
|
|
42
|
+
"needs-human": "d93f0b",
|
|
43
|
+
"shipflow-approved": "0e8a16",
|
|
44
|
+
"loop-proceed": "0e8a16",
|
|
45
|
+
"auto-qa": "5319e7"
|
|
46
|
+
},
|
|
47
|
+
"prefixColors": {
|
|
48
|
+
"category:": "5319e7"
|
|
49
|
+
},
|
|
50
|
+
"names": {
|
|
51
|
+
"inProgress": "🤖 in-progress",
|
|
52
|
+
"needsReporterReview": "needs-reporter-review",
|
|
53
|
+
"needsHuman": "needs-human",
|
|
54
|
+
"shipflowApproved": "shipflow-approved"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"markers": {
|
|
58
|
+
"$comment": "Hidden issue-lifecycle markers + the escalation-banner literals. `triaged` is stamped on every ShipFlow-created issue so the issues.opened webhook suppresses the redundant AI Issue Triage pass (server domain.IssueAutoTriagedMarker + CLI ghIssueCreate). `loop` marks loop-progress comments — matched by the server's needs-human auto-unblock, written by the loop per the skill contract. `escalationBannerEmoji` (🚧) is what the server matches with a LOOSE HasPrefix (legacy comments depend on it). `escalationBannerHeading` is the stricter prefix the CLI matches with startsWith AND the opening of the CLI's rendered banner; it MUST start with escalationBannerEmoji (parity-tested), so a CLI-posted banner always satisfies the server's loose match. Do NOT change these matching semantics — only the literals are single-sourced.",
|
|
59
|
+
"triaged": "<!-- shipflow:triaged -->",
|
|
60
|
+
"loop": "<!-- shipflow:loop -->",
|
|
61
|
+
"escalationBannerEmoji": "🚧",
|
|
62
|
+
"escalationBannerHeading": "🚧 **Needs a human**"
|
|
63
|
+
},
|
|
64
|
+
"readability": {
|
|
65
|
+
"$comment": "Deterministic message-readability cap shared across GitHub surfaces: any single line that renders UNFOLDED over this many words is dense prose, not a scannable point — its detail belongs in a folded section. Enforced by the server's readability.VisibleLineWordCap (PR review + triage rendering) and the CLI's ACTION_LINE_WORD_LIMIT (loop escalation lint). ~20-word sentences plus room for a code reference.",
|
|
66
|
+
"visibleLineWordCap": 30
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=shipflow-contract-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipflow-contract-data.js","sourceRoot":"","sources":["../src/shipflow-contract-data.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,8EAA8E;AAC9E,yDAAyD;AACzD,6EAA6E;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,iwCAAiwC;IAC7wC,SAAS,EAAE,CAAC;IACZ,eAAe,EAAE;QACf,UAAU,EAAE,0hBAA0hB;QACtiB,QAAQ,EAAE;YACR,cAAc;YACd,eAAe;YACf,aAAa;YACb,kBAAkB;YAClB,WAAW;YACX,gBAAgB;YAChB,kBAAkB;YAClB,iBAAiB;YACjB,WAAW;YACX,mBAAmB;YACnB,aAAa;YACb,aAAa;SACd;KACF;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,ynBAAynB;QACroB,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