@gtheys/pi-flow 0.0.0-stage → 0.2.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 +833 -2
- package/adhoc/tracker.ts +360 -0
- package/aven/client.ts +996 -0
- package/aven/status.ts +395 -0
- package/brainstorm/args.ts +24 -0
- package/brainstorm/artifact.ts +67 -0
- package/brainstorm/paths.ts +43 -0
- package/brainstorm/prompt.ts +172 -0
- package/brainstorm/refs.ts +41 -0
- package/config.schema.json +161 -0
- package/config.ts +577 -0
- package/feedback/args.ts +21 -0
- package/feedback/prompt.ts +177 -0
- package/feedback/triage.ts +88 -0
- package/flow/agent-role.ts +46 -0
- package/flow/answer-wake.ts +212 -0
- package/flow/answer.ts +183 -0
- package/flow/args.ts +48 -0
- package/flow/ask-emitter.ts +331 -0
- package/flow/attribution.ts +145 -0
- package/flow/aven-resolve-exec.ts +95 -0
- package/flow/aven-resolve.ts +80 -0
- package/flow/awaiting-approval.ts +32 -0
- package/flow/binding-heal.ts +68 -0
- package/flow/cost-autopush.ts +162 -0
- package/flow/cost-command.ts +122 -0
- package/flow/cost-rows-journal.ts +296 -0
- package/flow/cost-rows-push.ts +112 -0
- package/flow/cost-rows-rows.ts +209 -0
- package/flow/cost-rows.ts +228 -0
- package/flow/cost.ts +173 -0
- package/flow/durable-refs.ts +287 -0
- package/flow/effect-gate.ts +137 -0
- package/flow/ensure-labels.ts +44 -0
- package/flow/frame.ts +172 -0
- package/flow/gates.ts +211 -0
- package/flow/jira-ref.ts +212 -0
- package/flow/label-gate.ts +149 -0
- package/flow/land-gate.ts +98 -0
- package/flow/lifecycle-policy.ts +162 -0
- package/flow/live-wait.ts +52 -0
- package/flow/liveness.ts +408 -0
- package/flow/loop-deps.ts +210 -0
- package/flow/loop-settle.ts +531 -0
- package/flow/loop.ts +437 -0
- package/flow/orchestrate.ts +45 -0
- package/flow/phase-command.ts +287 -0
- package/flow/phase-emoji.ts +13 -0
- package/flow/phase-prompts.ts +251 -0
- package/flow/picker.ts +307 -0
- package/flow/push.ts +475 -0
- package/flow/reconcile-command.ts +253 -0
- package/flow/reconcile-deps.ts +329 -0
- package/flow/reconcile.ts +738 -0
- package/flow/ref-kind.ts +80 -0
- package/flow/resume-picker.ts +222 -0
- package/flow/resume.ts +116 -0
- package/flow/run-health.ts +252 -0
- package/flow/run-liveness.ts +33 -0
- package/flow/state-metrics.ts +559 -0
- package/flow/status.ts +105 -0
- package/flow/step-output.ts +416 -0
- package/flow/steps.ts +73 -0
- package/flow/terminal-purge.ts +281 -0
- package/flow/turn-generation.ts +19 -0
- package/flow/v2-emission.ts +381 -0
- package/flow/v2-resume.ts +100 -0
- package/flow/vocabulary.ts +261 -0
- package/flow/widget.ts +448 -0
- package/flow/worktree-context.ts +136 -0
- package/flow-diagram/assemble.ts +27 -0
- package/flow-diagram/command.ts +252 -0
- package/flow-diagram/translate.ts +862 -0
- package/flow-diagram/vendor/harness-profiler/LICENSE +21 -0
- package/flow-diagram/vendor/harness-profiler/PIN.md +64 -0
- package/flow-diagram/vendor/harness-profiler/hp.js +960 -0
- package/flow-diagram/vendor/harness-profiler/load.ts +66 -0
- package/flow-diagram/vendor/harness-profiler/view.html +436 -0
- package/gates.ts +20 -0
- package/herdr/sync.ts +355 -0
- package/herdr/viewer.ts +432 -0
- package/implement/args.ts +21 -0
- package/implement/prompt.ts +98 -0
- package/implement/retry.ts +57 -0
- package/implement/routing.ts +31 -0
- package/index.ts +3206 -0
- package/mode-profile.ts +56 -0
- package/package.json +205 -4
- package/phase-state.ts +18 -0
- package/plan/args.ts +20 -0
- package/plan/prompt.ts +251 -0
- package/plan/size-check.ts +46 -0
- package/plan-tools/helpers.ts +177 -0
- package/plan-tools/jira-branch-tool.ts +54 -0
- package/plan-tools/jira-branch.ts +109 -0
- package/plan-tools/jira-issue.ts +85 -0
- package/plan-tools/resolve-feature-path.ts +30 -0
- package/plan-tools/resolve-notes-path.ts +37 -0
- package/plan-tools/resolve-spec-path.ts +31 -0
- package/pr-quality/index.ts +908 -0
- package/review/LICENSE +19 -0
- package/review/deviation.ts +252 -0
- package/review/review.ts +3053 -0
- package/review/sem-guidance.d.mts +8 -0
- package/review/sem-guidance.mjs +89 -0
- package/review/verdict.ts +13 -0
- package/run-state.ts +2046 -0
- package/run-title.ts +91 -0
- package/server/consumer.ts +146 -0
- package/server/daemon.ts +1094 -0
- package/server/lifecycle.ts +679 -0
- package/server/pending.ts +267 -0
- package/server/staleness.ts +320 -0
- package/server/writer.ts +86 -0
- package/shared/diff-base.ts +138 -0
- package/shared/flow-base.ts +210 -0
- package/shared/sonarqube-utils.ts +415 -0
- package/shared/stable-range.ts +102 -0
- package/slugify.ts +13 -0
- package/sonarqube/sonarqube.ts +821 -0
- package/spec-review/approve.ts +91 -0
- package/spec-review/args.ts +21 -0
- package/spec-review/aven-spec.ts +142 -0
- package/spec-review/commands.ts +336 -0
- package/spec-review/escape-regexp.ts +7 -0
- package/spec-review/open-in-pane.ts +166 -0
- package/spec-review/picker.ts +74 -0
- package/spec-review/prompt.ts +72 -0
- package/spec-review/publish-args.ts +33 -0
- package/spec-review/publish.ts +210 -0
- package/telemetry/attributes.ts +118 -0
- package/telemetry/content.ts +140 -0
- package/telemetry/dispatch.ts +521 -0
- package/telemetry/exporter.ts +124 -0
- package/telemetry/index.ts +776 -0
- package/telemetry/loki.ts +224 -0
- package/tools/code-review-parse.ts +518 -0
- package/tools/code-review.ts +312 -0
- package/tools/deviation.ts +737 -0
- package/tools/flow-submit.ts +302 -0
- package/tools/land.ts +608 -0
- package/tools/phase-complete.ts +476 -0
- package/tools/result.ts +18 -0
- package/tools/review-deps.ts +44 -0
- package/tools/run-attempt.ts +312 -0
- package/tools/spec-approve.ts +265 -0
- package/validate/args.ts +22 -0
- package/validate/deviation-gate.ts +229 -0
- package/validate/gate-target.ts +371 -0
- package/validate/gate.ts +79 -0
- package/validate/paths.ts +20 -0
- package/validate/personal.ts +104 -0
- package/validate/prompt.ts +525 -0
- package/validate/review-gate.ts +134 -0
- package/validate/subtask-range.ts +113 -0
- package/work-mode.ts +19 -0
- package/worktree/bootstrap.ts +243 -0
- package/worktree/branch.ts +168 -0
- package/worktree/herdr.ts +447 -0
- package/worktree/index.ts +1447 -0
- package/worktree/orphan.ts +384 -0
- package/worktree/remove-guards.ts +99 -0
- package/worktree/residue.ts +216 -0
- package/worktree/sweep.ts +526 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aleksandr Furmanov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Vendored: harness-profiler renderer
|
|
2
|
+
|
|
3
|
+
Provenance and checksums for the vendored harness-profiler flow-timeline
|
|
4
|
+
renderer used by `/flow-diagram`.
|
|
5
|
+
|
|
6
|
+
## Source
|
|
7
|
+
|
|
8
|
+
- Upstream repo: https://github.com/afurmanov/harness-profiler
|
|
9
|
+
- Tag: `v0.2.2` (tree `847bd8f`)
|
|
10
|
+
- Fetch date: 2026-11-20
|
|
11
|
+
- License: MIT (see `LICENSE`)
|
|
12
|
+
|
|
13
|
+
## Files & checksums (sha256)
|
|
14
|
+
|
|
15
|
+
| File | sha256 |
|
|
16
|
+
| --------- | ----------------------------------------------------------------- |
|
|
17
|
+
| `hp.js` | `acebfb79e9a8cb6a5d5143f06b181e5ed9904509fdd872420cd7b7b4fbda1532` |
|
|
18
|
+
| `view.html` (forked) | `48eafbe04887d8d5275730b73511a16bb4b9e20b6897d2352eb43f42faa9ffeb` |
|
|
19
|
+
| `LICENSE` | `0a83841ebb1c6be2a20e69d89ffe8f63a0c82ef22c9caeeb1af7b7e3e99392cd` |
|
|
20
|
+
|
|
21
|
+
## view.html fork (PMR-57HF)
|
|
22
|
+
|
|
23
|
+
`view.html` is the **only sanctioned modification surface** in this vendor
|
|
24
|
+
directory (`hp.js` stays byte-identical to upstream; checksum-enforced).
|
|
25
|
+
|
|
26
|
+
- Fork base: pristine upstream `view.html` at `v0.2.2`, sha256
|
|
27
|
+
`b966a68ec83e4babecb4a2d58bc6ff5f9ab58aecba57df9b60f826191ed5f595`.
|
|
28
|
+
- Forked sha256 (current, pinned in `test/vendor.test.ts` as
|
|
29
|
+
`PINNED_VIEW_HTML_SHA256`):
|
|
30
|
+
`48eafbe04887d8d5275730b73511a16bb4b9e20b6897d2352eb43f42faa9ffeb`.
|
|
31
|
+
- Why: `/flow-diagram` renders a per-ticket header band (ticket ref,
|
|
32
|
+
trackRef/mode, run k of N, phase durations, commits per subtask,
|
|
33
|
+
unattributed commits, PR url, generated-at) above the diagram. Upstream
|
|
34
|
+
has one data slot (`/*DATA*/null`); the fork adds a second slot so
|
|
35
|
+
`assemble.ts` can inject the header after `renderHtml` without touching
|
|
36
|
+
`hp.js`.
|
|
37
|
+
- Diff (all edits wrapped in `<!-- pi-flow fork: ... -->` comments so the
|
|
38
|
+
upstream diff is auditable; removed wholesale on re-vendor):
|
|
39
|
+
1. A second `<style>` block before `</head>` with `#flow-header` CSS.
|
|
40
|
+
2. `<div id="flow-header" hidden></div>` after the `#subline` div (above
|
|
41
|
+
the diagram).
|
|
42
|
+
3. A `<script>` addition before `</body>`: `const FLOW_HEADER =
|
|
43
|
+
/*FLOW_HEADER*/null;` slot plus a vanilla `renderFlowHeader()` that
|
|
44
|
+
fills the band; absent fields are skipped, never blank rows. The slot
|
|
45
|
+
literal is replaced by `assemble.ts` with `<`-escaped JSON (same
|
|
46
|
+
technique as `hp.js`'s DATA slot replacement).
|
|
47
|
+
4. (PMR-BRSV) the `pr` row applies a scheme allowlist: only `http(s)`
|
|
48
|
+
URLs render as an `<a href>`; any other scheme renders as escaped
|
|
49
|
+
plain text so a crafted journal prUrl can never execute on click.
|
|
50
|
+
|
|
51
|
+
## Re-vendoring
|
|
52
|
+
|
|
53
|
+
1. Re-fetch the files from the desired upstream tag (same raw URLs, new tag).
|
|
54
|
+
2. Recompute sha256 (`shasum -a 256 hp.js view.html LICENSE`).
|
|
55
|
+
3. Update the checksum table above **and** the pinned constants in
|
|
56
|
+
`packages/pi-flow/test/vendor.test.ts` (`PINNED_HP_JS_SHA256`, and
|
|
57
|
+
`PINNED_VIEW_HTML_SHA256` after re-applying the fork below) together.
|
|
58
|
+
4. Re-apply the view.html fork (see the "view.html fork" section above),
|
|
59
|
+
recompute the forked sha256, and update the `view.html` row +
|
|
60
|
+
`PINNED_VIEW_HTML_SHA256`.
|
|
61
|
+
5. Run `cd packages/pi-flow && npm test` — the vendor tests must pass.
|
|
62
|
+
|
|
63
|
+
MIT License — Copyright (c) 2026 Aleksandr Furmanov. See `LICENSE` for the
|
|
64
|
+
full license text.
|