@wix/pathgrade 1.0.15 → 1.0.17
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/agents/opencode.js +8 -0
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/package.json +2 -2
package/dist/agents/opencode.js
CHANGED
|
@@ -217,6 +217,9 @@ export function parseOpenCodeOutput(stdout, processResult, mcpToolNames) {
|
|
|
217
217
|
throw new Error(`OpenCode protocol error: incomplete tool ${tool}`);
|
|
218
218
|
}
|
|
219
219
|
const input = state.input === undefined ? undefined : record(state.input, 'tool_use state.input');
|
|
220
|
+
const time = state.time === undefined ? undefined : record(state.time, 'tool_use state.time');
|
|
221
|
+
const startedAtMs = time === undefined ? undefined : finiteNumber(time.start, 'tool_use state.time.start');
|
|
222
|
+
const completedAtMs = time === undefined ? undefined : finiteNumber(time.end, 'tool_use state.time.end');
|
|
220
223
|
const action = mcpToolNames.has(tool)
|
|
221
224
|
? 'mcp_tool_call'
|
|
222
225
|
: NATIVE_TOOL_ACTIONS[tool] ?? 'unknown';
|
|
@@ -225,6 +228,11 @@ export function parseOpenCodeOutput(stdout, processResult, mcpToolNames) {
|
|
|
225
228
|
provider: 'opencode',
|
|
226
229
|
providerToolName: tool,
|
|
227
230
|
...(input ? { arguments: input } : {}),
|
|
231
|
+
...(startedAtMs !== undefined ? { startedAt: new Date(startedAtMs).toISOString() } : {}),
|
|
232
|
+
...(completedAtMs !== undefined ? { completedAt: new Date(completedAtMs).toISOString() } : {}),
|
|
233
|
+
...(startedAtMs !== undefined && completedAtMs !== undefined
|
|
234
|
+
? { durationMs: Math.max(0, completedAtMs - startedAtMs) }
|
|
235
|
+
: {}),
|
|
228
236
|
summary: buildSummary(action, tool, input),
|
|
229
237
|
confidence: action === 'unknown' ? 'low' : 'high',
|
|
230
238
|
rawSnippet: JSON.stringify({ tool, status: state.status, input }).slice(0, 2_000),
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type { ExpectedMcpStartupStatus, ExpectedMcpToolCall, McpStartupStatusEvi
|
|
|
34
34
|
export type { McpPolicyDenialReason, McpToolCallRequest, McpToolPolicyDecision, } from './mcp-safety.js';
|
|
35
35
|
export type { ToolEvent, McpToolCallClassification } from '../tool-events.js';
|
|
36
36
|
export type { LLMPort, EvalRuntime } from './eval-runtime.js';
|
|
37
|
-
export { createLLMClient, ProviderNotSupportedError } from '../utils/llm.js';
|
|
37
|
+
export { createAgentLLM, createLLMClient, ProviderNotSupportedError } from '../utils/llm.js';
|
|
38
38
|
export type { CreateLLMClientOptions, LLMProviderAdapter, TokenUsage as LLMTokenUsage } from '../utils/llm.js';
|
|
39
39
|
export { createMockLLM } from '../utils/llm-mocks.js';
|
|
40
40
|
export type { CreateMockLLMOptions, MockResponse, MockLLM } from '../utils/llm-mocks.js';
|
package/dist/sdk/index.js
CHANGED
|
@@ -19,5 +19,5 @@ export { toAskUserToolEvent } from './ask-bus/projection.js';
|
|
|
19
19
|
export { buildAskBatchLogEntries } from './agent-result-log.js';
|
|
20
20
|
export { emitEvalResult, resetAllResultObserversForTests, resetUserResultObservers, subscribeToEvalResults, } from './result-capture.js';
|
|
21
21
|
export { getAgentCapabilities } from './types.js';
|
|
22
|
-
export { createLLMClient, ProviderNotSupportedError } from '../utils/llm.js';
|
|
22
|
+
export { createAgentLLM, createLLMClient, ProviderNotSupportedError } from '../utils/llm.js';
|
|
23
23
|
export { createMockLLM } from '../utils/llm-mocks.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/pathgrade",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"packageManager": "yarn@4.12.0",
|
|
5
5
|
"description": "Evaluate whether AI agents discover and use your skills correctly",
|
|
6
6
|
"exports": {
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"typescript": "^5.9.3",
|
|
134
134
|
"zod": "4.3.6"
|
|
135
135
|
},
|
|
136
|
-
"falconPackageHash": "
|
|
136
|
+
"falconPackageHash": "1eeb0183f41eeea66c7ac4897843fe195319193c6de7bb208fa51e9e"
|
|
137
137
|
}
|