@llm4ts/flow 2.15.0 → 2.17.0

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 (45) hide show
  1. package/dist/Approval.d.ts +1 -1
  2. package/dist/Approval.d.ts.map +1 -1
  3. package/dist/Artifacts.d.ts +2 -2
  4. package/dist/Artifacts.d.ts.map +1 -1
  5. package/dist/BenchReport.d.ts +2 -2
  6. package/dist/BenchReport.d.ts.map +1 -1
  7. package/dist/CostLedger.d.ts +2 -2
  8. package/dist/CostLedger.d.ts.map +1 -1
  9. package/dist/EpicBrief.d.ts +185 -0
  10. package/dist/EpicBrief.d.ts.map +1 -0
  11. package/dist/EpicBrief.js +781 -0
  12. package/dist/EpicBrief.js.map +1 -0
  13. package/dist/Equiv.d.ts +3 -3
  14. package/dist/Equiv.d.ts.map +1 -1
  15. package/dist/Flow.d.ts +1 -1
  16. package/dist/Flow.d.ts.map +1 -1
  17. package/dist/FlowError.d.ts +23 -1
  18. package/dist/FlowError.d.ts.map +1 -1
  19. package/dist/FlowError.js +30 -1
  20. package/dist/FlowError.js.map +1 -1
  21. package/dist/Judgment.d.ts +2 -2
  22. package/dist/Judgment.d.ts.map +1 -1
  23. package/dist/Landing.d.ts +1 -1
  24. package/dist/Landing.d.ts.map +1 -1
  25. package/dist/Persistence.d.ts +2 -2
  26. package/dist/Persistence.d.ts.map +1 -1
  27. package/dist/PlanExecution.d.ts +1 -1
  28. package/dist/PlanExecution.d.ts.map +1 -1
  29. package/dist/ProgramJudge.d.ts +1 -1
  30. package/dist/ProgramJudge.d.ts.map +1 -1
  31. package/dist/Replay.d.ts +2 -2
  32. package/dist/Replay.d.ts.map +1 -1
  33. package/dist/Review.d.ts +3 -3
  34. package/dist/Review.d.ts.map +1 -1
  35. package/dist/ReviewCache.d.ts +1 -1
  36. package/dist/ReviewCache.d.ts.map +1 -1
  37. package/dist/Roster.d.ts +1 -1
  38. package/dist/Roster.d.ts.map +1 -1
  39. package/dist/RosterSeats.d.ts +1 -1
  40. package/dist/RosterSeats.d.ts.map +1 -1
  41. package/dist/Stories.d.ts +1 -1
  42. package/dist/Stories.d.ts.map +1 -1
  43. package/package.json +3 -2
  44. package/src/EpicBrief.ts +900 -0
  45. package/src/FlowError.ts +39 -1
package/src/FlowError.ts CHANGED
@@ -293,6 +293,41 @@ export class OpenPointsPending extends Schema.TaggedError<OpenPointsPending>()(
293
293
  }
294
294
  }
295
295
 
296
+ /** `epic-design` needs the legacy repository's extract pack (docs/modernization/). */
297
+ export class ExtractPackMissing extends Schema.TaggedError<ExtractPackMissing>()(
298
+ "ExtractPackMissing",
299
+ {
300
+ legacyRepo: Schema.String
301
+ }
302
+ ) {
303
+ get message(): string {
304
+ return `no extract pack under ${this.legacyRepo}/docs/modernization/specs — run modernize-extract on the legacy repository first`
305
+ }
306
+ }
307
+
308
+ /** An epic brief that does not parse, or an approved one that fails its checks. */
309
+ export class EpicBriefInvalid extends Schema.TaggedError<EpicBriefInvalid>()("EpicBriefInvalid", {
310
+ path: Schema.optionalKey(Schema.String),
311
+ violations: Schema.Array(Schema.String)
312
+ }) {
313
+ get message(): string {
314
+ const where = this.path === undefined ? "" : ` in ${this.path}`
315
+ return `epic brief invalid${where}:\n${this.violations.map((violation) => `- ${violation}`).join("\n")}`
316
+ }
317
+ }
318
+
319
+ /** `epic-stories` found a draft brief in the epic's folder; it plans only from an approved one. */
320
+ export class EpicBriefNotApproved extends Schema.TaggedError<EpicBriefNotApproved>()(
321
+ "EpicBriefNotApproved",
322
+ {
323
+ path: Schema.String
324
+ }
325
+ ) {
326
+ get message(): string {
327
+ return `the epic brief at ${this.path} is a draft — set \`Status: approved\` once it is right, or run epic-design to revise it`
328
+ }
329
+ }
330
+
296
331
  /** Two page specs of one domain feature disagree on an API operation — never merged silently (ADR 0012 addendum). */
297
332
  export class ContractConflict extends Schema.TaggedError<ContractConflict>()("ContractConflict", {
298
333
  feature: Schema.String,
@@ -328,6 +363,9 @@ export const FlowError = Schema.Union([
328
363
  StoryFailed,
329
364
  DecisionsInvalid,
330
365
  OpenPointsPending,
331
- ContractConflict
366
+ ContractConflict,
367
+ ExtractPackMissing,
368
+ EpicBriefInvalid,
369
+ EpicBriefNotApproved
332
370
  ])
333
371
  export type FlowError = typeof FlowError.Type