myte 0.0.46 → 0.0.49

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 CHANGED
@@ -19,23 +19,34 @@ No install:
19
19
 
20
20
  - `npx myte@latest ...`
21
21
 
22
- `npm install myte` does not add `myte` to your shell `PATH`. Use `npx myte` or `npm exec myte -- ...` unless you installed globally.
23
-
24
- ## Requirements
25
-
26
- - Node `18+`
22
+ `npm install myte` does not add `myte` to your shell `PATH`. Use `npx myte` or `npm exec myte -- ...` unless you installed globally.
23
+
24
+ The npm line `added N packages` is a dependency-graph count, not a count of
25
+ files or Myte features. The public `myte` package is a small command wrapper,
26
+ `@mytegroupinc/myte-core` contains the CLI implementation, and `undici`
27
+ provides portable proxy support. A fresh `0.0.48` install therefore normally
28
+ contains three graph nodes; npm may report fewer on an update when dependencies
29
+ are already present or deduplicated. Run `myte info` or
30
+ `myte --version --verbose` to inspect the exact topology.
31
+
32
+ ## Requirements
33
+
34
+ - Node `18.17+`
27
35
  - macOS, Linux, or Windows
28
36
  - `MYTE_API_KEY=<project_api_key>` in your shell or workspace `.env`
29
37
  - `MYTEAI_API_KEY=<inference_api_key>` only for `myte ai`
30
38
  - `MYTEAI_API_KEY=<inference_api_key>` for `mytecody`
31
39
  - `git` in `PATH` only for `query --with-diff`
32
- - No runtime npm dependencies beyond the Myte packages themselves.
40
+ - Standard `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` variables are honored
41
+ through the core transport dependency.
33
42
 
34
43
  The CLI searches for `.env` in the current folder and then up parent directories.
35
44
 
36
45
  ## Common Commands
37
46
 
38
- - `npx myte config --json`
47
+ - `npx myte config --json`
48
+ - `npx myte doctor --json`
49
+ - `npx myte info`
39
50
  - `npx myte bootstrap`
40
51
  - `npx myte sync-qaqc`
41
52
  - `npx myte feedback-sync`
@@ -46,25 +57,26 @@ The CLI searches for `.env` in the current folder and then up parent directories
46
57
  - `npx myte feedback assign --feedback-id <id> --user-id <user_id> --reason "Assign to builder"`
47
58
  - `npx myte feedback archive --feedback-id <id> --reason "Superseded"`
48
59
  - `npx myte feedback validate --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
49
- - `npx myte feedback submit --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
50
- - `npx myte feedback reviews --status open`
51
- - `npx myte feedback revise --request-id <id> --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
52
- - `npx myte feedback review --request-id <id> --action approve --reason "Looks correct"`
53
- - `npx myte feedback review --request-ids "<id1,id2>" --action approve --reason "Batch approval"`
54
- - `npx myte feedback move --feedback-id <id> --to-state in_progress --reason "Started"`
55
- - `npx myte feedback move --feedback-ids "<id1,id2>" --to-state in_progress --reason "Batch move"`
56
- - `npx myte feedback comment --feedback-id <id> --body-file ./updates/feedback-comment.md`
60
+ - `npx myte feedback submit --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml --confirm-write --approval-artifact ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
61
+ - `npx myte feedback reviews --status open`
62
+ - `npx myte feedback revise --request-id <id> --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml --confirm-write --approval-artifact ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
63
+ - `npx myte feedback review --request-id <id> --action approve --reason "Looks correct"`
64
+ - `npx myte feedback review --request-ids "<id1,id2>" --action approve --reason "Batch approval"`
65
+ - `npx myte feedback move --feedback-id <id> --to-state in_progress --reason "Started"`
66
+ - `npx myte feedback move --feedback-ids "<id1,id2>" --to-state in_progress --reason "Batch move"`
67
+ - `npx myte feedback comment --feedback-id <id> --body-file ./updates/feedback-comment.md --confirm-write --approval-artifact ./updates/feedback-comment.md`
57
68
  - `npx myte feedback undo --feedback-id <id> --event-id <event_id> --reason "Undo accidental move"`
58
69
  - `npx myte feedback prd-versions --feedback-id <id>`
59
70
  - `npx myte feedback prd-diff --feedback-id <id> --version-id <version_id> --compare-to <base_version_id>`
60
71
  - `npx myte feedback apply --file ./MyteCommandCenter/reviews/feedback/<id>-edit.yml`
61
72
  - `npx myte suggestions sync`
62
73
  - `npx myte mission archive --mission-ids "M001" --reason "Duplicate disposable mission"`
63
- - `npx myte query "Summarize the current branch changes" --with-diff`
64
- - `npx myte create-prd ./drafts/auth-prd.md`
65
- - `npx myte update-team "Backend deploy completed."`
66
- - `npx myte update-owner --subject "QAQC progress" --body-file ./updates/owner.md`
67
- - `npx myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
74
+ - `npx myte query "Summarize the current branch changes" --with-diff --json`
75
+ - `npx myte create-prd ./drafts/auth-prd.md --confirm-write --approval-artifact ./drafts/auth-prd.md`
76
+ - `npx myte create-prd ./drafts/proposal.md ./drafts/harness.md ./drafts/security.md --document-set --confirm-write --approval-artifact ./drafts/approval.md`
77
+ - `npx myte update-team "Backend deploy completed." --confirm-write --approval-artifact ./updates/team.md`
78
+ - `npx myte update-owner --subject "QAQC progress" --body-file ./updates/owner.md --confirm-write --approval-artifact ./updates/owner.md`
79
+ - `npx myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md --confirm-write --approval-artifact ./updates/week-12.md`
68
80
  - `npx mytecody doctor`
69
81
  - `npx mytecody doctor --probe-gateway`
70
82
  - `npx mytecody update --dry-run`
@@ -72,11 +84,25 @@ The CLI searches for `.env` in the current folder and then up parent directories
72
84
 
73
85
  ## Behavior
74
86
 
87
+ - `doctor` performs read-only package, credential-presence, DNS, direct
88
+ TCP/TLS, authenticated config, proxy, and workspace checks. It reports the
89
+ failing layer without printing the API key, proxy URL, request body, or
90
+ response body.
91
+ - Network failures distinguish DNS, TCP, TLS/certificate, timeout, captive
92
+ portal/non-JSON, authentication, authorization, rate-limit, and server
93
+ response failures. Do not disable TLS verification to work around a failed
94
+ diagnostic.
95
+ - Safe transient reads and query polling use bounded retries. Query creation
96
+ uses one stable idempotency key across ambiguous retries so a lost response
97
+ cannot create duplicate inference jobs.
75
98
  - `bootstrap`, `sync-qaqc`, `feedback-sync`, and `suggestions sync` write project-scoped local context under `MyteCommandCenter` in the current workspace unless `--output-dir` is provided.
76
99
  - `bootstrap` writes mission cards and mission suggestion thread state together; agents should run it before looking for mission or suggestion ids.
77
100
  - `mission status` is active-state only (`todo`, `in_progress`, `done`). Use `mission archive` for project-key lifecycle archival; restore archived missions from the web archived-board view.
78
101
  - `mission status` and `mission archive` refresh local bootstrap + mission-ops state by default after a successful mutation. Use `--no-sync` only when you intentionally want to skip the local refresh.
79
- - `feedback status|edit|assign|archive` writes local review artifacts under `MyteCommandCenter/reviews/feedback`; `feedback submit|revise|reviews|review` routes proposed edits through the backend owner-review membrane.
102
+ - `feedback status|edit|assign|archive|refine` writes local review artifacts under `MyteCommandCenter/reviews/feedback`.
103
+ - `feedback submit|revise|comment` are live writes that require `--confirm-write --approval-artifact <path>`.
104
+ - `feedback review|move|undo|apply` are governed writes with backend permission checks but no approval artifact flags.
105
+ - `feedback-sync|get|history|reviews|prd-versions|prd-diff|validate` are read/sync/validation commands with no approval artifact flags.
80
106
  - `feedback review --request-ids` sends one backend batch review request with grouped notifications; do not loop single-review calls for batch decisions.
81
107
  - `feedback move|comment|undo|prd-versions|prd-diff|history` calls the project-key Feedback API while authorization, stale snapshot checks, allowed transitions, and history remain enforced by the backend. `feedback move --feedback-ids` sends one batch board move request.
82
108
  - `feedback comment` creates text-only feedback-specific comments. Attachments remain web UI only for this project-key endpoint.
@@ -86,15 +112,48 @@ The CLI searches for `.env` in the current folder and then up parent directories
86
112
  - If diff-scoped repo configuration is missing or no local project repo can be resolved, `query --with-diff` exits with an error instead of silently dropping diff context.
87
113
  - Most markdown files are excluded from diff context by default so code and runtime configuration changes dominate the payload. Key instruction files such as `README.md` and `AGENTS.md` remain eligible.
88
114
 
89
- ## Live Write Approval
115
+ ## Approval Artifact Requirements
116
+
117
+ Only selected project-key writes require a local approval artifact. The CLI adds `write_approval` metadata only when the command is in the required set and the caller supplies `--confirm-write --approval-artifact <path>`.
118
+
119
+ | Category | Commands | Artifact |
120
+ | --- | --- | --- |
121
+ | Required | `create-prd`, `update-team`, `update-owner`, `update-client`, `feedback submit`, `feedback revise`, `feedback comment`, `suggestions create`, `suggestions revise` | Yes |
122
+ | Not required | `run-qaqc`, `mission status`, `mission archive`, `suggestions review`, `feedback review`, `feedback move`, `feedback undo`, `feedback apply` | No |
123
+ | Never required | `config`, `query`, `bootstrap`, `sync-qaqc`, `feedback-sync`, `suggestions sync`, `feedback get/history/reviews/prd-versions/prd-diff/validate`, local feedback draft commands | No |
90
124
 
91
- All live project-key writes must be approved by the user before the CLI sends them to Myte.
125
+ For required actions:
92
126
 
93
- - First create a local `.md`, `.yml`, `.yaml`, or `.json` approval artifact that lists the command, every target id, and the proposed change.
94
- - Show the artifact path and full content or concise complete summary to the user.
127
+ - First create a local `.md`, `.markdown`, `.yml`, `.yaml`, or `.json` approval artifact that lists the command, every target id, and the proposed change.
128
+ - Show the artifact path and full content or a concise complete summary to the user.
95
129
  - After explicit approval, rerun the write with `--confirm-write --approval-artifact <path>`.
96
- - Batch writes must enumerate every feedback id, mission id, suggestion id, request id, or PRD item in the artifact. QAQC batches are capped by the API at 10 mission ids.
97
- - The API also validates the approval envelope, payload hash, targets, and true batch count, so direct HTTP calls with only the API key are rejected.
130
+ - Batch artifacts must enumerate every feedback id, suggestion id, request id, or PRD item.
131
+
132
+ In plain language, the artifact is the human-reviewed record of the exact write the agent is about to send. It is not a permission grant and it does not bypass project owner/delegate checks, idempotency, stale-state guards, validation, or audit. It tells the API that a human approved this payload.
133
+
134
+ Minimum artifact contents:
135
+
136
+ - `command`: the exact CLI command to run.
137
+ - `targets`: every affected feedback id, request id, suggestion id, mission id, PRD file/client ref, project, or contact id.
138
+ - `proposed_change`: a complete summary of the status, text, PRD, comment, or mission change.
139
+ - `batch_count`: required when one command sends multiple items.
140
+ - `reason` or `approval_note`: why the write is being sent.
141
+
142
+ Batch guidance:
143
+
144
+ - Mission edit/create batches use `myte suggestions create` or `myte suggestions revise`. The artifact must list each item. For edits include `change_type: update`, the existing `mission_id`, and changed fields. For new missions include `change_type: create`, title, description, and acceptance details. For revisions include each `suggestion_id` and expected revision.
145
+ - Without `--document-set`, `myte create-prd fileA.md fileB.md ...` preserves
146
+ the existing behavior and creates one independent Feedback item per file.
147
+ - With `--document-set`, one to three Markdown files create one Feedback item
148
+ with ordered, independently readable PRD documents. Each document is
149
+ validated locally against the 250,000-character server contract. The
150
+ approval artifact must list every file/title/client ref and the matching
151
+ document count.
152
+ - Feedback submit/revise/comment artifacts are usually the same YAML or markdown file being submitted. If the command uses inline text or stdin, create a separate approval memo with the feedback id or request id and exact content.
153
+ - Team, owner, and client update artifacts should name the audience and include the exact message body or a complete summary. Client updates should include target contact ids when used.
154
+ - `feedback review --request-ids`, `feedback move --feedback-ids`, `mission status --mission-ids`, `mission archive --mission-ids`, and `run-qaqc --mission-ids` are batched governed writes, but they are marked `Not required` and should not receive approval artifact flags.
155
+
156
+ For actions marked `Not required`, call the command directly. The backend still enforces project-key authentication, idempotency, owner/delegate capability rules, stale-state guards, validation, rate limits, and audit history.
98
157
 
99
158
  ## Agent Usage Contract
100
159
 
@@ -109,14 +168,14 @@ The key resolves the project server-side. Agents should not pass `project_id` ma
109
168
  Recommended agent flow:
110
169
 
111
170
  1. Run `myte config --json` to confirm the project, API base, configured repos, and local workspace detection.
112
- 2. Run `myte bootstrap --json`, `myte feedback-sync --json`, or `myte sync-qaqc --json` to hydrate local context under `MyteCommandCenter`. Use `myte suggestions sync --json` only for narrow mission-review refreshes after bootstrap.
171
+ 2. Run `myte bootstrap --json`, `myte feedback-sync --json`, or `myte sync-qaqc --json` to hydrate local context under `MyteCommandCenter`. `bootstrap` also writes `MyteCommandCenter/AgentsMyteAPI.md`, the local action matrix agents should consult before mutating Myte state. Use `myte suggestions sync --json` only for narrow mission-review refreshes after bootstrap.
113
172
  3. Use `myte query "<goal/evidence/ask>" --with-diff` when local code changes matter.
114
- 4. Use `myte create-prd <file.md>` only after the PRD markdown has been reviewed by a human, then send it with `--confirm-write --approval-artifact <path>`. The file body is the PRD document; `--description` is only the short board/card summary.
115
- 5. Use `myte feedback status|edit|assign|archive` to create reviewable local artifacts, then `feedback submit` and `feedback review` for the owner-review membrane.
173
+ 4. Use `myte create-prd <file.md> --confirm-write --approval-artifact <path>` only after the PRD markdown has been reviewed by a human. Add `--document-set` for one parent with up to three ordered documents. Without that flag, multiple files remain independent PRDs. The file body is the PRD document; `--description` is only the short board/card summary.
174
+ 5. Use `myte feedback status|edit|assign|archive|refine` to create reviewable local artifacts. `feedback submit` and `feedback revise` require an approval artifact; `feedback review` does not because the backend owner/delegate review membrane is the approval control.
116
175
  6. Use `myte feedback move` only for direct board movement that is intentionally audited, with a clear `--reason`; use `--feedback-ids` for batch moves or batch archive.
117
- 7. Use `myte suggestions create|revise|review` for mission review threads. Valid create `change_type` values are exactly `update` and `create`; revisions keep the existing thread type and must not include `change_type`.
176
+ 7. Use `myte suggestions create|revise|review` for mission review threads. `suggestions create` and `suggestions revise` require an approval artifact; `suggestions review` does not because the backend Project Owner/elevated-delegate decision is the approval control. Valid create `change_type` values are exactly `update` and `create`; revisions keep the existing thread type and must not include `change_type`.
118
177
  8. Use `myte mission archive` for project-key mission lifecycle archival. Archive requires Project Owner or elevated delegate capability; restore is web-only from the archived missions board.
119
- 9. Use `myte update-team "<content>"` for project/team comments through `/api/project-assistant/project-comment`, and `myte feedback comment --feedback-id <id> --body-file ./comment.md` for feedback-specific implementation notes.
178
+ 9. Use `myte update-team "<content>" --confirm-write --approval-artifact <path>` for project/team comments through `/api/project-assistant/project-comment`, and `myte feedback comment --feedback-id <id> --body-file ./comment.md --confirm-write --approval-artifact ./comment.md` for feedback-specific implementation notes.
120
179
 
121
180
  PRD document contract:
122
181
 
@@ -127,7 +186,33 @@ PRD document contract:
127
186
  - The UI renders the PRD from the stored document text, not from the card description.
128
187
  - Renderer-friendly PRDs should use one `# Title`, `##` sections, concise paragraphs, bullets, GitHub tables/checklists where useful, and fenced code blocks only for real code/config.
129
188
  - Do not wrap the whole PRD in a ` ```markdown ` fence. Do not use raw HTML, inline style blocks, or decorative banners.
130
- - PRD identity is explicit: `myte create-prd` creates a PRD asset with PRD metadata. Generic uploaded `.md`, `.docx`, `.pdf`, and `.txt` files remain normal attachments unless explicitly created as PRDs.
189
+ - PRD identity is explicit: `myte create-prd` creates a PRD asset with PRD metadata. Generic uploaded `.md`, `.docx`, `.pdf`, and `.txt` files remain normal attachments unless explicitly created as PRDs.
190
+ - Document-set uploads preserve the exact source Markdown and also store a
191
+ normalized rendering copy. Rendering cleanup never silently rewrites the
192
+ approved source.
193
+
194
+ ## Connectivity Diagnostics
195
+
196
+ Run this before assuming an API key or server failure:
197
+
198
+ ```bash
199
+ myte doctor --json
200
+ ```
201
+
202
+ Interpret the first failed layer:
203
+
204
+ - `dns`: the API hostname could not be resolved.
205
+ - `tcp`: the host resolved but port 443 could not be reached.
206
+ - `tls`: the secure connection was reset or certificate validation failed
207
+ before an HTTP request reached Myte.
208
+ - `http`: Myte or an intermediary returned a status or non-JSON response.
209
+ - `authentication` / `authorization`: the API received the request and
210
+ rejected the credential or capability.
211
+
212
+ On restricted Wi-Fi, complete any captive-portal login, configure the
213
+ network's supported proxy/VPN, or retry on another network. The CLI honors
214
+ `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`; it never recommends disabling
215
+ certificate verification.
131
216
 
132
217
  Preferred file shape:
133
218
 
@@ -152,7 +237,7 @@ Feedback comments nuance:
152
237
 
153
238
  - `myte feedback-sync` reads existing feedback comment turns and stores them in `MyteCommandCenter/data/feedback.yml`.
154
239
  - The web product supports feedback-specific comment create/fetch through JWT-authenticated `/api/feedbacks/<feedback_id>/comments`.
155
- - The project-key npm CLI supports `myte feedback comment --feedback-id <id> --body "..."` and `--body-file ./comment.md`.
240
+ - The project-key npm CLI supports `myte feedback comment --feedback-id <id> --body "..." --confirm-write --approval-artifact ./comment.md` and `--body-file ./comment.md --confirm-write --approval-artifact ./comment.md`.
156
241
  - Project-key feedback comments are text-only in this slice and cap content at 500,000 characters. Use the web UI when attachments are required.
157
242
 
158
243
  ## Commands
@@ -164,7 +249,10 @@ Feedback comments nuance:
164
249
  - `mission archive`: archive missions without hard delete
165
250
  - `sync-qaqc`: refresh active mission QAQC context locally
166
251
  - `feedback-sync`: refresh feedback and PRD context locally
167
- - `feedback status|edit|assign|archive|submit|revise|reviews|review|move|comment|undo|prd-versions|prd-diff|validate|apply|history|get`: create reviewable feedback artifacts and operate the governed Feedback API
252
+ - `feedback status|edit|assign|archive|refine`: create reviewable local feedback artifacts only
253
+ - `feedback submit|revise|comment`: live Feedback writes requiring `--confirm-write --approval-artifact <path>`
254
+ - `feedback review|move|undo|apply`: governed Feedback writes with no approval artifact flags
255
+ - `feedback-sync|get|history|reviews|prd-versions|prd-diff|validate`: read, sync, or validate Feedback state
168
256
  - `suggestions sync|create|revise|review`: work with mission suggestion workflow state
169
257
  - `query`: ask the project assistant, optionally with local diff context
170
258
  - `ai`: use the Myte AI gateway
@@ -201,12 +289,12 @@ Feedback comments nuance:
201
289
  | --- | --- | --- |
202
290
  | Sync mission cards and review threads | `myte bootstrap --json` | Refreshes `MyteCommandCenter/data/missions/*.yml`, project structure, and `MyteCommandCenter/data/mission-ops.yml`. |
203
291
  | Sync only mission review threads | `myte suggestions sync --json` | Narrow refresh for `mission-ops.yml` after bootstrap or a mutation. |
204
- | Suggest edit to existing mission | `myte suggestions create` with `change_type: update` and `mission_id` | Creates or appends to an active review thread; live mission is unchanged until approval. |
205
- | Suggest new mission | `myte suggestions create` with `change_type: create` | Requires `change_set.title` and `change_set.description`; mission card is created only after approval. |
206
- | Revise a suggestion | `myte suggestions revise` with `suggestion_id` | Adds another revision to the same thread. Do not include `change_type`. |
207
- | Review a suggestion | `myte suggestions review` with `review_action: approve|request_changes|reject` | Project Owner or elevated mission-review delegate required. |
208
- | Update mission status | `myte mission status --mission-ids "M001" --status todo|in_progress|done` | Active status update only; refreshes local bootstrap + mission-ops by default. |
209
- | Archive mission | `myte mission archive --mission-ids "M001" --reason "..."` | Project Owner or elevated delegate required. Keeps the mission record, hides it from normal board/bootstrap state, and refreshes local bootstrap + mission-ops by default. |
292
+ | Suggest edit to existing mission | `myte suggestions create --file ./create.yml --confirm-write --approval-artifact ./create.yml` with `change_type: update` and `mission_id` | Creates or appends to an active review thread; live mission is unchanged until approval. |
293
+ | Suggest new mission | `myte suggestions create --file ./create.yml --confirm-write --approval-artifact ./create.yml` with `change_type: create` | Requires `change_set.title` and `change_set.description`; mission card is created only after approval. |
294
+ | Revise a suggestion | `myte suggestions revise --file ./revise.yml --confirm-write --approval-artifact ./revise.yml` with `suggestion_id` | Adds another revision to the same thread. Do not include `change_type`. |
295
+ | Review a suggestion | `myte suggestions review` with `review_action: approve|request_changes|reject` | Project Owner or elevated mission-review delegate required; no approval artifact required. |
296
+ | Update mission status | `myte mission status --mission-ids "M001" --status todo|in_progress|done` | Active status update only; no approval artifact required; refreshes local bootstrap + mission-ops by default. |
297
+ | Archive mission | `myte mission archive --mission-ids "M001" --reason "..."` | Project Owner or elevated delegate required; no approval artifact required. Keeps the mission record, hides it from normal board/bootstrap state, and refreshes local bootstrap + mission-ops by default. |
210
298
 
211
299
  After `bootstrap`, find ids locally:
212
300
 
@@ -226,18 +314,18 @@ After `bootstrap`, find ids locally:
226
314
  | `feedback edit` / `feedback refine` | Creates a local YAML proposal for title, description/body, priority, due date, tags, or notes. | Content changes go through owner-review membrane. |
227
315
  | `feedback assign` | Creates a local YAML proposal to change assignee. | Goes through review unless applied through owner-direct path. |
228
316
  | `feedback archive` | Creates a local YAML proposal to archive. | Archive is governed by backend owner/delegate capability. |
229
- | `feedback submit` | Sends a local proposal artifact to the backend as a review request. | Does not mutate live feedback before approval. |
230
- | `feedback revise` | Resubmits the original submitter's request after `request_changes`. | Only valid for the original submitter and `needs_changes` requests. |
317
+ | `feedback submit` | Sends a local proposal artifact to the backend as a review request. | Requires `--confirm-write --approval-artifact <path>`; does not mutate live feedback before approval. |
318
+ | `feedback revise` | Resubmits the original submitter's request after `request_changes`. | Requires `--confirm-write --approval-artifact <path>`; only valid for the original submitter and `needs_changes` requests. |
231
319
  | `feedback reviews` | Lists review requests or fetches one request by `--request-id`. | Read-only; response includes backend permissions. |
232
- | `feedback review` | Approves, rejects, requests changes, or cancels one review request, or a batch with `--request-ids`. | Backend restricts approval/review decisions to Project Owner or elevated delegate for Feedback scope; batch review uses one grouped notification path. |
233
- | `feedback move` | Moves a card or batch of cards across allowed board states directly with an audit event. | `--feedback-ids` sends one batch request. Blocked with `pending_feedback_review` while an active linked review request exists; governed states such as archive/reject/deploy/freeze remain backend-authorized. Project-key unarchive is not supported. |
234
- | `feedback comment` | Creates a text-only comment on one Feedback item. | Backend checks project-key access, owner/assigned permission, idempotency, and the 500,000-character content cap. Attachments remain web UI only. |
235
- | `feedback undo` | Reverses an audited board event when there is no conflict. | Backend validates event ownership/project scope and conflict state. |
320
+ | `feedback review` | Approves, rejects, requests changes, or cancels one review request, or a batch with `--request-ids`. | No approval artifact required; backend restricts approval/review decisions to Project Owner or elevated delegate for Feedback scope; batch review uses one grouped notification path. |
321
+ | `feedback move` | Moves a card or batch of cards across allowed board states directly with an audit event. | No approval artifact required. `--feedback-ids` sends one batch request. Blocked with `pending_feedback_review` while an active linked review request exists; governed states such as archive/reject/deploy/freeze remain backend-authorized. Project-key unarchive is not supported. |
322
+ | `feedback comment` | Creates a text-only comment on one Feedback item. | Requires `--confirm-write --approval-artifact <path>`; backend checks project-key access, owner/assigned permission, idempotency, and the 500,000-character content cap. Attachments remain web UI only. |
323
+ | `feedback undo` | Reverses an audited board event when there is no conflict. | No approval artifact required; backend validates event ownership/project scope and conflict state. |
236
324
  | `feedback prd-versions` | Lists retained PRD baselines/revisions for a feedback item. | Read-only; old S3 objects are retained by reference. |
237
325
  | `feedback prd-diff` | Fetches backend-generated text diff for PRD versions. | Read-only; backend controls version access. |
238
326
  | `feedback history` | Lists audited feedback board/refinement events. | Read-only; backend checks project access. |
239
327
  | `feedback validate` | Sends an artifact to backend validation without mutation. | Useful before submit or owner-direct apply. |
240
- | `feedback apply` | Applies an artifact through the owner-direct/emergency path. | Not the normal collaborator flow; normal flow is `submit` -> `review`. |
328
+ | `feedback apply` | Applies an artifact through the owner-direct/emergency path. | No approval artifact required; not the normal collaborator flow; normal flow is `submit` -> `review`. |
241
329
 
242
330
  Canonical feedback lifecycle states are `frozen`, `todo`, `in_progress`, `in_review`, `completed`, `deployed`, `rejected`, and `archived`.
243
331
 
@@ -249,13 +337,16 @@ npx --package @mytegroupinc/myte-core node ./node_modules/@mytegroupinc/myte-cor
249
337
 
250
338
  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.
251
339
 
252
- ## Direct Project API Surface
253
-
254
- All routes use `Authorization: Bearer <MYTE_API_KEY>`. The CLI adds idempotency and client-session headers on mutation routes.
255
-
256
- Read/sync routes:
257
-
258
- - `GET /api/project-assistant/config`
340
+ ## Direct Project API Surface
341
+
342
+ All routes use `Authorization: Bearer <MYTE_API_KEY>`. The CLI adds idempotency and client-session headers on mutation routes.
343
+
344
+ `myte ai` is separate from this project-scoped surface. It uses `MYTEAI_API_KEY` and calls `POST https://api.myte.ai/v1/chat/completions`, or `${MYTEAI_API_BASE}/v1/chat/completions` when that base is configured.
345
+
346
+ Read/sync routes:
347
+
348
+ - `GET /api/project-assistant/query/<job_id>`
349
+ - `GET /api/project-assistant/config`
259
350
  - `GET /api/project-assistant/bootstrap`
260
351
  - `GET /api/project-assistant/qaqc-sync`
261
352
  - `GET /api/project-assistant/feedback-sync`
package/package.json CHANGED
@@ -1,24 +1,28 @@
1
1
  {
2
2
  "name": "myte",
3
- "version": "0.0.46",
3
+ "version": "0.0.49",
4
4
  "description": "Myte developer CLI.",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "files": [
8
- "README.md",
9
- "THIRD_PARTY_NOTICES.md",
10
- "TRADEMARKS.md",
11
- "bin",
12
- "package.json"
8
+ "README.md",
9
+ "THIRD_PARTY_NOTICES.md",
10
+ "TRADEMARKS.md",
11
+ "bin",
12
+ "scripts",
13
+ "package.json"
13
14
  ],
14
- "bin": {
15
- "myte": "bin/myte.js",
16
- "mytecody": "bin/mytecody.js"
17
- },
18
- "engines": {
19
- "node": ">=18"
15
+ "bin": {
16
+ "myte": "bin/myte.js",
17
+ "mytecody": "bin/mytecody.js"
18
+ },
19
+ "scripts": {
20
+ "postinstall": "node scripts/postinstall.js"
21
+ },
22
+ "engines": {
23
+ "node": ">=18.17"
20
24
  },
21
25
  "dependencies": {
22
- "@mytegroupinc/myte-core": "0.0.46"
26
+ "@mytegroupinc/myte-core": "0.0.49"
23
27
  }
24
28
  }
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ console.log([
4
+ "Myte CLI installed successfully.",
5
+ "Included: myte and mytecody commands, the Myte API client, and portable proxy support.",
6
+ "The MyteCody engine and client assets are downloaded on first `mytecody` coding run.",
7
+ "Run `myte --help` to get started.",
8
+ ].join("\n"));