@mytegroupinc/myte-core 0.0.43 → 0.0.44
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 +25 -20
- package/cli.js +706 -377
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,8 +20,9 @@ This package exists so the public wrapper can stay small and versioned cleanly.
|
|
|
20
20
|
|
|
21
21
|
## Behavior Summary
|
|
22
22
|
|
|
23
|
-
- Snapshot-style commands such as `bootstrap`, `sync-qaqc`, `feedback-sync`, and `suggestions sync` write local `MyteCommandCenter` data.
|
|
24
|
-
-
|
|
23
|
+
- Snapshot-style commands such as `bootstrap`, `sync-qaqc`, `feedback-sync`, and `suggestions sync` write local `MyteCommandCenter` data.
|
|
24
|
+
- Live project-key mutations require explicit user approval before the CLI sends them. Create a local approval artifact, show it to the user, then rerun with `--confirm-write --approval-artifact <path>`.
|
|
25
|
+
- `feedback status|edit|assign|archive` writes reviewable local YAML artifacts; `feedback submit|revise|reviews|review` routes them through the backend owner-review membrane.
|
|
25
26
|
- `feedback move|comment|undo|prd-versions|prd-diff|history` calls the project-key Feedback API while leaving lifecycle rules and permissions server-side. `feedback move --feedback-ids` sends one batch move request.
|
|
26
27
|
- `feedback validate|apply` remains available for validation and owner-direct apply paths; live authorization, stale checks, and history stay server-side.
|
|
27
28
|
- `query --with-diff` requires project repos to be configured for diff collection and fails fast when no matching local project repo can be resolved.
|
|
@@ -44,11 +45,15 @@ This package exists so the public wrapper can stay small and versioned cleanly.
|
|
|
44
45
|
|
|
45
46
|
## Agent Usage Contract
|
|
46
47
|
|
|
47
|
-
Coding agents should treat `MYTE_API_KEY` as a project-scoped Project Assistant key:
|
|
48
|
-
|
|
49
|
-
- Load it from the workspace `.env` or environment. `MYTE_PROJECT_API_KEY` is accepted as a compatibility fallback.
|
|
50
|
-
- Call `myte config --json` first when project identity or local repo detection is uncertain.
|
|
51
|
-
-
|
|
48
|
+
Coding agents should treat `MYTE_API_KEY` as a project-scoped Project Assistant key:
|
|
49
|
+
|
|
50
|
+
- Load it from the workspace `.env` or environment. `MYTE_PROJECT_API_KEY` is accepted as a compatibility fallback.
|
|
51
|
+
- Call `myte config --json` first when project identity or local repo detection is uncertain.
|
|
52
|
+
- Before any live write, create a local approval artifact, show it to the user, and get explicit approval. Use `.md` for comments, human updates, and PRD markdown; use `.yml`/`.yaml` or `.json` for structured mission/feedback decisions and batch writes.
|
|
53
|
+
- After approval, rerun the mutation with `--confirm-write --approval-artifact <path>`. Batch artifacts must enumerate every feedback id, mission id, suggestion id, request id, or PRD item.
|
|
54
|
+
- Direct HTTP calls with `MYTE_API_KEY` cannot bypass this gate on live project-content mutations. The API returns `428` with agent instructions when approval metadata is missing or mismatched.
|
|
55
|
+
- Read/sync/query/validate commands, `--print-context`, and `--dry-run` do not require write approval.
|
|
56
|
+
- Hydrate mission context with `bootstrap` first instead of scraping the web UI. `bootstrap` writes mission cards and mission suggestion thread state.
|
|
52
57
|
- Use `suggestions sync` only when you need to refresh mission review-thread state without refreshing the full board.
|
|
53
58
|
- Use `query --with-diff` for project-scoped code review, planning, and implementation questions.
|
|
54
59
|
- Use `create-prd` only with reviewed markdown files. The markdown file body is the PRD document; `description` is only the short board/card summary.
|
|
@@ -185,9 +190,9 @@ node ./scripts/feedback-live-full-harness.js --confirm-live --base-url https://a
|
|
|
185
190
|
|
|
186
191
|
The harness creates five disposable `TEST` feedback items from markdown, verifies batch review and batch board movement, batch archives the disposable items, verifies normal `feedback-sync` excludes archived items, and verifies the project-key surface does not expose Feedback unarchive/restore.
|
|
187
192
|
|
|
188
|
-
## Direct Project API Surface
|
|
189
|
-
|
|
190
|
-
All routes use `Authorization: Bearer <MYTE_API_KEY>`. The CLI adds idempotency and client-session headers on mutation routes.
|
|
193
|
+
## Direct Project API Surface
|
|
194
|
+
|
|
195
|
+
All routes use `Authorization: Bearer <MYTE_API_KEY>`. The CLI adds idempotency and client-session headers on mutation routes. Live project-content mutation routes also require write-approval headers; the official CLI supplies them from `--confirm-write --approval-artifact <path>`.
|
|
191
196
|
|
|
192
197
|
Read/sync routes:
|
|
193
198
|
|
|
@@ -202,21 +207,21 @@ Read/sync routes:
|
|
|
202
207
|
- `GET /api/project-assistant/feedback/<feedback_id>/events`
|
|
203
208
|
- `GET /api/project-assistant/feedback/<feedback_id>/prd/versions`
|
|
204
209
|
- `GET /api/project-assistant/feedback/<feedback_id>/prd/versions/<version_id>/diff`
|
|
205
|
-
- `GET /api/project-assistant/suggestions`
|
|
206
|
-
- `GET /api/project-assistant/run-qaqc/<batch_id>`
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
-
|
|
211
|
-
|
|
210
|
+
- `GET /api/project-assistant/suggestions`
|
|
211
|
+
- `GET /api/project-assistant/run-qaqc/<batch_id>`
|
|
212
|
+
- `POST /api/project-assistant/query`
|
|
213
|
+
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/validate`
|
|
214
|
+
|
|
215
|
+
Live project-content mutation routes:
|
|
216
|
+
|
|
217
|
+
- `POST /api/project-assistant/run-qaqc`
|
|
212
218
|
- `POST /api/project-assistant/mission-status-update`
|
|
213
219
|
- `POST /api/project-assistant/mission-archive`
|
|
214
220
|
- `POST /api/project-assistant/project-comment`
|
|
215
221
|
- `POST /api/project-assistant/update-owner`
|
|
216
222
|
- `POST /api/project-assistant/client-update-drafts`
|
|
217
|
-
- `POST /api/project-assistant/create-prd`
|
|
218
|
-
- `POST /api/project-assistant/create-prds`
|
|
219
|
-
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/validate`
|
|
223
|
+
- `POST /api/project-assistant/create-prd`
|
|
224
|
+
- `POST /api/project-assistant/create-prds`
|
|
220
225
|
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/requests`
|
|
221
226
|
- `POST /api/project-assistant/feedback-review-requests/<request_id>/revise`
|
|
222
227
|
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/apply`
|