@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHostedFelsparClient
3
- } from "./chunk-3YVYBD4H.js";
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
- return parts.join(". ");
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,7 +2,7 @@ import {
2
2
  denialText,
3
3
  entityIdOf,
4
4
  jobOf
5
- } from "./chunk-2RV7RPXW.js";
5
+ } from "./chunk-SQ62T4AA.js";
6
6
 
7
7
  // src/draft-action-gate-eve.ts
8
8
  function felsparGate(gate) {
@@ -2,8 +2,8 @@ import {
2
2
  denialText,
3
3
  entityIdOf,
4
4
  jobOf
5
- } from "./chunks/chunk-2RV7RPXW.js";
6
- import "./chunks/chunk-3YVYBD4H.js";
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-7HN5KUTJ.js";
5
- import "./chunks/chunk-2RV7RPXW.js";
6
- import "./chunks/chunk-3YVYBD4H.js";
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-2RV7RPXW.js";
6
- import "./chunks/chunk-3YVYBD4H.js";
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-2RV7RPXW.js";
20
- import "./chunks/chunk-3YVYBD4H.js";
19
+ } from "./chunks/chunk-SQ62T4AA.js";
20
+ import "./chunks/chunk-PYLLH47S.js";
21
21
  export {
22
22
  checkAction,
23
23
  createActionGate,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FelsparRequestError,
3
3
  createHostedFelsparClient
4
- } from "./chunks/chunk-3YVYBD4H.js";
4
+ } from "./chunks/chunk-PYLLH47S.js";
5
5
  export {
6
6
  FelsparRequestError,
7
7
  createHostedFelsparClient
package/dist/eve.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  felsparDecisionEvents,
3
3
  felsparGate
4
- } from "./chunks/chunk-7HN5KUTJ.js";
5
- import "./chunks/chunk-2RV7RPXW.js";
6
- import "./chunks/chunk-3YVYBD4H.js";
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";