@defrex/autobuild 1.6.0 → 1.7.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 +1 -1
- package/SPEC.md +107 -10
- package/docs/agent-runtimes.md +1 -1
- package/docs/architecture.md +62 -22
- package/docs/configuration-overview.md +10 -0
- package/docs/configuration.md +285 -5
- package/docs/forges.md +1 -0
- package/docs/operator-api.md +19 -8
- package/docs/operator-surfaces.md +6 -3
- package/docs/plugin-authoring.md +44 -6
- package/docs/remote-store-protocol.md +19 -6
- package/docs/restacking.md +12 -7
- package/docs/ticket-sources.md +34 -6
- package/docs/tickets.md +6 -0
- package/docs/workspaces.md +1 -1
- package/package.json +3 -3
- package/packages/core/src/cli/attention.ts +1 -0
- package/packages/core/src/cli/binary-direct.ts +1 -0
- package/packages/core/src/cli/dispatch-frontend.ts +10 -14
- package/packages/core/src/cli/dispatch-preflight.ts +1 -0
- package/packages/core/src/cli/dispatch-repository-feed.ts +145 -109
- package/packages/core/src/cli/dispatch.ts +9 -3
- package/packages/core/src/cli/help.ts +11 -4
- package/packages/core/src/cli/init-validation.ts +14 -1
- package/packages/core/src/cli/repository-status.ts +37 -2
- package/packages/core/src/cli/status.ts +8 -0
- package/packages/core/src/cli/ticket.ts +22 -4
- package/packages/core/src/cli/watch.ts +2 -0
- package/packages/core/src/config/live.ts +4 -0
- package/packages/core/src/config/profiles.ts +96 -0
- package/packages/core/src/config/ready-assignee.ts +43 -11
- package/packages/core/src/config/roles.ts +33 -10
- package/packages/core/src/config/schema.ts +166 -24
- package/packages/core/src/events/compatibility.ts +3 -1
- package/packages/core/src/events/forge-degradation-policy.ts +16 -2
- package/packages/core/src/events/payloads.ts +8 -0
- package/packages/core/src/events/policy.ts +1 -0
- package/packages/core/src/events/repository.ts +17 -0
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +73 -124
- package/packages/core/src/kernel/build-creation.ts +29 -0
- package/packages/core/src/kernel/forge-health.ts +47 -0
- package/packages/core/src/kernel/guarded-forge.ts +76 -18
- package/packages/core/src/kernel/node-parent.ts +2 -0
- package/packages/core/src/kernel/read-facts.ts +9 -1
- package/packages/core/src/kernel/reducer.ts +18 -1
- package/packages/core/src/kernel/ticket-preparation.ts +4 -1
- package/packages/core/src/operator/protocol.ts +10 -0
- package/packages/core/src/operator/query.ts +1 -1
- package/packages/core/src/operator/registry.ts +25 -5
- package/packages/core/src/operator/sandbox-host.ts +3 -0
- package/packages/core/src/operator/tickets.ts +15 -3
- package/packages/core/src/plugin-sdk/index.ts +4 -0
- package/packages/core/src/ports/forge/create.ts +6 -0
- package/packages/core/src/ports/forge/github-transport.ts +40 -3
- package/packages/core/src/ports/forge/github.ts +12 -1
- package/packages/core/src/ports/forge/workspace-ancestry.ts +60 -0
- package/packages/core/src/ports/forge-failure.ts +31 -2
- package/packages/core/src/ports/runner/routing.ts +66 -5
- package/packages/core/src/ports/tickets/assignees.ts +54 -0
- package/packages/core/src/ports/tickets/contract.ts +164 -4
- package/packages/core/src/ports/tickets/create.ts +17 -3
- package/packages/core/src/ports/tickets/github-fake.ts +18 -2
- package/packages/core/src/ports/tickets/github.ts +247 -29
- package/packages/core/src/ports/tickets/hosted-index.ts +1 -0
- package/packages/core/src/ports/tickets/operations.ts +6 -1
- package/packages/core/src/ports/tickets/tree.ts +12 -2
- package/packages/core/src/ports/tickets/update.ts +6 -2
- package/packages/core/src/ports/types.ts +33 -3
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +9 -0
- package/packages/core/src/processes/build-child.ts +28 -7
- package/packages/core/src/processes/build-execution-state.ts +4 -1
- package/packages/core/src/processes/build-runner.ts +15 -1
- package/packages/core/src/processes/dispatcher.ts +98 -18
- package/packages/core/src/processes/harvest-child.ts +4 -0
- package/packages/core/src/processes/harvest-runner.ts +5 -0
- package/packages/core/src/processes/repo-view.ts +2 -0
- package/packages/core/src/scenarios/harness.ts +15 -1
- package/packages/core/src/store/reducer-value-shapes.json +3119 -2926
- package/packages/core/src/store/remote/client.ts +21 -8
- package/packages/core/src/store/remote/index.ts +4 -0
- package/packages/core/src/store/remote/protocol.ts +7 -0
- package/packages/core/src/store/remote/released-clients.json +11 -0
- package/packages/core/src/store/remote/released-reducer-values/1.7.0.json +27366 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +2 -0
- package/packages/core/src/store/repo-state-events.ts +1 -0
- package/packages/core/src/store/types.ts +11 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +84 -58
- package/packages/core/src/testing/index.ts +2 -0
- package/packages/core/src/testing/reduced-read-budget.ts +72 -9
- package/skills/guide/SKILL.md +116 -21
- package/skills/guide/references/operator-api.md +19 -8
- package/skills/guide/references/plugin-authoring.md +44 -6
- package/skills/guide/references/remote-store-protocol.md +19 -6
- package/skills/guide/references/restacking.md +12 -7
- package/skills/operate/SKILL.md +29 -3
- package/skills/tickets/SKILL.md +18 -2
- package/templates/hosted-service/package.json +2 -2
package/skills/tickets/SKILL.md
CHANGED
|
@@ -93,7 +93,7 @@ the spec.
|
|
|
93
93
|
## Create a ticket
|
|
94
94
|
|
|
95
95
|
```
|
|
96
|
-
ab ticket create "Rate-limit auth endpoints" --body spec.md [--labels bug,api] [--blocked-by file-1,file-2] [--issues 824,820:refs] [--priority urgent]
|
|
96
|
+
ab ticket create "Rate-limit auth endpoints" --body spec.md [--labels bug,api] [--blocked-by file-1,file-2] [--issues 824,820:refs] [--priority urgent] [--assignees alice,me]
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
It lands in `triage/` and prints the new id. `--body` is a file, and its
|
|
@@ -106,6 +106,11 @@ succeeds. When the ticket originates from a forge issue, attach it with
|
|
|
106
106
|
`--issues`: `N` (intent `closes`, the default) when the ticket fully resolves
|
|
107
107
|
the issue, `N:refs` when it only partly addresses it. `--priority urgent` makes
|
|
108
108
|
the dispatcher claim it before normal ready work; omit it for normal.
|
|
109
|
+
`--assignees` assigns the ticket on a source that stores assignees (GitHub):
|
|
110
|
+
usernames, or `me` for the owner of the GitHub credential. Without it, a
|
|
111
|
+
configured `[tickets].createAssignee` assigns the ticket, and `--assignees ''`
|
|
112
|
+
files it unassigned. Under `[tickets].readyAssignee` an unassigned ticket never
|
|
113
|
+
becomes ready, so assign a ticket to whoever's dispatcher should build it.
|
|
109
114
|
|
|
110
115
|
For dependencies on any source, follow the
|
|
111
116
|
[safe blocker-filing workflow](../ab-guide/references/ticket-dependencies.md).
|
|
@@ -125,6 +130,7 @@ ab ticket update file-3 --title "New title" --labels bug,api
|
|
|
125
130
|
ab ticket update file-3 --labels ''
|
|
126
131
|
ab ticket update file-3 --issues 824:refs
|
|
127
132
|
ab ticket update file-3 --priority urgent
|
|
133
|
+
ab ticket update 412 --assignees octocat,me
|
|
128
134
|
ab ticket block file-3 file-1
|
|
129
135
|
ab ticket unblock file-3 file-1
|
|
130
136
|
```
|
|
@@ -134,10 +140,20 @@ Update is partial: omitted fields stay untouched, while an explicitly empty
|
|
|
134
140
|
`--issues ''` clears it. `--priority urgent|normal` sets the dispatch class;
|
|
135
141
|
the file tracker writes `priority = "urgent"` and removes the key for normal. A
|
|
136
142
|
source that cannot store priority refuses `urgent`, names itself, and writes
|
|
137
|
-
nothing; `normal` succeeds there.
|
|
143
|
+
nothing; `normal` succeeds there. `--assignees` replaces the whole set of
|
|
144
|
+
assignees, `--assignees ''` clears it, and omitting it leaves them alone;
|
|
145
|
+
`ab ticket show` prints them and JSON reads carry an `assignees` array. Hand a
|
|
146
|
+
GitHub ticket to someone else this way. A source that cannot store assignees
|
|
147
|
+
(file, hosted, Linear) refuses the option, names itself, and writes nothing. It cannot change state. For block/unblock the first
|
|
138
148
|
id is the ticket being edited; the second is its blocker. Both are safe to
|
|
139
149
|
retry, and adding validates the blocker exists and is not the ticket itself.
|
|
140
150
|
|
|
151
|
+
A label can also select one of the repository's `[profiles]` (role overrides
|
|
152
|
+
for that ticket's build, defined in `autobuild.toml`; see the `ab-guide`
|
|
153
|
+
skill). Give a ticket at most one profile label: a ready ticket carrying two
|
|
154
|
+
profiles' labels is not claimed until one is removed. The profile is fixed when
|
|
155
|
+
the ticket is claimed, so relabelling a ticket whose build exists has no effect.
|
|
156
|
+
|
|
141
157
|
## Report the backlog
|
|
142
158
|
|
|
143
159
|
```
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"build": "ab-hosted-service-build"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@defrex/autobuild-hosted-store-service": "1.
|
|
8
|
-
"@defrex/autobuild": "1.
|
|
7
|
+
"@defrex/autobuild-hosted-store-service": "1.7.0",
|
|
8
|
+
"@defrex/autobuild": "1.7.0",
|
|
9
9
|
"next": "16.1.6",
|
|
10
10
|
"react": "19.2.4",
|
|
11
11
|
"react-dom": "19.2.4"
|