@agentic-kit/harness 0.17.0 → 0.18.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 +4 -4
- package/esm/gating/approvals.d.ts +14 -0
- package/gating/approvals.d.ts +14 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -100,7 +100,6 @@ The same harness powers multiple hosts:
|
|
|
100
100
|
|
|
101
101
|
- [`@agentic-kit/cli`](https://www.npmjs.com/package/@agentic-kit/cli) — `agent`, a local, secure-by-default coding agent built on this harness.
|
|
102
102
|
- [`agentic-kit`](https://www.npmjs.com/package/agentic-kit) — the umbrella package (chat + agent + harness).
|
|
103
|
-
- Planning: [constructive-planning#1273](https://github.com/constructive-io/constructive-planning/issues/1273), [#1274](https://github.com/constructive-io/constructive-planning/issues/1274), [#1277](https://github.com/constructive-io/constructive-planning/issues/1277).
|
|
104
103
|
|
|
105
104
|
---
|
|
106
105
|
|
|
@@ -161,9 +160,10 @@ Install skills for AI coding agents:
|
|
|
161
160
|
# All platform skills (security, blueprints, codegen, billing, etc.)
|
|
162
161
|
npx skills add constructive-io/constructive-skills
|
|
163
162
|
|
|
164
|
-
# Individual repo skills (pgpm, testing, CLI, search, etc.)
|
|
165
|
-
npx skills add
|
|
166
|
-
npx skills add
|
|
163
|
+
# Individual repo skills (pgpm, safegres, testing, CLI, search, etc.)
|
|
164
|
+
npx skills add constructive-io/constructive --skill pgpm
|
|
165
|
+
npx skills add constructive-io/constructive --skill safegres
|
|
166
|
+
npx skills add constructive-io/constructive --skill constructive-testing
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
## Credits
|
|
@@ -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.1",
|
|
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": "d648f64e352075ee1a8abe9c412ba49ff80823dc"
|
|
42
43
|
}
|