@uniformdev/cli 19.69.0 → 19.73.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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -9
  2. package/package.json +10 -10
package/dist/index.mjs CHANGED
@@ -3564,10 +3564,10 @@ var PromptGetModule = {
3564
3564
  const fetch3 = nodeFetchProxy(proxy);
3565
3565
  const client = new PromptClient({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3566
3566
  const res = await client.get({ promptId: id });
3567
- if (!res.result) {
3567
+ if (!res) {
3568
3568
  throw new Error(`Prompt with ID ${id} not found`);
3569
3569
  }
3570
- emitWithFormat(res.result, format, filename);
3570
+ emitWithFormat(res, format, filename);
3571
3571
  }
3572
3572
  };
3573
3573
 
@@ -3580,8 +3580,8 @@ var PromptListModule = {
3580
3580
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3581
3581
  const fetch3 = nodeFetchProxy(proxy);
3582
3582
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3583
- const res = await client.getList();
3584
- emitWithFormat(res.results, format, filename);
3583
+ const res = await client.get();
3584
+ emitWithFormat(res, format, filename);
3585
3585
  }
3586
3586
  };
3587
3587
 
@@ -3590,14 +3590,14 @@ import { PromptClient as PromptClient3 } from "@uniformdev/canvas";
3590
3590
 
3591
3591
  // src/commands/canvas/commands/prompts/_util.ts
3592
3592
  var selectPromptIdentifier = (e) => e.id;
3593
- var selectPromptDisplayName = (e) => `${e.promptName ?? "Untitled"} (pid: ${e.id})`;
3593
+ var selectPromptDisplayName = (e) => `${e.name ?? "Untitled"} (pid: ${e.id})`;
3594
3594
 
3595
3595
  // src/commands/canvas/promptEngineDataSource.ts
3596
3596
  function createPromptEngineDataSource({
3597
3597
  client
3598
3598
  }) {
3599
3599
  async function* getObjects() {
3600
- const { results: prompts } = await client.getList();
3600
+ const prompts = await client.get();
3601
3601
  for await (const prompt of prompts) {
3602
3602
  const result = {
3603
3603
  id: selectPromptIdentifier(prompt),
@@ -5445,7 +5445,7 @@ import { PostHog } from "posthog-node";
5445
5445
  // package.json
5446
5446
  var package_default = {
5447
5447
  name: "@uniformdev/cli",
5448
- version: "19.69.0",
5448
+ version: "19.73.0",
5449
5449
  description: "Uniform command line interface tool",
5450
5450
  license: "SEE LICENSE IN LICENSE.txt",
5451
5451
  main: "./cli.js",
@@ -5489,12 +5489,12 @@ var package_default = {
5489
5489
  open: "9.1.0",
5490
5490
  ora: "7.0.1",
5491
5491
  "p-queue": "7.3.4",
5492
- "posthog-node": "3.1.2",
5492
+ "posthog-node": "3.1.3",
5493
5493
  "registry-auth-token": "^5.0.0",
5494
5494
  "registry-url": "^6.0.0",
5495
5495
  slugify: "1.6.6",
5496
5496
  yargs: "^17.6.2",
5497
- zod: "3.22.3"
5497
+ zod: "3.22.4"
5498
5498
  },
5499
5499
  devDependencies: {
5500
5500
  "@types/diff": "5.0.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.69.0",
3
+ "version": "19.73.0",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -17,12 +17,12 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@thi.ng/mime": "^2.2.23",
20
- "@uniformdev/assets": "19.69.0",
21
- "@uniformdev/canvas": "19.69.0",
22
- "@uniformdev/context": "19.69.0",
23
- "@uniformdev/files": "19.69.0",
24
- "@uniformdev/project-map": "19.69.0",
25
- "@uniformdev/redirect": "19.69.0",
20
+ "@uniformdev/assets": "19.73.0",
21
+ "@uniformdev/canvas": "19.73.0",
22
+ "@uniformdev/context": "19.73.0",
23
+ "@uniformdev/files": "19.73.0",
24
+ "@uniformdev/project-map": "19.73.0",
25
+ "@uniformdev/redirect": "19.73.0",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -44,12 +44,12 @@
44
44
  "open": "9.1.0",
45
45
  "ora": "7.0.1",
46
46
  "p-queue": "7.3.4",
47
- "posthog-node": "3.1.2",
47
+ "posthog-node": "3.1.3",
48
48
  "registry-auth-token": "^5.0.0",
49
49
  "registry-url": "^6.0.0",
50
50
  "slugify": "1.6.6",
51
51
  "yargs": "^17.6.2",
52
- "zod": "3.22.3"
52
+ "zod": "3.22.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/diff": "5.0.5",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "327658d8c6e5735499845ebb29d74906f2a43dad"
72
+ "gitHead": "1376a707cf81b8ff1d032cfc5c927c8eb213e713"
73
73
  }