@pasko70/pibo 1.4.1 → 1.4.2
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 +183 -183
- package/context/codex-base-prompt.md +148 -148
- package/context/compute-worker.md +23 -23
- package/context/pibo-compaction-prompt.md +100 -100
- package/context/pibo-native-tooling.md +18 -18
- package/context/pibo-system-prompt.md +77 -77
- package/dist/apps/chat/agent-store.js +82 -82
- package/dist/apps/chat/data/project-service.js +166 -166
- package/dist/apps/chat/data/read-state-service.js +18 -18
- package/dist/apps/chat/data/timeline-query-service.js +8 -8
- package/dist/apps/chat/model-catalog.js +5 -1
- package/dist/apps/chat/static-assets.js +853 -853
- package/dist/apps/chat/workflow-persistence.js +255 -255
- package/dist/apps/chat-ui/assets/{dist-7YaJd19a.js → dist-B2BEpL7n.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CiYeO8nN.js → dist-BAGS_xkV.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BIvPnn_C.js → dist-BAXNalar.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CjSI6y5z.js → dist-BwUvs6Ph.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-Ubstha8t.js → dist-C0zsJ8II.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-KXCMNKIL.js → dist-C3PnEkhb.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CVQU42Fn.js → dist-CYPL-B2Z.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BbNE72h8.js → dist-CiDSXgtg.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D7TCkoFT.js → dist-DnACFKyO.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-ChSZNqKE.js → dist-ZB1-ui2y.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-8Noo5eCN.js → dist-vKlxFkTa.js} +1 -1
- package/dist/apps/chat-ui/assets/{index-CmxtUVG1.js → index-0x7tuTNX.js} +3 -3
- package/dist/apps/chat-ui/assets/{index-C25VYnyb.css → index-B-qaya1G.css} +1 -1
- package/dist/apps/chat-ui/index.html +18 -18
- package/dist/apps/chat-ui/manifest.webmanifest +25 -25
- package/dist/apps/chat-ui/sw.js +41 -41
- package/dist/apps/chat-vscode-web/index.html +12 -12
- package/dist/apps/cli-ui/cliSessionsCommand.js +23 -23
- package/dist/apps/context-files-ui/index.html +11 -11
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/{pibo-vscode-ext-1.4.1.vsix → pibo-vscode-ext-1.4.2.vsix} +0 -0
- package/dist/bin/pibo.js +0 -0
- package/dist/bin/rg.js +0 -0
- package/dist/cli.js +35 -35
- package/dist/compute/cli.js +54 -54
- package/dist/core/runtime.js +2 -0
- package/dist/core/session-router.js +1 -0
- package/dist/cron/cli.js +15 -15
- package/dist/cron/store.js +49 -49
- package/dist/data/cli.js +23 -23
- package/dist/data/event-log.js +23 -23
- package/dist/data/message-store.js +20 -20
- package/dist/data/navigation-store.js +9 -9
- package/dist/data/observation-store.js +4 -4
- package/dist/data/payload-store.js +17 -17
- package/dist/data/schema.js +429 -429
- package/dist/data/session-store.js +4 -4
- package/dist/data/telemetry-queries.js +54 -54
- package/dist/data/telemetry.js +156 -156
- package/dist/debug/events.js +12 -12
- package/dist/debug/failures.js +6 -6
- package/dist/debug/index.js +207 -207
- package/dist/debug/messages.js +6 -6
- package/dist/debug/pty.js +124 -124
- package/dist/debug/session.js +29 -29
- package/dist/debug/tools.js +5 -5
- package/dist/debug/web-snapshot-browser-scripts.js +294 -294
- package/dist/debug/web-streaming-browser-library.js +925 -925
- package/dist/debug/web-streaming-browser-scripts.js +232 -232
- package/dist/debug/web-streaming-provider-telemetry.js +4 -4
- package/dist/debug/web.js +93 -93
- package/dist/gateway/cli.js +19 -19
- package/dist/mcp/config-command.js +53 -53
- package/dist/mcp/index.js +21 -21
- package/dist/mcp/registry.js +11 -11
- package/dist/pi-packages/cli.js +11 -11
- package/dist/plugins/context-files-store.js +110 -110
- package/dist/plugins/context-files.js +4 -4
- package/dist/providers/glm.js +59 -0
- package/dist/ralph/cli.js +18 -18
- package/dist/ralph/templates.js +140 -140
- package/dist/reliability/store.js +226 -226
- package/dist/sessions/pibo-data-store.js +16 -16
- package/dist/sessions/sqlite-store.js +53 -53
- package/dist/setup/cli.js +58 -58
- package/dist/tools/agent-browser-wrapper.js +80 -80
- package/dist/tools/browser-use-cdp.js +12 -12
- package/dist/tools/browser-use-wrapper.js +762 -762
- package/dist/tools/guides.js +455 -455
- package/dist/tools/index.js +99 -99
- package/dist/tools/runtime/node-worker-source.js +205 -205
- package/dist/tools/runtime/python-worker-source.js +177 -177
- package/dist/vscode/cli.js +9 -9
- package/dist/web-annotations/cdp.js +900 -900
- package/dist/web-annotations/store.js +96 -96
- package/docs/README.md +23 -23
- package/docs/ops/install-developer-host.md +112 -112
- package/docs/ops/install-user-host.md +96 -96
- package/docs/ops/upgrade-user-to-developer-host.md +69 -69
- package/docs/ops/vscode-extension-release.md +160 -160
- package/package.json +1 -1
- package/skills/builtin/pi-agent-harness/SKILL.md +319 -319
- package/skills/builtin/pi-agent-harness/agents/openai.yaml +4 -4
- package/skills/builtin/pibo-docker-system/SKILL.md +170 -170
- package/skills/builtin/pibo-spec-writing/SKILL.md +330 -330
- package/skills/builtin/prd/SKILL.md +143 -143
- package/skills/builtin/ralph-loop/SKILL.md +359 -359
- package/skills/builtin/ralph-prd-json/SKILL.md +123 -123
- package/skills/builtin/skill-creator/LICENSE.txt +201 -201
- package/skills/builtin/skill-creator/SKILL.md +513 -513
- package/skills/builtin/skill-creator/agents/analyzer.md +274 -274
- package/skills/builtin/skill-creator/agents/comparator.md +202 -202
- package/skills/builtin/skill-creator/agents/grader.md +223 -223
- package/skills/builtin/skill-creator/assets/eval_review.html +146 -146
- package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -471
- package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -1325
- package/skills/builtin/skill-creator/references/schemas.md +430 -430
- package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -401
- package/skills/builtin/skill-creator/scripts/generate_report.py +326 -326
- package/skills/builtin/skill-creator/scripts/improve_description.py +247 -247
- package/skills/builtin/skill-creator/scripts/package_skill.py +136 -136
- package/skills/builtin/skill-creator/scripts/quick_validate.py +102 -102
- package/skills/builtin/skill-creator/scripts/run_eval.py +310 -310
- package/skills/builtin/skill-creator/scripts/run_loop.py +328 -328
- package/skills/builtin/skill-creator/scripts/utils.py +47 -47
- package/skills/builtin/web-annotations/SKILL.md +93 -93
- package/src/mcp/LICENSE.mcp-cli +21 -21
- package/dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.3.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.4.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.5.vsix +0 -0
- package/dist/core/shared-app.js +0 -17
- package/dist/data/final-app-space-cutover-migration.js +0 -728
- package/dist/data/shared-app-migration.js +0 -757
- package/dist/session-ui/ownerViewModel.js +0 -27
- package/dist/shared-app.js +0 -4
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ralph-prd-json
|
|
3
|
-
description: Convert Markdown PRDs and feature specs into Ralph prd.json story batches. Use whenever the user asks to convert a PRD for Ralph, create Ralph JSON, split a PRD into executable stories, prepare PRD story files, or mentions prd.json for autonomous implementation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Ralph PRD JSON Converter
|
|
7
|
-
|
|
8
|
-
Convert existing PRDs, specs, or Markdown feature descriptions into the `prd.json` format Ralph can execute.
|
|
9
|
-
|
|
10
|
-
Use this skill for **PRD/story shaping**, not for creating or operating the Ralph job itself. For job creation, Docker worker reuse, worktrees, stop policies, and monitoring, use the `ralph-loop` skill.
|
|
11
|
-
|
|
12
|
-
## Output Format
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"project": "[Project Name]",
|
|
17
|
-
"branchName": "ralph/[feature-name-kebab-case]",
|
|
18
|
-
"description": "[Feature description from PRD title/intro]",
|
|
19
|
-
"userStories": [
|
|
20
|
-
{
|
|
21
|
-
"id": "US-001",
|
|
22
|
-
"title": "[Story title]",
|
|
23
|
-
"description": "As a [user], I want [feature] so that [benefit]",
|
|
24
|
-
"acceptanceCriteria": [
|
|
25
|
-
"Criterion 1",
|
|
26
|
-
"Criterion 2",
|
|
27
|
-
"Typecheck passes"
|
|
28
|
-
],
|
|
29
|
-
"priority": 1,
|
|
30
|
-
"passes": false,
|
|
31
|
-
"notes": ""
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Story Size Rule
|
|
38
|
-
|
|
39
|
-
Each story should fit in one Ralph iteration and one context window. Split broad requirements until each story has a focused implementation and verification path.
|
|
40
|
-
|
|
41
|
-
Good story sizes:
|
|
42
|
-
|
|
43
|
-
- Add a database column and migration.
|
|
44
|
-
- Add one CLI subcommand and tests.
|
|
45
|
-
- Add one service method plus focused tests.
|
|
46
|
-
- Add one UI component to an existing page.
|
|
47
|
-
|
|
48
|
-
Too large:
|
|
49
|
-
|
|
50
|
-
- Build the whole dashboard.
|
|
51
|
-
- Add the entire telemetry system.
|
|
52
|
-
- Refactor the API.
|
|
53
|
-
|
|
54
|
-
Rule of thumb: if the change cannot be described in 2 to 3 sentences, split it.
|
|
55
|
-
|
|
56
|
-
## Story Ordering
|
|
57
|
-
|
|
58
|
-
Order by dependencies:
|
|
59
|
-
|
|
60
|
-
1. Schema and migrations.
|
|
61
|
-
2. Store/service layer.
|
|
62
|
-
3. Runtime instrumentation or backend logic.
|
|
63
|
-
4. CLI/API/UI surfaces.
|
|
64
|
-
5. Docs and validation.
|
|
65
|
-
|
|
66
|
-
Earlier stories must not depend on later stories.
|
|
67
|
-
|
|
68
|
-
## Acceptance Criteria
|
|
69
|
-
|
|
70
|
-
Use criteria Ralph can verify.
|
|
71
|
-
|
|
72
|
-
Good:
|
|
73
|
-
|
|
74
|
-
- `Add telemetry_turns table with session, turn, status, timestamps, and retention fields`.
|
|
75
|
-
- `pibo debug telemetry stats --json returns counts by retention class`.
|
|
76
|
-
- `Focused tests pass`.
|
|
77
|
-
- `Typecheck passes`.
|
|
78
|
-
|
|
79
|
-
Bad:
|
|
80
|
-
|
|
81
|
-
- `Works correctly`.
|
|
82
|
-
- `Good UX`.
|
|
83
|
-
- `Handles everything`.
|
|
84
|
-
|
|
85
|
-
Always include `Typecheck passes`. Add `Tests pass` for logic. Add browser verification when a browser UI is affected, and PTY or interactive verification when a CLI/TUI flow is affected.
|
|
86
|
-
|
|
87
|
-
### Real-path criteria for user-facing work
|
|
88
|
-
|
|
89
|
-
For CLI, TUI, Web UI, gateway, auth, runtime, persistence, or agent-routing stories, include an acceptance criterion for the closest practical default user path. Keep it proportional: a small component may only need a render test, while a messaging or navigation feature should exercise the real command, route, API, or runtime path when feasible.
|
|
90
|
-
|
|
91
|
-
Fake sources, demo mode, mocks, and snapshots are good supporting evidence, but avoid making them the only evidence for behavior users will exercise directly. If the real path cannot be tested in the story, add an explicit criterion or note explaining why and what later story will cover it.
|
|
92
|
-
|
|
93
|
-
Name the observable result, not just the mechanism. Prefer criteria like:
|
|
94
|
-
|
|
95
|
-
- `Running pibo tui:sessions without --demo can create/select a session, send a message through the real router, and show an assistant reply`.
|
|
96
|
-
- `The agent picker lists custom agents from the canonical custom-agent store, including an existing pibo-agent fixture or documented local equivalent`.
|
|
97
|
-
- `Opening /sessions/<id> in the worker Web UI shows the session created by the CLI flow`.
|
|
98
|
-
|
|
99
|
-
### Evidence notes
|
|
100
|
-
|
|
101
|
-
When a story is marked `passes: true`, notes should record the concrete evidence: commands run, whether the path was fake/demo/real, browser or PTY checks performed, and any manual observation. `Tests pass` alone is not enough for user-facing integration stories.
|
|
102
|
-
|
|
103
|
-
## Conversion Rules
|
|
104
|
-
|
|
105
|
-
1. One user story per JSON entry.
|
|
106
|
-
2. IDs are sequential, e.g. `US-001`.
|
|
107
|
-
3. Priority follows dependency order, then document order.
|
|
108
|
-
4. New stories start with `passes: false` and empty `notes`.
|
|
109
|
-
5. `branchName` is kebab-case and prefixed with `ralph/`.
|
|
110
|
-
6. Keep stories independent enough that Ralph can commit after each story or coherent group.
|
|
111
|
-
|
|
112
|
-
## Checklist Before Saving
|
|
113
|
-
|
|
114
|
-
- [ ] Stories fit one iteration.
|
|
115
|
-
- [ ] Stories are ordered by dependency.
|
|
116
|
-
- [ ] Acceptance criteria are verifiable.
|
|
117
|
-
- [ ] Every story has `Typecheck passes`.
|
|
118
|
-
- [ ] Logic stories include `Tests pass`.
|
|
119
|
-
- [ ] UI stories include browser verification when a browser surface is affected.
|
|
120
|
-
- [ ] CLI/TUI stories include PTY or interactive validation when the interactive path is in scope and feasible.
|
|
121
|
-
- [ ] User-facing integration stories include a real/default-path check or an explicit reason it is deferred.
|
|
122
|
-
- [ ] Fake/demo/mocked checks are not the only evidence for default-path behavior unless documented as a deliberate limitation.
|
|
123
|
-
- [ ] No story depends on a later story.
|
|
1
|
+
---
|
|
2
|
+
name: ralph-prd-json
|
|
3
|
+
description: Convert Markdown PRDs and feature specs into Ralph prd.json story batches. Use whenever the user asks to convert a PRD for Ralph, create Ralph JSON, split a PRD into executable stories, prepare PRD story files, or mentions prd.json for autonomous implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ralph PRD JSON Converter
|
|
7
|
+
|
|
8
|
+
Convert existing PRDs, specs, or Markdown feature descriptions into the `prd.json` format Ralph can execute.
|
|
9
|
+
|
|
10
|
+
Use this skill for **PRD/story shaping**, not for creating or operating the Ralph job itself. For job creation, Docker worker reuse, worktrees, stop policies, and monitoring, use the `ralph-loop` skill.
|
|
11
|
+
|
|
12
|
+
## Output Format
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"project": "[Project Name]",
|
|
17
|
+
"branchName": "ralph/[feature-name-kebab-case]",
|
|
18
|
+
"description": "[Feature description from PRD title/intro]",
|
|
19
|
+
"userStories": [
|
|
20
|
+
{
|
|
21
|
+
"id": "US-001",
|
|
22
|
+
"title": "[Story title]",
|
|
23
|
+
"description": "As a [user], I want [feature] so that [benefit]",
|
|
24
|
+
"acceptanceCriteria": [
|
|
25
|
+
"Criterion 1",
|
|
26
|
+
"Criterion 2",
|
|
27
|
+
"Typecheck passes"
|
|
28
|
+
],
|
|
29
|
+
"priority": 1,
|
|
30
|
+
"passes": false,
|
|
31
|
+
"notes": ""
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Story Size Rule
|
|
38
|
+
|
|
39
|
+
Each story should fit in one Ralph iteration and one context window. Split broad requirements until each story has a focused implementation and verification path.
|
|
40
|
+
|
|
41
|
+
Good story sizes:
|
|
42
|
+
|
|
43
|
+
- Add a database column and migration.
|
|
44
|
+
- Add one CLI subcommand and tests.
|
|
45
|
+
- Add one service method plus focused tests.
|
|
46
|
+
- Add one UI component to an existing page.
|
|
47
|
+
|
|
48
|
+
Too large:
|
|
49
|
+
|
|
50
|
+
- Build the whole dashboard.
|
|
51
|
+
- Add the entire telemetry system.
|
|
52
|
+
- Refactor the API.
|
|
53
|
+
|
|
54
|
+
Rule of thumb: if the change cannot be described in 2 to 3 sentences, split it.
|
|
55
|
+
|
|
56
|
+
## Story Ordering
|
|
57
|
+
|
|
58
|
+
Order by dependencies:
|
|
59
|
+
|
|
60
|
+
1. Schema and migrations.
|
|
61
|
+
2. Store/service layer.
|
|
62
|
+
3. Runtime instrumentation or backend logic.
|
|
63
|
+
4. CLI/API/UI surfaces.
|
|
64
|
+
5. Docs and validation.
|
|
65
|
+
|
|
66
|
+
Earlier stories must not depend on later stories.
|
|
67
|
+
|
|
68
|
+
## Acceptance Criteria
|
|
69
|
+
|
|
70
|
+
Use criteria Ralph can verify.
|
|
71
|
+
|
|
72
|
+
Good:
|
|
73
|
+
|
|
74
|
+
- `Add telemetry_turns table with session, turn, status, timestamps, and retention fields`.
|
|
75
|
+
- `pibo debug telemetry stats --json returns counts by retention class`.
|
|
76
|
+
- `Focused tests pass`.
|
|
77
|
+
- `Typecheck passes`.
|
|
78
|
+
|
|
79
|
+
Bad:
|
|
80
|
+
|
|
81
|
+
- `Works correctly`.
|
|
82
|
+
- `Good UX`.
|
|
83
|
+
- `Handles everything`.
|
|
84
|
+
|
|
85
|
+
Always include `Typecheck passes`. Add `Tests pass` for logic. Add browser verification when a browser UI is affected, and PTY or interactive verification when a CLI/TUI flow is affected.
|
|
86
|
+
|
|
87
|
+
### Real-path criteria for user-facing work
|
|
88
|
+
|
|
89
|
+
For CLI, TUI, Web UI, gateway, auth, runtime, persistence, or agent-routing stories, include an acceptance criterion for the closest practical default user path. Keep it proportional: a small component may only need a render test, while a messaging or navigation feature should exercise the real command, route, API, or runtime path when feasible.
|
|
90
|
+
|
|
91
|
+
Fake sources, demo mode, mocks, and snapshots are good supporting evidence, but avoid making them the only evidence for behavior users will exercise directly. If the real path cannot be tested in the story, add an explicit criterion or note explaining why and what later story will cover it.
|
|
92
|
+
|
|
93
|
+
Name the observable result, not just the mechanism. Prefer criteria like:
|
|
94
|
+
|
|
95
|
+
- `Running pibo tui:sessions without --demo can create/select a session, send a message through the real router, and show an assistant reply`.
|
|
96
|
+
- `The agent picker lists custom agents from the canonical custom-agent store, including an existing pibo-agent fixture or documented local equivalent`.
|
|
97
|
+
- `Opening /sessions/<id> in the worker Web UI shows the session created by the CLI flow`.
|
|
98
|
+
|
|
99
|
+
### Evidence notes
|
|
100
|
+
|
|
101
|
+
When a story is marked `passes: true`, notes should record the concrete evidence: commands run, whether the path was fake/demo/real, browser or PTY checks performed, and any manual observation. `Tests pass` alone is not enough for user-facing integration stories.
|
|
102
|
+
|
|
103
|
+
## Conversion Rules
|
|
104
|
+
|
|
105
|
+
1. One user story per JSON entry.
|
|
106
|
+
2. IDs are sequential, e.g. `US-001`.
|
|
107
|
+
3. Priority follows dependency order, then document order.
|
|
108
|
+
4. New stories start with `passes: false` and empty `notes`.
|
|
109
|
+
5. `branchName` is kebab-case and prefixed with `ralph/`.
|
|
110
|
+
6. Keep stories independent enough that Ralph can commit after each story or coherent group.
|
|
111
|
+
|
|
112
|
+
## Checklist Before Saving
|
|
113
|
+
|
|
114
|
+
- [ ] Stories fit one iteration.
|
|
115
|
+
- [ ] Stories are ordered by dependency.
|
|
116
|
+
- [ ] Acceptance criteria are verifiable.
|
|
117
|
+
- [ ] Every story has `Typecheck passes`.
|
|
118
|
+
- [ ] Logic stories include `Tests pass`.
|
|
119
|
+
- [ ] UI stories include browser verification when a browser surface is affected.
|
|
120
|
+
- [ ] CLI/TUI stories include PTY or interactive validation when the interactive path is in scope and feasible.
|
|
121
|
+
- [ ] User-facing integration stories include a real/default-path check or an explicit reason it is deferred.
|
|
122
|
+
- [ ] Fake/demo/mocked checks are not the only evidence for default-path behavior unless documented as a deliberate limitation.
|
|
123
|
+
- [ ] No story depends on a later story.
|