@wix/pathgrade 1.0.24 → 1.0.25
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/dist/sdk/agent.js +8 -0
- package/package.json +2 -2
package/dist/sdk/agent.js
CHANGED
|
@@ -19,6 +19,7 @@ import { cleanDebugRuns, DEFAULT_DEBUG_RETAIN_RUNS, prepareManagedDebugRun, } fr
|
|
|
19
19
|
import { collectOpenCodeMcpToolNames, validateOpenCodeDeclaration } from '../agents/opencode/contract.js';
|
|
20
20
|
import { collectSensitiveEnvValues } from '../tool-event-results.js';
|
|
21
21
|
import { compileMcpMockApprovalSession, } from './mcp-mock-approvals.js';
|
|
22
|
+
import { createAskUserHandler } from './ask-bus/handler.js';
|
|
22
23
|
/**
|
|
23
24
|
* Test-only injection point: override the sink used by the next emitter
|
|
24
25
|
* built inside `createAgent`. Pass `null` to restore the default (stderr).
|
|
@@ -196,10 +197,17 @@ class AgentImpl {
|
|
|
196
197
|
throw new Error('prompt() can only be called once per agent');
|
|
197
198
|
}
|
|
198
199
|
const ms = this.createSession(this.resolveTimeoutSec('prompt'));
|
|
200
|
+
const askUser = createAskUserHandler({
|
|
201
|
+
reactions: [],
|
|
202
|
+
onUnmatchedAskUser: 'decline',
|
|
203
|
+
firedOnce: new Set(),
|
|
204
|
+
});
|
|
205
|
+
const unsubscribeAskUser = ms.askBus.onAsk(askUser.handler);
|
|
199
206
|
try {
|
|
200
207
|
return await this.executeLoggedTurn(ms, message, 1, 'agent_start');
|
|
201
208
|
}
|
|
202
209
|
finally {
|
|
210
|
+
unsubscribeAskUser();
|
|
203
211
|
await ms.dispose?.();
|
|
204
212
|
}
|
|
205
213
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/pathgrade",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"packageManager": "yarn@4.12.0",
|
|
5
5
|
"description": "Evaluate whether AI agents discover and use your skills correctly",
|
|
6
6
|
"exports": {
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"typescript": "^5.9.3",
|
|
141
141
|
"zod": "4.3.6"
|
|
142
142
|
},
|
|
143
|
-
"falconPackageHash": "
|
|
143
|
+
"falconPackageHash": "b936e0a54540b195856329c07c81e71818b9e4de30b90e768e9058d6"
|
|
144
144
|
}
|