@granular-software/sdk 0.4.65 → 0.4.67
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/agent-evals.d.mts +2 -2
- package/dist/agent-evals.d.ts +2 -2
- package/dist/agent-evals.js +282 -36
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +282 -36
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/agent-harness.js +6 -0
- package/dist/agent-harness.js.map +1 -1
- package/dist/agent-harness.mjs +6 -0
- package/dist/agent-harness.mjs.map +1 -1
- package/dist/cli/index.js +277 -36
- package/dist/{client-S-z8bri1.d.mts → client-BT1DJddL.d.ts} +27 -9
- package/dist/{client-z6shQivt.d.ts → client-BkX2cb20.d.mts} +27 -9
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +283 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +283 -37
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-CESUvrZC.d.mts → spend-D4r0SA-H.d.mts} +9 -1
- package/dist/{spend-CESUvrZC.d.ts → spend-D4r0SA-H.d.ts} +9 -1
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +1 -1
|
@@ -608,7 +608,7 @@ interface GranularOptions {
|
|
|
608
608
|
apiKey?: string;
|
|
609
609
|
/** Application/session JWT (for user-context auth; use from simulator or getAccessToken) */
|
|
610
610
|
token?: string;
|
|
611
|
-
/** Optional provider used to refresh JWT before WebSocket (re)connect attempts */
|
|
611
|
+
/** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
|
|
612
612
|
tokenProvider?: AccessTokenProvider;
|
|
613
613
|
/** Optional API URL (for on-prem or testing) */
|
|
614
614
|
apiUrl?: string;
|
|
@@ -2344,6 +2344,12 @@ interface UserEnvironmentStateOptions {
|
|
|
2344
2344
|
sessionScope?: string | null;
|
|
2345
2345
|
status?: "active" | "closed" | "expired" | "failed" | "timeout" | "all";
|
|
2346
2346
|
limit?: number;
|
|
2347
|
+
/**
|
|
2348
|
+
* `cached` uses the normal short freshness window. `refresh` performs the
|
|
2349
|
+
* control-plane reconciliation now, which is useful after a known external
|
|
2350
|
+
* state change and for deterministic integration tests.
|
|
2351
|
+
*/
|
|
2352
|
+
consistency?: "cached" | "refresh";
|
|
2347
2353
|
}
|
|
2348
2354
|
interface MarkUserEnvironmentReadOptions {
|
|
2349
2355
|
sessionId?: string;
|
|
@@ -2739,6 +2745,8 @@ interface ManifestPropertySpec {
|
|
|
2739
2745
|
create?: string;
|
|
2740
2746
|
has?: Record<string, ManifestPropertySpec>;
|
|
2741
2747
|
type?: string;
|
|
2748
|
+
/** Temporal representation for date fields: civil date or instant. */
|
|
2749
|
+
format?: "date" | "date-time";
|
|
2742
2750
|
description?: string;
|
|
2743
2751
|
required?: boolean;
|
|
2744
2752
|
note?: string | string[];
|
|
@@ -608,7 +608,7 @@ interface GranularOptions {
|
|
|
608
608
|
apiKey?: string;
|
|
609
609
|
/** Application/session JWT (for user-context auth; use from simulator or getAccessToken) */
|
|
610
610
|
token?: string;
|
|
611
|
-
/** Optional provider used to refresh JWT before WebSocket (re)connect attempts */
|
|
611
|
+
/** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
|
|
612
612
|
tokenProvider?: AccessTokenProvider;
|
|
613
613
|
/** Optional API URL (for on-prem or testing) */
|
|
614
614
|
apiUrl?: string;
|
|
@@ -2344,6 +2344,12 @@ interface UserEnvironmentStateOptions {
|
|
|
2344
2344
|
sessionScope?: string | null;
|
|
2345
2345
|
status?: "active" | "closed" | "expired" | "failed" | "timeout" | "all";
|
|
2346
2346
|
limit?: number;
|
|
2347
|
+
/**
|
|
2348
|
+
* `cached` uses the normal short freshness window. `refresh` performs the
|
|
2349
|
+
* control-plane reconciliation now, which is useful after a known external
|
|
2350
|
+
* state change and for deterministic integration tests.
|
|
2351
|
+
*/
|
|
2352
|
+
consistency?: "cached" | "refresh";
|
|
2347
2353
|
}
|
|
2348
2354
|
interface MarkUserEnvironmentReadOptions {
|
|
2349
2355
|
sessionId?: string;
|
|
@@ -2739,6 +2745,8 @@ interface ManifestPropertySpec {
|
|
|
2739
2745
|
create?: string;
|
|
2740
2746
|
has?: Record<string, ManifestPropertySpec>;
|
|
2741
2747
|
type?: string;
|
|
2748
|
+
/** Temporal representation for date fields: civil date or instant. */
|
|
2749
|
+
format?: "date" | "date-time";
|
|
2742
2750
|
description?: string;
|
|
2743
2751
|
required?: boolean;
|
|
2744
2752
|
note?: string | string[];
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-D4r0SA-H.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-D4r0SA-H.js';
|
package/package.json
CHANGED