@eforge-build/eforge-playbooks 0.8.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/LICENSE +190 -0
- package/README.md +179 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +232 -0
- package/package.json +82 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 Schaake Solutions, LLC
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# eforge-playbooks Extension
|
|
2
|
+
|
|
3
|
+
`eforge-playbooks` is the first-party extension that owns reusable playbook management and playbook execution handoff. It exposes playbook inventory, CRUD-style management, validation, scope moves, planning-mode handoff metadata, and autonomous build-queue enqueue through generic extension actions.
|
|
4
|
+
|
|
5
|
+
The extension owns its playbook parser, serializer, validation, scope-aware storage, compiler, and planning-seed extraction locally. `@eforge-build/input` remains a dependency only for domain-neutral acceptance-criteria quality helpers. The extension does not add direct daemon playbook routes, Console core sections, queue internals, or host-specific command implementations. Hosts discover and invoke the extension through normal extension action, integration-command, capability, and Console contribution metadata.
|
|
6
|
+
|
|
7
|
+
## Trust model
|
|
8
|
+
|
|
9
|
+
Extensions run as project-team code. Install and enable `eforge-playbooks` only in repositories where you trust the extension source and the team-maintained playbook content.
|
|
10
|
+
|
|
11
|
+
`eforge-playbooks` is not a sandbox boundary. Actions can read and write playbook files in project-local, project-team, and user scopes, and `run-playbook` can enqueue autonomous builds through the generic build queue. Review extension changes with the same care as build tooling, scripts, or other automation that runs in the repository.
|
|
12
|
+
|
|
13
|
+
Playbooks are reusable build-input artifacts. Treat them as executable workflow intent: a playbook can define normalized build source, profile defaults, post-merge commands, and a planning or autonomous mode.
|
|
14
|
+
|
|
15
|
+
## Install and manage
|
|
16
|
+
|
|
17
|
+
`eforge-playbooks` is published as the first-party npm package `@eforge-build/eforge-playbooks`. The package declares `eforge.extension.name: "eforge-playbooks"` and loads from the compiled runtime entrypoint `./dist/index.js`.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Install from npm into the default local scope (.eforge/extensions/)
|
|
21
|
+
eforge extension install @eforge-build/eforge-playbooks
|
|
22
|
+
|
|
23
|
+
# Install from a local package directory or packed tarball after building
|
|
24
|
+
eforge extension install ./eforge/extensions/eforge-playbooks
|
|
25
|
+
eforge extension install ./eforge/extensions/eforge-playbooks/eforge-build-eforge-playbooks-<version>.tgz
|
|
26
|
+
|
|
27
|
+
# Install into the project/team scope and trust the reviewed artifact
|
|
28
|
+
eforge extension install @eforge-build/eforge-playbooks --scope project --trust
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Scope behavior follows normal extension management rules:
|
|
32
|
+
|
|
33
|
+
- `local` (default) installs under `.eforge/extensions/` and loads without a project/team trust record.
|
|
34
|
+
- `project` installs under `eforge/extensions/`; each user must inspect and run `eforge extension trust eforge-playbooks`, or install/update with `--trust`, before it loads.
|
|
35
|
+
- `user` installs under the user eforge config directory and is trusted for that user.
|
|
36
|
+
|
|
37
|
+
Common lifecycle commands:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
eforge extension validate eforge-playbooks
|
|
41
|
+
eforge extension trust eforge-playbooks
|
|
42
|
+
eforge extension reload
|
|
43
|
+
eforge extension show eforge-playbooks
|
|
44
|
+
|
|
45
|
+
eforge extension update eforge-playbooks
|
|
46
|
+
eforge extension update eforge-playbooks --version latest
|
|
47
|
+
eforge extension remove eforge-playbooks
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The npm artifact contains the compiled runtime in `dist/`, `README.md`, `LICENSE`, and package metadata. Tests and development config are not part of the runtime artifact.
|
|
51
|
+
|
|
52
|
+
## Declared capabilities
|
|
53
|
+
|
|
54
|
+
The package manifest declares two stable first-party capabilities:
|
|
55
|
+
|
|
56
|
+
- `eforge.playbooks.management` version `1.0.0` — the extension owns playbook inventory, validation, copy, save, promote, and demote actions.
|
|
57
|
+
- `eforge.playbooks.run` version `1.0.0` — the extension owns playbook execution handoff for autonomous and planning-mode playbooks.
|
|
58
|
+
|
|
59
|
+
The extension declares an optional dependency on provider `eforge-plan` with capability `eforge.plan.planning-workstation` satisfying `>=1.0.0`. Planning-mode playbooks use that generic planning workstation capability when available, but the extension still loads without it and returns diagnostics instead of enqueueing a build.
|
|
60
|
+
|
|
61
|
+
## Extension-owned playbook domain
|
|
62
|
+
|
|
63
|
+
`eforge-playbooks` is the implementation owner for playbook domain behavior:
|
|
64
|
+
|
|
65
|
+
- `model.ts` defines the playbook frontmatter and body model, schemas, parsing, serialization, validation, and mode mismatch errors.
|
|
66
|
+
- `storage-core.ts` resolves named-set storage locations, lists and loads playbooks, writes scoped files, and performs copy, promote, and demote moves while preserving existing shadowing behavior.
|
|
67
|
+
- `compile.ts` converts autonomous playbooks to normalized build source and planning playbooks to JSON-safe planning seeds.
|
|
68
|
+
|
|
69
|
+
The package entrypoint exposes the extension contribution surface, not these domain helpers as host-facing APIs. Runtime imports from `@eforge-build/input` are limited to `analyzeAcceptanceCriteria`, `analyzeAcceptanceCriteriaInBody`, and `formatAcDiagnostics`.
|
|
70
|
+
|
|
71
|
+
## Actions
|
|
72
|
+
|
|
73
|
+
Registered action IDs are local to the extension and are exposed with effective IDs such as `eforge-playbooks:run-playbook`. Integration commands mirror the same eight local IDs so hosts can discover the same capabilities through command metadata.
|
|
74
|
+
|
|
75
|
+
| Action | Purpose | Side effects |
|
|
76
|
+
| --- | --- | --- |
|
|
77
|
+
| `list-playbooks` | List playbooks from project-local, project-team, and user scopes. Supports optional `scope`, `mode`, and `includeShadowed`; shadowed entries are included by default. | `local-read` |
|
|
78
|
+
| `show-playbook` | Show the highest-precedence playbook by name, or an exact scoped copy when `scope` is supplied. | `local-read` |
|
|
79
|
+
| `save-playbook` | Save a playbook from raw Markdown, nested `{ playbook: { frontmatter, body } }`, or flattened fields. Defaults `overwrite` to `true` and validates acceptance criteria before writing. | `local-write` |
|
|
80
|
+
| `validate-playbook` | Validate raw playbook Markdown without filesystem writes. This preserves raw validation semantics and does not run the save/run acceptance-criteria quality gate. | `none` |
|
|
81
|
+
| `copy-playbook` | Copy a playbook to another scope, updating frontmatter `scope`; `overwrite` defaults to `true` (set `false` to reject existing destinations). | `local-read`, `local-write` |
|
|
82
|
+
| `promote-playbook` | Move a playbook from `project-local` to `project-team`; `overwrite` defaults to `true` (set `false` to reject existing destinations). | `local-write` |
|
|
83
|
+
| `demote-playbook` | Move a playbook from `project-team` to `project-local`; `overwrite` defaults to `true` (set `false` to reject existing destinations). | `local-write` |
|
|
84
|
+
| `run-playbook` | Resolve and run a playbook. Autonomous playbooks compile to normalized build source and enqueue through the generic build queue. Planning-mode playbooks return eforge-plan planning entry metadata or diagnostics and never enqueue. | `local-read`, `daemon-state`, `build-queue` |
|
|
85
|
+
|
|
86
|
+
Common action input forms:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{ "scope": "project-team", "mode": "autonomous", "includeShadowed": false }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{ "name": "weekly-maintenance", "scope": "project-local" }
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"scope": "project-team",
|
|
99
|
+
"playbook": {
|
|
100
|
+
"frontmatter": {
|
|
101
|
+
"name": "weekly-maintenance",
|
|
102
|
+
"description": "Run routine maintenance",
|
|
103
|
+
"mode": "autonomous",
|
|
104
|
+
"profile": "excursion"
|
|
105
|
+
},
|
|
106
|
+
"body": {
|
|
107
|
+
"goal": "Update routine maintenance checks.",
|
|
108
|
+
"acceptanceCriteria": "Maintenance checks are documented and pass."
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"overwrite": true
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"name": "weekly-maintenance",
|
|
118
|
+
"mode": "autonomous",
|
|
119
|
+
"profile": "excursion",
|
|
120
|
+
"afterQueueId": "session_123",
|
|
121
|
+
"landingAction": "pr",
|
|
122
|
+
"landingAutoMerge": false
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`save-playbook` accepts exactly one payload shape: `raw` Markdown, the nested `{ "playbook": { "frontmatter", "body" } }` form, or flattened playbook fields (`name`, `description`, `mode`, `profile`, `postMerge`, `goal`, `outOfScope`, `acceptanceCriteria`, and `plannerNotes`). When a top-level `name` is supplied, it must match the parsed or structured playbook name. `run-playbook` rejects a supplied `mode` when it differs from the playbook frontmatter mode.
|
|
127
|
+
|
|
128
|
+
## Planning-mode behavior
|
|
129
|
+
|
|
130
|
+
A playbook whose frontmatter mode is `planning` is an investigation-first handoff. `run-playbook` converts the playbook to a JSON-safe planning seed and checks:
|
|
131
|
+
|
|
132
|
+
```text
|
|
133
|
+
eforge.plan.planning-workstation >=1.0.0
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
When the optional `eforge-plan` provider is available, the action returns `kind: "requires-agent"` with planning entry metadata for `eforge-plan:open-planning-entry`, workstation `eforge-plan:planning-workstation`, and workstation URL `/console/workstations/eforge-plan%3Aplanning-workstation`.
|
|
137
|
+
|
|
138
|
+
When the provider is unavailable, the action returns `kind: "planning-unavailable"` with diagnostics and guidance to install, trust, and reload `eforge-plan`. It does not create session plans, enqueue PRDs, or call the build queue.
|
|
139
|
+
|
|
140
|
+
Planning seed output is JSON-safe: section maps are projected to plain objects, and undefined values are omitted.
|
|
141
|
+
|
|
142
|
+
## Autonomous queue handoff
|
|
143
|
+
|
|
144
|
+
A playbook whose frontmatter mode is `autonomous` compiles to normalized build source using the extension-local compiler. Before enqueueing, `run-playbook` runs the existing domain-neutral acceptance-criteria quality gate from `@eforge-build/input` against the compiled source. Invalid criteria fail as user-visible invalid input.
|
|
145
|
+
|
|
146
|
+
Autonomous handoff uses only the generic build queue API:
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
ctx.buildQueue.enqueue({
|
|
150
|
+
source,
|
|
151
|
+
profile,
|
|
152
|
+
postMerge,
|
|
153
|
+
afterQueueId,
|
|
154
|
+
landingAction,
|
|
155
|
+
landingAutoMerge,
|
|
156
|
+
});
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
`profile` defaults to the compiled playbook profile when the action input does not override it. `postMerge`, `afterQueueId`, `landingAction`, and `landingAutoMerge` are passed through to generic queue validation. Queue validation failures remain invalid-input action failures; unexpected daemon/runtime enqueue errors propagate as handler errors.
|
|
160
|
+
|
|
161
|
+
The success result is `kind: "enqueued"` and aliases `id` to `sessionId`.
|
|
162
|
+
|
|
163
|
+
## Console contribution
|
|
164
|
+
|
|
165
|
+
`eforge-playbooks` contributes playbook management declaratively through extension Console metadata rather than a core Console section or a packaged workstation bundle. The contribution includes a Markdown summary plus action controls for listing, showing, saving, validating, copying, promoting, demoting, and running playbooks.
|
|
166
|
+
|
|
167
|
+
Console action bindings reference the canonical effective action IDs owned by this extension, such as `eforge-playbooks:list-playbooks` and `eforge-playbooks:run-playbook`.
|
|
168
|
+
|
|
169
|
+
## Storage model
|
|
170
|
+
|
|
171
|
+
Playbook storage is resolved by the extension-local storage layer through `@eforge-build/scopes` named-set APIs with the daemon-provided project root and config directory:
|
|
172
|
+
|
|
173
|
+
- project-local playbooks live under `.eforge/playbooks/`;
|
|
174
|
+
- project-team playbooks live under `eforge/playbooks/`;
|
|
175
|
+
- user playbooks live under the user's eforge config directory.
|
|
176
|
+
|
|
177
|
+
Higher-precedence scopes shadow lower-precedence copies with the same playbook name. `show-playbook` without a scope returns the highest-precedence copy; exact-scope actions fail with a not-found user error when that scope lacks the requested playbook.
|
|
178
|
+
|
|
179
|
+
The extension imports public `@eforge-build/extension-sdk` APIs, `@eforge-build/scopes` named-set helpers, and only the domain-neutral acceptance-criteria helpers from `@eforge-build/input` for runtime behavior. It does not import playbook-specific input symbols, the legacy playbook workflow adapter, or use `builtin:playbooks`.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _eforge_build_extension_sdk from '@eforge-build/extension-sdk';
|
|
2
|
+
|
|
3
|
+
declare const ACTION_IDS: readonly ["list-playbooks", "show-playbook", "save-playbook", "validate-playbook", "copy-playbook", "promote-playbook", "demote-playbook", "run-playbook"];
|
|
4
|
+
|
|
5
|
+
declare const EFORGE_PLAN_DRIFT_CONSTANTS: {
|
|
6
|
+
readonly capability: "eforge.plan.planning-workstation";
|
|
7
|
+
readonly version: "1.0.0";
|
|
8
|
+
readonly actionId: "eforge-plan:open-planning-entry";
|
|
9
|
+
readonly integrationCommandId: "eforge-plan:open-planning-entry";
|
|
10
|
+
readonly deepLinkId: "eforge-plan:planning-workstation";
|
|
11
|
+
readonly workstationId: "eforge-plan:planning-workstation";
|
|
12
|
+
readonly workstationUrl: "/console/workstations/eforge-plan%3Aplanning-workstation";
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
declare const _default: _eforge_build_extension_sdk.EforgeExtensionFactory;
|
|
16
|
+
|
|
17
|
+
export { ACTION_IDS, EFORGE_PLAN_DRIFT_CONSTANTS, _default as default };
|