@bitfab/sdk 0.64.23 → 0.64.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/{chunk-ZNDFNAQD.js → chunk-DY52FEEM.js} +2 -2
- package/dist/{chunk-ZNDFNAQD.js.map → chunk-DY52FEEM.js.map} +1 -1
- package/dist/{chunk-WS7CB5H3.js → chunk-EFGQRVMT.js} +2 -2
- package/dist/chunk-GSHCHCB5.js +433 -0
- package/dist/chunk-GSHCHCB5.js.map +1 -0
- package/dist/chunk-IBWW3SP4.js +45 -0
- package/dist/chunk-IBWW3SP4.js.map +1 -0
- package/dist/{chunk-FWC3KDJ4.js → chunk-JNVDKPFL.js} +6 -6
- package/dist/chunk-JNVDKPFL.js.map +1 -0
- package/dist/{chunk-OXFZJP4E.js → chunk-MN3E2RUU.js} +6 -8
- package/dist/chunk-MN3E2RUU.js.map +1 -0
- package/dist/{chunk-A5DSCY6A.js → chunk-OMWPLB5R.js} +2 -2
- package/dist/{chunk-A5DSCY6A.js.map → chunk-OMWPLB5R.js.map} +1 -1
- package/dist/{chunk-WMMHAWXS.js → chunk-R7SJXFMB.js} +4 -4
- package/dist/{chunk-KHA4A746.js → chunk-ULKKTYOL.js} +2 -2
- package/dist/{http-PKBJRGNK.js → http-GDTWWWYY.js} +2 -2
- package/dist/{http-M6AWJWPW.js → http-QXJJB2F5.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -2
- package/dist/index.d.ts +48 -2
- package/dist/index.js +3 -3
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-JAYRFN3X.js → replay-DC3PID7Q.js} +3 -3
- package/dist/{replay-OCHSU4JN.js → replay-VXQGVZXM.js} +3 -3
- package/dist/replayCli.js +3 -3
- package/dist/seedCli.js +3 -3
- package/dist/transform/babel.cjs +68 -34
- package/dist/transform/babel.cjs.map +1 -1
- package/dist/transform/babel.d.cts +2 -2
- package/dist/transform/babel.d.ts +2 -2
- package/dist/transform/babel.js +2 -374
- package/dist/transform/babel.js.map +1 -1
- package/dist/transform/bun.cjs +389 -464
- package/dist/transform/bun.cjs.map +1 -1
- package/dist/transform/bun.js +3 -3
- package/dist/transform/esbuild.cjs +389 -464
- package/dist/transform/esbuild.cjs.map +1 -1
- package/dist/transform/esbuild.js +3 -3
- package/dist/transform/loaderRuntime.cjs +448 -498
- package/dist/transform/loaderRuntime.cjs.map +1 -1
- package/dist/transform/loaderRuntime.js +90 -70
- package/dist/transform/loaderRuntime.js.map +1 -1
- package/dist/transform/nest.cjs +389 -464
- package/dist/transform/nest.cjs.map +1 -1
- package/dist/transform/nest.js +3 -3
- package/dist/transform/next.cjs +389 -464
- package/dist/transform/next.cjs.map +1 -1
- package/dist/transform/next.js +3 -3
- package/dist/transform/nodeLoader.js +451 -498
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/rolldown.cjs +389 -464
- package/dist/transform/rolldown.cjs.map +1 -1
- package/dist/transform/rolldown.js +3 -3
- package/dist/transform/rollup.cjs +389 -464
- package/dist/transform/rollup.cjs.map +1 -1
- package/dist/transform/rollup.js +3 -3
- package/dist/transform/rsbuild.cjs +389 -464
- package/dist/transform/rsbuild.cjs.map +1 -1
- package/dist/transform/rsbuild.js +3 -3
- package/dist/transform/rspack.cjs +389 -464
- package/dist/transform/rspack.cjs.map +1 -1
- package/dist/transform/rspack.js +3 -3
- package/dist/transform/swc.cjs +402 -471
- package/dist/transform/swc.cjs.map +1 -1
- package/dist/transform/swc.js +19 -13
- package/dist/transform/swc.js.map +1 -1
- package/dist/transform/unplugin.cjs +389 -464
- package/dist/transform/unplugin.cjs.map +1 -1
- package/dist/transform/unplugin.js +3 -3
- package/dist/transform/vite.cjs +389 -464
- package/dist/transform/vite.cjs.map +1 -1
- package/dist/transform/vite.js +3 -3
- package/dist/transform/webpack.cjs +389 -464
- package/dist/transform/webpack.cjs.map +1 -1
- package/dist/transform/webpack.js +3 -3
- package/package.json +10 -21
- package/dist/chunk-6R33XLNY.js +0 -28
- package/dist/chunk-6R33XLNY.js.map +0 -1
- package/dist/chunk-FWC3KDJ4.js.map +0 -1
- package/dist/chunk-OXFZJP4E.js.map +0 -1
- package/dist/chunk-PACLPKDH.js +0 -513
- package/dist/chunk-PACLPKDH.js.map +0 -1
- package/dist/transform/typescript.cjs +0 -566
- package/dist/transform/typescript.cjs.map +0 -1
- package/dist/transform/typescript.d.cts +0 -22
- package/dist/transform/typescript.d.ts +0 -22
- package/dist/transform/typescript.js +0 -10
- package/dist/transform/typescript.js.map +0 -1
- /package/dist/{chunk-WS7CB5H3.js.map → chunk-EFGQRVMT.js.map} +0 -0
- /package/dist/{chunk-WMMHAWXS.js.map → chunk-R7SJXFMB.js.map} +0 -0
- /package/dist/{chunk-KHA4A746.js.map → chunk-ULKKTYOL.js.map} +0 -0
- /package/dist/{http-M6AWJWPW.js.map → http-GDTWWWYY.js.map} +0 -0
- /package/dist/{http-PKBJRGNK.js.map → http-QXJJB2F5.js.map} +0 -0
- /package/dist/{replay-JAYRFN3X.js.map → replay-DC3PID7Q.js.map} +0 -0
- /package/dist/{replay-OCHSU4JN.js.map → replay-VXQGVZXM.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1688,6 +1688,35 @@ type ScenarioData = {
|
|
|
1688
1688
|
history: ScenarioHistoryEntry[];
|
|
1689
1689
|
missing: string[];
|
|
1690
1690
|
};
|
|
1691
|
+
/** One thing the run did, such as sending a message or calling a tool. */
|
|
1692
|
+
type ScenarioAction = {
|
|
1693
|
+
/** The action, for example `"send_sms_message"`. */
|
|
1694
|
+
name: string;
|
|
1695
|
+
/** The arguments the action was called with. */
|
|
1696
|
+
details: Record<string, unknown>;
|
|
1697
|
+
/** What came back from the action, or null when nothing did. */
|
|
1698
|
+
result: string | null;
|
|
1699
|
+
/** True when the action did not go through. */
|
|
1700
|
+
failed: boolean;
|
|
1701
|
+
/** When the action happened, as an ISO 8601 time, or null when unknown. */
|
|
1702
|
+
at: string | null;
|
|
1703
|
+
};
|
|
1704
|
+
/**
|
|
1705
|
+
* What the run actually did in this scenario, one example of a response. It
|
|
1706
|
+
* never says what the run should have done. Bitfab never fills it in. The
|
|
1707
|
+
* caller saves it with `saveScenario`.
|
|
1708
|
+
*/
|
|
1709
|
+
type ScenarioActualOutcome = {
|
|
1710
|
+
/** What the run did, in a few sentences. */
|
|
1711
|
+
summary: string;
|
|
1712
|
+
/** The actions the run took, in order. */
|
|
1713
|
+
actions: ScenarioAction[];
|
|
1714
|
+
/**
|
|
1715
|
+
* The span the outcome was read from, on a trace linked to this scenario,
|
|
1716
|
+
* or null when it was not read from one.
|
|
1717
|
+
*/
|
|
1718
|
+
source: ScenarioSource | null;
|
|
1719
|
+
};
|
|
1691
1720
|
type Scenario = {
|
|
1692
1721
|
id: string;
|
|
1693
1722
|
createdAt: string;
|
|
@@ -1702,6 +1731,8 @@ type Scenario = {
|
|
|
1702
1731
|
data: ScenarioData;
|
|
1703
1732
|
triggerSummary: string;
|
|
1704
1733
|
dataSummary: string;
|
|
1734
|
+
/** What the run actually did, or null when none has been saved. */
|
|
1735
|
+
actualOutcome: ScenarioActualOutcome | null;
|
|
1705
1736
|
};
|
|
1706
1737
|
type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
1707
1738
|
source?: ScenarioSource | null;
|
|
@@ -1709,6 +1740,13 @@ type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
|
1709
1740
|
type SaveScenarioData = Omit<ScenarioData, "history"> & {
|
|
1710
1741
|
history: SaveScenarioHistoryEntry[];
|
|
1711
1742
|
};
|
|
1743
|
+
/**
|
|
1744
|
+
* What the run actually did, as sent to `saveScenario`. `source` may be left
|
|
1745
|
+
* out, which saves it as null.
|
|
1746
|
+
*/
|
|
1747
|
+
type SaveScenarioActualOutcome = Omit<ScenarioActualOutcome, "source"> & {
|
|
1748
|
+
source?: ScenarioSource | null;
|
|
1749
|
+
};
|
|
1712
1750
|
type ScenarioDataAppend = {
|
|
1713
1751
|
history?: SaveScenarioHistoryEntry[];
|
|
1714
1752
|
missing?: string[];
|
|
@@ -1718,6 +1756,12 @@ type SaveScenarioParams = {
|
|
|
1718
1756
|
name?: string;
|
|
1719
1757
|
description?: string;
|
|
1720
1758
|
trigger?: ScenarioTrigger;
|
|
1759
|
+
/**
|
|
1760
|
+
* What the run actually did, never what it should have done. Replaces the
|
|
1761
|
+
* saved value whole. Pass null to clear it, or leave it out to keep it.
|
|
1762
|
+
* Sending only this field, null included, is a valid save.
|
|
1763
|
+
*/
|
|
1764
|
+
actualOutcome?: SaveScenarioActualOutcome | null;
|
|
1721
1765
|
} & ({
|
|
1722
1766
|
data?: SaveScenarioData;
|
|
1723
1767
|
appendData?: never;
|
|
@@ -1734,6 +1778,8 @@ type SaveScenarioParams = {
|
|
|
1734
1778
|
data: SaveScenarioData;
|
|
1735
1779
|
} | {
|
|
1736
1780
|
appendData: ScenarioDataAppend;
|
|
1781
|
+
} | {
|
|
1782
|
+
actualOutcome: SaveScenarioActualOutcome | null;
|
|
1737
1783
|
});
|
|
1738
1784
|
type AssertionGenerationStatus = "running" | "completed" | "failed";
|
|
1739
1785
|
type AssertionGeneration = {
|
|
@@ -4154,7 +4200,7 @@ interface CommitRef {
|
|
|
4154
4200
|
/**
|
|
4155
4201
|
* SDK version from package.json (injected at build time)
|
|
4156
4202
|
*/
|
|
4157
|
-
declare const __version__ = "0.64.
|
|
4203
|
+
declare const __version__ = "0.64.25";
|
|
4158
4204
|
|
|
4159
4205
|
/**
|
|
4160
4206
|
* Constants for the Bitfab SDK.
|
|
@@ -4293,4 +4339,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4293
4339
|
run?: boolean;
|
|
4294
4340
|
}): Promise<SeedResult>;
|
|
4295
4341
|
|
|
4296
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
4342
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1688,6 +1688,35 @@ type ScenarioData = {
|
|
|
1688
1688
|
history: ScenarioHistoryEntry[];
|
|
1689
1689
|
missing: string[];
|
|
1690
1690
|
};
|
|
1691
|
+
/** One thing the run did, such as sending a message or calling a tool. */
|
|
1692
|
+
type ScenarioAction = {
|
|
1693
|
+
/** The action, for example `"send_sms_message"`. */
|
|
1694
|
+
name: string;
|
|
1695
|
+
/** The arguments the action was called with. */
|
|
1696
|
+
details: Record<string, unknown>;
|
|
1697
|
+
/** What came back from the action, or null when nothing did. */
|
|
1698
|
+
result: string | null;
|
|
1699
|
+
/** True when the action did not go through. */
|
|
1700
|
+
failed: boolean;
|
|
1701
|
+
/** When the action happened, as an ISO 8601 time, or null when unknown. */
|
|
1702
|
+
at: string | null;
|
|
1703
|
+
};
|
|
1704
|
+
/**
|
|
1705
|
+
* What the run actually did in this scenario, one example of a response. It
|
|
1706
|
+
* never says what the run should have done. Bitfab never fills it in. The
|
|
1707
|
+
* caller saves it with `saveScenario`.
|
|
1708
|
+
*/
|
|
1709
|
+
type ScenarioActualOutcome = {
|
|
1710
|
+
/** What the run did, in a few sentences. */
|
|
1711
|
+
summary: string;
|
|
1712
|
+
/** The actions the run took, in order. */
|
|
1713
|
+
actions: ScenarioAction[];
|
|
1714
|
+
/**
|
|
1715
|
+
* The span the outcome was read from, on a trace linked to this scenario,
|
|
1716
|
+
* or null when it was not read from one.
|
|
1717
|
+
*/
|
|
1718
|
+
source: ScenarioSource | null;
|
|
1719
|
+
};
|
|
1691
1720
|
type Scenario = {
|
|
1692
1721
|
id: string;
|
|
1693
1722
|
createdAt: string;
|
|
@@ -1702,6 +1731,8 @@ type Scenario = {
|
|
|
1702
1731
|
data: ScenarioData;
|
|
1703
1732
|
triggerSummary: string;
|
|
1704
1733
|
dataSummary: string;
|
|
1734
|
+
/** What the run actually did, or null when none has been saved. */
|
|
1735
|
+
actualOutcome: ScenarioActualOutcome | null;
|
|
1705
1736
|
};
|
|
1706
1737
|
type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
1707
1738
|
source?: ScenarioSource | null;
|
|
@@ -1709,6 +1740,13 @@ type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
|
|
|
1709
1740
|
type SaveScenarioData = Omit<ScenarioData, "history"> & {
|
|
1710
1741
|
history: SaveScenarioHistoryEntry[];
|
|
1711
1742
|
};
|
|
1743
|
+
/**
|
|
1744
|
+
* What the run actually did, as sent to `saveScenario`. `source` may be left
|
|
1745
|
+
* out, which saves it as null.
|
|
1746
|
+
*/
|
|
1747
|
+
type SaveScenarioActualOutcome = Omit<ScenarioActualOutcome, "source"> & {
|
|
1748
|
+
source?: ScenarioSource | null;
|
|
1749
|
+
};
|
|
1712
1750
|
type ScenarioDataAppend = {
|
|
1713
1751
|
history?: SaveScenarioHistoryEntry[];
|
|
1714
1752
|
missing?: string[];
|
|
@@ -1718,6 +1756,12 @@ type SaveScenarioParams = {
|
|
|
1718
1756
|
name?: string;
|
|
1719
1757
|
description?: string;
|
|
1720
1758
|
trigger?: ScenarioTrigger;
|
|
1759
|
+
/**
|
|
1760
|
+
* What the run actually did, never what it should have done. Replaces the
|
|
1761
|
+
* saved value whole. Pass null to clear it, or leave it out to keep it.
|
|
1762
|
+
* Sending only this field, null included, is a valid save.
|
|
1763
|
+
*/
|
|
1764
|
+
actualOutcome?: SaveScenarioActualOutcome | null;
|
|
1721
1765
|
} & ({
|
|
1722
1766
|
data?: SaveScenarioData;
|
|
1723
1767
|
appendData?: never;
|
|
@@ -1734,6 +1778,8 @@ type SaveScenarioParams = {
|
|
|
1734
1778
|
data: SaveScenarioData;
|
|
1735
1779
|
} | {
|
|
1736
1780
|
appendData: ScenarioDataAppend;
|
|
1781
|
+
} | {
|
|
1782
|
+
actualOutcome: SaveScenarioActualOutcome | null;
|
|
1737
1783
|
});
|
|
1738
1784
|
type AssertionGenerationStatus = "running" | "completed" | "failed";
|
|
1739
1785
|
type AssertionGeneration = {
|
|
@@ -4154,7 +4200,7 @@ interface CommitRef {
|
|
|
4154
4200
|
/**
|
|
4155
4201
|
* SDK version from package.json (injected at build time)
|
|
4156
4202
|
*/
|
|
4157
|
-
declare const __version__ = "0.64.
|
|
4203
|
+
declare const __version__ = "0.64.25";
|
|
4158
4204
|
|
|
4159
4205
|
/**
|
|
4160
4206
|
* Constants for the Bitfab SDK.
|
|
@@ -4293,4 +4339,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4293
4339
|
run?: boolean;
|
|
4294
4340
|
}): Promise<SeedResult>;
|
|
4295
4341
|
|
|
4296
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
4342
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getCurrentTrace,
|
|
29
29
|
reseedFromRegistry,
|
|
30
30
|
seedFromRegistry
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JNVDKPFL.js";
|
|
32
32
|
import "./chunk-YWXQM6J3.js";
|
|
33
33
|
import {
|
|
34
34
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
ReplayError,
|
|
38
38
|
reportReplayProgress,
|
|
39
39
|
serializeReplayResult
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EFGQRVMT.js";
|
|
41
41
|
import {
|
|
42
42
|
BitfabError,
|
|
43
43
|
DEFAULT_SERVICE_URL,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
MixedTracingError,
|
|
46
46
|
__version__,
|
|
47
47
|
flushTraces
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DY52FEEM.js";
|
|
49
49
|
import "./chunk-MT36GJMW.js";
|
|
50
50
|
export {
|
|
51
51
|
AssertionCategoriesClient,
|