@2kw/ai 8.5.0-dev.13 → 8.5.0-dev.14
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.
|
@@ -701,9 +701,36 @@ export declare const agentSchema: {
|
|
|
701
701
|
readonly propertyNames: {
|
|
702
702
|
readonly pattern: "\\S";
|
|
703
703
|
};
|
|
704
|
+
readonly patternProperties: {
|
|
705
|
+
readonly "\\*": {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly enum: readonly ["read", "write", "destructive", "approve", "deny"];
|
|
708
|
+
};
|
|
709
|
+
};
|
|
704
710
|
readonly additionalProperties: {
|
|
705
711
|
readonly type: "string";
|
|
706
|
-
readonly enum: readonly ["read", "write", "destructive", "approve", "deny"];
|
|
712
|
+
readonly enum: readonly ["read", "write", "destructive", "approve", "deny", "allow", "ask"];
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly connectors: {
|
|
716
|
+
readonly type: "object";
|
|
717
|
+
readonly additionalProperties: {
|
|
718
|
+
readonly type: "object";
|
|
719
|
+
readonly additionalProperties: false;
|
|
720
|
+
readonly properties: {
|
|
721
|
+
readonly read: {
|
|
722
|
+
readonly type: "string";
|
|
723
|
+
readonly enum: readonly ["approve", "block"];
|
|
724
|
+
};
|
|
725
|
+
readonly write: {
|
|
726
|
+
readonly type: "string";
|
|
727
|
+
readonly enum: readonly ["approve", "block"];
|
|
728
|
+
};
|
|
729
|
+
readonly destructive: {
|
|
730
|
+
readonly type: "string";
|
|
731
|
+
readonly enum: readonly ["approve", "block"];
|
|
732
|
+
};
|
|
733
|
+
};
|
|
707
734
|
};
|
|
708
735
|
};
|
|
709
736
|
};
|
|
@@ -362,7 +362,7 @@ export const agentSchema = {
|
|
|
362
362
|
additionalProperties: false,
|
|
363
363
|
properties: {
|
|
364
364
|
read: oneOfLowercase("allow", "approve", "block", "deny"),
|
|
365
|
-
write: oneOfLowercase("approve", "block", "deny"),
|
|
365
|
+
write: oneOfLowercase("allow", "approve", "block", "deny"),
|
|
366
366
|
destructive: oneOfLowercase("approve", "block", "deny"),
|
|
367
367
|
},
|
|
368
368
|
},
|
|
@@ -371,7 +371,22 @@ export const agentSchema = {
|
|
|
371
371
|
// classes (read, write, destructive) are case-insensitive and lowercased by the validator.
|
|
372
372
|
type: "object",
|
|
373
373
|
propertyNames: { pattern: "\\S" },
|
|
374
|
-
|
|
374
|
+
// A tool's own level (allow, ask; #2066) names one tool exactly, so a pattern with `*` may not take it.
|
|
375
|
+
patternProperties: { "\\*": { type: "string", enum: ["read", "write", "destructive", "approve", "deny"] } },
|
|
376
|
+
additionalProperties: { type: "string", enum: ["read", "write", "destructive", "approve", "deny", "allow", "ask"] },
|
|
377
|
+
},
|
|
378
|
+
connectors: {
|
|
379
|
+
// A connector's group level per kind (#2066): approve or block; Always allow is set per tool.
|
|
380
|
+
type: "object",
|
|
381
|
+
additionalProperties: {
|
|
382
|
+
type: "object",
|
|
383
|
+
additionalProperties: false,
|
|
384
|
+
properties: {
|
|
385
|
+
read: { type: "string", enum: ["approve", "block"] },
|
|
386
|
+
write: { type: "string", enum: ["approve", "block"] },
|
|
387
|
+
destructive: { type: "string", enum: ["approve", "block"] },
|
|
388
|
+
},
|
|
389
|
+
},
|
|
375
390
|
},
|
|
376
391
|
},
|
|
377
392
|
},
|
|
@@ -53,7 +53,8 @@ tools:
|
|
|
53
53
|
# order: { type: string }
|
|
54
54
|
# required: [order]
|
|
55
55
|
# annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }
|
|
56
|
-
# Approval policy. Defaults: read allow, write approve, destructive block. Rules
|
|
56
|
+
# Approval policy. Defaults: read allow, write approve, destructive block. Rules only tighten.
|
|
57
|
+
# Where the deployment offers Always allow, write: allow and an exact tool rule allow or ask loosen.
|
|
57
58
|
# hitlPolicy:
|
|
58
59
|
# version: 1
|
|
59
60
|
# classes: { read: allow, write: approve, destructive: block }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "8.5.0-dev.
|
|
3
|
+
"version": "8.5.0-dev.14",
|
|
4
4
|
"description": "CLI for 2kw.ai — schema-driven document extraction, an OpenAI-compatible EU LLM gateway, transcription, prompts, datasets, and experiments from your terminal or agentic workflows. Ships as 2kw, backbone, and bb.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|