@cueloop/schema 0.1.0-alpha.90 → 0.1.0-alpha.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueloop/schema",
3
- "version": "0.1.0-alpha.90",
3
+ "version": "0.1.0-alpha.92",
4
4
  "description": "The Thread primitive: types, markdown block model, quote-primary anchors, feedback serialization",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
package/src/types.test.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  annotationTarget,
4
4
  ARTIFACT_TYPES,
5
5
  WORKFLOW_KINDS,
6
+ WORKFLOW_SKILL_KINDS,
6
7
  isArtifactType,
7
8
  isMarkdownArtifact,
8
9
  newAnnotationId,
@@ -42,6 +43,13 @@ describe("WORKFLOW_KINDS", () => {
42
43
  });
43
44
  });
44
45
 
46
+ describe("WORKFLOW_SKILL_KINDS", () => {
47
+ test("includes the live pairing skill without adding it to artifact submission workflows", () => {
48
+ expect(WORKFLOW_SKILL_KINDS).toEqual([...WORKFLOW_KINDS, "pair"]);
49
+ expect(WORKFLOW_KINDS).not.toContain("pair");
50
+ });
51
+ });
52
+
45
53
  describe("messageAllows", () => {
46
54
  test("only approve maps to allow", () => {
47
55
  expect(messageAllows("approved")).toBe(true);
package/src/types.ts CHANGED
@@ -38,6 +38,11 @@ export const WORKFLOW_KINDS = ["plan", "reply", "prototype", "diff", "review", "
38
38
 
39
39
  export type WorkflowKind = (typeof WORKFLOW_KINDS)[number];
40
40
 
41
+ /** Agent skills installed by each harness, including workflows that don't submit an artifact. */
42
+ export const WORKFLOW_SKILL_KINDS = [...WORKFLOW_KINDS, "pair"] as const;
43
+
44
+ export type WorkflowSkillKind = (typeof WORKFLOW_SKILL_KINDS)[number];
45
+
41
46
  /** Trust-boundary guard: is this string one of the artifact primitives? */
42
47
  export function isArtifactType(value: string): value is ArtifactType {
43
48
  return ARTIFACT_TYPES.some((candidate) => candidate === value);