@mytegroupinc/myte-core 0.0.55 → 0.0.56

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
@@ -47,7 +47,7 @@ This package exists so the public wrapper can stay small and versioned cleanly.
47
47
  - `feedback status|edit|document-add|assign|archive|refine` writes reviewable local YAML artifacts.
48
48
  - `feedback submit|revise|comment` are live writes that require `--confirm-write --approval-artifact <path>`.
49
49
  - `feedback review|move|undo|apply` are governed writes with backend permission checks but no approval artifact flags.
50
- - `feedback-sync|get|history|reviews|prd-versions|prd-diff|validate` are read/sync/validation commands with no approval artifact flags.
50
+ - `feedback-sync|get|history|reviews|prd-versions|prd-diff|validate` and `feedback tickets list|validate-create|validate-update` are read/sync/validation commands with no approval artifact flags.
51
51
  - `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.
52
52
  - `feedback validate|apply` remains available for validation and owner-direct apply paths; live authorization, stale checks, and history stay server-side.
53
53
  - `query --with-diff` requires project repos to be configured for diff collection and fails fast when no matching local project repo can be resolved.
@@ -72,7 +72,7 @@ Only selected project-key writes require a server-validated approval envelope. T
72
72
 
73
73
  | Category | Commands | Artifact |
74
74
  | --- | --- | --- |
75
- | Required | `create-prd`, `update-team`, `update-owner`, `update-client`, `feedback submit`, `feedback revise`, `feedback comment`, `suggestions create`, `suggestions revise` | Yes |
75
+ | Required | `create-prd`, `update-team`, `update-owner`, `update-client`, `feedback submit`, `feedback revise`, `feedback comment`, `feedback tickets create/update/coverage`, `suggestions create`, `suggestions revise` | Yes |
76
76
  | Not required | `run-qaqc`, `mission status`, `mission archive`, `suggestions review`, `feedback review`, `feedback move`, `feedback undo`, `feedback apply` | No |
77
77
  | 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 |
78
78
 
@@ -91,7 +91,9 @@ Only selected project-key writes require a server-validated approval envelope. T
91
91
  count in the approval artifact.
92
92
  - 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.
93
93
  - `feedback document-add --feedback-id <id> --prd-file ./document.md` creates a governed proposal to append one linked PRD document to the existing Feedback context. The addition is not live until the normal `feedback submit` -> owner/delegate `feedback review` flow applies it.
94
- - Governed document additions preserve existing document IDs, append a new stable document, create a new immutable PRD version, and emit `feedback_prd_document_added` so the Feedback context bubble/notification feed can link users back to the updated PRD context. Existing PRD sets may grow to twelve documents; new `create-prd --document-set` uploads remain capped at three.
94
+ - Governed document additions preserve existing document IDs, append a new stable document, create a new immutable PRD version, and emit `feedback_prd_document_added` so the Feedback context bubble/notification feed can link users back to the updated PRD context. Existing PRD sets may grow to twelve documents; new `create-prd --document-set` uploads remain capped at three.
95
+ - Every newly created PRD receives immutable version `1` and a stable primary document id. The API response returns `active_prd_version_id`, `active_prd_version_number`, and `primary_document_id` for immediate `feedback tickets create` use.
96
+ - A sub-ticket may link at most 25 PRD documents. The backend validates that every version/document pair belongs to that exact Feedback/PRD before any single or batch mutation.
95
97
  - 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.
96
98
  - `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.
97
99
  - The package does not bundle the large MyteCody engine binary or the async
@@ -146,8 +148,13 @@ PRD document contract:
146
148
  `myte doctor --json` should be the first diagnostic when a command reports
147
149
  `fetch failed`. A DNS or TCP result means the request did not reach HTTP. A
148
150
  TLS reset means the secure connection was interrupted before Myte could
149
- receive the API key. Authentication and authorization are reported only when
150
- the API actually returns those responses.
151
+ receive the API key. Authentication and authorization are reported only when
152
+ the API actually returns those responses.
153
+
154
+ For `policy_consent_required`, the CLI prints the required policy version and
155
+ the mission-board review path. This confirms that the key is valid; the user
156
+ who created the key must accept the current policy before Project Assistant
157
+ routes can run. Key rotation does not replace that consent step.
151
158
 
152
159
  The CLI honors `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`. It does not log
153
160
  their values and does not disable TLS verification. Captive portals and
@@ -261,6 +268,10 @@ Agent rule: never guess `suggestion_id`. If `mission-ops.yml` is missing or stal
261
268
  | `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. |
262
269
  | `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. |
263
270
  | `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. |
271
+ | `feedback tickets list` | Lists all engineering subtickets linked to one Feedback/PRD. | Synchronous project-bound read; ticket summaries are also present in `feedback-sync`. |
272
+ | `feedback tickets create` | Creates one ticket or one bounded batch from JSON/YAML. | `--dry-run` calls server validation; live writes require an approval artifact and idempotency. Batches are capped at 100 and return per-ticket receipts. |
273
+ | `feedback tickets update` | Revision-fences one update or batch-updates `--ticket-ids` in one request. | CLI reads current revisions for flag-based batches; stale or duplicate targets fail the whole batch. |
274
+ | `feedback tickets coverage` | Updates one ticket-to-PRD document coverage state. | Requires the ticket revision plus structured approval; the CLI resolves the current revision when omitted. |
264
275
  | `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. |
265
276
  | `feedback prd-versions` | Lists retained PRD baselines/revisions for a feedback item. | Read-only; old S3 objects are retained by reference. |
266
277
  | `feedback prd-diff` | Fetches backend-generated text diff for PRD versions. | Read-only; backend controls version access. |
@@ -322,10 +333,11 @@ Read/sync routes:
322
333
  - `GET /api/project-assistant/feedback-review-requests`
323
334
  - `GET /api/project-assistant/feedback-review-requests/<request_id>`
324
335
  - `GET /api/project-assistant/feedback/<feedback_id>/events`
336
+ - `GET /api/project-assistant/feedback/<feedback_id>/tickets`
325
337
  - `GET /api/project-assistant/feedback/<feedback_id>/prd/versions`
326
338
  - `GET /api/project-assistant/feedback/<feedback_id>/prd/versions/<version_id>/diff`
327
339
  - `GET /api/project-assistant/suggestions`
328
- - `GET /api/project-assistant/run-qaqc/<batch_id>`
340
+ - `GET /api/project-assistant/run-qaqc/<batch_id>`
329
341
 
330
342
  Mutation routes:
331
343
 
@@ -349,17 +361,24 @@ Mutation routes:
349
361
  - `POST /api/project-assistant/feedback/<feedback_id>/board-move`
350
362
  - `POST /api/project-assistant/feedback/batch-board-move`
351
363
  - `POST /api/project-assistant/feedback/<feedback_id>/comments`
364
+ - `POST /api/project-assistant/feedback/<feedback_id>/tickets`
365
+ - `POST /api/project-assistant/feedback/<feedback_id>/tickets/batch`
366
+ - `POST /api/project-assistant/feedback/<feedback_id>/tickets/batch/validate`
367
+ - `PATCH /api/project-assistant/feedback/<feedback_id>/tickets/<ticket_id>`
368
+ - `PATCH /api/project-assistant/feedback/<feedback_id>/tickets/batch`
369
+ - `POST /api/project-assistant/feedback/<feedback_id>/tickets/batch-update/validate`
370
+ - `PATCH /api/project-assistant/feedback/<feedback_id>/tickets/<ticket_id>/prd-coverage`
352
371
  - `POST /api/project-assistant/feedback/<feedback_id>/events/<event_id>/undo`
353
372
  - `POST /api/project-assistant/suggestions`
354
373
  - `POST /api/project-assistant/suggestions/revise`
355
- - `POST /api/project-assistant/suggestions/review`
356
-
357
- Query and QAQC status polling honors additive server timing from `Retry-After`
358
- and `next_poll_after_ms`, with bounded client jitter. This keeps one busy IDE
359
- fleet from synchronizing poll bursts. Older servers remain compatible through
360
- the existing bounded backoff fallback.
361
-
362
- The API keeps bounded CRUD and snapshot reads synchronous. Query and QAQC are
363
- durable asynchronous workflows; the CLI never assumes that every API action is
364
- a separate Celery task. Feedback sync pages are bounded (100 by default, 500
365
- maximum) and `create-prd` batch uploads are capped at 20 items by the backend.
374
+ - `POST /api/project-assistant/suggestions/review`
375
+
376
+ Query and QAQC status polling honors additive server timing from `Retry-After`
377
+ and `next_poll_after_ms`, with bounded client jitter. This keeps one busy IDE
378
+ fleet from synchronizing poll bursts. Older servers remain compatible through
379
+ the existing bounded backoff fallback.
380
+
381
+ The API keeps bounded CRUD and snapshot reads synchronous. Query and QAQC are
382
+ durable asynchronous workflows; the CLI never assumes that every API action is
383
+ a separate Celery task. Feedback sync pages are bounded (100 by default, 500
384
+ maximum) and `create-prd` batch uploads are capped at 20 items by the backend.