@tscircuit/fake-snippets 0.0.165 → 0.0.167

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/dist/index.d.ts CHANGED
@@ -752,6 +752,7 @@ declare const packageFileSchema: z.ZodObject<{
752
752
  created_at: z.ZodString;
753
753
  is_release_tarball: z.ZodOptional<z.ZodBoolean>;
754
754
  npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
755
+ is_text: z.ZodOptional<z.ZodBoolean>;
755
756
  }, "strip", z.ZodTypeAny, {
756
757
  package_release_id: string;
757
758
  created_at: string;
@@ -760,6 +761,7 @@ declare const packageFileSchema: z.ZodObject<{
760
761
  content_text?: string | null | undefined;
761
762
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
762
763
  content_mimetype?: string | null | undefined;
764
+ is_text?: boolean | undefined;
763
765
  is_release_tarball?: boolean | undefined;
764
766
  npm_pack_output?: any;
765
767
  }, {
@@ -770,6 +772,7 @@ declare const packageFileSchema: z.ZodObject<{
770
772
  content_text?: string | null | undefined;
771
773
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
772
774
  content_mimetype?: string | null | undefined;
775
+ is_text?: boolean | undefined;
773
776
  is_release_tarball?: boolean | undefined;
774
777
  npm_pack_output?: any;
775
778
  }>;
@@ -1290,6 +1293,7 @@ declare const createDatabase: ({ seed }?: {
1290
1293
  content_text?: string | null | undefined;
1291
1294
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1292
1295
  content_mimetype?: string | null | undefined;
1296
+ is_text?: boolean | undefined;
1293
1297
  is_release_tarball?: boolean | undefined;
1294
1298
  npm_pack_output?: any;
1295
1299
  }[];
@@ -1912,6 +1916,7 @@ declare const createDatabase: ({ seed }?: {
1912
1916
  content_text?: string | null | undefined;
1913
1917
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1914
1918
  content_mimetype?: string | null | undefined;
1919
+ is_text?: boolean | undefined;
1915
1920
  is_release_tarball?: boolean | undefined;
1916
1921
  npm_pack_output?: any;
1917
1922
  }[];
package/dist/index.js CHANGED
@@ -285,7 +285,8 @@ var packageFileSchema = z.object({
285
285
  content_mimetype: z.string().nullable().optional(),
286
286
  created_at: z.string().datetime(),
287
287
  is_release_tarball: z.boolean().optional(),
288
- npm_pack_output: z.any().nullable().optional()
288
+ npm_pack_output: z.any().nullable().optional(),
289
+ is_text: z.boolean().optional()
289
290
  });
290
291
  var packageFileLiteSchema = packageFileSchema.omit({
291
292
  content_text: true
@@ -444,6 +445,7 @@ var publicOrgSchema = z.object({
444
445
  package_count: z.number(),
445
446
  avatar_url: z.string().nullable().optional(),
446
447
  github_handle: z.string().nullable(),
448
+ github_installation_handles: z.array(z.string()).optional(),
447
449
  tscircuit_handle: z.string().nullable(),
448
450
  created_at: z.string(),
449
451
  user_permissions: userPermissionsSchema.optional()
@@ -1286,7 +1288,8 @@ export const TestComponent = ({ name }: { name: string }) => (
1286
1288
  <resistor name={name} resistance="10k" />
1287
1289
  )
1288
1290
  `.trim(),
1289
- created_at: (/* @__PURE__ */ new Date()).toISOString()
1291
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
1292
+ is_text: true
1290
1293
  });
1291
1294
  db.addPackageFile({
1292
1295
  package_release_id: test2PackageReleaseId,
@@ -1338,7 +1341,8 @@ export const TestComponent = ({ name }: { name: string }) => (
1338
1341
  "material": "fr4"
1339
1342
  }
1340
1343
  ]`.trim(),
1341
- created_at: (/* @__PURE__ */ new Date()).toISOString()
1344
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
1345
+ is_text: true
1342
1346
  });
1343
1347
  db.addPackageBuild({
1344
1348
  package_release_id: test2PackageReleaseId,
@@ -2564,7 +2568,8 @@ export const SquareWaveModule = () => (
2564
2568
  <resistor name={name} resistance="10k" />
2565
2569
  )
2566
2570
  `.trim(),
2567
- created_at: (/* @__PURE__ */ new Date()).toISOString()
2571
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
2572
+ is_text: true
2568
2573
  });
2569
2574
  db.addPackageFile({
2570
2575
  package_release_id: testOrgPackageReleaseId,
@@ -2616,7 +2621,8 @@ export const SquareWaveModule = () => (
2616
2621
  "material": "fr4"
2617
2622
  }
2618
2623
  ]`.trim(),
2619
- created_at: (/* @__PURE__ */ new Date()).toISOString()
2624
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
2625
+ is_text: true
2620
2626
  });
2621
2627
  db.addPackageBuild({
2622
2628
  package_release_id: testOrgPackageReleaseId,
@@ -2796,7 +2802,8 @@ export default () => (
2796
2802
  />
2797
2803
  </board>
2798
2804
  )`,
2799
- created_at: (/* @__PURE__ */ new Date()).toISOString()
2805
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
2806
+ is_text: true
2800
2807
  });
2801
2808
  const glbFilePath = join(__dirname2, "assets", "test.glb");
2802
2809
  const glbFileContent = readFileSync(glbFilePath);
@@ -2805,7 +2812,8 @@ export default () => (
2805
2812
  file_path: "test.glb",
2806
2813
  content_bytes: glbFileContent,
2807
2814
  content_mimetype: "model/gltf-binary",
2808
- created_at: (/* @__PURE__ */ new Date()).toISOString()
2815
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
2816
+ is_text: false
2809
2817
  });
2810
2818
  db.addPackageBuild({
2811
2819
  package_release_id: glbModelReleaseId,
package/dist/schema.d.ts CHANGED
@@ -970,6 +970,7 @@ declare const packageFileSchema: z.ZodObject<{
970
970
  created_at: z.ZodString;
971
971
  is_release_tarball: z.ZodOptional<z.ZodBoolean>;
972
972
  npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
973
+ is_text: z.ZodOptional<z.ZodBoolean>;
973
974
  }, "strip", z.ZodTypeAny, {
974
975
  package_release_id: string;
975
976
  created_at: string;
@@ -978,6 +979,7 @@ declare const packageFileSchema: z.ZodObject<{
978
979
  content_text?: string | null | undefined;
979
980
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
980
981
  content_mimetype?: string | null | undefined;
982
+ is_text?: boolean | undefined;
981
983
  is_release_tarball?: boolean | undefined;
982
984
  npm_pack_output?: any;
983
985
  }, {
@@ -988,6 +990,7 @@ declare const packageFileSchema: z.ZodObject<{
988
990
  content_text?: string | null | undefined;
989
991
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
990
992
  content_mimetype?: string | null | undefined;
993
+ is_text?: boolean | undefined;
991
994
  is_release_tarball?: boolean | undefined;
992
995
  npm_pack_output?: any;
993
996
  }>;
@@ -1001,6 +1004,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
1001
1004
  created_at: z.ZodString;
1002
1005
  is_release_tarball: z.ZodOptional<z.ZodBoolean>;
1003
1006
  npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
1007
+ is_text: z.ZodOptional<z.ZodBoolean>;
1004
1008
  }, "content_text">, "strip", z.ZodTypeAny, {
1005
1009
  package_release_id: string;
1006
1010
  created_at: string;
@@ -1008,6 +1012,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
1008
1012
  package_file_id: string;
1009
1013
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1010
1014
  content_mimetype?: string | null | undefined;
1015
+ is_text?: boolean | undefined;
1011
1016
  is_release_tarball?: boolean | undefined;
1012
1017
  npm_pack_output?: any;
1013
1018
  }, {
@@ -1017,6 +1022,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
1017
1022
  package_file_id: string;
1018
1023
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1019
1024
  content_mimetype?: string | null | undefined;
1025
+ is_text?: boolean | undefined;
1020
1026
  is_release_tarball?: boolean | undefined;
1021
1027
  npm_pack_output?: any;
1022
1028
  }>;
@@ -1450,6 +1456,7 @@ declare const publicOrgSchema: z.ZodObject<{
1450
1456
  package_count: z.ZodNumber;
1451
1457
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
1458
  github_handle: z.ZodNullable<z.ZodString>;
1459
+ github_installation_handles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1453
1460
  tscircuit_handle: z.ZodNullable<z.ZodString>;
1454
1461
  created_at: z.ZodString;
1455
1462
  user_permissions: z.ZodOptional<z.ZodObject<{
@@ -1474,6 +1481,7 @@ declare const publicOrgSchema: z.ZodObject<{
1474
1481
  package_count: number;
1475
1482
  avatar_url?: string | null | undefined;
1476
1483
  display_name?: string | undefined;
1484
+ github_installation_handles?: string[] | undefined;
1477
1485
  user_permissions?: {
1478
1486
  can_manage_org?: boolean | undefined;
1479
1487
  can_manage_package?: boolean | undefined;
@@ -1490,6 +1498,7 @@ declare const publicOrgSchema: z.ZodObject<{
1490
1498
  package_count: number;
1491
1499
  avatar_url?: string | null | undefined;
1492
1500
  display_name?: string | undefined;
1501
+ github_installation_handles?: string[] | undefined;
1493
1502
  user_permissions?: {
1494
1503
  can_manage_org?: boolean | undefined;
1495
1504
  can_manage_package?: boolean | undefined;
@@ -1765,6 +1774,7 @@ declare const databaseSchema: z.ZodObject<{
1765
1774
  created_at: z.ZodString;
1766
1775
  is_release_tarball: z.ZodOptional<z.ZodBoolean>;
1767
1776
  npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
1777
+ is_text: z.ZodOptional<z.ZodBoolean>;
1768
1778
  }, "strip", z.ZodTypeAny, {
1769
1779
  package_release_id: string;
1770
1780
  created_at: string;
@@ -1773,6 +1783,7 @@ declare const databaseSchema: z.ZodObject<{
1773
1783
  content_text?: string | null | undefined;
1774
1784
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1775
1785
  content_mimetype?: string | null | undefined;
1786
+ is_text?: boolean | undefined;
1776
1787
  is_release_tarball?: boolean | undefined;
1777
1788
  npm_pack_output?: any;
1778
1789
  }, {
@@ -1783,6 +1794,7 @@ declare const databaseSchema: z.ZodObject<{
1783
1794
  content_text?: string | null | undefined;
1784
1795
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
1785
1796
  content_mimetype?: string | null | undefined;
1797
+ is_text?: boolean | undefined;
1786
1798
  is_release_tarball?: boolean | undefined;
1787
1799
  npm_pack_output?: any;
1788
1800
  }>, "many">>;
@@ -2801,6 +2813,7 @@ declare const databaseSchema: z.ZodObject<{
2801
2813
  content_text?: string | null | undefined;
2802
2814
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
2803
2815
  content_mimetype?: string | null | undefined;
2816
+ is_text?: boolean | undefined;
2804
2817
  is_release_tarball?: boolean | undefined;
2805
2818
  npm_pack_output?: any;
2806
2819
  }[];
@@ -3197,6 +3210,7 @@ declare const databaseSchema: z.ZodObject<{
3197
3210
  content_text?: string | null | undefined;
3198
3211
  content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
3199
3212
  content_mimetype?: string | null | undefined;
3213
+ is_text?: boolean | undefined;
3200
3214
  is_release_tarball?: boolean | undefined;
3201
3215
  npm_pack_output?: any;
3202
3216
  }[] | undefined;
package/dist/schema.js CHANGED
@@ -279,7 +279,8 @@ var packageFileSchema = z.object({
279
279
  content_mimetype: z.string().nullable().optional(),
280
280
  created_at: z.string().datetime(),
281
281
  is_release_tarball: z.boolean().optional(),
282
- npm_pack_output: z.any().nullable().optional()
282
+ npm_pack_output: z.any().nullable().optional(),
283
+ is_text: z.boolean().optional()
283
284
  });
284
285
  var packageFileLiteSchema = packageFileSchema.omit({
285
286
  content_text: true
@@ -438,6 +439,7 @@ var publicOrgSchema = z.object({
438
439
  package_count: z.number(),
439
440
  avatar_url: z.string().nullable().optional(),
440
441
  github_handle: z.string().nullable(),
442
+ github_installation_handles: z.array(z.string()).optional(),
441
443
  tscircuit_handle: z.string().nullable(),
442
444
  created_at: z.string(),
443
445
  user_permissions: userPermissionsSchema.optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.165",
3
+ "version": "0.0.167",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,12 +84,12 @@
84
84
  "@tscircuit/3d-viewer": "^0.0.448",
85
85
  "@tscircuit/assembly-viewer": "^0.0.5",
86
86
  "@tscircuit/create-snippet-url": "^0.0.8",
87
- "@tscircuit/eval": "^0.0.537",
87
+ "@tscircuit/eval": "^0.0.538",
88
88
  "@tscircuit/layout": "^0.0.29",
89
89
  "@tscircuit/mm": "^0.0.8",
90
90
  "@tscircuit/pcb-viewer": "^1.11.256",
91
91
  "@tscircuit/prompt-benchmarks": "^0.0.28",
92
- "@tscircuit/runframe": "^0.0.1399",
92
+ "@tscircuit/runframe": "^0.0.1403",
93
93
  "@tscircuit/schematic-viewer": "^2.0.46",
94
94
  "@tscircuit/simple-3d-svg": "^0.0.41",
95
95
  "@types/babel__standalone": "^7.1.7",
@@ -111,6 +111,7 @@
111
111
  "@vitejs/plugin-react": "^4.3.1",
112
112
  "autoprefixer": "^10.4.20",
113
113
  "circuit-json-to-bom-csv": "^0.0.7",
114
+ "circuit-json-to-gerber": "^0.0.46",
114
115
  "circuit-json-to-gltf": "^0.0.14",
115
116
  "circuit-json-to-kicad": "^0.0.22",
116
117
  "circuit-json-to-lbrn": "^0.0.23",