myte 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/README.md +85 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -10,15 +10,24 @@ Use one of these flows:
10
10
  - `npm install myte`
11
11
  - then run `npx myte config --json`
12
12
  - then run `npx myte bootstrap`
13
+ - then run `npx myte sync-qaqc`
13
14
  - then run `npx myte query "What changed in logging?" --with-diff`
15
+ - then run `npx myte update-team "Backend deploy completed; QAQC rerun queued."`
16
+ - then run `npx myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
14
17
  - or `npm exec myte -- query "What changed in logging?" --with-diff`
15
18
  - Global install:
16
19
  - `npm i -g myte`
17
20
  - then run `myte bootstrap`
21
+ - then run `myte sync-qaqc`
18
22
  - then run `myte query "What changed in logging?" --with-diff`
23
+ - then run `myte update-team "Backend deploy completed; QAQC rerun queued."`
24
+ - then run `myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
19
25
  - No install:
20
26
  - `npx myte@latest bootstrap`
27
+ - `npx myte@latest sync-qaqc`
21
28
  - `npx myte@latest query "What changed in logging?" --with-diff`
29
+ - `npx myte@latest update-team "Backend deploy completed; QAQC rerun queued."`
30
+ - `npx myte@latest update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
22
31
 
23
32
  `npm install myte` by itself does not put `myte` on your shell PATH. Use `npx myte` or `npm exec myte -- ...` unless you installed globally.
24
33
 
@@ -65,6 +74,8 @@ What it does:
65
74
  - fetches a project-scoped bootstrap snapshot from the API using your project key
66
75
  - validates the current wrapper workspace against the configured repo names
67
76
  - writes local files under `MyteCommandCenter/data`
77
+ - writes a normalized public Command Center schema, not raw backend mission/proposal documents
78
+ - excludes internal fields like `_id`, `org_id`, `project_id`, `created_by`, `assigned_to`, and raw `qa_qc_results`
68
79
 
69
80
  Files written:
70
81
  - `MyteCommandCenter/data/project.yml`
@@ -79,6 +90,34 @@ Useful forms:
79
90
  - `npx myte bootstrap --dry-run --json`
80
91
  - `npx myte bootstrap --output-dir ./MyteCommandCenter`
81
92
 
93
+ ## Sync active mission QAQC context
94
+
95
+ Run this from the wrapper root that contains the project's repo folders:
96
+
97
+ - `npx myte sync-qaqc`
98
+ - or `npm exec myte -- sync-qaqc`
99
+ - or `myte sync-qaqc`
100
+
101
+ What it does:
102
+ - fetches a project-scoped QAQC sync snapshot from the API using your project key
103
+ - works even if `bootstrap` has not been run yet
104
+ - creates `MyteCommandCenter/data/qaqc` automatically if it does not exist
105
+ - syncs only active `Todo` and `In Progress` missions
106
+ - writes a public QAQC summary per mission, not raw `qa_qc_results` or raw batch docs
107
+ - removes previously QAQC-managed mission files from `MyteCommandCenter/data/missions` when they are no longer active
108
+
109
+ Files written:
110
+ - `MyteCommandCenter/data/project.yml`
111
+ - `MyteCommandCenter/data/missions/<mission_id>.yml` for active missions
112
+ - `MyteCommandCenter/data/qaqc/active-missions/<mission_id>.yml`
113
+ - `MyteCommandCenter/data/qaqc/manifest.json`
114
+ - `MyteCommandCenter/data/qaqc/latest-batch.json`
115
+
116
+ Useful forms:
117
+ - `npx myte sync-qaqc --json`
118
+ - `npx myte sync-qaqc --dry-run --json`
119
+ - `npx myte sync-qaqc --output-dir ./MyteCommandCenter`
120
+
82
121
  ## Query with deterministic diff context
83
122
 
84
123
  Example:
@@ -155,10 +194,56 @@ To inspect the exact payload before sending it:
155
194
  - `npx myte create-prd ./drafts/auth-prd.md --print-context`
156
195
  - `npx myte create-prd ./drafts/auth-prd.md --description "Short card summary" --print-context`
157
196
 
197
+ ## Team updates
198
+
199
+ Use `update-team` to add a project comment through the project-key Project Assistant surface.
200
+
201
+ Examples:
202
+
203
+ - `npx myte update-team "Backend deploy completed; QAQC rerun queued."`
204
+ - `npm exec myte -- update-team "Frontend review is ready for sign-off."`
205
+ - `Get-Content -Raw .\notes\team-update.md | npx myte update-team --stdin`
206
+
207
+ What it sends:
208
+
209
+ - `POST /api/project-assistant/project-comment`
210
+ - payload: `{ "content": "..." }`
211
+
212
+ Useful forms:
213
+
214
+ - `npx myte update-team "Backend deploy completed." --print-context`
215
+ - `npx myte update-team "Backend deploy completed." --json`
216
+
217
+ ## Client update drafts
218
+
219
+ Use `update-client` to draft a branded client update email for owner review.
220
+
221
+ Examples:
222
+
223
+ - `npx myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
224
+ - `npx myte update-client --subject "Weekly client update" --body-markdown "## Progress\n- Login complete" --target-contact-ids 507f1f77bcf86cd799439011,507f1f77bcf86cd799439012`
225
+ - `Get-Content -Raw .\updates\week-12.md | npx myte update-client --stdin --subject "Weekly client update"`
226
+
227
+ What it sends:
228
+
229
+ - `POST /api/project-assistant/client-update-drafts`
230
+ - payload: `{ "subject": "...", "body_markdown": "...", "target_contact_ids": ["..."] }`
231
+
232
+ Notes:
233
+
234
+ - `--subject` is required.
235
+ - The body can come from `--body-markdown`, `--body-file`, a positional file path, positional inline text, or `--stdin`.
236
+ - `target_contact_ids` are optional. If omitted, the backend selects the linked primary client contact when available.
237
+ - Use `--target-contact-id <id>` multiple times or `--target-contact-ids <id1,id2>`.
238
+ - The CLI prints the returned draft summary, including the draft id, status, recipients, and snippet.
239
+
158
240
  ## Common commands
159
241
 
160
242
  - `npm install myte`
161
243
  - `npx myte bootstrap`
244
+ - `npx myte sync-qaqc`
162
245
  - `npx myte config --json`
163
246
  - `npx myte query "Summarize the current branch changes" --with-diff`
164
247
  - `npx myte create-prd ./drafts/auth-prd.md`
248
+ - `npx myte update-team "Backend deploy completed; QAQC rerun queued."`
249
+ - `npx myte update-client --subject "Weekly client update" --body-file ./updates/week-12.md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myte",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Myte developer CLI (Project Assistant + deterministic diffs).",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -16,6 +16,6 @@
16
16
  "node": ">=18"
17
17
  },
18
18
  "dependencies": {
19
- "@mytegroupinc/myte-core": "0.0.5"
19
+ "@mytegroupinc/myte-core": "0.0.7"
20
20
  }
21
21
  }