everything-dev 1.26.1 → 1.28.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 (166) hide show
  1. package/dist/api-contract.cjs.map +1 -1
  2. package/dist/api-contract.mjs.map +1 -1
  3. package/dist/cli/catalog.cjs.map +1 -1
  4. package/dist/cli/catalog.mjs.map +1 -1
  5. package/dist/cli/framework-version.cjs.map +1 -1
  6. package/dist/cli/framework-version.mjs.map +1 -1
  7. package/dist/cli/infra.cjs +1 -1
  8. package/dist/cli/infra.cjs.map +1 -1
  9. package/dist/cli/infra.mjs +1 -1
  10. package/dist/cli/infra.mjs.map +1 -1
  11. package/dist/cli/init.cjs +127 -121
  12. package/dist/cli/init.cjs.map +1 -1
  13. package/dist/cli/init.d.cts +6 -6
  14. package/dist/cli/init.d.cts.map +1 -1
  15. package/dist/cli/init.d.mts +6 -6
  16. package/dist/cli/init.d.mts.map +1 -1
  17. package/dist/cli/init.mjs +125 -121
  18. package/dist/cli/init.mjs.map +1 -1
  19. package/dist/cli/parse.cjs.map +1 -1
  20. package/dist/cli/parse.mjs.map +1 -1
  21. package/dist/cli/prompts.cjs +29 -25
  22. package/dist/cli/prompts.cjs.map +1 -1
  23. package/dist/cli/prompts.mjs +28 -25
  24. package/dist/cli/prompts.mjs.map +1 -1
  25. package/dist/cli/status.cjs.map +1 -1
  26. package/dist/cli/status.mjs.map +1 -1
  27. package/dist/cli/sync.cjs +46 -93
  28. package/dist/cli/sync.cjs.map +1 -1
  29. package/dist/cli/sync.mjs +49 -96
  30. package/dist/cli/sync.mjs.map +1 -1
  31. package/dist/cli/timing.cjs.map +1 -1
  32. package/dist/cli/timing.mjs.map +1 -1
  33. package/dist/cli/upgrade.cjs +41 -20
  34. package/dist/cli/upgrade.cjs.map +1 -1
  35. package/dist/cli/upgrade.mjs +43 -22
  36. package/dist/cli/upgrade.mjs.map +1 -1
  37. package/dist/cli.cjs +187 -12
  38. package/dist/cli.cjs.map +1 -1
  39. package/dist/cli.mjs +187 -12
  40. package/dist/cli.mjs.map +1 -1
  41. package/dist/components/dev-view.cjs.map +1 -1
  42. package/dist/components/dev-view.mjs.map +1 -1
  43. package/dist/components/streaming-view.cjs.map +1 -1
  44. package/dist/components/streaming-view.mjs.map +1 -1
  45. package/dist/config.cjs.map +1 -1
  46. package/dist/config.mjs.map +1 -1
  47. package/dist/contract.cjs +174 -173
  48. package/dist/contract.cjs.map +1 -1
  49. package/dist/contract.d.cts +48 -44
  50. package/dist/contract.d.cts.map +1 -1
  51. package/dist/contract.d.mts +48 -44
  52. package/dist/contract.d.mts.map +1 -1
  53. package/dist/contract.mjs +3 -1
  54. package/dist/contract.mjs.map +1 -1
  55. package/dist/dev-logs.cjs.map +1 -1
  56. package/dist/dev-logs.mjs.map +1 -1
  57. package/dist/dev-session.cjs +0 -1
  58. package/dist/dev-session.mjs +1 -1
  59. package/dist/fastkv.cjs.map +1 -1
  60. package/dist/fastkv.mjs.map +1 -1
  61. package/dist/index.cjs +2 -4
  62. package/dist/index.d.cts +3 -3
  63. package/dist/index.d.mts +3 -3
  64. package/dist/index.mjs +1 -2
  65. package/dist/integrity.cjs.map +1 -1
  66. package/dist/integrity.mjs.map +1 -1
  67. package/dist/internal/manifest-normalizer.cjs.map +1 -1
  68. package/dist/internal/manifest-normalizer.mjs.map +1 -1
  69. package/dist/merge.cjs.map +1 -1
  70. package/dist/merge.mjs.map +1 -1
  71. package/dist/near-cli.cjs +1 -1
  72. package/dist/near-cli.cjs.map +1 -1
  73. package/dist/near-cli.mjs +1 -1
  74. package/dist/near-cli.mjs.map +1 -1
  75. package/dist/orchestrator.cjs +1 -1
  76. package/dist/orchestrator.cjs.map +1 -1
  77. package/dist/orchestrator.mjs +1 -1
  78. package/dist/orchestrator.mjs.map +1 -1
  79. package/dist/plugin.cjs +182 -171
  80. package/dist/plugin.cjs.map +1 -1
  81. package/dist/plugin.d.cts +72 -39
  82. package/dist/plugin.d.cts.map +1 -1
  83. package/dist/plugin.d.mts +71 -39
  84. package/dist/plugin.d.mts.map +1 -1
  85. package/dist/plugin.mjs +170 -160
  86. package/dist/plugin.mjs.map +1 -1
  87. package/dist/sdk.cjs +2 -2
  88. package/dist/sdk.d.cts +1 -1
  89. package/dist/sdk.d.mts +1 -1
  90. package/dist/sdk.mjs +1 -1
  91. package/dist/service-descriptor.d.cts +34 -0
  92. package/dist/service-descriptor.d.cts.map +1 -0
  93. package/dist/service-descriptor.d.mts +36 -0
  94. package/dist/service-descriptor.d.mts.map +1 -0
  95. package/dist/shared.cjs.map +1 -1
  96. package/dist/shared.mjs.map +1 -1
  97. package/dist/types.cjs +184 -184
  98. package/dist/types.cjs.map +1 -1
  99. package/dist/types.d.cts +5 -5
  100. package/dist/types.d.mts +5 -5
  101. package/dist/types.mjs +1 -1
  102. package/dist/types.mjs.map +1 -1
  103. package/dist/ui/types.d.cts +1 -0
  104. package/dist/ui/types.d.cts.map +1 -1
  105. package/dist/ui/types.d.mts +1 -0
  106. package/dist/ui/types.d.mts.map +1 -1
  107. package/dist/utils/banner.cjs.map +1 -1
  108. package/dist/utils/banner.mjs.map +1 -1
  109. package/dist/utils/run.cjs.map +1 -1
  110. package/dist/utils/run.mjs.map +1 -1
  111. package/package.json +3 -3
  112. package/skills/init-upgrade/SKILL.md +22 -16
  113. package/skills/publish-sync/SKILL.md +7 -18
  114. package/dist/utils/path-match.cjs +0 -18
  115. package/dist/utils/path-match.cjs.map +0 -1
  116. package/dist/utils/path-match.mjs +0 -17
  117. package/dist/utils/path-match.mjs.map +0 -1
  118. package/src/api-contract.ts +0 -623
  119. package/src/app.ts +0 -193
  120. package/src/cli/catalog.ts +0 -49
  121. package/src/cli/framework-version.ts +0 -61
  122. package/src/cli/help.ts +0 -13
  123. package/src/cli/infra.ts +0 -190
  124. package/src/cli/init.ts +0 -1202
  125. package/src/cli/parse.ts +0 -147
  126. package/src/cli/prompts.ts +0 -135
  127. package/src/cli/snapshot.ts +0 -46
  128. package/src/cli/status.ts +0 -99
  129. package/src/cli/sync.ts +0 -518
  130. package/src/cli/timing.ts +0 -63
  131. package/src/cli/upgrade.ts +0 -828
  132. package/src/cli.ts +0 -516
  133. package/src/components/dev-view.tsx +0 -352
  134. package/src/components/streaming-view.ts +0 -177
  135. package/src/config.ts +0 -893
  136. package/src/contract.meta.ts +0 -140
  137. package/src/contract.ts +0 -325
  138. package/src/dev-logs.ts +0 -92
  139. package/src/dev-session.ts +0 -283
  140. package/src/fastkv.ts +0 -181
  141. package/src/index.ts +0 -8
  142. package/src/integrity.ts +0 -138
  143. package/src/internal/manifest-normalizer.ts +0 -290
  144. package/src/merge.ts +0 -187
  145. package/src/mf.ts +0 -147
  146. package/src/near-cli.ts +0 -259
  147. package/src/network.ts +0 -3
  148. package/src/orchestrator.ts +0 -493
  149. package/src/plugin.ts +0 -1821
  150. package/src/sdk.ts +0 -14
  151. package/src/service-descriptor.ts +0 -281
  152. package/src/shared.ts +0 -249
  153. package/src/sidebar.ts +0 -140
  154. package/src/types.ts +0 -330
  155. package/src/ui/head.ts +0 -83
  156. package/src/ui/index.ts +0 -5
  157. package/src/ui/metadata.ts +0 -95
  158. package/src/ui/router.ts +0 -88
  159. package/src/ui/runtime.ts +0 -42
  160. package/src/ui/types.ts +0 -64
  161. package/src/utils/banner.ts +0 -21
  162. package/src/utils/linkify.ts +0 -11
  163. package/src/utils/path-match.ts +0 -16
  164. package/src/utils/run.ts +0 -31
  165. package/src/utils/save-config.ts +0 -20
  166. package/src/utils/theme.ts +0 -39
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "./sdk.mjs";
1
+ import * as z from "zod";
2
2
 
3
3
  //#region src/types.d.ts
4
4
  declare const ExtendsSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -397,15 +397,15 @@ declare const BosConfigSchema: z.ZodObject<{
397
397
  type BosConfig = z.infer<typeof BosConfigSchema>;
398
398
  declare const RuntimeConfigSchema: z.ZodObject<{
399
399
  env: z.ZodEnum<{
400
- production: "production";
401
400
  development: "development";
401
+ production: "production";
402
402
  staging: "staging";
403
403
  }>;
404
404
  account: z.ZodString;
405
405
  domain: z.ZodOptional<z.ZodString>;
406
406
  networkId: z.ZodEnum<{
407
- mainnet: "mainnet";
408
407
  testnet: "testnet";
408
+ mainnet: "mainnet";
409
409
  }>;
410
410
  title: z.ZodOptional<z.ZodString>;
411
411
  description: z.ZodOptional<z.ZodString>;
@@ -539,14 +539,14 @@ type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;
539
539
  declare const ClientRuntimeConfigSchema: z.ZodObject<{
540
540
  cspNonce: z.ZodOptional<z.ZodString>;
541
541
  env: z.ZodEnum<{
542
- production: "production";
543
542
  development: "development";
543
+ production: "production";
544
544
  staging: "staging";
545
545
  }>;
546
546
  account: z.ZodString;
547
547
  networkId: z.ZodEnum<{
548
- mainnet: "mainnet";
549
548
  testnet: "testnet";
549
+ mainnet: "mainnet";
550
550
  }>;
551
551
  hostUrl: z.ZodOptional<z.ZodString>;
552
552
  assetsUrl: z.ZodString;
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "./sdk.mjs";
1
+ import * as z from "zod";
2
2
 
3
3
  //#region src/types.ts
4
4
  const ExtendsSchema = z.union([z.string(), z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import { z } from \"./sdk\";\n\nexport const ExtendsSchema = z.union([\n z.string(),\n z.object({\n development: z.string().optional(),\n production: z.string().optional(),\n staging: z.string().optional(),\n }),\n]);\nexport type Extends = z.infer<typeof ExtendsSchema>;\nexport type ExtendsConfig = Extract<Extends, Record<string, string | undefined>>;\n\nexport const SourceModeSchema = z.enum([\"local\", \"remote\"]);\nexport type SourceMode = z.infer<typeof SourceModeSchema>;\n\nexport const SharedConfigSchema = z.object({\n version: z.string(),\n requiredVersion: z.string().optional(),\n singleton: z.boolean().optional(),\n eager: z.boolean().optional(),\n strictVersion: z.boolean().optional(),\n shareScope: z.string().optional(),\n});\nexport type SharedConfig = z.infer<typeof SharedConfigSchema>;\nexport type SharedDepConfig = SharedConfig;\nexport const SharedDepConfigSchema = SharedConfigSchema;\n\nexport const FederationEntrySchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n integrity: z.string().optional(),\n});\nexport type FederationEntry = z.infer<typeof FederationEntrySchema>;\n\nexport const SidebarRoleSchema = z.enum([\"anon\", \"member\", \"admin\"]);\nexport type SidebarRole = z.infer<typeof SidebarRoleSchema>;\n\nexport const SidebarItemSchema = z.object({\n icon: z.string(),\n label: z.string(),\n to: z.string().optional(),\n roleRequired: SidebarRoleSchema.optional(),\n});\nexport type SidebarItem = z.infer<typeof SidebarItemSchema>;\n\nexport const ComposableAppEntrySchema = z.object({\n extends: ExtendsSchema.optional(),\n name: z.string().optional(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n routes: z.array(z.string()).optional(),\n});\nexport type ComposableAppEntry = z.infer<typeof ComposableAppEntrySchema>;\n\nexport const ApiPluginConfigSchema = ComposableAppEntrySchema;\nexport type ApiPluginConfig = z.infer<typeof ApiPluginConfigSchema>;\n\nexport const PluginUiConfigSchema = z.object({\n name: z.string(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n});\nexport type PluginUiConfig = z.infer<typeof PluginUiConfigSchema>;\n\nexport const BosPluginRefSchema = ComposableAppEntrySchema.extend({\n version: z.string().optional(),\n app: z.record(z.string(), z.unknown()).optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.unknown()).optional(),\n});\nexport type BosPluginRef = z.infer<typeof BosPluginRefSchema>;\nexport type PluginEntryValue = string | BosPluginRef;\nexport type PluginEntries = Record<string, PluginEntryValue>;\n\nconst PluginRuntimeUiSchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n localPath: z.string().optional(),\n port: z.number().optional(),\n integrity: z.string().optional(),\n});\nexport type PluginRuntimeUi = z.infer<typeof PluginRuntimeUiSchema>;\n\nexport const RuntimePluginConfigSchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n integrity: z.string().optional(),\n ui: PluginRuntimeUiSchema.optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n routes: z.array(z.string()).optional(),\n});\nexport type RuntimePluginConfig = z.infer<typeof RuntimePluginConfigSchema>;\n\nexport const UiConfigSchema = z.object({\n name: z.string(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n ssr: z.string().optional(),\n ssrIntegrity: z.string().optional(),\n});\nexport type UiConfig = z.infer<typeof UiConfigSchema>;\n\nexport const HostConfigSchema = z.object({\n development: z.string(),\n production: z.string(),\n integrity: z.string().optional(),\n secrets: z.array(z.string()).optional(),\n});\nexport type HostConfig = z.infer<typeof HostConfigSchema>;\n\nexport const ClientRuntimeInfoSchema = z.object({\n accountId: z.string(),\n gatewayId: z.string(),\n runtimeBasePath: z.string(),\n title: z.string().nullable(),\n description: z.string().nullable(),\n hostUrl: z.string().nullable(),\n});\nexport type ClientRuntimeInfo = z.infer<typeof ClientRuntimeInfoSchema>;\n\nexport const BosStagingSchema = z.object({\n domain: z.string(),\n});\nexport type BosStaging = z.infer<typeof BosStagingSchema>;\n\nconst BosConfigInputAppEntrySchema = z.record(z.string(), z.unknown());\nexport type BosConfigInputAppEntry = z.infer<typeof BosConfigInputAppEntrySchema>;\n\nexport const BosConfigInputSchema: z.ZodType<BosConfigInput> = z.lazy(() =>\n z.object({\n extends: ExtendsSchema.optional(),\n account: z.string().optional(),\n domain: z.string().optional(),\n testnet: z.string().optional(),\n template: z.string().optional(),\n gateway: z\n .object({\n development: z.string().optional(),\n production: z.string().optional(),\n account: z.string().optional(),\n })\n .optional(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n name: z.string().optional(),\n version: z.string().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n routes: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n app: z.record(z.string(), BosConfigInputAppEntrySchema).optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.union([z.string(), BosConfigInputSchema])).optional(),\n }),\n);\n\nexport interface BosConfigInput {\n extends?: string | ExtendsConfig;\n account?: string;\n domain?: string;\n title?: string;\n description?: string;\n testnet?: string;\n template?: string;\n gateway?: {\n development?: string;\n production?: string;\n account?: string;\n };\n development?: string;\n production?: string;\n integrity?: string;\n name?: string;\n version?: string;\n proxy?: string;\n variables?: Record<string, string>;\n secrets?: string[];\n routes?: string[];\n sidebar?: SidebarItem[];\n app?: Record<string, BosConfigInputAppEntry>;\n shared?: Record<string, Record<string, SharedDepConfig>>;\n plugins?: Record<string, string | BosConfigInput>;\n}\n\nexport const BosConfigSchema = z.object({\n account: z.string(),\n extends: ExtendsSchema.optional(),\n domain: z.string().optional(),\n title: z.string().optional(),\n description: z.string().optional(),\n testnet: z.string().optional(),\n staging: BosStagingSchema.optional(),\n repository: z.string().optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.union([z.string(), BosPluginRefSchema])).optional(),\n app: z.object({\n host: HostConfigSchema,\n ui: UiConfigSchema,\n api: ComposableAppEntrySchema,\n auth: ComposableAppEntrySchema.optional(),\n }),\n});\nexport type BosConfig = z.infer<typeof BosConfigSchema>;\n\nexport const RuntimeConfigSchema = z.object({\n env: z.enum([\"development\", \"production\", \"staging\"]),\n account: z.string(),\n domain: z.string().optional(),\n networkId: z.enum([\"mainnet\", \"testnet\"]),\n title: z.string().optional(),\n description: z.string().optional(),\n repository: z.string().optional(),\n host: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n secrets: z.array(z.string()).optional(),\n remoteUrl: z.string().optional(),\n }),\n shared: z\n .object({\n ui: z.record(z.string(), SharedConfigSchema).optional(),\n plugins: z.record(z.string(), SharedConfigSchema).optional(),\n })\n .optional(),\n ui: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n ssrUrl: z.string().optional(),\n ssrIntegrity: z.string().optional(),\n }),\n api: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n }),\n auth: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n }).optional(),\n plugins: z.record(z.string(), RuntimePluginConfigSchema).optional(),\n});\nexport type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;\n\nexport const ClientRuntimeConfigSchema = z.object({\n cspNonce: z.string().optional(),\n env: z.enum([\"development\", \"production\", \"staging\"]),\n account: z.string(),\n networkId: z.enum([\"mainnet\", \"testnet\"]),\n hostUrl: z.string().optional(),\n assetsUrl: z.string(),\n apiBase: z.string(),\n rpcBase: z.string(),\n repository: z.string().optional(),\n authAvailable: z.boolean().optional(),\n runtime: ClientRuntimeInfoSchema.optional(),\n ui: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n })\n .optional(),\n api: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n })\n .optional(),\n auth: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n })\n .optional(),\n plugins: z\n .record(\n z.string(),\n z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n ui: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n integrity: z.string().optional(),\n })\n .optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n }),\n )\n .optional(),\n});\nexport type ClientRuntimeConfig = z.infer<typeof ClientRuntimeConfigSchema>;\n"],"mappings":";;;AAEA,MAAa,gBAAgB,EAAE,MAAM,CACnC,EAAE,QAAQ,EACV,EAAE,OAAO;CACP,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC/B,CAAC,CACH,CAAC;AAIF,MAAa,mBAAmB,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC;AAG3D,MAAa,qBAAqB,EAAE,OAAO;CACzC,SAAS,EAAE,QAAQ;CACnB,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,WAAW,EAAE,SAAS,CAAC,UAAU;CACjC,OAAO,EAAE,SAAS,CAAC,UAAU;CAC7B,eAAe,EAAE,SAAS,CAAC,UAAU;CACrC,YAAY,EAAE,QAAQ,CAAC,UAAU;CAClC,CAAC;AAGF,MAAa,wBAAwB;AAErC,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,QAAQ;CAChB,KAAK,EAAE,QAAQ;CACf,OAAO,EAAE,QAAQ;CACjB,QAAQ;CACR,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC;AAGF,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAQ;CAAU;CAAQ,CAAC;AAGpE,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,IAAI,EAAE,QAAQ,CAAC,UAA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":[],"sources":["../src/types.ts"],"sourcesContent":["import * as z from \"zod\";\n\nexport const ExtendsSchema = z.union([\n z.string(),\n z.object({\n development: z.string().optional(),\n production: z.string().optional(),\n staging: z.string().optional(),\n }),\n]);\nexport type Extends = z.infer<typeof ExtendsSchema>;\nexport type ExtendsConfig = Extract<Extends, Record<string, string | undefined>>;\n\nexport const SourceModeSchema = z.enum([\"local\", \"remote\"]);\nexport type SourceMode = z.infer<typeof SourceModeSchema>;\n\nexport const SharedConfigSchema = z.object({\n version: z.string(),\n requiredVersion: z.string().optional(),\n singleton: z.boolean().optional(),\n eager: z.boolean().optional(),\n strictVersion: z.boolean().optional(),\n shareScope: z.string().optional(),\n});\nexport type SharedConfig = z.infer<typeof SharedConfigSchema>;\nexport type SharedDepConfig = SharedConfig;\nexport const SharedDepConfigSchema = SharedConfigSchema;\n\nexport const FederationEntrySchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n integrity: z.string().optional(),\n});\nexport type FederationEntry = z.infer<typeof FederationEntrySchema>;\n\nexport const SidebarRoleSchema = z.enum([\"anon\", \"member\", \"admin\"]);\nexport type SidebarRole = z.infer<typeof SidebarRoleSchema>;\n\nexport const SidebarItemSchema = z.object({\n icon: z.string(),\n label: z.string(),\n to: z.string().optional(),\n roleRequired: SidebarRoleSchema.optional(),\n});\nexport type SidebarItem = z.infer<typeof SidebarItemSchema>;\n\nexport const ComposableAppEntrySchema = z.object({\n extends: ExtendsSchema.optional(),\n name: z.string().optional(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n routes: z.array(z.string()).optional(),\n});\nexport type ComposableAppEntry = z.infer<typeof ComposableAppEntrySchema>;\n\nexport const ApiPluginConfigSchema = ComposableAppEntrySchema;\nexport type ApiPluginConfig = z.infer<typeof ApiPluginConfigSchema>;\n\nexport const PluginUiConfigSchema = z.object({\n name: z.string(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n});\nexport type PluginUiConfig = z.infer<typeof PluginUiConfigSchema>;\n\nexport const BosPluginRefSchema = ComposableAppEntrySchema.extend({\n version: z.string().optional(),\n app: z.record(z.string(), z.unknown()).optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.unknown()).optional(),\n});\nexport type BosPluginRef = z.infer<typeof BosPluginRefSchema>;\nexport type PluginEntryValue = string | BosPluginRef;\nexport type PluginEntries = Record<string, PluginEntryValue>;\n\nconst PluginRuntimeUiSchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n localPath: z.string().optional(),\n port: z.number().optional(),\n integrity: z.string().optional(),\n});\nexport type PluginRuntimeUi = z.infer<typeof PluginRuntimeUiSchema>;\n\nexport const RuntimePluginConfigSchema = z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n integrity: z.string().optional(),\n ui: PluginRuntimeUiSchema.optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n routes: z.array(z.string()).optional(),\n});\nexport type RuntimePluginConfig = z.infer<typeof RuntimePluginConfigSchema>;\n\nexport const UiConfigSchema = z.object({\n name: z.string(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n ssr: z.string().optional(),\n ssrIntegrity: z.string().optional(),\n});\nexport type UiConfig = z.infer<typeof UiConfigSchema>;\n\nexport const HostConfigSchema = z.object({\n development: z.string(),\n production: z.string(),\n integrity: z.string().optional(),\n secrets: z.array(z.string()).optional(),\n});\nexport type HostConfig = z.infer<typeof HostConfigSchema>;\n\nexport const ClientRuntimeInfoSchema = z.object({\n accountId: z.string(),\n gatewayId: z.string(),\n runtimeBasePath: z.string(),\n title: z.string().nullable(),\n description: z.string().nullable(),\n hostUrl: z.string().nullable(),\n});\nexport type ClientRuntimeInfo = z.infer<typeof ClientRuntimeInfoSchema>;\n\nexport const BosStagingSchema = z.object({\n domain: z.string(),\n});\nexport type BosStaging = z.infer<typeof BosStagingSchema>;\n\nconst BosConfigInputAppEntrySchema = z.record(z.string(), z.unknown());\nexport type BosConfigInputAppEntry = z.infer<typeof BosConfigInputAppEntrySchema>;\n\nexport const BosConfigInputSchema: z.ZodType<BosConfigInput> = z.lazy(() =>\n z.object({\n extends: ExtendsSchema.optional(),\n account: z.string().optional(),\n domain: z.string().optional(),\n testnet: z.string().optional(),\n template: z.string().optional(),\n gateway: z\n .object({\n development: z.string().optional(),\n production: z.string().optional(),\n account: z.string().optional(),\n })\n .optional(),\n development: z.string().optional(),\n production: z.string().optional(),\n integrity: z.string().optional(),\n name: z.string().optional(),\n version: z.string().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n routes: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n app: z.record(z.string(), BosConfigInputAppEntrySchema).optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.union([z.string(), BosConfigInputSchema])).optional(),\n }),\n);\n\nexport interface BosConfigInput {\n extends?: string | ExtendsConfig;\n account?: string;\n domain?: string;\n title?: string;\n description?: string;\n testnet?: string;\n template?: string;\n gateway?: {\n development?: string;\n production?: string;\n account?: string;\n };\n development?: string;\n production?: string;\n integrity?: string;\n name?: string;\n version?: string;\n proxy?: string;\n variables?: Record<string, string>;\n secrets?: string[];\n routes?: string[];\n sidebar?: SidebarItem[];\n app?: Record<string, BosConfigInputAppEntry>;\n shared?: Record<string, Record<string, SharedDepConfig>>;\n plugins?: Record<string, string | BosConfigInput>;\n}\n\nexport const BosConfigSchema = z.object({\n account: z.string(),\n extends: ExtendsSchema.optional(),\n domain: z.string().optional(),\n title: z.string().optional(),\n description: z.string().optional(),\n testnet: z.string().optional(),\n staging: BosStagingSchema.optional(),\n repository: z.string().optional(),\n shared: z.record(z.string(), z.record(z.string(), SharedConfigSchema)).optional(),\n plugins: z.record(z.string(), z.union([z.string(), BosPluginRefSchema])).optional(),\n app: z.object({\n host: HostConfigSchema,\n ui: UiConfigSchema,\n api: ComposableAppEntrySchema,\n auth: ComposableAppEntrySchema.optional(),\n }),\n});\nexport type BosConfig = z.infer<typeof BosConfigSchema>;\n\nexport const RuntimeConfigSchema = z.object({\n env: z.enum([\"development\", \"production\", \"staging\"]),\n account: z.string(),\n domain: z.string().optional(),\n networkId: z.enum([\"mainnet\", \"testnet\"]),\n title: z.string().optional(),\n description: z.string().optional(),\n repository: z.string().optional(),\n host: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n secrets: z.array(z.string()).optional(),\n remoteUrl: z.string().optional(),\n }),\n shared: z\n .object({\n ui: z.record(z.string(), SharedConfigSchema).optional(),\n plugins: z.record(z.string(), SharedConfigSchema).optional(),\n })\n .optional(),\n ui: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n ssrUrl: z.string().optional(),\n ssrIntegrity: z.string().optional(),\n }),\n api: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n }),\n auth: FederationEntrySchema.extend({\n localPath: z.string().optional(),\n port: z.number().optional(),\n proxy: z.string().optional(),\n variables: z.record(z.string(), z.string()).optional(),\n secrets: z.array(z.string()).optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n }).optional(),\n plugins: z.record(z.string(), RuntimePluginConfigSchema).optional(),\n});\nexport type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;\n\nexport const ClientRuntimeConfigSchema = z.object({\n cspNonce: z.string().optional(),\n env: z.enum([\"development\", \"production\", \"staging\"]),\n account: z.string(),\n networkId: z.enum([\"mainnet\", \"testnet\"]),\n hostUrl: z.string().optional(),\n assetsUrl: z.string(),\n apiBase: z.string(),\n rpcBase: z.string(),\n repository: z.string().optional(),\n authAvailable: z.boolean().optional(),\n runtime: ClientRuntimeInfoSchema.optional(),\n ui: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n })\n .optional(),\n api: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n })\n .optional(),\n auth: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n })\n .optional(),\n plugins: z\n .record(\n z.string(),\n z.object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n integrity: z.string().optional(),\n ui: z\n .object({\n name: z.string(),\n url: z.string(),\n entry: z.string(),\n source: SourceModeSchema,\n integrity: z.string().optional(),\n })\n .optional(),\n sidebar: z.array(SidebarItemSchema).optional(),\n }),\n )\n .optional(),\n});\nexport type ClientRuntimeConfig = z.infer<typeof ClientRuntimeConfigSchema>;\n"],"mappings":";;;AAEA,MAAa,gBAAgB,EAAE,MAAM,CACnC,EAAE,QAAQ,EACV,EAAE,OAAO;CACP,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC/B,CAAC,CACH,CAAC;AAIF,MAAa,mBAAmB,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC;AAG3D,MAAa,qBAAqB,EAAE,OAAO;CACzC,SAAS,EAAE,QAAQ;CACnB,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,WAAW,EAAE,SAAS,CAAC,UAAU;CACjC,OAAO,EAAE,SAAS,CAAC,UAAU;CAC7B,eAAe,EAAE,SAAS,CAAC,UAAU;CACrC,YAAY,EAAE,QA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,EAAE,OAAO;EACP,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,QAAQ;EACjB,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,IAAI,EACD,OAAO;GACN,MAAM,EAAE,QAAQ;GAChB,KAAK,EAAE,QAAQ;GACf,OAAO,EAAE,QAAQ;GACjB,QAAQ;GACR,WAAW,EAAE,QAAQ,CAAC,UAAU;GACjC,CAAC,CACD,UAAU;EACb,SAAS,EAAE,MAAM,kBAAkB,CAAC,UAAU;EAC/C,CAAC,CACH,CACA,UAAU;CACd,CAAC"}
@@ -33,6 +33,7 @@ interface RenderOptions<TSession = unknown> {
33
33
  }
34
34
  interface RenderOptionsWithApi<TApiClient = unknown, TSession = unknown> extends RenderOptions<TSession> {
35
35
  apiClient: TApiClient;
36
+ authClient?: unknown;
36
37
  }
37
38
  interface RenderResult {
38
39
  stream: ReadableStream;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/ui/types.ts"],"mappings":";;;;;UAIiB,aAAA;EACf,WAAA,EAAa,WAAA;EACb,SAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,mBAAA;EACxB,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,GAAY,UAAA;AAAA;AAAA,UAGG,mBAAA;EACf,OAAA,GAAU,aAAA;EACV,OAAA,GAAU,OAAA,CAAQ,oBAAA,CAAqB,UAAA,EAAY,QAAA;EACnD,QAAA;AAAA;AAAA,KAGU,QAAA,GAAW,WAAA,CAAY,aAAA;AAAA,KACvB,QAAA,GAAW,WAAA,CAAY,aAAA;AAAA,KACvB,UAAA,GAAa,WAAA,CAAY,aAAA;AAAA,UAEpB,QAAA;EACf,IAAA,EAAM,QAAA;EACN,KAAA,EAAO,QAAA;EACP,OAAA,EAAS,UAAA;AAAA;AAAA,UAGM,aAAA;EACf,SAAA;EACA,aAAA,EAAe,OAAA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A;EACvB,QAAA;EACA,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,EAAW,UAAA;EACX,UAAA;AAAA;AAAA,UAGe,YAAA;EACf,MAAA,EAAQ,cAAA;EACR,UAAA;EACA,OAAA,EAAS,OAAA;AAAA;AAAA,UAGM,YAAA;EACf,YAAA,GAAe,IAAA,GAAO,mBAAA,CAAoB,UAAA,EAAY,QAAA;IACpD,MAAA,EAAQ,SAAA;IACR,WAAA,EAAa,WAAA;EAAA;EAEf,YAAA,GACE,QAAA,UACA,OAAA,GAAU,OAAA,CAAQ,oBAAA,CAAqB,UAAA,EAAY,QAAA,OAChD,OAAA,CAAQ,QAAA;EACb,cAAA,GACE,OAAA,EAAS,OAAA,EACT,OAAA,EAAS,oBAAA,CAAqB,UAAA,EAAY,QAAA,MACvC,OAAA,CAAQ,YAAA;AAAA"}
@@ -33,6 +33,7 @@ interface RenderOptions<TSession = unknown> {
33
33
  }
34
34
  interface RenderOptionsWithApi<TApiClient = unknown, TSession = unknown> extends RenderOptions<TSession> {
35
35
  apiClient: TApiClient;
36
+ authClient?: unknown;
36
37
  }
37
38
  interface RenderResult {
38
39
  stream: ReadableStream;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../src/ui/types.ts"],"mappings":";;;;;UAIiB,aAAA;EACf,WAAA,EAAa,WAAA;EACb,SAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,mBAAA;EACxB,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,GAAY,UAAA;AAAA;AAAA,UAGG,mBAAA;EACf,OAAA,GAAU,aAAA;EACV,OAAA,GAAU,OAAA,CAAQ,oBAAA,CAAqB,UAAA,EAAY,QAAA;EACnD,QAAA;AAAA;AAAA,KAGU,QAAA,GAAW,WAAA,CAAY,aAAA;AAAA,KACvB,QAAA,GAAW,WAAA,CAAY,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ACvB,UAAA,GAAa,WAAA,CAAY,aAAA;AAAA,UAEpB,QAAA;EACf,IAAA,EAAM,QAAA;EACN,KAAA,EAAO,QAAA;EACP,OAAA,EAAS,UAAA;AAAA;AAAA,UAGM,aAAA;EACf,SAAA;EACA,aAAA,EAAe,OAAA,CAAQ,mBAAA;EACvB,QAAA;EACA,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,EAAW,UAAA;EACX,UAAA;AAAA;AAAA,UAGe,YAAA;EACf,MAAA,EAAQ,cAAA;EACR,UAAA;EACA,OAAA,EAAS,OAAA;AAAA;AAAA,UAGM,YAAA;EACf,YAAA,GAAe,IAAA,GAAO,mBAAA,CAAoB,UAAA,EAAY,QAAA;IACpD,MAAA,EAAQ,SAAA;IACR,WAAA,EAAa,WAAA;EAAA;EAEf,YAAA,GACE,QAAA,UACA,OAAA,GAAU,OAAA,CAAQ,oBAAA,CAAqB,UAAA,EAAY,QAAA,OAChD,OAAA,CAAQ,QAAA;EACb,cAAA,GACE,OAAA,EAAS,OAAA,EACT,OAAA,EAAS,oBAAA,CAAqB,UAAA,EAAY,QAAA,MACvC,OAAA,CAAQ,YAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.cjs","names":["gradients","colors","divider"],"sources":["../../src/utils/banner.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { colors, divider, gradients } from \"./theme\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\n\nconst ASCII_BOS = `\n ██████╗ ██████╗ ███████╗\n ██╔══██╗██╔═══██╗██╔════╝\n ██████╔╝██║ ██║███████╗\n ██╔══██╗██║ ██║╚════██║\n ██████╔╝╚██████╔╝███████║\n ╚═════╝ ╚═════╝ ╚══════╝`;\n\nexport function printBanner(title = \"everything-dev\", version = pkg.version) {\n console.log(gradients.cyber(ASCII_BOS));\n console.log();\n console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));\n console.log(colors.dim(` ${divider(30)}`));\n console.log();\n}\n"],"mappings":";;;;;AAIA,MAAM,mFADwC,CAC1B,qBAAqB;AAEzC,MAAM,YAAY;;;;;;;AAQlB,SAAgB,YAAY,QAAQ,kBAAkB,UAAU,IAAI,SAAS;AAC3E,SAAQ,IAAIA,wBAAU,MAAM,UAAU,CAAC;AACvC,SAAQ,KAAK;AACb,SAAQ,IAAIC,qBAAO,IAAI,KAAK,MAAM,GAAGA,qBAAO,KAAK,IAAI,UAAU,GAAG,CAAC;AACnE,SAAQ,IAAIA,qBAAO,IAAI,KAAKC,sBAAQ,GAAG,GAAG,CAAC;AAC3C,SAAQ,KAAK"}
1
+ {"version":3,"file":"banner.cjs","names":["gradients","colors","divider"],"sources":["../../src/utils/banner.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { colors, divider, gradients } from \"./theme\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\n\nconst ASCII_BOS = `\n ██████╗ ██████╗ ███████╗\n ██╔══██╗██╔═══██╗██╔════╝\n ██████╔╝██║ ██║███████╗\n ██╔══██╗██║ ██║╚════██║\n ██████╔╝╚██████╔╝███████║\n ╚═════╝ ╚═════╝ ╚══════╝`;\n\nexport function printBanner(title = \"everything-dev\", version = pkg.version) {\n console.log(gradients.cyber(ASCII_BOS));\n console.log();\n console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));\n console.log(colors.dim(` ${divider(30)}`));\n console.log();\n}\n"],"mappings":";;;;;AAIA,MAAM,mFAAa,CAAC,qBAAqB;AAEzC,MAAM,YAAY;;;;;;;AAQlB,SAAgB,YAAY,QAAQ,kBAAkB,UAAU,IAAI,SAAS;AAC3E,SAAQ,IAAIA,wBAAU,MAAM,UAAU,CAAC;AACvC,SAAQ,KAAK;AACb,SAAQ,IAAIC,qBAAO,IAAI,KAAK,MAAM,GAAGA,qBAAO,KAAK,IAAI,UAAU,GAAG,CAAC;AACnE,SAAQ,IAAIA,qBAAO,IAAI,KAAKC,sBAAQ,GAAG,GAAG,CAAC;AAC3C,SAAQ,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.mjs","names":[],"sources":["../../src/utils/banner.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { colors, divider, gradients } from \"./theme\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\n\nconst ASCII_BOS = `\n ██████╗ ██████╗ ███████╗\n ██╔══██╗██╔═══██╗██╔════╝\n ██████╔╝██║ ██║███████╗\n ██╔══██╗██║ ██║╚════██║\n ██████╔╝╚██████╔╝███████║\n ╚═════╝ ╚═════╝ ╚══════╝`;\n\nexport function printBanner(title = \"everything-dev\", version = pkg.version) {\n console.log(gradients.cyber(ASCII_BOS));\n console.log();\n console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));\n console.log(colors.dim(` ${divider(30)}`));\n console.log();\n}\n"],"mappings":";;;;AAIA,MAAM,MADU,cAAc,OAAO,KAAK,IAAI,CAC1B,qBAAqB;AAEzC,MAAM,YAAY;;;;;;;AAQlB,SAAgB,YAAY,QAAQ,kBAAkB,UAAU,IAAI,SAAS;AAC3E,SAAQ,IAAI,UAAU,MAAM,UAAU,CAAC;AACvC,SAAQ,KAAK;AACb,SAAQ,IAAI,OAAO,IAAI,KAAK,MAAM,GAAG,OAAO,KAAK,IAAI,UAAU,GAAG,CAAC;AACnE,SAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,GAAG,GAAG,CAAC;AAC3C,SAAQ,KAAK"}
1
+ {"version":3,"file":"banner.mjs","names":[],"sources":["../../src/utils/banner.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { colors, divider, gradients } from \"./theme\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\n\nconst ASCII_BOS = `\n ██████╗ ██████╗ ███████╗\n ██╔══██╗██╔═══██╗██╔════╝\n ██████╔╝██║ ██║███████╗\n ██╔══██╗██║ ██║╚════██║\n ██████╔╝╚██████╔╝███████║\n ╚═════╝ ╚═════╝ ╚══════╝`;\n\nexport function printBanner(title = \"everything-dev\", version = pkg.version) {\n console.log(gradients.cyber(ASCII_BOS));\n console.log();\n console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));\n console.log(colors.dim(` ${divider(30)}`));\n console.log();\n}\n"],"mappings":";;;;AAIA,MAAM,MADU,cAAc,OAAO,KAAK,IACvB,CAAC,qBAAqB;AAEzC,MAAM,YAAY;;;;;;;AAQlB,SAAgB,YAAY,QAAQ,kBAAkB,UAAU,IAAI,SAAS;AAC3E,SAAQ,IAAI,UAAU,MAAM,UAAU,CAAC;AACvC,SAAQ,KAAK;AACb,SAAQ,IAAI,OAAO,IAAI,KAAK,MAAM,GAAG,OAAO,KAAK,IAAI,UAAU,GAAG,CAAC;AACnE,SAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,GAAG,GAAG,CAAC;AAC3C,SAAQ,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.cjs","names":[],"sources":["../../src/utils/run.ts"],"sourcesContent":["type RunResult = { stdout: string; stderr: string; exitCode: number };\n\nexport async function run(\n cmd: string,\n args: string[],\n options: { cwd?: string; env?: Record<string, string>; capture?: boolean } = {},\n): Promise<RunResult | undefined> {\n const proc = Bun.spawn({\n cmd: [cmd, ...args],\n cwd: options.cwd,\n env: options.env ? { ...(process.env as Record<string, string>), ...options.env } : process.env,\n stdio: options.capture ? [\"inherit\", \"pipe\", \"pipe\"] : [\"inherit\", \"inherit\", \"inherit\"],\n });\n\n if (!options.capture) {\n const exitCode = await proc.exited;\n if (exitCode !== 0) {\n throw new Error(`${cmd} ${args.join(\" \")} failed with exit code ${exitCode}`);\n }\n return;\n }\n\n const [stdout, stderr, exitCode] = await Promise.all([\n new Response(proc.stdout).text(),\n new Response(proc.stderr).text(),\n proc.exited,\n ]);\n\n const result = { stdout, stderr, exitCode };\n return result;\n}\n"],"mappings":";;AAEA,eAAsB,IACpB,KACA,MACA,UAA6E,EAAE,EAC/C;CAChC,MAAM,OAAO,IAAI,MAAM;EACrB,KAAK,CAAC,KAAK,GAAG,KAAK;EACnB,KAAK,QAAQ;EACb,KAAK,QAAQ,MAAM;GAAE,GAAI,QAAQ;GAAgC,GAAG,QAAQ;GAAK,GAAG,QAAQ;EAC5F,OAAO,QAAQ,UAAU;GAAC;GAAW;GAAQ;GAAO,GAAG;GAAC;GAAW;GAAW;GAAU;EACzF,CAAC;AAEF,KAAI,CAAC,QAAQ,SAAS;EACpB,MAAM,WAAW,MAAM,KAAK;AAC5B,MAAI,aAAa,EACf,OAAM,IAAI,MAAM,GAAG,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,yBAAyB,WAAW;AAE/E;;CAGF,MAAM,CAAC,QAAQ,QAAQ,YAAY,MAAM,QAAQ,IAAI;EACnD,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,KAAK;EACN,CAAC;AAGF,QADe;EAAE;EAAQ;EAAQ;EAAU"}
1
+ {"version":3,"file":"run.cjs","names":[],"sources":["../../src/utils/run.ts"],"sourcesContent":["type RunResult = { stdout: string; stderr: string; exitCode: number };\n\nexport async function run(\n cmd: string,\n args: string[],\n options: { cwd?: string; env?: Record<string, string>; capture?: boolean } = {},\n): Promise<RunResult | undefined> {\n const proc = Bun.spawn({\n cmd: [cmd, ...args],\n cwd: options.cwd,\n env: options.env ? { ...(process.env as Record<string, string>), ...options.env } : process.env,\n stdio: options.capture ? [\"inherit\", \"pipe\", \"pipe\"] : [\"inherit\", \"inherit\", \"inherit\"],\n });\n\n if (!options.capture) {\n const exitCode = await proc.exited;\n if (exitCode !== 0) {\n throw new Error(`${cmd} ${args.join(\" \")} failed with exit code ${exitCode}`);\n }\n return;\n }\n\n const [stdout, stderr, exitCode] = await Promise.all([\n new Response(proc.stdout).text(),\n new Response(proc.stderr).text(),\n proc.exited,\n ]);\n\n const result = { stdout, stderr, exitCode };\n return result;\n}\n"],"mappings":";;AAEA,eAAsB,IACpB,KACA,MACA,UAA6E,EAAE,EAC/C;CAChC,MAAM,OAAO,IAAI,MAAM;EACrB,KAAK,CAAC,KAAK,GAAG,KAAK;EACnB,KAAK,QAAQ;EACb,KAAK,QAAQ,MAAM;GAAE,GAAI,QAAQ;GAAgC,GAAG,QAAQ;GAAK,GAAG,QAAQ;EAC5F,OAAO,QAAQ,UAAU;GAAC;GAAW;GAAQ;GAAO,GAAG;GAAC;GAAW;GAAW;GAAU;EACzF,CAAC;AAEF,KAAI,CAAC,QAAQ,SAAS;EACpB,MAAM,WAAW,MAAM,KAAK;AAC5B,MAAI,aAAa,EACf,OAAM,IAAI,MAAM,GAAG,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,yBAAyB,WAAW;AAE/E;;CAGF,MAAM,CAAC,QAAQ,QAAQ,YAAY,MAAM,QAAQ,IAAI;EACnD,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,KAAK;EACN,CAAC;AAGF,QAAO;EADU;EAAQ;EAAQ;EACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.mjs","names":[],"sources":["../../src/utils/run.ts"],"sourcesContent":["type RunResult = { stdout: string; stderr: string; exitCode: number };\n\nexport async function run(\n cmd: string,\n args: string[],\n options: { cwd?: string; env?: Record<string, string>; capture?: boolean } = {},\n): Promise<RunResult | undefined> {\n const proc = Bun.spawn({\n cmd: [cmd, ...args],\n cwd: options.cwd,\n env: options.env ? { ...(process.env as Record<string, string>), ...options.env } : process.env,\n stdio: options.capture ? [\"inherit\", \"pipe\", \"pipe\"] : [\"inherit\", \"inherit\", \"inherit\"],\n });\n\n if (!options.capture) {\n const exitCode = await proc.exited;\n if (exitCode !== 0) {\n throw new Error(`${cmd} ${args.join(\" \")} failed with exit code ${exitCode}`);\n }\n return;\n }\n\n const [stdout, stderr, exitCode] = await Promise.all([\n new Response(proc.stdout).text(),\n new Response(proc.stderr).text(),\n proc.exited,\n ]);\n\n const result = { stdout, stderr, exitCode };\n return result;\n}\n"],"mappings":";AAEA,eAAsB,IACpB,KACA,MACA,UAA6E,EAAE,EAC/C;CAChC,MAAM,OAAO,IAAI,MAAM;EACrB,KAAK,CAAC,KAAK,GAAG,KAAK;EACnB,KAAK,QAAQ;EACb,KAAK,QAAQ,MAAM;GAAE,GAAI,QAAQ;GAAgC,GAAG,QAAQ;GAAK,GAAG,QAAQ;EAC5F,OAAO,QAAQ,UAAU;GAAC;GAAW;GAAQ;GAAO,GAAG;GAAC;GAAW;GAAW;GAAU;EACzF,CAAC;AAEF,KAAI,CAAC,QAAQ,SAAS;EACpB,MAAM,WAAW,MAAM,KAAK;AAC5B,MAAI,aAAa,EACf,OAAM,IAAI,MAAM,GAAG,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,yBAAyB,WAAW;AAE/E;;CAGF,MAAM,CAAC,QAAQ,QAAQ,YAAY,MAAM,QAAQ,IAAI;EACnD,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,KAAK;EACN,CAAC;AAGF,QADe;EAAE;EAAQ;EAAQ;EAAU"}
1
+ {"version":3,"file":"run.mjs","names":[],"sources":["../../src/utils/run.ts"],"sourcesContent":["type RunResult = { stdout: string; stderr: string; exitCode: number };\n\nexport async function run(\n cmd: string,\n args: string[],\n options: { cwd?: string; env?: Record<string, string>; capture?: boolean } = {},\n): Promise<RunResult | undefined> {\n const proc = Bun.spawn({\n cmd: [cmd, ...args],\n cwd: options.cwd,\n env: options.env ? { ...(process.env as Record<string, string>), ...options.env } : process.env,\n stdio: options.capture ? [\"inherit\", \"pipe\", \"pipe\"] : [\"inherit\", \"inherit\", \"inherit\"],\n });\n\n if (!options.capture) {\n const exitCode = await proc.exited;\n if (exitCode !== 0) {\n throw new Error(`${cmd} ${args.join(\" \")} failed with exit code ${exitCode}`);\n }\n return;\n }\n\n const [stdout, stderr, exitCode] = await Promise.all([\n new Response(proc.stdout).text(),\n new Response(proc.stderr).text(),\n proc.exited,\n ]);\n\n const result = { stdout, stderr, exitCode };\n return result;\n}\n"],"mappings":";AAEA,eAAsB,IACpB,KACA,MACA,UAA6E,EAAE,EAC/C;CAChC,MAAM,OAAO,IAAI,MAAM;EACrB,KAAK,CAAC,KAAK,GAAG,KAAK;EACnB,KAAK,QAAQ;EACb,KAAK,QAAQ,MAAM;GAAE,GAAI,QAAQ;GAAgC,GAAG,QAAQ;GAAK,GAAG,QAAQ;EAC5F,OAAO,QAAQ,UAAU;GAAC;GAAW;GAAQ;GAAO,GAAG;GAAC;GAAW;GAAW;GAAU;EACzF,CAAC;AAEF,KAAI,CAAC,QAAQ,SAAS;EACpB,MAAM,WAAW,MAAM,KAAK;AAC5B,MAAI,aAAa,EACf,OAAM,IAAI,MAAM,GAAG,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,yBAAyB,WAAW;AAE/E;;CAGF,MAAM,CAAC,QAAQ,QAAQ,YAAY,MAAM,QAAQ,IAAI;EACnD,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,IAAI,SAAS,KAAK,OAAO,CAAC,MAAM;EAChC,KAAK;EACN,CAAC;AAGF,QAAO;EADU;EAAQ;EAAQ;EACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everything-dev",
3
- "version": "1.26.1",
3
+ "version": "1.28.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -95,10 +95,10 @@
95
95
  },
96
96
  "files": [
97
97
  "dist",
98
- "src",
99
98
  "skills",
100
99
  "!skills/_artifacts"
101
100
  ],
101
+ "sideEffects": false,
102
102
  "bin": {
103
103
  "everything-dev": "./dist/cli.mjs",
104
104
  "bos": "./dist/cli.mjs"
@@ -131,7 +131,7 @@
131
131
  "defu": "^6.1.7",
132
132
  "effect": "^3.21.0",
133
133
  "execa": "^9.5.2",
134
- "every-plugin": "^2.5.10",
134
+ "every-plugin": "^2.5.11",
135
135
  "glob": "^13.0.6",
136
136
  "gradient-string": "^3.0.0",
137
137
  "ink": "^6.8.0",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: init-upgrade
3
- description: bos init, bos sync, and bos upgrade workflows — template download, snapshot-based conflict detection, package version bumps, and what .templatekeep/.templatesync-exclude control. Use when scaffolding new projects, syncing upstream changes, or upgrading framework packages.
3
+ description: bos init, bos sync, and bos upgrade workflows — template download, snapshot-based conflict detection, package version bumps, and how init/sync select and own files. Use when scaffolding new projects, syncing upstream changes, or upgrading framework packages.
4
4
  metadata:
5
5
  sources: "src/cli/init.ts,src/cli/sync.ts,src/cli/upgrade.ts,src/cli/snapshot.ts"
6
6
  ---
@@ -12,38 +12,44 @@ metadata:
12
12
  Creates a new project from a published template:
13
13
 
14
14
  ```bash
15
- bos init # Interactive
16
- bos init -a my.near --domain my.dev # Skip prompts
17
- bos init --with-host # Include host in workspace
15
+ bos init # Interactive
16
+ bos init -a my.near --domain my.dev --noInteractive # Skip prompts
17
+ bos init --overrides ui,api,host # Include host locally
18
18
  ```
19
19
 
20
20
  ### Flow
21
21
  1. Fetch parent config from FastKV (`bos://account/gateway`)
22
22
  2. Download template tarball from parent's `repository` URL
23
- 3. Copy files matching `.templatekeep` patterns
23
+ 3. Build the file list with `buildInitPatterns(overrides, plugins)`
24
24
  4. Filter plugins: only included plugins + their routes are copied
25
25
  5. `personalizeConfig()` — sets `extends`, `account`, `domain`, removes production URLs
26
26
  6. `resolveWorkspaceRefs()` — normalizes package manifests, sets catalog refs
27
27
  7. Write initial snapshot (`.bos/sync-snapshot.json`)
28
28
  8. `bun install` + `bos types gen`
29
29
 
30
- ### .templatekeep
30
+ ### Init File Selection
31
31
 
32
- Lists glob patterns for files that should be copied from template:
32
+ `buildInitPatterns(overrides, plugins)` chooses what init copies from the template source:
33
33
  - Scaffold runtime files (bos.config.json, package.json, biome.json, rsbuild configs)
34
34
  - UI structure (routes/__root.tsx, components/index.ts, providers, hooks, lib)
35
35
  - API structure (contract.ts, index.ts, db/, drizzle.config.ts)
36
- - Plugin template (`plugins/_template/**`)
36
+ - Selected plugin workspaces (`plugins/<selected-plugin>/**`)
37
37
  - GitHub workflows (`.github/templates/**` → `.github/`)
38
38
 
39
- ### .templatesync-exclude
39
+ ### Sync Ownership Model
40
40
 
41
- Files copied on init but **never overwritten** on sync:
42
- - `ui/src/components/**` — user-owned after init
43
- - `ui/src/styles.css` user-owned
44
- - `ui/src/routes/_layout/**` — user-owned routes
45
- - `api/src/contract.ts`, `api/src/index.ts`, `api/src/db/schema.ts` user-owned business logic
46
- - Generated files (`*.gen.ts`) — always regenerated
41
+ `bos sync` uses the init snapshot plus `FRAMEWORK_OWNED_SYNC_FILES` to decide what it may overwrite.
42
+
43
+ Framework-owned files are updated when the template changes, for example build configs, generated wiring, and shared runtime scaffolding.
44
+
45
+ App-owned files are left alone unless the local file still matches the recorded snapshot or you pass `--force`, for example:
46
+ - `ui/src/components/**`
47
+ - `ui/src/routes/**`
48
+ - `api/src/contract.ts`
49
+ - `api/src/index.ts`
50
+ - `api/src/db/schema.ts`
51
+
52
+ Generated files are regenerated separately and are not the source of truth for sync decisions.
47
53
 
48
54
  ## bos sync
49
55
 
@@ -52,7 +58,7 @@ Pulls updates from the parent template:
52
58
  ```bash
53
59
  bos sync # Sync from extends reference
54
60
  bos sync --force # Overwrite even locally modified files
55
- bos sync --files # Also sync template files
61
+ bos sync --dry-run # Preview without writing changes
56
62
  ```
57
63
 
58
64
  ### Snapshot-based conflict detection
@@ -18,7 +18,7 @@ rspack Zephyr FastKV bos sync
18
18
 
19
19
  ## Publish
20
20
 
21
- Publish `bos.config.json` to the temporary `dev.everything.near` FastKV registry:
21
+ Publish `bos.config.json` to the configured FastKV registry path for the app account/domain:
22
22
 
23
23
  ```bash
24
24
  bos publish # Publish config only
@@ -35,22 +35,19 @@ After `bos publish --deploy`:
35
35
 
36
36
  ## Sync
37
37
 
38
- Pull updates from a published config:
38
+ Pull template updates from the parent referenced by local `bos.config.json`:
39
39
 
40
40
  ```bash
41
- bos sync # From every.near/everything.dev (default)
42
- bos sync --account foo.near --gateway bar.com
43
- bos sync --network testnet
41
+ bos sync
44
42
  bos sync --force
45
- bos sync --files # Also sync template files (rsbuild.config.ts, etc.)
43
+ bos sync --dry-run
46
44
  ```
47
45
 
48
- What gets synced from remote:
46
+ What gets synced from the parent template:
49
47
  - `app.*.production` — Zephyr URLs
50
48
  - `app.*.ssr` — SSR URLs
51
- - `app.*.template`, `app.*.files`, `app.*.sync` — scaffolding config
52
49
  - `shared` — shared dependency versions
53
- - `gateway` gateway URLs
50
+ - framework-owned files like build configs, router wiring, and shared runtime scaffolding
54
51
 
55
52
  What stays local:
56
53
  - `account`, `testnet` — your NEAR accounts
@@ -97,13 +94,6 @@ bos build --force # Force rebuild
97
94
 
98
95
  These are auto-generated during `bos publish --deploy` and verified at runtime by the host.
99
96
 
100
- ## Project Creation
101
-
102
- ```bash
103
- bos create project my-app # Interactive
104
- bos create project my-app -a my.near --testnet my.testnet # Skip prompts
105
- ```
106
-
107
97
  ## Configuration
108
98
 
109
99
  All runtime config lives in `bos.config.json`. Key sections:
@@ -148,8 +138,7 @@ Deep merge: child overrides parent. Plugins are deep-merged (set to `null` to re
148
138
 
149
139
  ```bash
150
140
  bos info # Show current configuration
151
- bos status # Check remote health
152
- bos clean # Clean build artifacts
141
+ bos status # Check remote health
153
142
  ```
154
143
 
155
144
  Process issues:
@@ -1,18 +0,0 @@
1
-
2
- //#region src/utils/path-match.ts
3
- function isPathExcluded(filePath, excludePatterns) {
4
- if (excludePatterns.length === 0) return false;
5
- for (const pattern of excludePatterns) if (pattern.endsWith("/**")) {
6
- const prefix = pattern.slice(0, -3);
7
- if (filePath.startsWith(`${prefix}/`) || filePath === prefix) return true;
8
- } else if (pattern.endsWith("/*")) {
9
- const prefix = pattern.slice(0, -2);
10
- const slashIdx = filePath.indexOf("/", prefix.length + 1);
11
- if (filePath.startsWith(`${prefix}/`) && slashIdx === -1) return true;
12
- } else if (filePath === pattern || filePath.startsWith(`${pattern}/`)) return true;
13
- return false;
14
- }
15
-
16
- //#endregion
17
- exports.isPathExcluded = isPathExcluded;
18
- //# sourceMappingURL=path-match.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-match.cjs","names":[],"sources":["../../src/utils/path-match.ts"],"sourcesContent":["export function isPathExcluded(filePath: string, excludePatterns: string[]): boolean {\n if (excludePatterns.length === 0) return false;\n for (const pattern of excludePatterns) {\n if (pattern.endsWith(\"/**\")) {\n const prefix = pattern.slice(0, -3);\n if (filePath.startsWith(`${prefix}/`) || filePath === prefix) return true;\n } else if (pattern.endsWith(\"/*\")) {\n const prefix = pattern.slice(0, -2);\n const slashIdx = filePath.indexOf(\"/\", prefix.length + 1);\n if (filePath.startsWith(`${prefix}/`) && slashIdx === -1) return true;\n } else if (filePath === pattern || filePath.startsWith(`${pattern}/`)) {\n return true;\n }\n }\n return false;\n}\n"],"mappings":";;AAAA,SAAgB,eAAe,UAAkB,iBAAoC;AACnF,KAAI,gBAAgB,WAAW,EAAG,QAAO;AACzC,MAAK,MAAM,WAAW,gBACpB,KAAI,QAAQ,SAAS,MAAM,EAAE;EAC3B,MAAM,SAAS,QAAQ,MAAM,GAAG,GAAG;AACnC,MAAI,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,aAAa,OAAQ,QAAO;YAC5D,QAAQ,SAAS,KAAK,EAAE;EACjC,MAAM,SAAS,QAAQ,MAAM,GAAG,GAAG;EACnC,MAAM,WAAW,SAAS,QAAQ,KAAK,OAAO,SAAS,EAAE;AACzD,MAAI,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,aAAa,GAAI,QAAO;YACxD,aAAa,WAAW,SAAS,WAAW,GAAG,QAAQ,GAAG,CACnE,QAAO;AAGX,QAAO"}
@@ -1,17 +0,0 @@
1
- //#region src/utils/path-match.ts
2
- function isPathExcluded(filePath, excludePatterns) {
3
- if (excludePatterns.length === 0) return false;
4
- for (const pattern of excludePatterns) if (pattern.endsWith("/**")) {
5
- const prefix = pattern.slice(0, -3);
6
- if (filePath.startsWith(`${prefix}/`) || filePath === prefix) return true;
7
- } else if (pattern.endsWith("/*")) {
8
- const prefix = pattern.slice(0, -2);
9
- const slashIdx = filePath.indexOf("/", prefix.length + 1);
10
- if (filePath.startsWith(`${prefix}/`) && slashIdx === -1) return true;
11
- } else if (filePath === pattern || filePath.startsWith(`${pattern}/`)) return true;
12
- return false;
13
- }
14
-
15
- //#endregion
16
- export { isPathExcluded };
17
- //# sourceMappingURL=path-match.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-match.mjs","names":[],"sources":["../../src/utils/path-match.ts"],"sourcesContent":["export function isPathExcluded(filePath: string, excludePatterns: string[]): boolean {\n if (excludePatterns.length === 0) return false;\n for (const pattern of excludePatterns) {\n if (pattern.endsWith(\"/**\")) {\n const prefix = pattern.slice(0, -3);\n if (filePath.startsWith(`${prefix}/`) || filePath === prefix) return true;\n } else if (pattern.endsWith(\"/*\")) {\n const prefix = pattern.slice(0, -2);\n const slashIdx = filePath.indexOf(\"/\", prefix.length + 1);\n if (filePath.startsWith(`${prefix}/`) && slashIdx === -1) return true;\n } else if (filePath === pattern || filePath.startsWith(`${pattern}/`)) {\n return true;\n }\n }\n return false;\n}\n"],"mappings":";AAAA,SAAgB,eAAe,UAAkB,iBAAoC;AACnF,KAAI,gBAAgB,WAAW,EAAG,QAAO;AACzC,MAAK,MAAM,WAAW,gBACpB,KAAI,QAAQ,SAAS,MAAM,EAAE;EAC3B,MAAM,SAAS,QAAQ,MAAM,GAAG,GAAG;AACnC,MAAI,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,aAAa,OAAQ,QAAO;YAC5D,QAAQ,SAAS,KAAK,EAAE;EACjC,MAAM,SAAS,QAAQ,MAAM,GAAG,GAAG;EACnC,MAAM,WAAW,SAAS,QAAQ,KAAK,OAAO,SAAS,EAAE;AACzD,MAAI,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,aAAa,GAAI,QAAO;YACxD,aAAa,WAAW,SAAS,WAAW,GAAG,QAAQ,GAAG,CACnE,QAAO;AAGX,QAAO"}