prefix-safe-json 0.0.1-alpha.4 → 0.1.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/LICENSE +4 -0
- package/README.md +2 -2
- package/dist/guard/ai-sdk.d.ts +1 -1
- package/dist/guard/ai-sdk.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/LICENSE
ADDED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prefix-safe-json
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> **v0.1** — No longer alpha. Core API (`createParser`, `createToolCallStreamCoordinator`, `createToolCallExecutionGate`, `createAiSdkExecutionGuard`) is considered stable; any breaking change will be called out in [CHANGELOG.md](CHANGELOG.md). Raw provider adapters (`OpenAIStreamAdapter` and friends) remain experimental — see [Current Status](#current-status) for what's covered.
|
|
4
4
|
|
|
5
5
|
**Don't execute incomplete AI tool calls.**
|
|
6
6
|
|
|
@@ -212,7 +212,7 @@ It does **not**:
|
|
|
212
212
|
See [`docs/EXECUTION_GATE.md`](docs/EXECUTION_GATE.md#limitations---what-this-does-not-protect-against)
|
|
213
213
|
for the full list, including known internal limitations.
|
|
214
214
|
|
|
215
|
-
## Current Status
|
|
215
|
+
## Current Status
|
|
216
216
|
|
|
217
217
|
### Implemented
|
|
218
218
|
|
package/dist/guard/ai-sdk.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AiSdkExecutionGuard, ExecutionGuardOptions } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* @public (
|
|
3
|
+
* @public (Stable)
|
|
4
4
|
* Drop-in fail-closed execution guard for the Vercel AI SDK's `fullStream`.
|
|
5
5
|
* Composes `AiSdkStreamAdapter` with `createToolCallExecutionGate()` - same
|
|
6
6
|
* decision logic, same fail-closed guarantees, no new parser or coordinator.
|
package/dist/guard/ai-sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AiSdkStreamAdapter } from "../providers/ai-sdk.js";
|
|
2
2
|
import { createProviderExecutionGuard } from "./provider-guard.js";
|
|
3
3
|
/**
|
|
4
|
-
* @public (
|
|
4
|
+
* @public (Stable)
|
|
5
5
|
* Drop-in fail-closed execution guard for the Vercel AI SDK's `fullStream`.
|
|
6
6
|
* Composes `AiSdkStreamAdapter` with `createToolCallExecutionGate()` - same
|
|
7
7
|
* decision logic, same fail-closed guarantees, no new parser or coordinator.
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { CONTENT_FILTERED_DIAGNOSTIC_CODE } from "./coordinator/diagnostic-codes
|
|
|
23
23
|
export { createToolCallExecutionGate } from "./gate/gate.js";
|
|
24
24
|
export type { ToolCallExecutionGate, ToolCallExecutionGateFinalResult, ExecutionDecision, ExecuteDecision, NonExecutableDecision, ExecutionAction, ExecutionReason, DecisionEvidence, } from "./gate/types.js";
|
|
25
25
|
/**
|
|
26
|
-
* @public (
|
|
26
|
+
* @public (Stable)
|
|
27
27
|
* Drop-in fail-closed execution guard for the Vercel AI SDK's `fullStream`.
|
|
28
28
|
* Composes `AiSdkStreamAdapter` and `createToolCallExecutionGate()` - see
|
|
29
29
|
* `docs/EXECUTION_GATE.md#high-level-guards`.
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export { CONTENT_FILTERED_DIAGNOSTIC_CODE } from "./coordinator/diagnostic-codes
|
|
|
25
25
|
export { createToolCallExecutionGate } from "./gate/gate.js";
|
|
26
26
|
// High-level execution guards
|
|
27
27
|
/**
|
|
28
|
-
* @public (
|
|
28
|
+
* @public (Stable)
|
|
29
29
|
* Drop-in fail-closed execution guard for the Vercel AI SDK's `fullStream`.
|
|
30
30
|
* Composes `AiSdkStreamAdapter` and `createToolCallExecutionGate()` - see
|
|
31
31
|
* `docs/EXECUTION_GATE.md#high-level-guards`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prefix-safe-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Fail-closed execution integrity for streamed LLM tool calls — reject truncated or unconfirmed arguments before side effects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"json",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
37
|
+
"LICENSE",
|
|
37
38
|
"LICENSE-MIT",
|
|
38
39
|
"LICENSE-APACHE",
|
|
39
40
|
"README.md"
|