@aviaratech/ai-delivery 0.3.44 → 0.3.45

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
@@ -117,4 +117,4 @@ Release still requires the exact mandatory archive inventory, complete release/c
117
117
 
118
118
  Release is manual, main-only and uses npm trusted publishing. A packaged README edit changes the release candidate: retain accepted archives and independently qualify the new exact source/archive before dispatching.
119
119
 
120
- Source version **0.3.44** and green PR checks do not establish its qualification; see [#199](https://github.com/aviaratech/ai-delivery/issues/199). Wrappers and workflow definitions do not prove [#200](https://github.com/aviaratech/ai-delivery/issues/200)'s **under-60-second regular checks / under-five-minute qualification** targets. Functional removals and remaining documentation obligations stay with [#201](https://github.com/aviaratech/ai-delivery/issues/201).
120
+ Source version **0.3.45** and green PR checks do not establish its qualification; see [#199](https://github.com/aviaratech/ai-delivery/issues/199). Wrappers and workflow definitions do not prove [#200](https://github.com/aviaratech/ai-delivery/issues/200)'s **under-60-second regular checks / under-five-minute qualification** targets. Functional removals and remaining documentation obligations stay with [#201](https://github.com/aviaratech/ai-delivery/issues/201).
@@ -43,6 +43,8 @@ export declare const builderReady: () => {
43
43
  extends?: string[] | undefined;
44
44
  priorWork?: string[] | undefined;
45
45
  decisions?: string[] | undefined;
46
+ moneyPath?: boolean | undefined;
47
+ ownerOk?: string[] | undefined;
46
48
  surface?: {
47
49
  path: string;
48
50
  change: "add" | "delete" | "edit";
@@ -44,6 +44,8 @@ export declare const fixtureFields: {
44
44
  extends?: string[] | undefined;
45
45
  priorWork?: string[] | undefined;
46
46
  decisions?: string[] | undefined;
47
+ moneyPath?: boolean | undefined;
48
+ ownerOk?: string[] | undefined;
47
49
  surface?: {
48
50
  path: string;
49
51
  change: "add" | "delete" | "edit";
@@ -99,6 +101,8 @@ export declare const createFields: {
99
101
  extends?: string[] | undefined;
100
102
  priorWork?: string[] | undefined;
101
103
  decisions?: string[] | undefined;
104
+ moneyPath?: boolean | undefined;
105
+ ownerOk?: string[] | undefined;
102
106
  surface?: {
103
107
  path: string;
104
108
  change: "add" | "delete" | "edit";
@@ -45,6 +45,8 @@ export declare function issue63Fixture(): {
45
45
  extends?: string[] | undefined;
46
46
  priorWork?: string[] | undefined;
47
47
  decisions?: string[] | undefined;
48
+ moneyPath?: boolean | undefined;
49
+ ownerOk?: string[] | undefined;
48
50
  surface?: {
49
51
  path: string;
50
52
  change: "add" | "delete" | "edit";
@@ -98,6 +100,8 @@ export declare function issue63Fixture(): {
98
100
  extends?: string[] | undefined;
99
101
  priorWork?: string[] | undefined;
100
102
  decisions?: string[] | undefined;
103
+ moneyPath?: boolean | undefined;
104
+ ownerOk?: string[] | undefined;
101
105
  surface?: {
102
106
  path: string;
103
107
  change: "add" | "delete" | "edit";
package/dist/issue.js CHANGED
@@ -58,6 +58,7 @@ import {
58
58
  requireIssueStatus,
59
59
  parseIssueBody,
60
60
  requireIssue,
61
+ addedLocalPaths,
61
62
  renderIssueBody,
62
63
  issueWarnings,
63
64
  issueBodyDiff,
@@ -269,6 +270,10 @@ function prepareIssueWrite(input, current, forIntent = false) {
269
270
  },
270
271
  requireBuilder ? { requireBuilder: true } : {}
271
272
  );
273
+ if (currentParsed !== void 0 && !currentParsed.issue.draft && !issue.draft) {
274
+ const added = addedLocalPaths(currentParsed.issue, issue);
275
+ if (added.length) throw new IssueValidationError(added);
276
+ }
272
277
  const unchangedContract = currentParsed !== void 0 && JSON.stringify(issue) === JSON.stringify(currentParsed.issue);
273
278
  const legacyFormatting = unchangedContract && parsed.legacyFormatting === true;
274
279
  const base = parsed.status ?? currentParsed?.status;
@@ -986,9 +991,7 @@ function rebuildableWrite(input, current) {
986
991
  "draft",
987
992
  "openQuestions",
988
993
  "context",
989
- ...["builder", "extends", "priorWork", "decisions", "surface", "fences", "proof"].filter(
990
- (key) => carried.has(key)
991
- )
994
+ ...["builder", "extends", "priorWork", "decisions", "moneyPath", "ownerOk", "surface", "fences", "proof"].filter((key) => carried.has(key))
992
995
  ].filter((key) => input[key] === void 0);
993
996
  if (reset.length) {
994
997
  const message = `Rebuilt the hand-edited body (old one in the history comment); reset because not sent: ${reset.join(", ")}.`;