@agentic-kit/pi 0.11.0 → 0.12.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/confirm-gate.d.ts +2 -0
- package/confirm-gate.js +1 -0
- package/esm/confirm-gate.d.ts +2 -0
- package/esm/confirm-gate.js +1 -0
- package/package.json +5 -5
package/confirm-gate.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type ConfirmGateDeps = {
|
|
|
5
5
|
resolveProjectContext: typeof resolveProjectContext;
|
|
6
6
|
resolveDataToken: typeof resolveDataToken;
|
|
7
7
|
createTemplatePreviewTables: typeof createTemplatePreviewTables;
|
|
8
|
+
/** Tool names to gate; defaults to the harness's `MUTATING_DB_TOOLS`. */
|
|
9
|
+
gatedTools?: ReadonlySet<string>;
|
|
8
10
|
};
|
|
9
11
|
export type ConfirmGate = {
|
|
10
12
|
onAgentStart: () => void;
|
package/confirm-gate.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.createConfirmGate = createConfirmGate;
|
|
|
4
4
|
const harness_1 = require("@agentic-kit/harness");
|
|
5
5
|
function createConfirmGate(deps) {
|
|
6
6
|
const gate = (0, harness_1.createConfirmGate)({
|
|
7
|
+
gatedTools: deps.gatedTools,
|
|
7
8
|
isProjectRunnable: async (cwd) => {
|
|
8
9
|
const resolved = await deps.resolveProjectContext(cwd);
|
|
9
10
|
return resolved.context !== null;
|
package/esm/confirm-gate.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type ConfirmGateDeps = {
|
|
|
5
5
|
resolveProjectContext: typeof resolveProjectContext;
|
|
6
6
|
resolveDataToken: typeof resolveDataToken;
|
|
7
7
|
createTemplatePreviewTables: typeof createTemplatePreviewTables;
|
|
8
|
+
/** Tool names to gate; defaults to the harness's `MUTATING_DB_TOOLS`. */
|
|
9
|
+
gatedTools?: ReadonlySet<string>;
|
|
8
10
|
};
|
|
9
11
|
export type ConfirmGate = {
|
|
10
12
|
onAgentStart: () => void;
|
package/esm/confirm-gate.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createConfirmGate as createHarnessConfirmGate, } from '@agentic-kit/harness';
|
|
2
2
|
export function createConfirmGate(deps) {
|
|
3
3
|
const gate = createHarnessConfirmGate({
|
|
4
|
+
gatedTools: deps.gatedTools,
|
|
4
5
|
isProjectRunnable: async (cwd) => {
|
|
5
6
|
const resolved = await deps.resolveProjectContext(cwd);
|
|
6
7
|
return resolved.context !== null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-kit/pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "Pi adapter for agentic-kit — the Constructive typed db tools (provision, blueprint, codegen, records, policies, templates) and confirm gate as a pi coding-agent extension",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@agentic-kit/harness": "^0.
|
|
32
|
+
"@agentic-kit/harness": "^0.11.0",
|
|
33
33
|
"@constructive-io/graphql-query": "^4.12.10",
|
|
34
|
-
"@constructive-io/sdk": "^1.11.
|
|
35
|
-
"node-type-registry": "^1.
|
|
34
|
+
"@constructive-io/sdk": "^1.11.11",
|
|
35
|
+
"node-type-registry": "^1.16.0",
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"coding-agent",
|
|
49
49
|
"constructive"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4839d3c123304735a7aa74fb4e45af41cf947567"
|
|
52
52
|
}
|