trickle-cli 0.1.3 → 0.1.4

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.
@@ -157,7 +157,7 @@ async function fetchFunctionSamples() {
157
157
  const samples = [];
158
158
  for (const fn of functions) {
159
159
  try {
160
- const data = await fetchJson(`/api/types/${encodeURIComponent(fn.function_name)}`);
160
+ const data = await fetchJson(`/api/types/${fn.id}`);
161
161
  if (data.snapshots && data.snapshots.length > 0) {
162
162
  const snap = data.snapshots[0];
163
163
  if (snap.sample_input || snap.sample_output) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trickle-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for trickle runtime type observability",
5
5
  "bin": {
6
6
  "trickle": "dist/index.js"
package/src/api-client.ts CHANGED
@@ -256,7 +256,7 @@ export async function fetchFunctionSamples(): Promise<FunctionSample[]> {
256
256
  for (const fn of functions) {
257
257
  try {
258
258
  const data = await fetchJson<{ snapshots: Array<{ sample_input: unknown; sample_output: unknown }> }>(
259
- `/api/types/${encodeURIComponent(fn.function_name)}`
259
+ `/api/types/${fn.id}`
260
260
  );
261
261
  if (data.snapshots && data.snapshots.length > 0) {
262
262
  const snap = data.snapshots[0];