patchwork-os 0.2.0-beta.13.canary.264 → 0.2.0-beta.13.canary.266

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchwork-os",
3
- "version": "0.2.0-beta.13.canary.264",
3
+ "version": "0.2.0-beta.13.canary.266",
4
4
  "description": "Your personal AI runtime, local-first. Patchwork OS gives any AI model a consistent set of tools, YAML recipes, a delegation policy with approval queue, and a durable trace memory — all on your machine, all under your policy.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,33 @@
1
+ # yaml-language-server: $schema=https://patchwork.dev/schemas/recipe.v1.json
2
+ # Body for the Dependency Upkeep Worker
3
+ # (templates/workers/dependency-upkeep.worker.yaml). Weekly cron — reviews the
4
+ # open dependency-update PRs rather than opening them (autonomyCeiling L3: a
5
+ # human still merges).
6
+ apiVersion: patchwork.sh/v1
7
+ name: dependency-bump
8
+ description: Weekly — list open dependency-update PRs and summarize which look safe to merge.
9
+ trigger:
10
+ type: cron
11
+ at: "0 9 * * MON"
12
+ steps:
13
+ - tool: github.list_prs
14
+ max: 30
15
+ into: prs
16
+ - agent:
17
+ prompt: |
18
+ Open pull requests:
19
+ {{prs}}
20
+
21
+ Identify the dependency-update PRs (dependabot / renovate / "bump …"
22
+ titles). For each, note the package, the version jump (patch / minor /
23
+ major), and a recommendation: SAFE to merge (patch/minor with green CI)
24
+ or NEEDS REVIEW (major, or a security-sensitive dependency). Output a
25
+ short markdown table; if there are none, say "No dependency PRs open."
26
+ driver: claude-code
27
+ into: review
28
+ - tool: file.write
29
+ path: ~/.patchwork/inbox/dependency-review-{{date}}.md
30
+ content: |
31
+ # Dependency PR review — {{date}}
32
+
33
+ {{review}}
@@ -0,0 +1,30 @@
1
+ # yaml-language-server: $schema=https://patchwork.dev/schemas/recipe.v1.json
2
+ # Body for the Release Worker (templates/workers/release-notes.worker.yaml).
3
+ # Self-waking on every commit (git_hook → onGitCommit, wired in #1016/#1018).
4
+ apiVersion: patchwork.sh/v1
5
+ name: release-notes
6
+ description: After a commit lands, draft a changelog entry from the new commits into the inbox.
7
+ trigger:
8
+ type: git_hook
9
+ event: post-commit
10
+ steps:
11
+ - tool: git.log_since
12
+ since: 24h
13
+ into: commits
14
+ - agent:
15
+ prompt: |
16
+ New commits landed in the last 24h:
17
+ {{commits}}
18
+
19
+ Write a concise changelog entry as a markdown bullet list — one line per
20
+ user-facing change, grouped under feat / fix / chore. Omit pure noise
21
+ (merge commits, formatting-only). If nothing is user-facing, say so.
22
+ # subprocess `claude -p` under your existing subscription (no API key)
23
+ driver: claude-code
24
+ into: notes
25
+ - tool: file.write
26
+ path: ~/.patchwork/inbox/release-notes-{{date}}.md
27
+ content: |
28
+ # Release notes draft — {{date}}
29
+
30
+ {{notes}}
@@ -0,0 +1,38 @@
1
+ # yaml-language-server: $schema=https://patchwork.dev/schemas/recipe.v1.json
2
+ # Body for the Test Guardian Worker
3
+ # (templates/workers/test-guardian.worker.yaml). Self-waking on a FAILING test
4
+ # run (on_test_run.filter: failure). Correlates the failure with recent commits
5
+ # and writes a triage note — richer than the plain watch-failing-tests recipe.
6
+ apiVersion: patchwork.sh/v1
7
+ name: triage-failing-tests
8
+ description: On a failing test run, correlate the failure with recent commits and write a triage note.
9
+ trigger:
10
+ type: on_test_run
11
+ filter: failure
12
+ steps:
13
+ - tool: git.log_since
14
+ since: 12h
15
+ into: recent
16
+ - agent:
17
+ prompt: |
18
+ Tests just failed. Runner: {{runner}}. Failed {{failed}} / {{total}}.
19
+
20
+ Failures:
21
+ {{failures}}
22
+
23
+ Recent commits (last 12h) that may be responsible:
24
+ {{recent}}
25
+
26
+ Write a triage note (≤5 sentences): (1) which test(s) failed, (2) the
27
+ single most likely cause, (3) the suspect commit if any, (4) the first
28
+ command to run to confirm.
29
+ driver: claude-code
30
+ into: triage
31
+ - tool: file.write
32
+ path: ~/.patchwork/inbox/test-triage-{{date}}-{{time}}.md
33
+ content: |
34
+ # Test triage — {{date}} {{time}}
35
+
36
+ Runner {{runner}} · failed {{failed}}/{{total}}
37
+
38
+ {{triage}}