@xenosystem/agent-sdk 0.9.10 → 0.9.11

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 (87) hide show
  1. package/dist/agents/index.cjs +9 -9
  2. package/dist/agents/index.d.cts +12 -2
  3. package/dist/agents/index.d.ts +12 -2
  4. package/dist/agents/index.js +16 -16
  5. package/dist/agents/metafile-cjs.json +1 -1
  6. package/dist/agents/metafile-esm.json +1 -1
  7. package/dist/artifacts/browser.cjs +1 -1
  8. package/dist/artifacts/browser.d.cts +2 -2
  9. package/dist/artifacts/browser.d.ts +2 -2
  10. package/dist/artifacts/browser.js +1 -1
  11. package/dist/artifacts/{diff-artifact-C2tQZWcs.d.cts → diff-artifact-CmhmeSu5.d.cts} +87 -7
  12. package/dist/artifacts/{diff-artifact-C2tQZWcs.d.ts → diff-artifact-CmhmeSu5.d.ts} +87 -7
  13. package/dist/artifacts/index.cjs +8 -8
  14. package/dist/artifacts/index.d.cts +22 -5
  15. package/dist/artifacts/index.d.ts +22 -5
  16. package/dist/artifacts/index.js +8 -8
  17. package/dist/artifacts/metafile-cjs.json +1 -1
  18. package/dist/artifacts/metafile-esm.json +1 -1
  19. package/dist/automation/index.cjs +2 -2
  20. package/dist/automation/index.d.cts +97 -7
  21. package/dist/automation/index.d.ts +97 -7
  22. package/dist/automation/index.js +2 -2
  23. package/dist/automation/metafile-cjs.json +1 -1
  24. package/dist/automation/metafile-esm.json +1 -1
  25. package/dist/control-plane/index.cjs +7 -7
  26. package/dist/control-plane/index.d.cts +19 -2
  27. package/dist/control-plane/index.d.ts +19 -2
  28. package/dist/control-plane/index.js +7 -7
  29. package/dist/control-plane/metafile-cjs.json +1 -1
  30. package/dist/control-plane/metafile-esm.json +1 -1
  31. package/dist/electron/index.cjs +142 -142
  32. package/dist/electron/index.d.cts +24 -4
  33. package/dist/electron/index.d.ts +24 -4
  34. package/dist/electron/index.js +140 -140
  35. package/dist/electron/metafile-cjs.json +1 -1
  36. package/dist/electron/metafile-esm.json +1 -1
  37. package/dist/hooks/index.d.cts +10 -1
  38. package/dist/hooks/index.d.ts +10 -1
  39. package/dist/hosted/index.cjs +1 -1
  40. package/dist/hosted/index.js +1 -1
  41. package/dist/hosted/metafile-cjs.json +1 -1
  42. package/dist/hosted/metafile-esm.json +1 -1
  43. package/dist/index.cjs +327 -327
  44. package/dist/index.d.cts +192 -24
  45. package/dist/index.d.ts +192 -24
  46. package/dist/index.js +328 -328
  47. package/dist/mcp/index.cjs +17 -17
  48. package/dist/mcp/index.js +17 -17
  49. package/dist/mcp/metafile-cjs.json +1 -1
  50. package/dist/mcp/metafile-esm.json +1 -1
  51. package/dist/metafile-cjs.json +1 -1
  52. package/dist/metafile-esm.json +1 -1
  53. package/dist/oracle/index.cjs +1 -1
  54. package/dist/oracle/index.d.cts +86 -6
  55. package/dist/oracle/index.d.ts +86 -6
  56. package/dist/oracle/index.js +1 -1
  57. package/dist/oracle/metafile-cjs.json +1 -1
  58. package/dist/oracle/metafile-esm.json +1 -1
  59. package/dist/providers/index.cjs +10 -10
  60. package/dist/providers/index.d.cts +1 -0
  61. package/dist/providers/index.d.ts +1 -0
  62. package/dist/providers/index.js +10 -10
  63. package/dist/providers/metafile-cjs.json +1 -1
  64. package/dist/providers/metafile-esm.json +1 -1
  65. package/dist/recipes/index.cjs +2 -2
  66. package/dist/recipes/index.d.cts +10 -1
  67. package/dist/recipes/index.d.ts +10 -1
  68. package/dist/recipes/index.js +2 -2
  69. package/dist/recipes/metafile-cjs.json +1 -1
  70. package/dist/recipes/metafile-esm.json +1 -1
  71. package/dist/research/index.cjs +3 -3
  72. package/dist/research/index.d.cts +86 -6
  73. package/dist/research/index.d.ts +86 -6
  74. package/dist/research/index.js +3 -3
  75. package/dist/research/metafile-cjs.json +1 -1
  76. package/dist/research/metafile-esm.json +1 -1
  77. package/dist/session/index.cjs +20 -20
  78. package/dist/session/index.js +21 -21
  79. package/dist/session/metafile-cjs.json +1 -1
  80. package/dist/session/metafile-esm.json +1 -1
  81. package/dist/utils/index.cjs +20 -20
  82. package/dist/utils/index.d.cts +3 -1
  83. package/dist/utils/index.d.ts +3 -1
  84. package/dist/utils/index.js +17 -17
  85. package/dist/utils/metafile-cjs.json +1 -1
  86. package/dist/utils/metafile-esm.json +1 -1
  87. package/package.json +23 -22
@@ -5,9 +5,45 @@ type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[];
5
5
  interface XenoJsonObject {
6
6
  [key: string]: XenoJsonValue;
7
7
  }
8
- type XenoArtifactKind = "plan" | "requirements" | "design" | "task-graph" | "patch" | "diff" | "file" | "document" | "diagram" | "screenshot" | "recording" | "browser-snapshot" | "test-report" | "review-report" | "security-report" | "performance-report" | "release-report" | "sbom" | "provenance" | "attestation" | `custom:${string}`;
9
- type XenoArtifactState = "draft" | "pending_review" | "approved" | "rejected" | "superseded" | "archived";
10
- type XenoArtifactSensitivity = "public" | "internal" | "confidential" | "restricted";
8
+ declare const XENO_BUILTIN_ARTIFACT_KINDS: readonly [
9
+ "plan",
10
+ "requirements",
11
+ "design",
12
+ "task-graph",
13
+ "patch",
14
+ "diff",
15
+ "file",
16
+ "document",
17
+ "diagram",
18
+ "screenshot",
19
+ "recording",
20
+ "browser-snapshot",
21
+ "test-report",
22
+ "review-report",
23
+ "security-report",
24
+ "performance-report",
25
+ "release-report",
26
+ "sbom",
27
+ "provenance",
28
+ "attestation"
29
+ ];
30
+ type XenoArtifactKind = (typeof XENO_BUILTIN_ARTIFACT_KINDS)[number] | `custom:${string}`;
31
+ declare const XENO_ARTIFACT_STATES: readonly [
32
+ "draft",
33
+ "pending_review",
34
+ "approved",
35
+ "rejected",
36
+ "superseded",
37
+ "archived"
38
+ ];
39
+ type XenoArtifactState = (typeof XENO_ARTIFACT_STATES)[number];
40
+ declare const XENO_ARTIFACT_SENSITIVITIES: readonly [
41
+ "public",
42
+ "internal",
43
+ "confidential",
44
+ "restricted"
45
+ ];
46
+ type XenoArtifactSensitivity = (typeof XENO_ARTIFACT_SENSITIVITIES)[number];
11
47
  interface XenoContentHash {
12
48
  algorithm: "sha256" | `custom:${string}`;
13
49
  value: string;
@@ -52,7 +88,14 @@ interface XenoArtifactIdentity {
52
88
  workspaceId?: string;
53
89
  repositoryId?: string;
54
90
  }
55
- type XenoArtifactActorKind = "agent" | "tool" | "user" | "system" | "integration";
91
+ declare const XENO_ARTIFACT_ACTOR_KINDS: readonly [
92
+ "agent",
93
+ "tool",
94
+ "user",
95
+ "system",
96
+ "integration"
97
+ ];
98
+ type XenoArtifactActorKind = (typeof XENO_ARTIFACT_ACTOR_KINDS)[number];
56
99
  interface XenoArtifactActor {
57
100
  kind: XenoArtifactActorKind;
58
101
  id: string;
@@ -69,8 +112,45 @@ interface XenoArtifactProvenance {
69
112
  sourceArtifactIds?: string[];
70
113
  attributes?: XenoJsonObject;
71
114
  }
72
- type XenoEvidenceNodeType = "requirement" | "design-decision" | "risk" | "task" | "agent" | "run" | "tool-call" | "edit" | "commit" | "test-case" | "test-run" | "finding" | "approval" | "artifact" | "release" | "claim" | `custom:${string}`;
73
- type XenoEvidenceEdgeType = "decomposes" | "depends_on" | "implements" | "changes" | "tests" | "verifies" | "finds" | "fixes" | "reviews" | "approves" | "rejects" | "supersedes" | "derived_from" | "produced_by" | "supports_claim" | "contradicts_claim" | "released_as" | `custom:${string}`;
115
+ declare const XENO_EVIDENCE_NODE_TYPES: readonly [
116
+ "requirement",
117
+ "design-decision",
118
+ "risk",
119
+ "task",
120
+ "agent",
121
+ "run",
122
+ "tool-call",
123
+ "edit",
124
+ "commit",
125
+ "test-case",
126
+ "test-run",
127
+ "finding",
128
+ "approval",
129
+ "artifact",
130
+ "release",
131
+ "claim"
132
+ ];
133
+ type XenoEvidenceNodeType = (typeof XENO_EVIDENCE_NODE_TYPES)[number] | `custom:${string}`;
134
+ declare const XENO_EVIDENCE_EDGE_TYPES: readonly [
135
+ "decomposes",
136
+ "depends_on",
137
+ "implements",
138
+ "changes",
139
+ "tests",
140
+ "verifies",
141
+ "finds",
142
+ "fixes",
143
+ "reviews",
144
+ "approves",
145
+ "rejects",
146
+ "supersedes",
147
+ "derived_from",
148
+ "produced_by",
149
+ "supports_claim",
150
+ "contradicts_claim",
151
+ "released_as"
152
+ ];
153
+ type XenoEvidenceEdgeType = (typeof XENO_EVIDENCE_EDGE_TYPES)[number] | `custom:${string}`;
74
154
  interface XenoEvidenceReference {
75
155
  type: XenoEvidenceNodeType;
76
156
  id: string;
@@ -351,4 +431,4 @@ declare class XenoDiffParseError extends Error {
351
431
  declare function parseUnifiedDiff(diff: string, options?: ParseUnifiedDiffOptions): XenoDiffDocument;
352
432
  declare function unifiedDiffToXenoArtifact(diff: string, context: XenoDiffArtifactContext): XenoArtifactEnvelope;
353
433
  declare function xenoArtifactToDiffDocument(artifact: XenoArtifactEnvelope): XenoDiffDocument;
354
- export { type XenoDiffLine as A, type XenoDiffLineKind as B, type XenoDiffMode as C, type XenoEvidenceEdge as D, type XenoEvidenceEdgeType as E, type XenoEvidenceGraph as F, type XenoEvidenceNode as G, type XenoEvidenceNodeType as H, type XenoEvidenceReference as I, type XenoJsonObject as J, type XenoJsonPrimitive as K, type XenoJsonValue as L, type XenoDiffArtifactContext as M, XenoDiffParseError as N, parseUnifiedDiff as O, type ParseUnifiedDiffOptions as P, unifiedDiffToXenoArtifact as Q, xenoArtifactToDiffDocument as R, type XenoArtifactEnvelope as X, type XenoDiffDocument as a, XENO_ARTIFACT_SCHEMA_VERSION as b, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as c, type XenoArtifactActor as d, type XenoArtifactActorKind as e, type XenoArtifactAnchor as f, type XenoArtifactContent as g, type XenoArtifactIdentity as h, type XenoArtifactKind as i, type XenoArtifactLifecycleEvent as j, type XenoArtifactListQuery as k, type XenoArtifactProvenance as l, type XenoArtifactRecord as m, type XenoArtifactRelationship as n, type XenoArtifactRetention as o, type XenoArtifactReviewDecision as p, type XenoArtifactReviewEvent as q, type XenoArtifactReviewEventInput as r, type XenoArtifactReviewSummary as s, type XenoArtifactSensitivity as t, type XenoArtifactState as u, type XenoArtifactStorageReference as v, type XenoContentHash as w, type XenoDiffFile as x, type XenoDiffFileStatus as y, type XenoDiffHunk as z };
434
+ export { type XenoArtifactState as A, type XenoArtifactStorageReference as B, type XenoContentHash as C, type XenoDiffFile as D, type XenoDiffFileStatus as E, type XenoDiffHunk as F, type XenoDiffLine as G, type XenoDiffLineKind as H, type XenoDiffMode as I, type XenoEvidenceEdge as J, type XenoEvidenceEdgeType as K, type XenoEvidenceGraph as L, type XenoEvidenceNode as M, type XenoEvidenceNodeType as N, type XenoEvidenceReference as O, type XenoJsonObject as P, type XenoJsonPrimitive as Q, type XenoJsonValue as R, type ParseUnifiedDiffOptions as S, type XenoDiffArtifactContext as T, XenoDiffParseError as U, parseUnifiedDiff as V, unifiedDiffToXenoArtifact as W, type XenoArtifactEnvelope as X, xenoArtifactToDiffDocument as Y, type XenoDiffDocument as a, XENO_ARTIFACT_ACTOR_KINDS as b, XENO_ARTIFACT_SCHEMA_VERSION as c, XENO_ARTIFACT_SENSITIVITIES as d, XENO_ARTIFACT_STATES as e, XENO_BUILTIN_ARTIFACT_KINDS as f, XENO_EVIDENCE_EDGE_TYPES as g, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as h, XENO_EVIDENCE_NODE_TYPES as i, type XenoArtifactActor as j, type XenoArtifactActorKind as k, type XenoArtifactAnchor as l, type XenoArtifactContent as m, type XenoArtifactIdentity as n, type XenoArtifactKind as o, type XenoArtifactLifecycleEvent as p, type XenoArtifactListQuery as q, type XenoArtifactProvenance as r, type XenoArtifactRecord as s, type XenoArtifactRelationship as t, type XenoArtifactRetention as u, type XenoArtifactReviewDecision as v, type XenoArtifactReviewEvent as w, type XenoArtifactReviewEventInput as x, type XenoArtifactReviewSummary as y, type XenoArtifactSensitivity as z };
@@ -5,9 +5,45 @@ type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[];
5
5
  interface XenoJsonObject {
6
6
  [key: string]: XenoJsonValue;
7
7
  }
8
- type XenoArtifactKind = "plan" | "requirements" | "design" | "task-graph" | "patch" | "diff" | "file" | "document" | "diagram" | "screenshot" | "recording" | "browser-snapshot" | "test-report" | "review-report" | "security-report" | "performance-report" | "release-report" | "sbom" | "provenance" | "attestation" | `custom:${string}`;
9
- type XenoArtifactState = "draft" | "pending_review" | "approved" | "rejected" | "superseded" | "archived";
10
- type XenoArtifactSensitivity = "public" | "internal" | "confidential" | "restricted";
8
+ declare const XENO_BUILTIN_ARTIFACT_KINDS: readonly [
9
+ "plan",
10
+ "requirements",
11
+ "design",
12
+ "task-graph",
13
+ "patch",
14
+ "diff",
15
+ "file",
16
+ "document",
17
+ "diagram",
18
+ "screenshot",
19
+ "recording",
20
+ "browser-snapshot",
21
+ "test-report",
22
+ "review-report",
23
+ "security-report",
24
+ "performance-report",
25
+ "release-report",
26
+ "sbom",
27
+ "provenance",
28
+ "attestation"
29
+ ];
30
+ type XenoArtifactKind = (typeof XENO_BUILTIN_ARTIFACT_KINDS)[number] | `custom:${string}`;
31
+ declare const XENO_ARTIFACT_STATES: readonly [
32
+ "draft",
33
+ "pending_review",
34
+ "approved",
35
+ "rejected",
36
+ "superseded",
37
+ "archived"
38
+ ];
39
+ type XenoArtifactState = (typeof XENO_ARTIFACT_STATES)[number];
40
+ declare const XENO_ARTIFACT_SENSITIVITIES: readonly [
41
+ "public",
42
+ "internal",
43
+ "confidential",
44
+ "restricted"
45
+ ];
46
+ type XenoArtifactSensitivity = (typeof XENO_ARTIFACT_SENSITIVITIES)[number];
11
47
  interface XenoContentHash {
12
48
  algorithm: "sha256" | `custom:${string}`;
13
49
  value: string;
@@ -52,7 +88,14 @@ interface XenoArtifactIdentity {
52
88
  workspaceId?: string;
53
89
  repositoryId?: string;
54
90
  }
55
- type XenoArtifactActorKind = "agent" | "tool" | "user" | "system" | "integration";
91
+ declare const XENO_ARTIFACT_ACTOR_KINDS: readonly [
92
+ "agent",
93
+ "tool",
94
+ "user",
95
+ "system",
96
+ "integration"
97
+ ];
98
+ type XenoArtifactActorKind = (typeof XENO_ARTIFACT_ACTOR_KINDS)[number];
56
99
  interface XenoArtifactActor {
57
100
  kind: XenoArtifactActorKind;
58
101
  id: string;
@@ -69,8 +112,45 @@ interface XenoArtifactProvenance {
69
112
  sourceArtifactIds?: string[];
70
113
  attributes?: XenoJsonObject;
71
114
  }
72
- type XenoEvidenceNodeType = "requirement" | "design-decision" | "risk" | "task" | "agent" | "run" | "tool-call" | "edit" | "commit" | "test-case" | "test-run" | "finding" | "approval" | "artifact" | "release" | "claim" | `custom:${string}`;
73
- type XenoEvidenceEdgeType = "decomposes" | "depends_on" | "implements" | "changes" | "tests" | "verifies" | "finds" | "fixes" | "reviews" | "approves" | "rejects" | "supersedes" | "derived_from" | "produced_by" | "supports_claim" | "contradicts_claim" | "released_as" | `custom:${string}`;
115
+ declare const XENO_EVIDENCE_NODE_TYPES: readonly [
116
+ "requirement",
117
+ "design-decision",
118
+ "risk",
119
+ "task",
120
+ "agent",
121
+ "run",
122
+ "tool-call",
123
+ "edit",
124
+ "commit",
125
+ "test-case",
126
+ "test-run",
127
+ "finding",
128
+ "approval",
129
+ "artifact",
130
+ "release",
131
+ "claim"
132
+ ];
133
+ type XenoEvidenceNodeType = (typeof XENO_EVIDENCE_NODE_TYPES)[number] | `custom:${string}`;
134
+ declare const XENO_EVIDENCE_EDGE_TYPES: readonly [
135
+ "decomposes",
136
+ "depends_on",
137
+ "implements",
138
+ "changes",
139
+ "tests",
140
+ "verifies",
141
+ "finds",
142
+ "fixes",
143
+ "reviews",
144
+ "approves",
145
+ "rejects",
146
+ "supersedes",
147
+ "derived_from",
148
+ "produced_by",
149
+ "supports_claim",
150
+ "contradicts_claim",
151
+ "released_as"
152
+ ];
153
+ type XenoEvidenceEdgeType = (typeof XENO_EVIDENCE_EDGE_TYPES)[number] | `custom:${string}`;
74
154
  interface XenoEvidenceReference {
75
155
  type: XenoEvidenceNodeType;
76
156
  id: string;
@@ -351,4 +431,4 @@ declare class XenoDiffParseError extends Error {
351
431
  declare function parseUnifiedDiff(diff: string, options?: ParseUnifiedDiffOptions): XenoDiffDocument;
352
432
  declare function unifiedDiffToXenoArtifact(diff: string, context: XenoDiffArtifactContext): XenoArtifactEnvelope;
353
433
  declare function xenoArtifactToDiffDocument(artifact: XenoArtifactEnvelope): XenoDiffDocument;
354
- export { type XenoDiffLine as A, type XenoDiffLineKind as B, type XenoDiffMode as C, type XenoEvidenceEdge as D, type XenoEvidenceEdgeType as E, type XenoEvidenceGraph as F, type XenoEvidenceNode as G, type XenoEvidenceNodeType as H, type XenoEvidenceReference as I, type XenoJsonObject as J, type XenoJsonPrimitive as K, type XenoJsonValue as L, type XenoDiffArtifactContext as M, XenoDiffParseError as N, parseUnifiedDiff as O, type ParseUnifiedDiffOptions as P, unifiedDiffToXenoArtifact as Q, xenoArtifactToDiffDocument as R, type XenoArtifactEnvelope as X, type XenoDiffDocument as a, XENO_ARTIFACT_SCHEMA_VERSION as b, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as c, type XenoArtifactActor as d, type XenoArtifactActorKind as e, type XenoArtifactAnchor as f, type XenoArtifactContent as g, type XenoArtifactIdentity as h, type XenoArtifactKind as i, type XenoArtifactLifecycleEvent as j, type XenoArtifactListQuery as k, type XenoArtifactProvenance as l, type XenoArtifactRecord as m, type XenoArtifactRelationship as n, type XenoArtifactRetention as o, type XenoArtifactReviewDecision as p, type XenoArtifactReviewEvent as q, type XenoArtifactReviewEventInput as r, type XenoArtifactReviewSummary as s, type XenoArtifactSensitivity as t, type XenoArtifactState as u, type XenoArtifactStorageReference as v, type XenoContentHash as w, type XenoDiffFile as x, type XenoDiffFileStatus as y, type XenoDiffHunk as z };
434
+ export { type XenoArtifactState as A, type XenoArtifactStorageReference as B, type XenoContentHash as C, type XenoDiffFile as D, type XenoDiffFileStatus as E, type XenoDiffHunk as F, type XenoDiffLine as G, type XenoDiffLineKind as H, type XenoDiffMode as I, type XenoEvidenceEdge as J, type XenoEvidenceEdgeType as K, type XenoEvidenceGraph as L, type XenoEvidenceNode as M, type XenoEvidenceNodeType as N, type XenoEvidenceReference as O, type XenoJsonObject as P, type XenoJsonPrimitive as Q, type XenoJsonValue as R, type ParseUnifiedDiffOptions as S, type XenoDiffArtifactContext as T, XenoDiffParseError as U, parseUnifiedDiff as V, unifiedDiffToXenoArtifact as W, type XenoArtifactEnvelope as X, xenoArtifactToDiffDocument as Y, type XenoDiffDocument as a, XENO_ARTIFACT_ACTOR_KINDS as b, XENO_ARTIFACT_SCHEMA_VERSION as c, XENO_ARTIFACT_SENSITIVITIES as d, XENO_ARTIFACT_STATES as e, XENO_BUILTIN_ARTIFACT_KINDS as f, XENO_EVIDENCE_EDGE_TYPES as g, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as h, XENO_EVIDENCE_NODE_TYPES as i, type XenoArtifactActor as j, type XenoArtifactActorKind as k, type XenoArtifactAnchor as l, type XenoArtifactContent as m, type XenoArtifactIdentity as n, type XenoArtifactKind as o, type XenoArtifactLifecycleEvent as p, type XenoArtifactListQuery as q, type XenoArtifactProvenance as r, type XenoArtifactRecord as s, type XenoArtifactRelationship as t, type XenoArtifactRetention as u, type XenoArtifactReviewDecision as v, type XenoArtifactReviewEvent as w, type XenoArtifactReviewEventInput as x, type XenoArtifactReviewSummary as y, type XenoArtifactSensitivity as z };