@mytegroupinc/myte-core 0.0.42 → 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 +28 -21
- package/cli.js +706 -377
- package/lib/mytecody-splash.js +3 -3
- package/mytecody-cli.js +393 -28
- 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.
|
|
@@ -31,7 +32,9 @@ This package exists so the public wrapper can stay small and versioned cleanly.
|
|
|
31
32
|
run, it installs the branded MyteCody engine and signed client assets from
|
|
32
33
|
the Myte release manifest into a user-local Myte cache after signature/hash
|
|
33
34
|
checks. Coding execution requires those assets, a reachable Myte AI Cody
|
|
34
|
-
gateway, and `MYTEAI_API_KEY`.
|
|
35
|
+
gateway, and `MYTEAI_API_KEY`. Normal coding runs use the branded Codex
|
|
36
|
+
harness with Myte context hardening; the experimental controller is not the
|
|
37
|
+
default product path.
|
|
35
38
|
- `mytecody doctor` reports both the signed MyteCody engine state and this npm
|
|
36
39
|
package version. `mytecody update` updates the engine only. Use
|
|
37
40
|
`npm install -g myte@latest` to update the launcher and the Myte API CLI
|
|
@@ -42,11 +45,15 @@ This package exists so the public wrapper can stay small and versioned cleanly.
|
|
|
42
45
|
|
|
43
46
|
## Agent Usage Contract
|
|
44
47
|
|
|
45
|
-
Coding agents should treat `MYTE_API_KEY` as a project-scoped Project Assistant key:
|
|
46
|
-
|
|
47
|
-
- Load it from the workspace `.env` or environment. `MYTE_PROJECT_API_KEY` is accepted as a compatibility fallback.
|
|
48
|
-
- Call `myte config --json` first when project identity or local repo detection is uncertain.
|
|
49
|
-
-
|
|
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.
|
|
50
57
|
- Use `suggestions sync` only when you need to refresh mission review-thread state without refreshing the full board.
|
|
51
58
|
- Use `query --with-diff` for project-scoped code review, planning, and implementation questions.
|
|
52
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.
|
|
@@ -183,9 +190,9 @@ node ./scripts/feedback-live-full-harness.js --confirm-live --base-url https://a
|
|
|
183
190
|
|
|
184
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.
|
|
185
192
|
|
|
186
|
-
## Direct Project API Surface
|
|
187
|
-
|
|
188
|
-
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>`.
|
|
189
196
|
|
|
190
197
|
Read/sync routes:
|
|
191
198
|
|
|
@@ -200,21 +207,21 @@ Read/sync routes:
|
|
|
200
207
|
- `GET /api/project-assistant/feedback/<feedback_id>/events`
|
|
201
208
|
- `GET /api/project-assistant/feedback/<feedback_id>/prd/versions`
|
|
202
209
|
- `GET /api/project-assistant/feedback/<feedback_id>/prd/versions/<version_id>/diff`
|
|
203
|
-
- `GET /api/project-assistant/suggestions`
|
|
204
|
-
- `GET /api/project-assistant/run-qaqc/<batch_id>`
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
209
|
-
|
|
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`
|
|
210
218
|
- `POST /api/project-assistant/mission-status-update`
|
|
211
219
|
- `POST /api/project-assistant/mission-archive`
|
|
212
220
|
- `POST /api/project-assistant/project-comment`
|
|
213
221
|
- `POST /api/project-assistant/update-owner`
|
|
214
222
|
- `POST /api/project-assistant/client-update-drafts`
|
|
215
|
-
- `POST /api/project-assistant/create-prd`
|
|
216
|
-
- `POST /api/project-assistant/create-prds`
|
|
217
|
-
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/validate`
|
|
223
|
+
- `POST /api/project-assistant/create-prd`
|
|
224
|
+
- `POST /api/project-assistant/create-prds`
|
|
218
225
|
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/requests`
|
|
219
226
|
- `POST /api/project-assistant/feedback-review-requests/<request_id>/revise`
|
|
220
227
|
- `POST /api/project-assistant/feedback/<feedback_id>/refinement/apply`
|