@mytegroupinc/myte-core 0.0.47 → 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
@@ -9,25 +9,43 @@ Most users should install the public wrapper instead:
9
9
 
10
10
  This package exists so the public wrapper can stay small and versioned cleanly. It is not the recommended public install target.
11
11
 
12
- ## Requirements
13
-
14
- - Node `18+`
12
+ ## Requirements
13
+
14
+ - Node `18.17+`
15
15
  - `MYTE_API_KEY` for project-scoped commands
16
16
  - `MYTEAI_API_KEY` for `myte ai`
17
17
  - `MYTEAI_API_KEY` for `mytecody`
18
18
  - `git` only when using `query --with-diff`
19
- - No runtime npm dependencies. The CLI uses Node 18+ built-ins for env loading, argument parsing, HTTP, and local context serialization.
19
+ - The CLI uses Node built-ins for env loading, argument parsing, direct HTTP,
20
+ and local serialization. `undici` supplies portable
21
+ `HTTP_PROXY`/`HTTPS_PROXY`/`NO_PROXY` support across the supported Node
22
+ versions.
20
23
 
21
24
  ## Behavior Summary
22
25
 
26
+ - `myte doctor --json` performs read-only package, credential-presence, DNS,
27
+ TCP/TLS, authenticated config, proxy, and workspace checks without exposing
28
+ keys, proxy values, request bodies, or response bodies.
29
+ - `myte info` and `myte --version --verbose` show the wrapper/core topology,
30
+ runtime dependencies, expected npm graph size, and version compatibility.
31
+ - Network diagnostics preserve nested transport causes and distinguish DNS,
32
+ TCP, TLS/certificate, timeout, captive portal/non-JSON, authentication,
33
+ authorization, rate-limit, and server failures.
34
+ - Safe transient reads and query polling use bounded retries. Query creation
35
+ reuses one idempotency key across ambiguous retries.
23
36
  - Snapshot-style commands such as `bootstrap`, `sync-qaqc`, `feedback-sync`, and `suggestions sync` write local `MyteCommandCenter` data.
37
+ - `feedback-sync` prefers stable ObjectId cursor pagination so concurrent
38
+ inserts cannot shift later pages. It remains compatible with older
39
+ offset-only API versions and rejects duplicate cross-page records instead of
40
+ committing an ambiguous local snapshot.
24
41
  - `feedback status|edit|assign|archive|refine` writes reviewable local YAML artifacts.
25
42
  - `feedback submit|revise|comment` are live writes that require `--confirm-write --approval-artifact <path>`.
26
43
  - `feedback review|move|undo|apply` are governed writes with backend permission checks but no approval artifact flags.
27
44
  - `feedback-sync|get|history|reviews|prd-versions|prd-diff|validate` are read/sync/validation commands with no approval artifact flags.
28
45
  - `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.
29
46
  - `feedback validate|apply` remains available for validation and owner-direct apply paths; live authorization, stale checks, and history stay server-side.
30
- - `query --with-diff` requires project repos to be configured for diff collection and fails fast when no matching local project repo can be resolved.
47
+ - `query --with-diff` requires project repos to be configured for diff collection and fails fast when no matching local project repo can be resolved.
48
+ - `query --json` returns the stable request ID, query job ID, answer, context-block count payload, and telemetry without echoing the query text.
31
49
  - Public package documentation is intentionally minimal. Internal rollout and design notes are not part of the npm package contract.
32
50
  - `mytecody` is a model-agnostic MyteCody team launcher. It supports `doctor`,
33
51
  `doctor --probe-gateway`, `update --dry-run`, and `update`. On first coding
@@ -60,7 +78,11 @@ Only selected project-key writes require a server-validated approval envelope. T
60
78
  - 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.
61
79
  - Minimum artifact contents are the exact command, every target id or PRD item, a complete proposed-change summary, a reason, and `batch_count` when one command sends multiple items.
62
80
  - Mission edit/create batches use `suggestions create` or `suggestions revise`; list every item, including `change_type`, `mission_id` for updates, proposed title/description for creates, and `suggestion_id` plus expected revision for revisions.
63
- - PRD batches use one `create-prd fileA.md fileB.md ...`; list each PRD file/title/client ref and make `batch_count` match the number of PRDs.
81
+ - Without `--document-set`, `create-prd fileA.md fileB.md ...` creates
82
+ independent Feedback items as before. With `--document-set`, one to three
83
+ Markdown files of at most 250,000 characters each create one parent Feedback
84
+ with ordered PRD documents. List every file/title/client ref and the matching
85
+ count in the approval artifact.
64
86
  - Feedback submit/revise/comment artifacts are usually the same YAML or markdown file being submitted. For inline text or stdin, use a separate approval memo with the feedback id or request id and exact content.
65
87
  - 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.
66
88
  - `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.
@@ -78,6 +100,9 @@ Coding agents should treat `MYTE_API_KEY` as a project-scoped Project Assistant
78
100
  - Use `suggestions sync` only when you need to refresh mission review-thread state without refreshing the full board.
79
101
  - Use `query --with-diff` for project-scoped code review, planning, and implementation questions.
80
102
  - Use `create-prd` only with reviewed markdown files and `--confirm-write --approval-artifact <path>`. The markdown file body is the PRD document; `description` is only the short board/card summary.
103
+ - Use `create-prd --document-set` only when the explicit intent is one parent
104
+ Feedback with one to three ordered documents; omitting it preserves
105
+ independent multi-file creation.
81
106
  - Use `feedback status|edit|assign|archive|refine` for reviewable local artifacts. `feedback submit` and `feedback revise` require an approval artifact; `feedback review` does not because the backend owner/delegate decision is the approval control.
82
107
  - Use `feedback review --request-ids` for batch owner/delegate decisions; it sends one grouped backend batch, not one request per item.
83
108
  - Use `suggestions create` for both existing-mission edits and new-mission proposals, with `--confirm-write --approval-artifact <path>`. The only valid `change_type` values are `update` and `create`.
@@ -102,7 +127,23 @@ PRD document contract:
102
127
  - The UI renders the PRD from stored PRD text/document content, not from `description`.
103
128
  - 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.
104
129
  - Do not wrap the whole PRD in a ` ```markdown ` fence. Do not use raw HTML, inline style blocks, or decorative banners.
105
- - 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.
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.
131
+ - Document sets retain exact source Markdown plus canonical rendering
132
+ Markdown, stable document IDs, per-document hashes, and independent
133
+ download/read targets.
134
+
135
+ ## Project Assistant Connectivity
136
+
137
+ `myte doctor --json` should be the first diagnostic when a command reports
138
+ `fetch failed`. A DNS or TCP result means the request did not reach HTTP. A
139
+ TLS reset means the secure connection was interrupted before Myte could
140
+ receive the API key. Authentication and authorization are reported only when
141
+ the API actually returns those responses.
142
+
143
+ The CLI honors `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`. It does not log
144
+ their values and does not disable TLS verification. Captive portals and
145
+ intercepting gateways are reported as non-JSON/HTML transport failures rather
146
+ than as malformed Myte API responses.
106
147
 
107
148
  Feedback comment support:
108
149