@agentic-kit/harness 0.16.0 → 0.18.0
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/esm/gating/approvals.d.ts +14 -0
- package/gating/approvals.d.ts +14 -0
- package/package.json +3 -2
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
* polled for (another row). No socket back into the agent's process, which is
|
|
8
8
|
* what lets a cloud run be approved from a browser.
|
|
9
9
|
*/
|
|
10
|
+
import type { GrantScope, PermissionPrompt } from '@agentic-kit/permissions';
|
|
11
|
+
/**
|
|
12
|
+
* The card for a permissions-layer request (a built-in tool such as `read` or
|
|
13
|
+
* `bash`), as `@agentic-kit/permissions` builds it. A channel that sees it
|
|
14
|
+
* renders this instead of its own prompt, and may offer the grant scopes.
|
|
15
|
+
*/
|
|
16
|
+
export type ApprovalPermissionPrompt = PermissionPrompt;
|
|
17
|
+
export type ApprovalGrantScope = GrantScope;
|
|
10
18
|
export interface ApprovalRequest {
|
|
11
19
|
runId: string;
|
|
12
20
|
toolCallId: string;
|
|
@@ -15,12 +23,18 @@ export interface ApprovalRequest {
|
|
|
15
23
|
/** The policy's reason for asking. */
|
|
16
24
|
reason?: string;
|
|
17
25
|
requestedAt: string;
|
|
26
|
+
/** Set by the permissions lane; absent for every other gate. */
|
|
27
|
+
permission?: ApprovalPermissionPrompt;
|
|
18
28
|
}
|
|
19
29
|
export interface ApprovalOutcome {
|
|
20
30
|
decision: 'allow' | 'deny';
|
|
21
31
|
reason?: string;
|
|
22
32
|
/** Who decided, when the channel knows. */
|
|
23
33
|
actorId?: string;
|
|
34
|
+
/** On `allow`: remember it beyond this call. Absent means once. */
|
|
35
|
+
grant?: {
|
|
36
|
+
scope: ApprovalGrantScope;
|
|
37
|
+
};
|
|
24
38
|
}
|
|
25
39
|
export interface ApprovalChannel {
|
|
26
40
|
/** Resolves once a decision exists; may take as long as a human takes. */
|
package/gating/approvals.d.ts
CHANGED
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
* polled for (another row). No socket back into the agent's process, which is
|
|
8
8
|
* what lets a cloud run be approved from a browser.
|
|
9
9
|
*/
|
|
10
|
+
import type { GrantScope, PermissionPrompt } from '@agentic-kit/permissions';
|
|
11
|
+
/**
|
|
12
|
+
* The card for a permissions-layer request (a built-in tool such as `read` or
|
|
13
|
+
* `bash`), as `@agentic-kit/permissions` builds it. A channel that sees it
|
|
14
|
+
* renders this instead of its own prompt, and may offer the grant scopes.
|
|
15
|
+
*/
|
|
16
|
+
export type ApprovalPermissionPrompt = PermissionPrompt;
|
|
17
|
+
export type ApprovalGrantScope = GrantScope;
|
|
10
18
|
export interface ApprovalRequest {
|
|
11
19
|
runId: string;
|
|
12
20
|
toolCallId: string;
|
|
@@ -15,12 +23,18 @@ export interface ApprovalRequest {
|
|
|
15
23
|
/** The policy's reason for asking. */
|
|
16
24
|
reason?: string;
|
|
17
25
|
requestedAt: string;
|
|
26
|
+
/** Set by the permissions lane; absent for every other gate. */
|
|
27
|
+
permission?: ApprovalPermissionPrompt;
|
|
18
28
|
}
|
|
19
29
|
export interface ApprovalOutcome {
|
|
20
30
|
decision: 'allow' | 'deny';
|
|
21
31
|
reason?: string;
|
|
22
32
|
/** Who decided, when the channel knows. */
|
|
23
33
|
actorId?: string;
|
|
34
|
+
/** On `allow`: remember it beyond this call. Absent means once. */
|
|
35
|
+
grant?: {
|
|
36
|
+
scope: ApprovalGrantScope;
|
|
37
|
+
};
|
|
24
38
|
}
|
|
25
39
|
export interface ApprovalChannel {
|
|
26
40
|
/** Resolves once a decision exists; may take as long as a human takes. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-kit/harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "Host-agnostic Constructive harness core — skill overlay resolution, materialization, and on-disk layout for harness hosts (desktop, CLI, MCP)",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@agentic-kit/permissions": "^0.2.0",
|
|
32
33
|
"appstash": "^0.8.0",
|
|
33
34
|
"semver": "^7.8.5",
|
|
34
35
|
"tar": "^7.4.3",
|
|
@@ -38,5 +39,5 @@
|
|
|
38
39
|
"@types/semver": "^7.8.0"
|
|
39
40
|
},
|
|
40
41
|
"keywords": [],
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9d1255b0e72a134fbc96190b2e1b8b0b0155bc29"
|
|
42
43
|
}
|