@uniformdev/cli 19.61.1-alpha.13 → 19.61.1-alpha.18

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 +8 -12
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -2769,12 +2769,8 @@ function createDataTypeEngineDataSource({
2769
2769
  client
2770
2770
  }) {
2771
2771
  async function* getObjects() {
2772
- var _a;
2773
2772
  const dataTypes = (await client.get()).results;
2774
2773
  for await (const dataType of dataTypes) {
2775
- if (((_a = dataType.custom) == null ? void 0 : _a.uniformAutogenerated) === true) {
2776
- continue;
2777
- }
2778
2774
  const result = {
2779
2775
  id: selectIdentifier4(dataType),
2780
2776
  displayName: selectDisplayName4(dataType),
@@ -3564,10 +3560,10 @@ var PromptGetModule = {
3564
3560
  const fetch3 = nodeFetchProxy(proxy);
3565
3561
  const client = new PromptClient({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3566
3562
  const res = await client.get({ promptId: id });
3567
- if (!res.result) {
3563
+ if (!res) {
3568
3564
  throw new Error(`Prompt with ID ${id} not found`);
3569
3565
  }
3570
- emitWithFormat(res.result, format, filename);
3566
+ emitWithFormat(res, format, filename);
3571
3567
  }
3572
3568
  };
3573
3569
 
@@ -3580,8 +3576,8 @@ var PromptListModule = {
3580
3576
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3581
3577
  const fetch3 = nodeFetchProxy(proxy);
3582
3578
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3583
- const res = await client.getList();
3584
- emitWithFormat(res.results, format, filename);
3579
+ const res = await client.get();
3580
+ emitWithFormat(res, format, filename);
3585
3581
  }
3586
3582
  };
3587
3583
 
@@ -3590,14 +3586,14 @@ import { PromptClient as PromptClient3 } from "@uniformdev/canvas";
3590
3586
 
3591
3587
  // src/commands/canvas/commands/prompts/_util.ts
3592
3588
  var selectPromptIdentifier = (e) => e.id;
3593
- var selectPromptDisplayName = (e) => `${e.promptName ?? "Untitled"} (pid: ${e.id})`;
3589
+ var selectPromptDisplayName = (e) => `${e.name ?? "Untitled"} (pid: ${e.id})`;
3594
3590
 
3595
3591
  // src/commands/canvas/promptEngineDataSource.ts
3596
3592
  function createPromptEngineDataSource({
3597
3593
  client
3598
3594
  }) {
3599
3595
  async function* getObjects() {
3600
- const { results: prompts } = await client.getList();
3596
+ const prompts = await client.get();
3601
3597
  for await (const prompt of prompts) {
3602
3598
  const result = {
3603
3599
  id: selectPromptIdentifier(prompt),
@@ -5445,7 +5441,7 @@ import { PostHog } from "posthog-node";
5445
5441
  // package.json
5446
5442
  var package_default = {
5447
5443
  name: "@uniformdev/cli",
5448
- version: "19.70.0",
5444
+ version: "19.75.1",
5449
5445
  description: "Uniform command line interface tool",
5450
5446
  license: "SEE LICENSE IN LICENSE.txt",
5451
5447
  main: "./cli.js",
@@ -5489,7 +5485,7 @@ var package_default = {
5489
5485
  open: "9.1.0",
5490
5486
  ora: "7.0.1",
5491
5487
  "p-queue": "7.3.4",
5492
- "posthog-node": "3.1.2",
5488
+ "posthog-node": "3.1.3",
5493
5489
  "registry-auth-token": "^5.0.0",
5494
5490
  "registry-url": "^6.0.0",
5495
5491
  slugify: "1.6.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.61.1-alpha.13+9ea7c72e6",
3
+ "version": "19.61.1-alpha.18+f26189658",
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.61.1-alpha.13+9ea7c72e6",
21
- "@uniformdev/canvas": "19.61.1-alpha.13+9ea7c72e6",
22
- "@uniformdev/context": "19.61.1-alpha.13+9ea7c72e6",
23
- "@uniformdev/files": "19.61.1-alpha.13+9ea7c72e6",
24
- "@uniformdev/project-map": "19.61.1-alpha.13+9ea7c72e6",
25
- "@uniformdev/redirect": "19.61.1-alpha.13+9ea7c72e6",
20
+ "@uniformdev/assets": "19.61.1-alpha.18+f26189658",
21
+ "@uniformdev/canvas": "19.61.1-alpha.18+f26189658",
22
+ "@uniformdev/context": "19.61.1-alpha.18+f26189658",
23
+ "@uniformdev/files": "19.61.1-alpha.18+f26189658",
24
+ "@uniformdev/project-map": "19.61.1-alpha.18+f26189658",
25
+ "@uniformdev/redirect": "19.61.1-alpha.18+f26189658",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -44,7 +44,7 @@
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",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "9ea7c72e685bf1dd690149aa40a9b7a443d2ad28"
72
+ "gitHead": "f2618965881c30f1e995f45a6e880bc2f4d10ebe"
73
73
  }