Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ packages:
- scripts/tests
- shared/typescript/*
- website
- ext/*
- website/scripts/typecheck-staging

ignoredBuiltDependencies:
Expand Down
8 changes: 4 additions & 4 deletions rivetkit-typescript/packages/rivetkit/src/registry/native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import type {
} from "@/registry/config";
import {
decodeCborCompat,
decodeCborJsonCompat,
encodeCborCompat,
} from "@/serde";
import { getEnvUniversal, VERSION } from "@/utils";
Expand Down Expand Up @@ -594,7 +593,7 @@ function decodeValue<T>(value?: RuntimeBytes | null): T {
return undefined as T;
}

return decodeCborJsonCompat(value);
return decodeCborCompat(value);
}

function encodeValue(value: unknown): RuntimeBytes {
Expand Down Expand Up @@ -931,6 +930,7 @@ function serializeWorkflowEntryKind(
}
}

// TODO: Switch inspector routes to CBOR encoding
function serializeWorkflowHistoryForJson(data: ArrayBuffer | null): {
nameRegistry: string[];
entries: Array<{
Expand Down Expand Up @@ -964,7 +964,7 @@ function serializeWorkflowHistoryForJson(data: ArrayBuffer | null): {

const history = decodeWorkflowHistoryTransport(data);

return {
return jsonSafe({
nameRegistry: [...history.nameRegistry],
entries: history.entries.map((entry) => ({
id: entry.id,
Expand Down Expand Up @@ -994,7 +994,7 @@ function serializeWorkflowHistoryForJson(data: ArrayBuffer | null): {
],
),
),
};
});
}

function toHttpJsonCompatible<T>(value: T): T {
Expand Down
Loading