vouchington-tooling 3.0.2 → 3.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.
Files changed (41) hide show
  1. package/dist/agent-blackboard/feedback-delivery.d.mts +11 -4
  2. package/dist/agent-blackboard/feedback-delivery.mjs +22 -5
  3. package/dist/agent-blackboard/feedback-failure-parse.d.mts +3 -0
  4. package/dist/agent-blackboard/feedback-failure-parse.mjs +39 -0
  5. package/dist/agent-blackboard/feedback-failure.d.mts +32 -0
  6. package/dist/agent-blackboard/feedback-failure.mjs +48 -0
  7. package/dist/agent-blackboard/feedback-online-error.d.mts +5 -1
  8. package/dist/agent-blackboard/feedback-online-error.mjs +8 -1
  9. package/dist/agent-blackboard/feedback-online.mjs +3 -2
  10. package/dist/agent-blackboard/feedback-outbox-failure.d.mts +16 -0
  11. package/dist/agent-blackboard/feedback-outbox-failure.mjs +41 -0
  12. package/dist/agent-blackboard/feedback-outbox-read.d.mts +11 -0
  13. package/dist/agent-blackboard/feedback-outbox-read.mjs +33 -0
  14. package/dist/agent-blackboard/feedback-outbox-rejected.d.mts +14 -5
  15. package/dist/agent-blackboard/feedback-outbox-rejected.mjs +45 -19
  16. package/dist/agent-blackboard/feedback-outbox-write.d.mts +2 -0
  17. package/dist/agent-blackboard/feedback-outbox-write.mjs +26 -0
  18. package/dist/agent-blackboard/feedback-outbox.d.mts +2 -7
  19. package/dist/agent-blackboard/feedback-outbox.mjs +7 -52
  20. package/dist/agent-blackboard/feedback-types.d.mts +1 -1
  21. package/dist/agent-blackboard/index.d.mts +2 -0
  22. package/dist/agent-blackboard/index.mjs +2 -0
  23. package/dist/mcp-server/dispatch.mjs +3 -1
  24. package/dist/mcp-server/handlers-outbox.d.mts +1 -0
  25. package/dist/mcp-server/handlers-outbox.mjs +31 -2
  26. package/dist/mcp-server/tools-outbox.d.mts +2 -0
  27. package/dist/mcp-server/tools-outbox.mjs +31 -0
  28. package/dist/mcp-server/tools.mjs +2 -8
  29. package/docs/mcp-server.md +28 -15
  30. package/package.json +1 -1
  31. package/scripts/__pycache__/run_bounded_process.cpython-314.pyc +0 -0
  32. package/skills/blackboard/SKILL.md +10 -1
  33. package/skills/manifest.json +9 -9
  34. package/skills/retrospective-distill/SKILL.md +3 -1
  35. package/skills/triage-loop/SKILL.md +84 -101
  36. package/skills/triage-loop/references/config.md +98 -0
  37. package/skills/triage-loop/scripts/state.py +286 -0
  38. package/skills/triage-loop/scripts/wait.py +88 -0
  39. package/skills/triage-prs/SKILL.md +6 -3
  40. package/skills/triage-sweep/SKILL.md +41 -50
  41. package/skills/triage-sweep/references/dependency-update-check.md +84 -0
@@ -0,0 +1,84 @@
1
+ # Dependency-bot update check
2
+
3
+ GitHub exposes no REST endpoint for Dependabot's "Check for updates" button, so the sweep uses the
4
+ host browser with as few actions as possible and no clicks. Keep the bot's open-PR limit at the
5
+ configured `dependencyBot.openPullRequestLimit`; never propose raising it.
6
+
7
+ ## Targets
8
+
9
+ Request a check for every repository and ecosystem whose dependency-bot PRs merged this tick or
10
+ sweep (merges free slots), and for every repository with none open. Batch all of them into one
11
+ browser call.
12
+
13
+ ## Steps
14
+
15
+ 1. Read the host's open tabs, then open one tab on `https://github.com/<org>` (signed in, same
16
+ origin, so the page's session and each form's own CSRF token are used).
17
+ 2. Copy the script below, set `ORG` to the configured `org` and `TARGETS` to the target
18
+ repositories (repository name to `null` for every ecosystem, or a list of ecosystem names such
19
+ as `['npm']`), and pass it as the text of ONE call to the host's in-page JavaScript tool.
20
+ 3. It fetches each repository's update configs, skips those already running or queued, POSTs each
21
+ remaining "Check for updates" form, and returns one line per config ending in the newest job
22
+ status. Expect `Running now`.
23
+ 4. Close the tab and record `update check requested` per repository in the summary.
24
+
25
+ A `NO FORM` line, or a POST that does not reach `Running now`, falls back to clicking that config's
26
+ `network/updates/<id>/jobs` button. If that fails too, or no browser or JavaScript tool is
27
+ available, list the repository in the summary.
28
+
29
+ ## Script
30
+
31
+ Set `DRY = true` to report what it would trigger without posting.
32
+
33
+ ```js
34
+ const ORG = 'example-org'
35
+ const TARGETS = { 'example-repo': null }
36
+ const DRY = false
37
+
38
+ const P = new DOMParser()
39
+ const page = async (u) => P.parseFromString(await (await fetch(u)).text(), 'text/html')
40
+ const out = []
41
+ for (const [repo, ecos] of Object.entries(TARGETS)) {
42
+ const list = await (await fetch(`/${ORG}/${repo}/network/updates`)).text()
43
+ const ids = [...new Set([...list.matchAll(/network\/updates\/(\d+)\/jobs/g)].map((m) => m[1]))]
44
+ if (!ids.length) {
45
+ out.push(`${repo}: no update configs (signed out or no access?)`)
46
+ continue
47
+ }
48
+ for (const id of ids) {
49
+ const url = `/${ORG}/${repo}/network/updates/${id}/jobs`
50
+ const doc = await page(url)
51
+ const main = doc.querySelector('main')?.innerText ?? ''
52
+ const eco = (main.match(/Export SBOM\s+(\S+)/) || [])[1] ?? '?'
53
+ const file = (main.match(/Export SBOM\s+\S+\s+(\S+)/) || [])[1] ?? ''
54
+ if (ecos && !ecos.includes(eco)) continue
55
+ const label = `${repo} ${eco} ${file} [${id}]`
56
+ const recent = (main.split('Recent jobs')[1] ?? '').replace(/\s+/g, ' ').trim()
57
+ if (/^\S+ update \d+ (Running now|Queued)/.test(recent)) {
58
+ out.push(`${label}: already running`)
59
+ continue
60
+ }
61
+ const form = [...doc.querySelectorAll('form')].find((f) =>
62
+ /Check for updates/.test(f.textContent),
63
+ )
64
+ if (!form) {
65
+ out.push(`${label}: NO FORM (no permission or UI changed)`)
66
+ continue
67
+ }
68
+ if (DRY) {
69
+ out.push(`${label}: would trigger`)
70
+ continue
71
+ }
72
+ const res = await fetch(form.getAttribute('action'), {
73
+ method: 'POST',
74
+ body: new FormData(form),
75
+ headers: { Accept: 'text/html' },
76
+ })
77
+ const after = ((await page(url)).querySelector('main')?.innerText.split('Recent jobs')[1] ?? '')
78
+ .replace(/\s+/g, ' ')
79
+ .trim()
80
+ out.push(`${label}: POST ${res.status} -> ${after.slice(0, 60)}`)
81
+ }
82
+ }
83
+ out.join('\n')
84
+ ```