dialai 1.2.0 → 1.3.0
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/.claude/skills/dial-machine/references/api-reference.md +2 -1
- package/.claude/specs/enriched-transitions.md +1100 -0
- package/.claude/specs/proposal-metadata-update.md +211 -0
- package/.claude/specs/submit-proposal-cleanup.md +319 -0
- package/dist/dialai/api.d.ts.map +1 -1
- package/dist/dialai/api.js +28 -26
- package/dist/dialai/api.js.map +1 -1
- package/dist/dialai/types.d.ts +2 -0
- package/dist/dialai/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -121,6 +121,7 @@ interface ProposerStrategyResult {
|
|
|
121
121
|
transitionName: string;
|
|
122
122
|
toState: string;
|
|
123
123
|
reasoning: string;
|
|
124
|
+
metaJson?: Record<string, unknown>; // Structured metadata (e.g., tool arguments)
|
|
124
125
|
costUSD?: number; // Cost in USD to generate this result
|
|
125
126
|
latencyMsec?: number; // Time in milliseconds to generate
|
|
126
127
|
numInputTokens?: number; // Input tokens used
|
|
@@ -128,7 +129,7 @@ interface ProposerStrategyResult {
|
|
|
128
129
|
}
|
|
129
130
|
```
|
|
130
131
|
|
|
131
|
-
When returned from a strategy function, these optional
|
|
132
|
+
When returned from a strategy function, these optional metric and metadata fields are merged into the resulting `Proposal`. Values passed via `SubmitProposalOptions` take precedence over strategy-returned values.
|
|
132
133
|
|
|
133
134
|
### `ArbiterStrategyResult`
|
|
134
135
|
|