@uniformdev/cli 19.79.1-alpha.13 → 19.79.1-alpha.25

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ type StateArgs = {
5
5
  };
6
6
 
7
7
  type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
8
- type EntityTypes = 'category' | 'dataType' | 'quirk' | 'test' | 'signal' | 'enrichment' | 'aggregate' | 'component' | 'composition' | 'pattern' | 'projectMapDefinition' | 'projectMapNode' | 'redirect' | 'entry' | 'contentType' | 'asset' | 'locale';
8
+ type EntityTypes = 'aggregate' | 'asset' | 'category' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'locale' | 'pattern' | 'projectMapDefinition' | 'projectMapNode' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
9
9
  type SyncFileFormat = 'yaml' | 'json';
10
10
  type EntityConfiguration = {
11
11
  mode?: SyncMode;
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  throw Error('Dynamic require of "' + x + '" is not supported');
8
8
  });
9
9
 
10
- // ../../node_modules/.pnpm/tsup@8.0.1_@microsoft+api-extractor@7.39.0_postcss@8.4.32_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
10
+ // ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.39.0_postcss@8.4.38_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
11
11
  import { fileURLToPath } from "url";
12
12
  import path from "path";
13
13
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -133,10 +133,9 @@ var loadConfig = (configPath) => {
133
133
 
134
134
  // src/sync/util.ts
135
135
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
136
- import httpsProxyAgent from "https-proxy-agent";
137
- import unfetch from "isomorphic-unfetch";
138
136
  import { dump, load } from "js-yaml";
139
137
  import { dirname, extname, isAbsolute, resolve, sep } from "path";
138
+ import { fetch as undiciFetch, ProxyAgent } from "undici";
140
139
  function withConfiguration(yargs32) {
141
140
  return yargs32.option("serialization", {
142
141
  skipValidation: true,
@@ -175,11 +174,11 @@ function nodeFetchProxy(proxy) {
175
174
  if (proxy) {
176
175
  const wrappedInit = {
177
176
  ...init,
178
- agent: new httpsProxyAgent.HttpsProxyAgent(proxy)
177
+ dispatcher: new ProxyAgent(proxy)
179
178
  };
180
- return unfetch(input, wrappedInit);
179
+ return undiciFetch(input, wrappedInit);
181
180
  }
182
- return unfetch(input, init);
181
+ return undiciFetch(input, init);
183
182
  };
184
183
  return wrappedFetch;
185
184
  }
@@ -4310,14 +4309,14 @@ function createPromptEngineDataSource({
4310
4309
  // src/commands/canvas/commands/prompts/pull.ts
4311
4310
  var PromptPullModule = {
4312
4311
  command: "pull <directory>",
4313
- describe: "Pulls all entries to local files in a directory",
4312
+ describe: "Pulls all prompts to local files in a directory",
4314
4313
  builder: (yargs32) => withConfiguration(
4315
4314
  withApiOptions(
4316
4315
  withProjectOptions(
4317
4316
  withStateOptions(
4318
4317
  withDiffOptions(
4319
4318
  yargs32.positional("directory", {
4320
- describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4319
+ describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4321
4320
  type: "string"
4322
4321
  }).option("format", {
4323
4322
  alias: ["f"],
@@ -6437,7 +6436,7 @@ import { PostHog } from "posthog-node";
6437
6436
  // package.json
6438
6437
  var package_default = {
6439
6438
  name: "@uniformdev/cli",
6440
- version: "19.112.0",
6439
+ version: "19.137.0",
6441
6440
  description: "Uniform command line interface tool",
6442
6441
  license: "SEE LICENSE IN LICENSE.txt",
6443
6442
  main: "./cli.js",
@@ -6470,21 +6469,20 @@ var package_default = {
6470
6469
  "fs-jetpack": "5.1.0",
6471
6470
  graphql: "16.8.1",
6472
6471
  "graphql-request": "6.1.0",
6473
- "https-proxy-agent": "^7.0.0",
6474
6472
  "image-size": "^1.0.2",
6475
- inquirer: "9.2.12",
6473
+ inquirer: "9.2.17",
6476
6474
  "isomorphic-git": "1.25.2",
6477
- "isomorphic-unfetch": "^4.0.0",
6478
6475
  "js-yaml": "^4.1.0",
6479
6476
  jsonwebtoken: "9.0.2",
6480
6477
  "lodash.isequalwith": "^4.4.0",
6481
6478
  open: "9.1.0",
6482
6479
  ora: "8.0.1",
6483
6480
  "p-queue": "7.3.4",
6484
- "posthog-node": "3.2.1",
6481
+ "posthog-node": "3.6.3",
6485
6482
  "registry-auth-token": "^5.0.0",
6486
6483
  "registry-url": "^6.0.0",
6487
6484
  slugify: "1.6.6",
6485
+ undici: "^6.10.1",
6488
6486
  yargs: "^17.6.2",
6489
6487
  zod: "3.22.4"
6490
6488
  },
@@ -7455,8 +7453,8 @@ import yargs23 from "yargs";
7455
7453
  // src/commands/optimize/manifest/download.ts
7456
7454
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
7457
7455
  import { writeFile as writeFile2 } from "fs";
7458
- import fetch2 from "isomorphic-unfetch";
7459
7456
  import { exit as exit3 } from "process";
7457
+ import { fetch as fetch2 } from "undici";
7460
7458
 
7461
7459
  // src/constants.ts
7462
7460
  var UniformBaseUrl = "https://uniform.app";
@@ -7957,13 +7955,13 @@ function createProjectMapNodeEngineDataSource({
7957
7955
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
7958
7956
  for (const projectMap of projectMaps) {
7959
7957
  const nodes = (await client.getNodes({ projectMapId: projectMap.id })).nodes;
7960
- for await (const def of nodes ?? []) {
7961
- if (def) {
7958
+ for await (const node of nodes ?? []) {
7959
+ if (node) {
7962
7960
  const result = {
7963
- id: selectIdentifier11({ ...def, projectMapId: projectMap.id }, projectId),
7964
- displayName: selectDisplayName11(def),
7965
- providerId: selectIdentifier11({ ...def, projectMapId: projectMap.id }, projectId)[0],
7966
- object: { ...def, projectMapId: projectMap.id }
7961
+ id: selectIdentifier11({ ...node, projectMapId: projectMap.id }, projectId),
7962
+ displayName: selectDisplayName11(node),
7963
+ providerId: selectIdentifier11({ ...node, projectMapId: projectMap.id }, projectId)[0],
7964
+ object: { ...node, projectMapId: projectMap.id }
7967
7965
  };
7968
7966
  yield result;
7969
7967
  }
@@ -8593,6 +8591,7 @@ var SyncPullModule = {
8593
8591
  redirect: RedirectDefinitionPullModule,
8594
8592
  entry: EntryPullModule,
8595
8593
  contentType: ContentTypePullModule
8594
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8596
8595
  }).filter(([entityType]) => {
8597
8596
  var _a2, _b, _c, _d, _e, _f;
8598
8597
  return Boolean((_a2 = config2.entitiesConfig) == null ? void 0 : _a2[entityType]) && ((_c = (_b = config2.entitiesConfig) == null ? void 0 : _b[entityType]) == null ? void 0 : _c.disabled) !== true && ((_f = (_e = (_d = config2.entitiesConfig) == null ? void 0 : _d[entityType]) == null ? void 0 : _e.pull) == null ? void 0 : _f.disabled) !== true;
@@ -8691,6 +8690,7 @@ var SyncPushModule = {
8691
8690
  redirect: RedirectDefinitionPushModule,
8692
8691
  contentType: ContentTypePushModule,
8693
8692
  entry: EntryPushModule
8693
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8694
8694
  }).filter(([entityType]) => {
8695
8695
  var _a2, _b2, _c2, _d2, _e2, _f2;
8696
8696
  return Boolean((_a2 = config2.entitiesConfig) == null ? void 0 : _a2[entityType]) && ((_c2 = (_b2 = config2.entitiesConfig) == null ? void 0 : _b2[entityType]) == null ? void 0 : _c2.disabled) !== true && ((_f2 = (_e2 = (_d2 = config2.entitiesConfig) == null ? void 0 : _d2[entityType]) == null ? void 0 : _e2.push) == null ? void 0 : _f2.disabled) !== true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.79.1-alpha.13+608a273da",
3
+ "version": "19.79.1-alpha.25+87cea1cd47",
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.79.1-alpha.13+608a273da",
21
- "@uniformdev/canvas": "19.79.1-alpha.13+608a273da",
22
- "@uniformdev/context": "19.79.1-alpha.13+608a273da",
23
- "@uniformdev/files": "19.79.1-alpha.13+608a273da",
24
- "@uniformdev/project-map": "19.79.1-alpha.13+608a273da",
25
- "@uniformdev/redirect": "19.79.1-alpha.13+608a273da",
20
+ "@uniformdev/assets": "19.79.1-alpha.25+87cea1cd47",
21
+ "@uniformdev/canvas": "19.79.1-alpha.25+87cea1cd47",
22
+ "@uniformdev/context": "19.79.1-alpha.25+87cea1cd47",
23
+ "@uniformdev/files": "19.79.1-alpha.25+87cea1cd47",
24
+ "@uniformdev/project-map": "19.79.1-alpha.25+87cea1cd47",
25
+ "@uniformdev/redirect": "19.79.1-alpha.25+87cea1cd47",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -33,21 +33,20 @@
33
33
  "fs-jetpack": "5.1.0",
34
34
  "graphql": "16.8.1",
35
35
  "graphql-request": "6.1.0",
36
- "https-proxy-agent": "^7.0.0",
37
36
  "image-size": "^1.0.2",
38
- "inquirer": "9.2.12",
37
+ "inquirer": "9.2.17",
39
38
  "isomorphic-git": "1.25.2",
40
- "isomorphic-unfetch": "^4.0.0",
41
39
  "js-yaml": "^4.1.0",
42
40
  "jsonwebtoken": "9.0.2",
43
41
  "lodash.isequalwith": "^4.4.0",
44
42
  "open": "9.1.0",
45
43
  "ora": "8.0.1",
46
44
  "p-queue": "7.3.4",
47
- "posthog-node": "3.2.1",
45
+ "posthog-node": "3.6.3",
48
46
  "registry-auth-token": "^5.0.0",
49
47
  "registry-url": "^6.0.0",
50
48
  "slugify": "1.6.6",
49
+ "undici": "^6.10.1",
51
50
  "yargs": "^17.6.2",
52
51
  "zod": "3.22.4"
53
52
  },
@@ -69,5 +68,5 @@
69
68
  "publishConfig": {
70
69
  "access": "public"
71
70
  },
72
- "gitHead": "608a273da87aa432f17b2c8ce15d747dadab0cd1"
71
+ "gitHead": "87cea1cd47c691f7d32b876660d5f7c984bb1d87"
73
72
  }