@wix/pathgrade 1.0.31 → 1.0.33
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/adapters/jest/invocation-adapter.d.ts +2 -2
- package/dist/adapters/jest/invocation-adapter.js +1 -1
- package/dist/adapters/jest/lifecycle.d.ts +3 -3
- package/dist/adapters/jest/lifecycle.js +1 -1
- package/dist/adapters/jest/metadata.d.ts +0 -1
- package/dist/adapters/jest/metadata.js +1 -1
- package/dist/adapters/jest/results.d.ts +3 -2
- package/dist/affected/format.d.ts +0 -23
- package/dist/affected/format.js +1 -1
- package/dist/affected/sidecar.d.ts +0 -1
- package/dist/affected/sidecar.js +1 -1
- package/dist/affected/types.d.ts +2 -17
- package/dist/agents/claude/ask-user-answer-store.d.ts +2 -1
- package/dist/agents/claude/tool-results.d.ts +1 -1
- package/dist/agents/claude/tool-results.js +1 -1
- package/dist/agents/claude.d.ts +2 -1
- package/dist/agents/codex-app-server/agent.js +24 -8
- package/dist/agents/codex-app-server/protocol/ClientRequest.d.ts +3 -2
- package/dist/agents/codex-app-server/protocol/DynamicToolCallParams.d.ts +2 -1
- package/dist/agents/codex-app-server/protocol/GetAccountTokenUsageParams.d.ts +3 -0
- package/dist/agents/codex-app-server/protocol/GetAccountTokenUsageParams.js +4 -0
- package/dist/agents/codex-app-server/protocol/GetAccountTokenUsageResponse.d.ts +6 -0
- package/dist/agents/codex-app-server/protocol/GetAccountTokenUsageResponse.js +4 -0
- package/dist/agents/codex-app-server/protocol/GrantedPermissionProfile.d.ts +3 -2
- package/dist/agents/codex-app-server/protocol/McpElicitationRequestParams.d.ts +3 -2
- package/dist/agents/codex-app-server/protocol/PermissionsRequestApprovalParams.d.ts +3 -2
- package/dist/agents/codex-app-server/protocol/ThreadStartParams.d.ts +7 -6
- package/dist/agents/codex-app-server/protocol/ThreadTokenUsage.d.ts +6 -0
- package/dist/agents/codex-app-server/protocol/ThreadTokenUsage.js +4 -0
- package/dist/agents/codex-app-server/protocol/ThreadTokenUsageUpdatedNotification.d.ts +6 -0
- package/dist/agents/codex-app-server/protocol/ThreadTokenUsageUpdatedNotification.js +4 -0
- package/dist/agents/codex-app-server/protocol/ThreadUsage.d.ts +7 -0
- package/dist/agents/codex-app-server/protocol/ThreadUsage.js +4 -0
- package/dist/agents/codex-app-server/protocol/ThreadUsageBreakdownGroup.d.ts +11 -0
- package/dist/agents/codex-app-server/protocol/ThreadUsageBreakdownGroup.js +4 -0
- package/dist/agents/codex-app-server/protocol/TokenUsageBreakdown.d.ts +8 -0
- package/dist/agents/codex-app-server/protocol/TokenUsageBreakdown.js +4 -0
- package/dist/agents/codex-app-server/protocol/TurnCompletedNotification.d.ts +2 -1
- package/dist/agents/codex-app-server/protocol/index.d.ts +7 -0
- package/dist/agents/codex-app-server/transport.d.ts +2 -2
- package/dist/agents/codex-app-server/turn-notifications.js +4 -0
- package/dist/agents/codex-app-server/turn-state.d.ts +3 -0
- package/dist/agents/codex-app-server/usage-accounting.d.ts +18 -0
- package/dist/agents/codex-app-server/usage-accounting.js +121 -0
- package/dist/commands/analyze.d.ts +0 -13
- package/dist/commands/report.d.ts +0 -7
- package/dist/commands/report.js +1 -1
- package/dist/core/generated-mcp-protocol.d.ts +0 -2
- package/dist/core/generated-mcp-protocol.js +2 -2
- package/dist/evals/discovery.d.ts +0 -1
- package/dist/evals/discovery.js +1 -1
- package/dist/internal/direct-mcp-v2/acp-client.d.ts +0 -8
- package/dist/internal/direct-mcp-v2/acp-direct-mcp.d.ts +2 -1
- package/dist/internal/direct-mcp-v2/claude-direct-mcp.d.ts +1 -1
- package/dist/internal/direct-mcp-v2/claude-profile.d.ts +0 -10
- package/dist/internal/direct-mcp-v2/claude-profile.js +3 -3
- package/dist/internal/direct-mcp-v2/codex-direct-mcp.d.ts +2 -1
- package/dist/internal/direct-mcp-v2/compiler.d.ts +0 -1
- package/dist/internal/direct-mcp-v2/compiler.js +1 -1
- package/dist/internal/direct-mcp-v2/json.d.ts +0 -2
- package/dist/internal/direct-mcp-v2/json.js +2 -2
- package/dist/internal/direct-mcp-v2/runtime-lock.d.ts +2 -1
- package/dist/internal/direct-mcp-v2/runtime-profile.d.ts +0 -1
- package/dist/internal/direct-mcp-v2/runtime-profile.js +1 -1
- package/dist/internal/direct-mcp-v2/types.d.ts +5 -4
- package/dist/openai-oauth/chatgpt-oauth-llm.js +12 -1
- package/dist/providers/mcp-config.d.ts +0 -2
- package/dist/providers/mcp-config.js +2 -2
- package/dist/providers/mcp-runtime-mounting.d.ts +1 -9
- package/dist/providers/sandbox-lifecycle.d.ts +0 -2
- package/dist/providers/sandbox-lifecycle.js +2 -2
- package/dist/providers/scripted-mcp-mock-host.d.ts +1 -1
- package/dist/providers/workspace.d.ts +0 -1
- package/dist/reporters/github-comment.d.ts +0 -11
- package/dist/reporters/github-comment.js +1 -1
- package/dist/reporters/verbose-emitter.d.ts +7 -19
- package/dist/reporters/verbose-emitter.js +5 -5
- package/dist/reporting/types.d.ts +2 -1
- package/dist/runners/adapter-loader.d.ts +0 -3
- package/dist/runners/model-validation.d.ts +2 -1
- package/dist/runners/repeated-attempts.d.ts +0 -5
- package/dist/runners/repeated-attempts.js +1 -1
- package/dist/runners/vitest-invocation.d.ts +2 -2
- package/dist/runners/vitest-invocation.js +1 -1
- package/dist/runners/vitest-lifecycle.d.ts +0 -2
- package/dist/runners/vitest-lifecycle.js +1 -1
- package/dist/sdk/agent.js +1 -3
- package/dist/sdk/ask-bus/handler.d.ts +3 -2
- package/dist/sdk/diagnostics.d.ts +4 -3
- package/dist/sdk/evaluate.js +3 -2
- package/dist/sdk/judge-tool-runner.d.ts +1 -2
- package/dist/sdk/lifecycle.js +4 -0
- package/dist/sdk/mcp-mock-approvals.d.ts +3 -2
- package/dist/sdk/reaction-loader.d.ts +1 -2
- package/dist/sdk/reaction-preview.d.ts +1 -4
- package/dist/sdk/reaction-preview.js +3 -3
- package/dist/sdk/run-scorer.d.ts +1 -4
- package/dist/sdk/run-scorer.js +3 -3
- package/dist/sdk/runtime-policy.d.ts +0 -1
- package/dist/sdk/runtime-policy.js +1 -1
- package/dist/tool-events.d.ts +0 -1
- package/dist/tool-events.js +1 -1
- package/dist/types.d.ts +10 -32
- package/dist/types.js +1 -1
- package/dist/utils/cli.d.ts +0 -15
- package/dist/utils/cli.js +4 -4
- package/dist/utils/llm-mocks.d.ts +3 -2
- package/dist/utils/llm-mocks.js +5 -0
- package/dist/utils/llm-providers/cli.d.ts +0 -1
- package/dist/utils/llm-providers/cli.js +1 -1
- package/dist/utils/llm-types.d.ts +7 -4
- package/dist/utils/llm.d.ts +2 -2
- package/dist/utils/llm.js +6 -1
- package/package.json +2 -2
package/dist/utils/llm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LLMProviderAdapter, LLMCallOptions, LLMCallResult, LLMPort } from './llm-types.js';
|
|
2
|
-
export type { LLMCallOptions, LLMCallResult, LLMPort, LLMProviderAdapter,
|
|
2
|
+
export type { LLMCallOptions, LLMCallResult, LLMPort, LLMProviderAdapter, TokenUsage } from './llm-types.js';
|
|
3
3
|
export interface CreateLLMClientOptions {
|
|
4
4
|
adapters?: LLMProviderAdapter[];
|
|
5
5
|
agent?: string;
|
|
@@ -11,7 +11,7 @@ export declare class ProviderNotSupportedError extends Error {
|
|
|
11
11
|
readonly adapterName: string;
|
|
12
12
|
constructor(adapterName: string);
|
|
13
13
|
}
|
|
14
|
-
export { isClaudeCliAvailable,
|
|
14
|
+
export { isClaudeCliAvailable, } from './llm-providers/cli.js';
|
|
15
15
|
/**
|
|
16
16
|
* Create an LLM client that tries providers in order.
|
|
17
17
|
*
|
package/dist/utils/llm.js
CHANGED
|
@@ -14,7 +14,7 @@ export class ProviderNotSupportedError extends Error {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
// Re-export provider utilities that callsites depend on
|
|
17
|
-
export { isClaudeCliAvailable,
|
|
17
|
+
export { isClaudeCliAvailable, } from './llm-providers/cli.js';
|
|
18
18
|
function inferProviderFromModel(model) {
|
|
19
19
|
const normalized = model?.trim().toLowerCase();
|
|
20
20
|
if (!normalized)
|
|
@@ -45,6 +45,7 @@ export function createLLMClient(arg, legacyAgentName) {
|
|
|
45
45
|
let inputTokens = 0;
|
|
46
46
|
let outputTokens = 0;
|
|
47
47
|
let costUsd = 0;
|
|
48
|
+
let costObserved = false;
|
|
48
49
|
let lastProvider;
|
|
49
50
|
const warnFallthrough = (from, to, reason) => {
|
|
50
51
|
if (silent)
|
|
@@ -67,6 +68,9 @@ export function createLLMClient(arg, legacyAgentName) {
|
|
|
67
68
|
get costUsd() {
|
|
68
69
|
return costUsd;
|
|
69
70
|
},
|
|
71
|
+
get costObserved() {
|
|
72
|
+
return costObserved;
|
|
73
|
+
},
|
|
70
74
|
get supportsToolUse() {
|
|
71
75
|
return !!toolCapable;
|
|
72
76
|
},
|
|
@@ -84,6 +88,7 @@ export function createLLMClient(arg, legacyAgentName) {
|
|
|
84
88
|
if (!Number.isFinite(usd) || usd < 0)
|
|
85
89
|
return;
|
|
86
90
|
costUsd += usd;
|
|
91
|
+
costObserved = true;
|
|
87
92
|
},
|
|
88
93
|
async measure(fn) {
|
|
89
94
|
const inBefore = inputTokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/pathgrade",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
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": "044358f11c1feb83b7e0a5b40972dd14eaf2c5b0d1261ba1339cf9d2"
|
|
144
144
|
}
|