@cat-factory/contracts 0.150.0 → 0.151.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.
@@ -31,10 +31,12 @@ export type PipelinePurpose = v.InferOutput<typeof pipelinePurposeSchema>;
31
31
  export declare function purposeAllowsAgentCategory(purpose: Pipeline['purpose'] | null | undefined, category: AgentCategory): boolean;
32
32
  /**
33
33
  * Whether `pipeline` should be offered when starting a task of `taskType` — the pickers' gate.
34
- * Only a `document` task narrows the set: it authors a document, so it offers ONLY
35
- * `purpose: 'document'` pipelines. Every other task type (and an undefined `taskType`) is
36
- * unrestricted. A pipeline with no `purpose` is therefore hidden from a document task and shown
37
- * for every other. Composed with the launch-availability / visual-frame filters at each picker.
34
+ * A `document` task authors a document and a `review` task reviews an existing PR, so each narrows
35
+ * the set to ONLY its matching purpose (`document` / `review`): every other pipeline writes/ships
36
+ * code, which is meaningless for those tasks. Every OTHER task type (and an undefined `taskType`) is
37
+ * unrestricted. A pipeline with no `purpose` is therefore hidden from a document/review task (it
38
+ * requires the explicit classifier) and shown for every other. Composed with the launch-availability
39
+ * / visual-frame filters at each picker.
38
40
  */
39
41
  export declare function pipelineAllowedForTaskType(pipeline: Pick<Pipeline, 'purpose'>, taskType: TaskType | undefined): boolean;
40
42
  //# sourceMappingURL=pipeline-purpose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-purpose.d.ts","sourceRoot":"","sources":["../src/pipeline-purpose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,YAAI,OAAO,EAAE,UA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QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,EACnC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAC7B,OAAO,CAIT"}
@@ -48,14 +48,18 @@ export function purposeAllowsAgentCategory(purpose, category) {
48
48
  }
49
49
  /**
50
50
  * Whether `pipeline` should be offered when starting a task of `taskType` — the pickers' gate.
51
- * Only a `document` task narrows the set: it authors a document, so it offers ONLY
52
- * `purpose: 'document'` pipelines. Every other task type (and an undefined `taskType`) is
53
- * unrestricted. A pipeline with no `purpose` is therefore hidden from a document task and shown
54
- * for every other. Composed with the launch-availability / visual-frame filters at each picker.
51
+ * A `document` task authors a document and a `review` task reviews an existing PR, so each narrows
52
+ * the set to ONLY its matching purpose (`document` / `review`): every other pipeline writes/ships
53
+ * code, which is meaningless for those tasks. Every OTHER task type (and an undefined `taskType`) is
54
+ * unrestricted. A pipeline with no `purpose` is therefore hidden from a document/review task (it
55
+ * requires the explicit classifier) and shown for every other. Composed with the launch-availability
56
+ * / visual-frame filters at each picker.
55
57
  */
56
58
  export function pipelineAllowedForTaskType(pipeline, taskType) {
57
59
  if (taskType === 'document')
58
60
  return pipeline.purpose === 'document';
61
+ if (taskType === 'review')
62
+ return pipeline.purpose === 'review';
59
63
  return true;
60
64
  }
61
65
  //# sourceMappingURL=pipeline-purpose.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-purpose.js","sourceRoot":"","sources":["../src/pipeline-purpose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAU,CAAA;AACjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAA;AAGlE,8EAA8E;AAC9E,6EAA6E;AAC7E,EAAE;A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AuG;AACvG,MAAM,2BAA2B,GAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAA+C,EAC/C,QAAuB;IAEvB,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,OAAO;QAAE,OAAO,IAAI,CAAA;IAChD,OAAO,CAAC,2BAA2B,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AACxD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CACxC,QAAmC,EACnC,QAA8B;IAE9B,IAAI,QAAQ,KAAK,UAAU;QAAE,OAAO,QAAQ,CAAC,OAAO,KAAK,UAAU,CAAA;IACnE,IAAI,QAAQ,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAA;IAC/D,OAAO,IAAI,CAAA;AACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/contracts",
3
- "version": "0.150.0",
3
+ "version": "0.151.0",
4
4
  "description": "Valibot wire contract shared between the Agent Architecture Board frontend and backend.",
5
5
  "repository": {
6
6
  "type": "git",