@felspar/sdk 0.4.0 → 0.4.2
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 +15 -1
- package/dist/chunks/{chunk-MIPPJBXB.js → chunk-4E64YLWE.js} +1982 -953
- package/dist/chunks/{chunk-ZHMUQJT2.js → chunk-FXW4IBGD.js} +1 -1
- package/dist/chunks/{chunk-FVPYJVF5.js → chunk-L2EHENY4.js} +1 -1
- package/dist/draft-action-gate-claude.js +2 -2
- package/dist/draft-action-gate-eve.js +3 -3
- package/dist/draft-action-gate-openai.js +2 -2
- package/dist/draft-action-gate.js +2 -2
- package/dist/draft-hosted-client.js +1 -1
- package/dist/eve.js +3 -3
- package/dist/types/draft-decision-graph-client.d.ts +143 -0
- package/dist/types/draft-hosted-client.d.ts +343 -67
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
denialText,
|
|
3
3
|
entityIdOf,
|
|
4
4
|
jobOf
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-FXW4IBGD.js";
|
|
6
|
+
import "./chunks/chunk-4E64YLWE.js";
|
|
7
7
|
|
|
8
8
|
// src/draft-action-gate-claude.ts
|
|
9
9
|
function felsparPreToolUse(gate) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
felsparDecisionEvents,
|
|
3
3
|
felsparGate
|
|
4
|
-
} from "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-L2EHENY4.js";
|
|
5
|
+
import "./chunks/chunk-FXW4IBGD.js";
|
|
6
|
+
import "./chunks/chunk-4E64YLWE.js";
|
|
7
7
|
export {
|
|
8
8
|
felsparDecisionEvents,
|
|
9
9
|
felsparGate
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
denialText,
|
|
3
3
|
entityIdOf,
|
|
4
4
|
jobOf
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-FXW4IBGD.js";
|
|
6
|
+
import "./chunks/chunk-4E64YLWE.js";
|
|
7
7
|
|
|
8
8
|
// src/draft-action-gate-openai.ts
|
|
9
9
|
function argumentsOf(text) {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
outputCheckFromResult,
|
|
17
17
|
outputTextDigest,
|
|
18
18
|
sharedDomains
|
|
19
|
-
} from "./chunks/chunk-
|
|
20
|
-
import "./chunks/chunk-
|
|
19
|
+
} from "./chunks/chunk-FXW4IBGD.js";
|
|
20
|
+
import "./chunks/chunk-4E64YLWE.js";
|
|
21
21
|
export {
|
|
22
22
|
checkAction,
|
|
23
23
|
createActionGate,
|
package/dist/eve.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
felsparDecisionEvents,
|
|
3
3
|
felsparGate
|
|
4
|
-
} from "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-L2EHENY4.js";
|
|
5
|
+
import "./chunks/chunk-FXW4IBGD.js";
|
|
6
|
+
import "./chunks/chunk-4E64YLWE.js";
|
|
7
7
|
|
|
8
8
|
// src/eve.ts
|
|
9
9
|
var felsparMcpUrl = "https://mcp.felspar.ai/mcp";
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
type Call = <T>(path: string, schema: z.ZodType<T>, value?: unknown) => Promise<T>;
|
|
3
|
+
export declare function decisionGraphCalls(call: Call): {
|
|
4
|
+
getReleaseGraph: (id: string) => Promise<{
|
|
5
|
+
topologyDigest: string;
|
|
6
|
+
graph: {
|
|
7
|
+
nodes: {
|
|
8
|
+
id: string;
|
|
9
|
+
kind: "outcome" | "rule" | "unresolved" | "scoring" | "question" | "subject" | "escalation" | "attempts" | "selection" | "retry" | "score_criterion";
|
|
10
|
+
key: string;
|
|
11
|
+
lines: string[];
|
|
12
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
13
|
+
}[];
|
|
14
|
+
edges: {
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
kind: "unresolved" | "overrides" | "retry" | "asks" | "depends_on" | "considers" | "selects" | "escalates" | "scores";
|
|
18
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
mermaid: string;
|
|
22
|
+
receiptDigest: string | null;
|
|
23
|
+
evaluationTime: string | null;
|
|
24
|
+
attempt: {
|
|
25
|
+
schema: "felspar.decision-attempt/v1";
|
|
26
|
+
executionId: string;
|
|
27
|
+
releaseId: string;
|
|
28
|
+
receiptDigest: string;
|
|
29
|
+
ordinal: number;
|
|
30
|
+
next: "decided" | "retry" | "escalate";
|
|
31
|
+
remaining: number;
|
|
32
|
+
escalationId: string | null;
|
|
33
|
+
} | null;
|
|
34
|
+
jobId: string;
|
|
35
|
+
releaseId: string;
|
|
36
|
+
releaseDigest: string;
|
|
37
|
+
materialDigest: string;
|
|
38
|
+
schema: "felspar.decision-graph/v1";
|
|
39
|
+
status: "ready";
|
|
40
|
+
view: "proposal" | "release" | "run";
|
|
41
|
+
proposalId?: string | undefined;
|
|
42
|
+
executionObjectId?: string | undefined;
|
|
43
|
+
dashboardUrl?: string | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
schema: "felspar.decision-graph/v1";
|
|
46
|
+
status: "unavailable";
|
|
47
|
+
reason: "history_unavailable" | "graph_limit_exceeded" | "unsupported_material" | "replay_mismatch";
|
|
48
|
+
dashboardUrl?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
getProposalGraph: (id: string) => Promise<{
|
|
51
|
+
topologyDigest: string;
|
|
52
|
+
graph: {
|
|
53
|
+
nodes: {
|
|
54
|
+
id: string;
|
|
55
|
+
kind: "outcome" | "rule" | "unresolved" | "scoring" | "question" | "subject" | "escalation" | "attempts" | "selection" | "retry" | "score_criterion";
|
|
56
|
+
key: string;
|
|
57
|
+
lines: string[];
|
|
58
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
59
|
+
}[];
|
|
60
|
+
edges: {
|
|
61
|
+
from: string;
|
|
62
|
+
to: string;
|
|
63
|
+
kind: "unresolved" | "overrides" | "retry" | "asks" | "depends_on" | "considers" | "selects" | "escalates" | "scores";
|
|
64
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
mermaid: string;
|
|
68
|
+
receiptDigest: string | null;
|
|
69
|
+
evaluationTime: string | null;
|
|
70
|
+
attempt: {
|
|
71
|
+
schema: "felspar.decision-attempt/v1";
|
|
72
|
+
executionId: string;
|
|
73
|
+
releaseId: string;
|
|
74
|
+
receiptDigest: string;
|
|
75
|
+
ordinal: number;
|
|
76
|
+
next: "decided" | "retry" | "escalate";
|
|
77
|
+
remaining: number;
|
|
78
|
+
escalationId: string | null;
|
|
79
|
+
} | null;
|
|
80
|
+
jobId: string;
|
|
81
|
+
releaseId: string;
|
|
82
|
+
releaseDigest: string;
|
|
83
|
+
materialDigest: string;
|
|
84
|
+
schema: "felspar.decision-graph/v1";
|
|
85
|
+
status: "ready";
|
|
86
|
+
view: "proposal" | "release" | "run";
|
|
87
|
+
proposalId?: string | undefined;
|
|
88
|
+
executionObjectId?: string | undefined;
|
|
89
|
+
dashboardUrl?: string | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
schema: "felspar.decision-graph/v1";
|
|
92
|
+
status: "unavailable";
|
|
93
|
+
reason: "history_unavailable" | "graph_limit_exceeded" | "unsupported_material" | "replay_mismatch";
|
|
94
|
+
dashboardUrl?: string | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
getDecisionGraph: (executionObjectId: string) => Promise<{
|
|
97
|
+
topologyDigest: string;
|
|
98
|
+
graph: {
|
|
99
|
+
nodes: {
|
|
100
|
+
id: string;
|
|
101
|
+
kind: "outcome" | "rule" | "unresolved" | "scoring" | "question" | "subject" | "escalation" | "attempts" | "selection" | "retry" | "score_criterion";
|
|
102
|
+
key: string;
|
|
103
|
+
lines: string[];
|
|
104
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
105
|
+
}[];
|
|
106
|
+
edges: {
|
|
107
|
+
from: string;
|
|
108
|
+
to: string;
|
|
109
|
+
kind: "unresolved" | "overrides" | "retry" | "asks" | "depends_on" | "considers" | "selects" | "escalates" | "scores";
|
|
110
|
+
state: "blocked" | "inactive" | "active" | "declared" | "suppressed";
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
mermaid: string;
|
|
114
|
+
receiptDigest: string | null;
|
|
115
|
+
evaluationTime: string | null;
|
|
116
|
+
attempt: {
|
|
117
|
+
schema: "felspar.decision-attempt/v1";
|
|
118
|
+
executionId: string;
|
|
119
|
+
releaseId: string;
|
|
120
|
+
receiptDigest: string;
|
|
121
|
+
ordinal: number;
|
|
122
|
+
next: "decided" | "retry" | "escalate";
|
|
123
|
+
remaining: number;
|
|
124
|
+
escalationId: string | null;
|
|
125
|
+
} | null;
|
|
126
|
+
jobId: string;
|
|
127
|
+
releaseId: string;
|
|
128
|
+
releaseDigest: string;
|
|
129
|
+
materialDigest: string;
|
|
130
|
+
schema: "felspar.decision-graph/v1";
|
|
131
|
+
status: "ready";
|
|
132
|
+
view: "proposal" | "release" | "run";
|
|
133
|
+
proposalId?: string | undefined;
|
|
134
|
+
executionObjectId?: string | undefined;
|
|
135
|
+
dashboardUrl?: string | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
schema: "felspar.decision-graph/v1";
|
|
138
|
+
status: "unavailable";
|
|
139
|
+
reason: "history_unavailable" | "graph_limit_exceeded" | "unsupported_material" | "replay_mismatch";
|
|
140
|
+
dashboardUrl?: string | undefined;
|
|
141
|
+
}>;
|
|
142
|
+
};
|
|
143
|
+
export {};
|