@hybridlabor-api/aos 4.13.2 → 4.14.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 (150) hide show
  1. package/.agents/AGENTS.md +8 -0
  2. package/.agents/nodes.json +5 -2
  3. package/.claude/hooks/conventional-commits.mjs +14 -15
  4. package/.claude/hooks/env-file-protection.mjs +14 -15
  5. package/.claude/hooks/go-gate.mjs +152 -10
  6. package/.claude/hooks/go-token.mjs +55 -0
  7. package/.claude/hooks/memb-inject.mjs +75 -62
  8. package/.claude/hooks/trail-autostart.mjs +27 -0
  9. package/.claude/settings.json +18 -0
  10. package/.claude/workflows/startcycle-dispatch.mjs +11 -4
  11. package/.opencode/plugins/bdb-aos.js +98 -121
  12. package/.opencode/plugins/lib/trail-autostart.js +38 -0
  13. package/CLAUDE.md +1 -1
  14. package/README.de.md +6 -6
  15. package/README.md +6 -6
  16. package/README.pt.md +6 -6
  17. package/THIRD_PARTY_NOTICES.md +19 -3
  18. package/assets/header-v5.png +0 -0
  19. package/bin/aos-acp.mjs +211 -0
  20. package/bin/aos-doctor.mjs +1 -1
  21. package/bin/aos-uninstall.mjs +2 -2
  22. package/docs/master-session-acp.md +51 -0
  23. package/installer.js +252 -35
  24. package/mcps/mcsc/packages/mcp/server.js +6 -7
  25. package/package.json +4 -3
  26. package/scripts/validate-skills.mjs +76 -0
  27. package/skills/basic/bdbmediastorm/SKILL.md +1 -1
  28. package/skills/basic/godmode-shipping/SKILL.md +3 -0
  29. package/skills/basic/master-session/SKILL.md +89 -0
  30. package/skills/basic/startcycle/SKILL.md +1 -1
  31. package/skills/basic/startcycle-graph/SKILL.md +2 -2
  32. package/skills/basic/startcycle-graph-user/SKILL.md +1 -1
  33. package/skills/basic/teamwork-preview/SKILL.md +1 -1
  34. package/skills/bdbrainstorm/SKILL.md +7 -1
  35. package/skills/global_config/agentic-harness-patterns/SKILL.md +257 -0
  36. package/skills/global_config/agentic-harness-patterns/metadata.json +10 -0
  37. package/skills/global_config/agentic-harness-patterns/references/agent-orchestration-pattern.md +97 -0
  38. package/skills/global_config/agentic-harness-patterns/references/bootstrap-sequence-pattern.md +106 -0
  39. package/skills/global_config/agentic-harness-patterns/references/context-engineering/compress-pattern.md +78 -0
  40. package/skills/global_config/agentic-harness-patterns/references/context-engineering/isolate-pattern.md +82 -0
  41. package/skills/global_config/agentic-harness-patterns/references/context-engineering/select-pattern.md +86 -0
  42. package/skills/global_config/agentic-harness-patterns/references/context-engineering-pattern.md +29 -0
  43. package/skills/global_config/agentic-harness-patterns/references/hook-lifecycle-pattern.md +111 -0
  44. package/skills/global_config/agentic-harness-patterns/references/memory-persistence-pattern.md +109 -0
  45. package/skills/global_config/agentic-harness-patterns/references/permission-gate-pattern.md +111 -0
  46. package/skills/global_config/agentic-harness-patterns/references/skill-runtime-pattern.md +104 -0
  47. package/skills/global_config/agentic-harness-patterns/references/task-decomposition-pattern.md +92 -0
  48. package/skills/global_config/agentic-harness-patterns/references/tool-registry-pattern.md +101 -0
  49. package/skills/global_config/agenttrail/SKILL.md +8 -0
  50. package/skills/global_config/agenttrail/bin/agenttrail.mjs +14 -0
  51. package/skills/global_config/agenttrail/bin/ensure.mjs +118 -0
  52. package/skills/global_config/aos-setup/scripts/aos-doctor.mjs +1 -1
  53. package/skills/global_config/bdb-visual-edit/SKILL.md +51 -0
  54. package/skills/global_config/bdb-visual-edit/references/vite-react-source-attr.md +59 -0
  55. package/skills/global_config/bdb-visual-edit/scripts/pick-snippet.js +27 -0
  56. package/skills/global_config/bdb-visual-edit/scripts/sanitize-element.mjs +123 -0
  57. package/skills/global_config/factory-collect/SKILL.md +74 -0
  58. package/skills/global_config/factory-human-digest/SKILL.md +92 -0
  59. package/skills/global_config/factory-lookback/SKILL.md +95 -0
  60. package/skills/global_config/factory-review-prs/SKILL.md +63 -0
  61. package/skills/global_config/git-pr-review/SKILL.md +3 -0
  62. package/skills/global_config/grilling/SKILL.md +2 -0
  63. package/skills/global_config/mcsc/SKILL.md +1 -1
  64. package/skills/global_config/plan-arbiter/SKILL.md +125 -0
  65. package/skills/global_config/plan-canvas/SKILL.md +62 -5
  66. package/skills/global_config/plan-canvas/scripts/lib/loopback-guard.js +19 -3
  67. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/README.md +285 -0
  68. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/agent-trail.js +129 -0
  69. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/board-client.js +124 -0
  70. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/demo-plan/canvas.mdx +19 -0
  71. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/demo-plan/plan.mdx +18 -0
  72. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/recap-demo/plan.mdx +72 -0
  73. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/README.md +29 -0
  74. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/architecture.json +30 -0
  75. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/00_architecture.html +14950 -0
  76. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/canvas.mdx +511 -0
  77. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/plan.mdx +208 -0
  78. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/recap/plan.mdx +102 -0
  79. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/standard/plan.md +136 -0
  80. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/signup-storyboard/canvas.mdx +124 -0
  81. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/signup-storyboard/plan.mdx +37 -0
  82. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/index.js +188 -0
  83. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/kit.js +123 -0
  84. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/mdx.js +411 -0
  85. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/render.js +1291 -0
  86. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/meta.json +1 -0
  87. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/plan.mdx +195 -0
  88. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/standard.md +95 -0
  89. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/meta.json +1 -0
  90. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/plan.mdx +105 -0
  91. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/standard.md +76 -0
  92. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/canvas.mdx +81 -0
  93. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/meta.json +1 -0
  94. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/plan.mdx +145 -0
  95. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/standard.md +76 -0
  96. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/meta.json +1 -0
  97. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/plan.mdx +172 -0
  98. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/standard.md +100 -0
  99. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/meta.json +1 -0
  100. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/plan.mdx +67 -0
  101. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/standard.md +49 -0
  102. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/canvas.mdx +63 -0
  103. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/meta.json +1 -0
  104. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/plan.mdx +49 -0
  105. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/standard.md +39 -0
  106. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/meta.json +1 -0
  107. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/plan.mdx +118 -0
  108. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/standard.md +57 -0
  109. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/meta.json +1 -0
  110. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/plan.mdx +173 -0
  111. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/standard.md +96 -0
  112. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/meta.json +1 -0
  113. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/plan.mdx +91 -0
  114. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/standard.md +54 -0
  115. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/canvas.mdx +53 -0
  116. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/meta.json +1 -0
  117. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/plan.mdx +225 -0
  118. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/standard.md +111 -0
  119. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/theme.css +472 -0
  120. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/trail.js +216 -0
  121. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/markdown.js +1 -1
  122. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/server.js +37 -4
  123. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/ui.js +125 -29
  124. package/skills/global_config/plan-canvas/scripts/plan-canvas.js +196 -8
  125. package/skills/global_config/pr-recap/SKILL.md +47 -0
  126. package/skills/global_config/pr-recap/scripts/pr-recap.mjs +200 -0
  127. package/skills/global_config/quick-recap/SKILL.md +55 -0
  128. package/skills/global_config/stay-within-limits/SKILL.md +85 -0
  129. package/skills/global_config/triage/SKILL.md +3 -0
  130. package/skills/global_config/visual-edit/README.md +96 -0
  131. package/skills/global_config/visual-edit/SKILL.md +615 -0
  132. package/skills/global_config/visual-plan/README.md +93 -0
  133. package/skills/global_config/visual-plan/SKILL.md +544 -0
  134. package/skills/global_config/visual-plan/references/canvas.md +139 -0
  135. package/skills/global_config/visual-plan/references/connection.md +51 -0
  136. package/skills/global_config/visual-plan/references/document-quality.md +186 -0
  137. package/skills/global_config/visual-plan/references/exemplar.md +62 -0
  138. package/skills/global_config/visual-plan/references/local-files.md +99 -0
  139. package/skills/global_config/visual-plan/references/wireframe.md +319 -0
  140. package/skills/global_config/visual-recap/README.md +103 -0
  141. package/skills/global_config/visual-recap/SKILL.md +560 -0
  142. package/skills/global_config/visual-recap/references/connection.md +51 -0
  143. package/skills/global_config/visual-recap/references/local-files.md +99 -0
  144. package/skills/global_config/visual-recap/references/wireframe.md +319 -0
  145. package/skills/playbooks/pb-ci-fix/SKILL.md +49 -0
  146. package/skills/playbooks/pb-event-tracker/SKILL.md +45 -0
  147. package/skills/playbooks/pb-meeting-actions/SKILL.md +42 -0
  148. package/skills/playbooks/pb-project-new/SKILL.md +48 -0
  149. package/skills/playbooks/pb-week-plan/SKILL.md +45 -0
  150. package/assets/header-v4.jpg +0 -0
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: stay-within-limits
3
+ description: Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.
4
+ category: bdb-core
5
+ source: BuilderIO/skills
6
+ ---
7
+
8
+ # Stay Within Limits
9
+
10
+ Keep long-running agent work inside the current 5-hour and weekly usage windows.
11
+ Check usage before launching substantial work and between waves of parallel
12
+ subagents. If an active 5-hour or weekly limit is at or above 95%, pause new
13
+ work until the window is clear enough to continue safely.
14
+
15
+ ## Core Loop
16
+
17
+ 1. Run a bounded wave of work. Default to at most 3 parallel subagents unless
18
+ the user or host gives a different throttle.
19
+ 2. Wait for the wave to finish. Do not interrupt in-flight subagents just to
20
+ save budget; that usually loses work.
21
+ 3. Check current 5-hour and weekly usage with the host's usage/budget tool.
22
+ 4. If either window is at or above 95%, stop launching work and schedule a
23
+ self-contained resume when the relevant window should clear.
24
+ 5. On resume, re-check the real window or block before continuing. Do not trust
25
+ elapsed wall-clock time alone.
26
+
27
+ ## Usage Signals
28
+
29
+ Prefer a first-party host usage tool when available. In Claude Code, use:
30
+
31
+ ```sh
32
+ npx -y ccusage@20.0.26 blocks --active --json
33
+ ```
34
+
35
+ Use the JSON to identify the active block start, current cost or percentage, and
36
+ time remaining. On wake, compare the active block start timestamp with the
37
+ previous one; a new timestamp is stronger evidence than "enough time passed."
38
+
39
+ If the tool reports cost instead of a direct percentage, convert through the
40
+ current account limit when known. For Claude Max-style 5-hour blocks, some users
41
+ prefer an earlier caution threshold around $500-550; treat that as a
42
+ user-configured guardrail, not a universal rule. The default stop rule is still
43
+ 95% of the active 5-hour or weekly limit.
44
+
45
+ ## Pausing And Resuming
46
+
47
+ When a wake/resume tool is available, schedule a wakeup for:
48
+
49
+ ```txt
50
+ min(3600, secondsUntilWindowClears)
51
+ ```
52
+
53
+ If the runtime clamps wake delays to 60-3600 seconds, chain wakeups for longer
54
+ waits. Each wakeup should re-check usage, reschedule if still over budget, and
55
+ continue only when the window is safely below the threshold.
56
+
57
+ Make wake prompts self-contained. Include:
58
+
59
+ - The remaining plan.
60
+ - The check-then-reschedule rule.
61
+ - The 95% threshold and wave throttle.
62
+ - The exact usage command or host usage tool to run.
63
+ - The previous block/window identifier when available.
64
+ - The next verification steps.
65
+ - The next wave's handoff packets, including scope, verification commands, and
66
+ stop conditions, if delegation will resume.
67
+
68
+ ## Choosing The Wait Mechanism
69
+
70
+ - Use a wake/resume tool when the agent needs instructions attached to the
71
+ future resume.
72
+ - Use a background sleep or watcher for fixed timers and things a process can
73
+ observe directly.
74
+ - Use cron or recurring schedules only for recurring fresh-session work.
75
+
76
+ Avoid short-interval polling for things the host will notify you about, such as
77
+ background task or subagent completion. For budget pauses, a prompt-cache miss
78
+ after a long sleep is acceptable; preserving the limit matters more.
79
+
80
+ ## Reporting
81
+
82
+ If you pause, tell the user which window is over threshold, the observed usage,
83
+ when you scheduled or expect the next check, and what work remains. Keep enough
84
+ state in the wake prompt that the next turn can resume without relying on
85
+ conversation momentum.
@@ -110,3 +110,6 @@ Capture everything resolved during grilling under "established so far" so the wo
110
110
  ## Resuming a previous session
111
111
 
112
112
  If prior triage notes exist on the issue or PR, read them, check whether the reporter has answered any outstanding questions, and present an updated picture before continuing. Don't re-ask resolved questions.
113
+
114
+ ## Visual recap
115
+ To get oriented on a PR quickly, `/pr-recap --pr <n>` builds a local page from its diff (read-only `gh pr view`). It is informational and does not gate triage, and it never posts a comment.
@@ -0,0 +1,96 @@
1
+ # /visual-edit
2
+
3
+ Open a running local app in the Agent-Native Design surface as URL-backed iframe
4
+ screens for visual inspection, route-state exploration, and source-backed edits.
5
+
6
+ Use `/visual-edit` when a UI needs to be reviewed or changed in context: compare
7
+ real routes, inspect responsive states, walk a multi-screen flow, duplicate a
8
+ screen for a new URL state, or apply visual changes back through the coding
9
+ agent. The canvas uses the app's live routes and local bridge rather than a
10
+ copied static HTML snapshot.
11
+
12
+ ## Install
13
+
14
+ Run this from your app repository to install the skill and hosted Design
15
+ connector:
16
+
17
+ ```sh
18
+ npx @agent-native/core@latest skills add visual-edit
19
+ ```
20
+
21
+ ## Examples to try
22
+
23
+ - **One screen:** `/visual-edit the dashboard at desktop size`
24
+ - **Several screens:** `/visual-edit compare the dashboard, settings, and reports pages side by side`
25
+ - **A full flow:** `/visual-edit the onboarding flow from welcome through account created`
26
+ - **Responsive sizes:** `/visual-edit show the dashboard at desktop, tablet, and mobile widths`
27
+
28
+ ## Example: refine an onboarding flow
29
+
30
+ Start your app locally, then ask your coding agent:
31
+
32
+ ```text
33
+ /visual-edit the onboarding flow, plus home at every breakpoint
34
+ ```
35
+
36
+ Design can place the four onboarding screens and Home at desktop, tablet, and
37
+ mobile sizes together on one canvas. Select the **Get started** button, change
38
+ its fill with the color picker, and drag its padding on the canvas to see the
39
+ layout respond.
40
+
41
+ When the result looks right, ask your coding agent to **Pull in my visual
42
+ edits**. The agent retrieves the pending batch and updates the app's source for
43
+ you to review. Design does not write those changes to your code automatically.
44
+
45
+ ## Choose the screens deliberately
46
+
47
+ - **Multiple pages:** pass `paths` such as `["/", "/pricing", "/settings"]`.
48
+ - **A multi-step flow:** pass named `routes` in the order the user follows,
49
+ such as shipping, payment, then confirmation. Each URL state becomes a
50
+ separate canvas screen.
51
+ - **The same page at responsive widths:** add `viewports`, for example
52
+ `["desktop", "mobile"]`. Design places each requested route or page once per
53
+ viewport so they can be compared side by side.
54
+
55
+ For example, add these fields to an `open-visual-edit` payload to place each
56
+ checkout step at desktop and mobile sizes:
57
+
58
+ ```json
59
+ {
60
+ "title": "Checkout flow review",
61
+ "routes": [
62
+ { "url": "http://localhost:5173/checkout?step=shipping", "title": "1. Shipping" },
63
+ { "url": "http://localhost:5173/checkout?step=payment", "title": "2. Payment" },
64
+ { "url": "http://localhost:5173/checkout?step=done", "title": "3. Confirmation" }
65
+ ],
66
+ "viewports": ["desktop", "mobile"]
67
+ }
68
+ ```
69
+
70
+ Pass that shape to `open-visual-edit` together with the connection details from
71
+ the workflow. For a page comparison, use `paths` instead of `routes`.
72
+
73
+ ## Open the canvas beside the conversation when possible
74
+
75
+ Use the Design URL or embed returned by `open-visual-edit`. If the current host
76
+ supports an inline preview, webview, or side browser, open Design there so the
77
+ canvas remains beside the chat. Host support varies; when no such surface is
78
+ available, provide the returned **Open design** link instead.
79
+
80
+ Prefer the interactive MCP App when the connected host renders it. In that
81
+ surface, **Apply design updates** can submit the source-edit handoff to the
82
+ current host conversation after its normal confirmation. An ordinary Browser
83
+ pane has no trusted page-to-chat bridge: Apply uses Design's local agent there,
84
+ and **Copy prompt to your agent** is the coding-agent fallback.
85
+
86
+ Inside Design, choose **Show/Hide UI** from the `Cmd+K` menu or press Figma's
87
+ `Shift+\` shortcut. The same action is available from Design's empty-canvas
88
+ context menu.
89
+
90
+ The hosted Design MCP connector handles the account-backed open, screen
91
+ placement, and source-edit workflow. Public/read-only designs may be viewed
92
+ without signing in; creating, saving, or sharing a design still requires an
93
+ authenticated account.
94
+
95
+ For the complete walkthrough and sharing details, see the [Visual Edit guide
96
+ in Agent-Native](https://github.com/BuilderIO/agent-native/blob/main/skills/visual-edit/README.md).