@felspar/sdk 0.3.0 → 0.4.1
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 +25 -22
- package/dist/chunks/{chunk-3YVYBD4H.js → chunk-PYLLH47S.js} +1771 -743
- package/dist/chunks/{chunk-2RV7RPXW.js → chunk-SQ62T4AA.js} +3 -2
- package/dist/chunks/{chunk-7HN5KUTJ.js → chunk-WAMWMJYP.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-hosted-client.d.ts +630 -7
- package/package.json +1 -6
- package/bin/felspar-sdk.mjs +0 -10
- package/bin/skill.mjs +0 -33
- package/skills/felspar/SKILL.md +0 -134
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHostedFelsparClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PYLLH47S.js";
|
|
4
4
|
|
|
5
5
|
// src/draft-action-gate-outputs.ts
|
|
6
6
|
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -707,7 +707,8 @@ function denialText(verdict) {
|
|
|
707
707
|
const why = escalation.why === null ? "" : `: ${escalation.why}`;
|
|
708
708
|
parts.push(`Escalation ${escalation.id} (${escalation.trigger})${why}`);
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
parts.push("Don't retry or rephrase this call to get around the gate");
|
|
711
|
+
return `${parts.map((part) => part.endsWith(".") ? part.slice(0, -1) : part).join(". ")}.`;
|
|
711
712
|
}
|
|
712
713
|
function gatedRule(rules, toolName) {
|
|
713
714
|
return Object.hasOwn(rules.tools, toolName) ? rules.tools[toolName] : void 0;
|
|
@@ -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-SQ62T4AA.js";
|
|
6
|
+
import "./chunks/chunk-PYLLH47S.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-WAMWMJYP.js";
|
|
5
|
+
import "./chunks/chunk-SQ62T4AA.js";
|
|
6
|
+
import "./chunks/chunk-PYLLH47S.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-SQ62T4AA.js";
|
|
6
|
+
import "./chunks/chunk-PYLLH47S.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-SQ62T4AA.js";
|
|
20
|
+
import "./chunks/chunk-PYLLH47S.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-WAMWMJYP.js";
|
|
5
|
+
import "./chunks/chunk-SQ62T4AA.js";
|
|
6
|
+
import "./chunks/chunk-PYLLH47S.js";
|
|
7
7
|
|
|
8
8
|
// src/eve.ts
|
|
9
9
|
var felsparMcpUrl = "https://mcp.felspar.ai/mcp";
|