@tscircuit/fake-snippets 0.0.168 → 0.0.170

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
@@ -568,6 +568,7 @@ declare const packageReleaseSchema: z.ZodObject<{
568
568
  has_transpiled: z.ZodDefault<z.ZodBoolean>;
569
569
  transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
570
  fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ ready_to_build: z.ZodDefault<z.ZodBoolean>;
571
572
  display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
572
573
  total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
573
574
  transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
@@ -629,6 +630,7 @@ declare const packageReleaseSchema: z.ZodObject<{
629
630
  is_locked: boolean;
630
631
  is_latest: boolean;
631
632
  has_transpiled: boolean;
633
+ ready_to_build: boolean;
632
634
  transpilation_display_status: "error" | "pending" | "building" | "complete";
633
635
  transpilation_in_progress: boolean;
634
636
  transpilation_logs: any[];
@@ -696,6 +698,7 @@ declare const packageReleaseSchema: z.ZodObject<{
696
698
  has_transpiled?: boolean | undefined;
697
699
  transpilation_error?: string | null | undefined;
698
700
  fs_sha?: string | null | undefined;
701
+ ready_to_build?: boolean | undefined;
699
702
  total_build_duration_ms?: number | null | undefined;
700
703
  transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
701
704
  transpilation_in_progress?: boolean | undefined;
@@ -1233,6 +1236,7 @@ declare const createDatabase: ({ seed }?: {
1233
1236
  is_locked: boolean;
1234
1237
  is_latest: boolean;
1235
1238
  has_transpiled: boolean;
1239
+ ready_to_build: boolean;
1236
1240
  transpilation_display_status: "error" | "pending" | "building" | "complete";
1237
1241
  transpilation_in_progress: boolean;
1238
1242
  transpilation_logs: any[];
@@ -1856,6 +1860,7 @@ declare const createDatabase: ({ seed }?: {
1856
1860
  is_locked: boolean;
1857
1861
  is_latest: boolean;
1858
1862
  has_transpiled: boolean;
1863
+ ready_to_build: boolean;
1859
1864
  transpilation_display_status: "error" | "pending" | "building" | "complete";
1860
1865
  transpilation_in_progress: boolean;
1861
1866
  transpilation_logs: any[];
package/dist/index.js CHANGED
@@ -223,6 +223,7 @@ var packageReleaseSchema = z.object({
223
223
  has_transpiled: z.boolean().default(false),
224
224
  transpilation_error: z.string().nullable().optional(),
225
225
  fs_sha: z.string().nullable().optional(),
226
+ ready_to_build: z.boolean().default(false),
226
227
  // Build Status and Display
227
228
  display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
228
229
  total_build_duration_ms: z.number().nullable().optional(),
@@ -480,6 +481,11 @@ var tscircuitHandleSchema = z.string().min(1).max(40).regex(
480
481
  /^[0-9A-Za-z]([0-9A-Za-z_-]*[0-9A-Za-z])?$/,
481
482
  "tscircuit_handle must start and end with a letter or number, and may only contain letters, numbers, underscores, and hyphens"
482
483
  );
484
+ var memberSchema = accountSchema.omit({ shippingInfo: true }).extend({
485
+ joined_at: z.string(),
486
+ org_member_permissions: userPermissionsSchema,
487
+ avatar_url: z.string().nullable().optional()
488
+ });
483
489
 
484
490
  // fake-snippets-api/lib/db/seed.ts
485
491
  import { readFileSync } from "fs";
@@ -2869,6 +2875,14 @@ exports.TestComponent = TestComponent;
2869
2875
  is_personal_org: true,
2870
2876
  org_id: "org-1234"
2871
2877
  });
2878
+ db.addOrganization({
2879
+ name: "seveibar",
2880
+ owner_account_id: seveibarAcc.account_id,
2881
+ github_handle: "seveibar",
2882
+ is_personal_org: true,
2883
+ org_id: "org-1235",
2884
+ avatar_url: "https://github.com/seveibar.png"
2885
+ });
2872
2886
  db.addOrganizationAccount({
2873
2887
  org_id: testOrg.org_id,
2874
2888
  account_id: seveibarAcc.account_id
package/dist/schema.d.ts CHANGED
@@ -786,6 +786,7 @@ declare const packageReleaseSchema: z.ZodObject<{
786
786
  has_transpiled: z.ZodDefault<z.ZodBoolean>;
787
787
  transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
788
  fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ ready_to_build: z.ZodDefault<z.ZodBoolean>;
789
790
  display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
790
791
  total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
791
792
  transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
@@ -847,6 +848,7 @@ declare const packageReleaseSchema: z.ZodObject<{
847
848
  is_locked: boolean;
848
849
  is_latest: boolean;
849
850
  has_transpiled: boolean;
851
+ ready_to_build: boolean;
850
852
  transpilation_display_status: "error" | "pending" | "building" | "complete";
851
853
  transpilation_in_progress: boolean;
852
854
  transpilation_logs: any[];
@@ -914,6 +916,7 @@ declare const packageReleaseSchema: z.ZodObject<{
914
916
  has_transpiled?: boolean | undefined;
915
917
  transpilation_error?: string | null | undefined;
916
918
  fs_sha?: string | null | undefined;
919
+ ready_to_build?: boolean | undefined;
917
920
  total_build_duration_ms?: number | null | undefined;
918
921
  transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
919
922
  transpilation_in_progress?: boolean | undefined;
@@ -1591,6 +1594,7 @@ declare const databaseSchema: z.ZodObject<{
1591
1594
  has_transpiled: z.ZodDefault<z.ZodBoolean>;
1592
1595
  transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1593
1596
  fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1597
+ ready_to_build: z.ZodDefault<z.ZodBoolean>;
1594
1598
  display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
1595
1599
  total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1596
1600
  transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
@@ -1652,6 +1656,7 @@ declare const databaseSchema: z.ZodObject<{
1652
1656
  is_locked: boolean;
1653
1657
  is_latest: boolean;
1654
1658
  has_transpiled: boolean;
1659
+ ready_to_build: boolean;
1655
1660
  transpilation_display_status: "error" | "pending" | "building" | "complete";
1656
1661
  transpilation_in_progress: boolean;
1657
1662
  transpilation_logs: any[];
@@ -1719,6 +1724,7 @@ declare const databaseSchema: z.ZodObject<{
1719
1724
  has_transpiled?: boolean | undefined;
1720
1725
  transpilation_error?: string | null | undefined;
1721
1726
  fs_sha?: string | null | undefined;
1727
+ ready_to_build?: boolean | undefined;
1722
1728
  total_build_duration_ms?: number | null | undefined;
1723
1729
  transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
1724
1730
  transpilation_in_progress?: boolean | undefined;
@@ -2753,6 +2759,7 @@ declare const databaseSchema: z.ZodObject<{
2753
2759
  is_locked: boolean;
2754
2760
  is_latest: boolean;
2755
2761
  has_transpiled: boolean;
2762
+ ready_to_build: boolean;
2756
2763
  transpilation_display_status: "error" | "pending" | "building" | "complete";
2757
2764
  transpilation_in_progress: boolean;
2758
2765
  transpilation_logs: any[];
@@ -3157,6 +3164,7 @@ declare const databaseSchema: z.ZodObject<{
3157
3164
  has_transpiled?: boolean | undefined;
3158
3165
  transpilation_error?: string | null | undefined;
3159
3166
  fs_sha?: string | null | undefined;
3167
+ ready_to_build?: boolean | undefined;
3160
3168
  total_build_duration_ms?: number | null | undefined;
3161
3169
  transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
3162
3170
  transpilation_in_progress?: boolean | undefined;
@@ -3515,5 +3523,90 @@ declare const databaseSchema: z.ZodObject<{
3515
3523
  }>;
3516
3524
  type DatabaseSchema = z.infer<typeof databaseSchema>;
3517
3525
  declare const tscircuitHandleSchema: z.ZodString;
3526
+ declare const memberSchema: z.ZodObject<Omit<{
3527
+ account_id: z.ZodString;
3528
+ github_username: z.ZodString;
3529
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
3530
+ shippingInfo: z.ZodOptional<z.ZodObject<{
3531
+ firstName: z.ZodString;
3532
+ lastName: z.ZodString;
3533
+ companyName: z.ZodOptional<z.ZodString>;
3534
+ address: z.ZodString;
3535
+ apartment: z.ZodOptional<z.ZodString>;
3536
+ city: z.ZodString;
3537
+ state: z.ZodString;
3538
+ zipCode: z.ZodString;
3539
+ country: z.ZodString;
3540
+ phone: z.ZodString;
3541
+ }, "strip", z.ZodTypeAny, {
3542
+ firstName: string;
3543
+ lastName: string;
3544
+ address: string;
3545
+ city: string;
3546
+ state: string;
3547
+ zipCode: string;
3548
+ country: string;
3549
+ phone: string;
3550
+ companyName?: string | undefined;
3551
+ apartment?: string | undefined;
3552
+ }, {
3553
+ firstName: string;
3554
+ lastName: string;
3555
+ address: string;
3556
+ city: string;
3557
+ state: string;
3558
+ zipCode: string;
3559
+ country: string;
3560
+ phone: string;
3561
+ companyName?: string | undefined;
3562
+ apartment?: string | undefined;
3563
+ }>>;
3564
+ personal_org_id: z.ZodNullable<z.ZodString>;
3565
+ is_tscircuit_staff: z.ZodDefault<z.ZodBoolean>;
3566
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3567
+ created_at: z.ZodDate;
3568
+ }, "shippingInfo"> & {
3569
+ joined_at: z.ZodString;
3570
+ org_member_permissions: z.ZodObject<{
3571
+ can_manage_org: z.ZodOptional<z.ZodBoolean>;
3572
+ can_manage_package: z.ZodOptional<z.ZodBoolean>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ can_manage_org?: boolean | undefined;
3575
+ can_manage_package?: boolean | undefined;
3576
+ }, {
3577
+ can_manage_org?: boolean | undefined;
3578
+ can_manage_package?: boolean | undefined;
3579
+ }>;
3580
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ created_at: Date;
3583
+ account_id: string;
3584
+ github_username: string;
3585
+ tscircuit_handle: string | null;
3586
+ personal_org_id: string | null;
3587
+ is_tscircuit_staff: boolean;
3588
+ joined_at: string;
3589
+ org_member_permissions: {
3590
+ can_manage_org?: boolean | undefined;
3591
+ can_manage_package?: boolean | undefined;
3592
+ };
3593
+ email?: string | null | undefined;
3594
+ avatar_url?: string | null | undefined;
3595
+ }, {
3596
+ created_at: Date;
3597
+ account_id: string;
3598
+ github_username: string;
3599
+ tscircuit_handle: string | null;
3600
+ personal_org_id: string | null;
3601
+ joined_at: string;
3602
+ org_member_permissions: {
3603
+ can_manage_org?: boolean | undefined;
3604
+ can_manage_package?: boolean | undefined;
3605
+ };
3606
+ is_tscircuit_staff?: boolean | undefined;
3607
+ email?: string | null | undefined;
3608
+ avatar_url?: string | null | undefined;
3609
+ }>;
3610
+ type Member = z.infer<typeof memberSchema>;
3518
3611
 
3519
- export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type OrgAccount, type OrgInvitation, type Organization, type Package, type PackageBuild, type PackageFile, type PackageFileLite, type PackageRelease, type PublicAccount, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, log, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgInvitationSchema, orgSchema, packageBuildSchema, packageFileLiteSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, userPermissionsSchema };
3612
+ export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Member, type Order, type OrderFile, type OrderQuote, type OrgAccount, type OrgInvitation, type Organization, type Package, type PackageBuild, type PackageFile, type PackageFileLite, type PackageRelease, type PublicAccount, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, log, loginPageSchema, memberSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgInvitationSchema, orgSchema, packageBuildSchema, packageFileLiteSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, userPermissionsSchema };
package/dist/schema.js CHANGED
@@ -217,6 +217,7 @@ var packageReleaseSchema = z.object({
217
217
  has_transpiled: z.boolean().default(false),
218
218
  transpilation_error: z.string().nullable().optional(),
219
219
  fs_sha: z.string().nullable().optional(),
220
+ ready_to_build: z.boolean().default(false),
220
221
  // Build Status and Display
221
222
  display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
222
223
  total_build_duration_ms: z.number().nullable().optional(),
@@ -474,6 +475,11 @@ var tscircuitHandleSchema = z.string().min(1).max(40).regex(
474
475
  /^[0-9A-Za-z]([0-9A-Za-z_-]*[0-9A-Za-z])?$/,
475
476
  "tscircuit_handle must start and end with a letter or number, and may only contain letters, numbers, underscores, and hyphens"
476
477
  );
478
+ var memberSchema = accountSchema.omit({ shippingInfo: true }).extend({
479
+ joined_at: z.string(),
480
+ org_member_permissions: userPermissionsSchema,
481
+ avatar_url: z.string().nullable().optional()
482
+ });
477
483
  export {
478
484
  accountPackageSchema,
479
485
  accountSchema,
@@ -492,6 +498,7 @@ export {
492
498
  jlcpcbOrderStepRunSchema,
493
499
  log,
494
500
  loginPageSchema,
501
+ memberSchema,
495
502
  orderFileSchema,
496
503
  orderQuoteSchema,
497
504
  orderSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.168",
3
+ "version": "0.0.170",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,14 +84,14 @@
84
84
  "@tscircuit/3d-viewer": "^0.0.476",
85
85
  "@tscircuit/assembly-viewer": "^0.0.5",
86
86
  "@tscircuit/create-snippet-url": "^0.0.8",
87
- "@tscircuit/eval": "^0.0.549",
87
+ "@tscircuit/eval": "^0.0.559",
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
92
  "@tscircuit/props": "^0.0.433",
93
- "@tscircuit/runframe": "^0.0.1422",
94
- "@tscircuit/schematic-viewer": "^2.0.46",
93
+ "@tscircuit/runframe": "^0.0.1427",
94
+ "@tscircuit/schematic-viewer": "^2.0.50",
95
95
  "@tscircuit/simple-3d-svg": "^0.0.41",
96
96
  "@types/babel__standalone": "^7.1.7",
97
97
  "@types/bun": "^1.1.10",
@@ -122,7 +122,7 @@
122
122
  "circuit-json-to-spice": "^0.0.6",
123
123
  "circuit-json-to-step": "^0.0.2",
124
124
  "circuit-json-to-tscircuit": "^0.0.11",
125
- "circuit-to-svg": "^0.0.202",
125
+ "circuit-to-svg": "^0.0.298",
126
126
  "class-variance-authority": "^0.7.1",
127
127
  "clsx": "^2.1.1",
128
128
  "cmdk": "^1.0.4",