@automate.ax/api-contract 0.60.0 → 0.61.1
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/runtime.js +3 -2
- package/package.json +3 -2
- package/src/runtime.ts +3 -2
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { encodableSchema } from "@automate.ax/codec";
|
|
2
2
|
import { oc } from "@orpc/contract";
|
|
3
|
+
import stableStringify from "fast-json-stable-stringify";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
/** Default model used by the platform Vercel AI Gateway account. */
|
|
5
6
|
export const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
@@ -544,8 +545,8 @@ export async function hashSignalCoordinatorConfiguration(definition, primaryPosi
|
|
|
544
545
|
value,
|
|
545
546
|
]))
|
|
546
547
|
: definition;
|
|
547
|
-
return await sha256Base64Url(
|
|
548
|
-
definitionHash: await sha256Base64Url(
|
|
548
|
+
return await sha256Base64Url(stableStringify({
|
|
549
|
+
definitionHash: await sha256Base64Url(stableStringify(persistedDefinition)),
|
|
549
550
|
primaryPosition: primaryPosition ??
|
|
550
551
|
(policy === "fanout" || policy === "race" ? "first" : null),
|
|
551
552
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ai-sdk/gateway": "^4.0.46",
|
|
31
|
-
"@automate.ax/codec": "0.
|
|
31
|
+
"@automate.ax/codec": "0.61.1",
|
|
32
32
|
"@orpc/contract": "1.15.0",
|
|
33
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
33
34
|
"zod": "^4.3.6"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
package/src/runtime.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { encodableSchema } from "@automate.ax/codec"
|
|
2
2
|
import type { GatewayModelId } from "@ai-sdk/gateway"
|
|
3
3
|
import { oc } from "@orpc/contract"
|
|
4
|
+
import stableStringify from "fast-json-stable-stringify"
|
|
4
5
|
import { z } from "zod"
|
|
5
6
|
|
|
6
7
|
/** Default model used by the platform Vercel AI Gateway account. */
|
|
@@ -622,9 +623,9 @@ export async function hashSignalCoordinatorConfiguration(
|
|
|
622
623
|
)
|
|
623
624
|
: definition
|
|
624
625
|
return await sha256Base64Url(
|
|
625
|
-
|
|
626
|
+
stableStringify({
|
|
626
627
|
definitionHash: await sha256Base64Url(
|
|
627
|
-
|
|
628
|
+
stableStringify(persistedDefinition),
|
|
628
629
|
),
|
|
629
630
|
primaryPosition:
|
|
630
631
|
primaryPosition ??
|