@granular-software/sdk 0.4.53 → 0.4.54
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 +1 -1
- package/dist/agent-evals.d.ts +1 -1
- package/dist/agent-evals.js +10 -0
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +10 -0
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +13 -2
- package/dist/{client-CfTDojJF.d.mts → client-BKde5VzV.d.ts} +8 -1
- package/dist/{client-DcRzwuGp.d.ts → client-DL4S9uRc.d.mts} +8 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-evals.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentSession, G as Granular } from './client-
|
|
1
|
+
import { a as EnvironmentSession, G as Granular } from './client-DL4S9uRc.mjs';
|
|
2
2
|
import { G as GranularSpendContext, h as OpenAITokenSpend, P as Prompt, bW as RecordObjectOptions, cL as ManifestContent, c as SessionHeapSnapshot, T as ToolWithHandler, K as ConnectOptions, ag as CreateEnvironmentData, y as GranularOptions } from './spend-DpRRCrAr.mjs';
|
|
3
3
|
import { GranularAgentToolInfo, GeneratedJobCodeIssue, BuildGranularAgentSystemPromptInput, HarnessRenderedPrompt, HarnessRenderedContinuation, HarnessControllerBudgets } from './agent-harness.mjs';
|
|
4
4
|
import '@automerge/automerge';
|
package/dist/agent-evals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentSession, G as Granular } from './client-
|
|
1
|
+
import { a as EnvironmentSession, G as Granular } from './client-BKde5VzV.js';
|
|
2
2
|
import { G as GranularSpendContext, h as OpenAITokenSpend, P as Prompt, bW as RecordObjectOptions, cL as ManifestContent, c as SessionHeapSnapshot, T as ToolWithHandler, K as ConnectOptions, ag as CreateEnvironmentData, y as GranularOptions } from './spend-DpRRCrAr.js';
|
|
3
3
|
import { GranularAgentToolInfo, GeneratedJobCodeIssue, BuildGranularAgentSystemPromptInput, HarnessRenderedPrompt, HarnessRenderedContinuation, HarnessControllerBudgets } from './agent-harness.js';
|
|
4
4
|
import '@automerge/automerge';
|
package/dist/agent-evals.js
CHANGED
|
@@ -14362,6 +14362,7 @@ var Environment = class _Environment {
|
|
|
14362
14362
|
import: async (records, options) => this.enqueueRecordImport(records, options),
|
|
14363
14363
|
listImports: async (status) => this.listRecordImports(status),
|
|
14364
14364
|
getImport: async (importId) => this.getRecordImport(importId),
|
|
14365
|
+
listImportItems: async (importId, status) => this.listRecordImportItems(importId, status),
|
|
14365
14366
|
getImportSummary: async () => this.getRecordImportSummary(),
|
|
14366
14367
|
cancelImport: async (importId) => this.cancelRecordImport(importId),
|
|
14367
14368
|
getAwaitingCount: async () => this.getAwaitingRecordCount()
|
|
@@ -15540,6 +15541,15 @@ var Environment = class _Environment {
|
|
|
15540
15541
|
`/control/record-imports/${importId}`
|
|
15541
15542
|
);
|
|
15542
15543
|
}
|
|
15544
|
+
/**
|
|
15545
|
+
* List the individual records persisted for one asynchronous import. This
|
|
15546
|
+
* makes terminal import failures diagnosable without database access.
|
|
15547
|
+
*/
|
|
15548
|
+
async listRecordImportItems(importId, status) {
|
|
15549
|
+
const suffix = status ? `?status=${encodeURIComponent(status)}` : "";
|
|
15550
|
+
const response = await this.controlPlaneRequest(`/control/record-imports/${importId}/items${suffix}`);
|
|
15551
|
+
return Array.isArray(response.items) ? response.items : [];
|
|
15552
|
+
}
|
|
15543
15553
|
/**
|
|
15544
15554
|
* Cancel a queued/background record import.
|
|
15545
15555
|
*/
|