everything-dev 1.26.1 → 1.27.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.
- package/dist/api-contract.cjs.map +1 -1
- package/dist/api-contract.mjs.map +1 -1
- package/dist/cli/catalog.cjs.map +1 -1
- package/dist/cli/catalog.mjs.map +1 -1
- package/dist/cli/framework-version.cjs.map +1 -1
- package/dist/cli/framework-version.mjs.map +1 -1
- package/dist/cli/infra.cjs.map +1 -1
- package/dist/cli/infra.mjs.map +1 -1
- package/dist/cli/init.cjs +121 -113
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +6 -6
- package/dist/cli/init.d.cts.map +1 -1
- package/dist/cli/init.d.mts +6 -6
- package/dist/cli/init.d.mts.map +1 -1
- package/dist/cli/init.mjs +119 -113
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/parse.cjs.map +1 -1
- package/dist/cli/parse.mjs.map +1 -1
- package/dist/cli/prompts.cjs +1 -1
- package/dist/cli/prompts.cjs.map +1 -1
- package/dist/cli/prompts.mjs +1 -1
- package/dist/cli/prompts.mjs.map +1 -1
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.mjs.map +1 -1
- package/dist/cli/sync.cjs +42 -92
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +45 -95
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli/timing.cjs.map +1 -1
- package/dist/cli/timing.mjs.map +1 -1
- package/dist/cli/upgrade.cjs +41 -20
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +43 -22
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/components/dev-view.cjs.map +1 -1
- package/dist/components/dev-view.mjs.map +1 -1
- package/dist/components/streaming-view.cjs.map +1 -1
- package/dist/components/streaming-view.mjs.map +1 -1
- package/dist/config.cjs.map +1 -1
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +174 -173
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +10 -10
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +10 -10
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.mjs +2 -1
- package/dist/contract.mjs.map +1 -1
- package/dist/dev-logs.cjs.map +1 -1
- package/dist/dev-logs.mjs.map +1 -1
- package/dist/fastkv.cjs.map +1 -1
- package/dist/fastkv.mjs.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/integrity.cjs.map +1 -1
- package/dist/integrity.mjs.map +1 -1
- package/dist/internal/manifest-normalizer.cjs.map +1 -1
- package/dist/internal/manifest-normalizer.mjs.map +1 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.mjs.map +1 -1
- package/dist/near-cli.cjs.map +1 -1
- package/dist/near-cli.mjs.map +1 -1
- package/dist/orchestrator.cjs.map +1 -1
- package/dist/orchestrator.mjs.map +1 -1
- package/dist/plugin.cjs +20 -33
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +5 -5
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.mjs +18 -31
- package/dist/plugin.mjs.map +1 -1
- package/dist/sdk.cjs +2 -2
- package/dist/sdk.d.cts +1 -1
- package/dist/sdk.d.mts +1 -1
- package/dist/sdk.mjs +1 -1
- package/dist/shared.cjs.map +1 -1
- package/dist/shared.mjs.map +1 -1
- package/dist/types.cjs +184 -184
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.mjs +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/ui/types.d.cts +1 -0
- package/dist/ui/types.d.cts.map +1 -1
- package/dist/ui/types.d.mts +1 -0
- package/dist/ui/types.d.mts.map +1 -1
- package/dist/utils/banner.cjs.map +1 -1
- package/dist/utils/banner.mjs.map +1 -1
- package/dist/utils/run.cjs.map +1 -1
- package/dist/utils/run.mjs.map +1 -1
- package/package.json +2 -2
- package/skills/init-upgrade/SKILL.md +22 -16
- package/skills/publish-sync/SKILL.md +7 -18
- package/src/cli/init.ts +137 -194
- package/src/cli/prompts.ts +1 -1
- package/src/cli/sync.ts +48 -137
- package/src/cli/upgrade.ts +66 -25
- package/src/contract.ts +2 -1
- package/src/plugin.ts +12 -34
- package/src/sdk.ts +1 -1
- package/src/types.ts +1 -1
- package/src/ui/types.ts +1 -0
- package/dist/utils/path-match.cjs +0 -18
- package/dist/utils/path-match.cjs.map +0 -1
- package/dist/utils/path-match.mjs +0 -17
- package/dist/utils/path-match.mjs.map +0 -1
package/dist/types.mjs.map
CHANGED
|
@@ -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 }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AS,wBAAwB,UAAU;CAC3C,IAAI,EACD,OAAO;EACN,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,QAAQ;EACjB,WAAW,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC,CACD,UAAU;CACb,KAAK,EACF,OAAO;EACN,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,QAAQ;EACjB,WAAW,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC,CACD,UAAU;CACb,MAAM,EACH,OAAO;EACN,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,QAAQ;EACjB,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,SAAS,EAAE,MAAM,kBAAkB,CAAC,UAAU;EAC/C,CAAC,CACD,UAAU;CACb,SAAS,EACN,OACC,EAAE,QAAQ,EACV,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"}
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"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,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;C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AQ,CAAC,UAAU;GACjC,CAAC,CACD,UAAU;EACb,SAAS,EAAE,MAAM,kBAAkB,CAAC,UAAU;EAC/C,CAAC,CACH,CACA,UAAU;CACd,CAAC"}
|
package/dist/ui/types.d.cts
CHANGED
|
@@ -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;
|
package/dist/ui/types.d.cts.map
CHANGED
|
@@ -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,CAAQ,mBAAA;EACvB,QAAA;EACA,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,EAAW,UAAA;AAAA;AAA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AAAA"}
|
package/dist/ui/types.d.mts
CHANGED
|
@@ -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;
|
package/dist/ui/types.d.mts.map
CHANGED
|
@@ -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,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,CAAQ,mBAAA;EACvB,QAAA;EACA,OAAA,GAAU,QAAA;AAAA;AAAA,UAGK,oBAAA,mDACP,aAAA,CAAc,QAAA;EACtB,SAAA,EAAW,UAAA;AAAA;AAAA,
|
|
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,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,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,
|
|
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,
|
|
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"}
|
package/dist/utils/run.cjs.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/utils/run.mjs.map
CHANGED
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -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.
|
|
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
|
|
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
|
|
16
|
-
bos init -a my.near --domain my.dev
|
|
17
|
-
bos init --
|
|
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.
|
|
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
|
-
###
|
|
30
|
+
### Init File Selection
|
|
31
31
|
|
|
32
|
-
|
|
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
|
-
-
|
|
36
|
+
- Selected plugin workspaces (`plugins/<selected-plugin>/**`)
|
|
37
37
|
- GitHub workflows (`.github/templates/**` → `.github/`)
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### Sync Ownership Model
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
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 --
|
|
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
|
|
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
|
|
38
|
+
Pull template updates from the parent referenced by local `bos.config.json`:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
bos sync
|
|
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 --
|
|
43
|
+
bos sync --dry-run
|
|
46
44
|
```
|
|
47
45
|
|
|
48
|
-
What gets synced from
|
|
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
|
-
-
|
|
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
|
|
152
|
-
bos clean # Clean build artifacts
|
|
141
|
+
bos status # Check remote health
|
|
153
142
|
```
|
|
154
143
|
|
|
155
144
|
Process issues:
|