everything-dev 1.3.7 → 1.4.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 (76) hide show
  1. package/dist/cli/init.cjs +34 -5
  2. package/dist/cli/init.cjs.map +1 -1
  3. package/dist/cli/init.d.cts +10 -7
  4. package/dist/cli/init.d.cts.map +1 -1
  5. package/dist/cli/init.d.mts +10 -7
  6. package/dist/cli/init.d.mts.map +1 -1
  7. package/dist/cli/init.mjs +34 -6
  8. package/dist/cli/init.mjs.map +1 -1
  9. package/dist/cli/prompts.cjs +19 -9
  10. package/dist/cli/prompts.cjs.map +1 -1
  11. package/dist/cli/prompts.mjs +19 -9
  12. package/dist/cli/prompts.mjs.map +1 -1
  13. package/dist/cli/snapshot.cjs +35 -0
  14. package/dist/cli/snapshot.cjs.map +1 -0
  15. package/dist/cli/snapshot.mjs +33 -0
  16. package/dist/cli/snapshot.mjs.map +1 -0
  17. package/dist/cli/status.cjs +80 -0
  18. package/dist/cli/status.cjs.map +1 -0
  19. package/dist/cli/status.mjs +79 -0
  20. package/dist/cli/status.mjs.map +1 -0
  21. package/dist/cli/sync.cjs +170 -0
  22. package/dist/cli/sync.cjs.map +1 -0
  23. package/dist/cli/sync.mjs +169 -0
  24. package/dist/cli/sync.mjs.map +1 -0
  25. package/dist/cli/upgrade.cjs +123 -0
  26. package/dist/cli/upgrade.cjs.map +1 -0
  27. package/dist/cli/upgrade.mjs +122 -0
  28. package/dist/cli/upgrade.mjs.map +1 -0
  29. package/dist/cli.cjs +101 -5
  30. package/dist/cli.cjs.map +1 -1
  31. package/dist/cli.mjs +101 -5
  32. package/dist/cli.mjs.map +1 -1
  33. package/dist/contract.cjs +81 -8
  34. package/dist/contract.cjs.map +1 -1
  35. package/dist/contract.d.cts +156 -15
  36. package/dist/contract.d.cts.map +1 -1
  37. package/dist/contract.d.mts +156 -15
  38. package/dist/contract.d.mts.map +1 -1
  39. package/dist/contract.meta.cjs +32 -9
  40. package/dist/contract.meta.cjs.map +1 -1
  41. package/dist/contract.meta.d.cts +50 -11
  42. package/dist/contract.meta.d.mts +50 -11
  43. package/dist/contract.meta.mjs +32 -9
  44. package/dist/contract.meta.mjs.map +1 -1
  45. package/dist/contract.mjs +77 -9
  46. package/dist/contract.mjs.map +1 -1
  47. package/dist/index.cjs +5 -0
  48. package/dist/index.d.cts +2 -2
  49. package/dist/index.d.mts +2 -2
  50. package/dist/index.mjs +2 -2
  51. package/dist/plugin.cjs +123 -43
  52. package/dist/plugin.cjs.map +1 -1
  53. package/dist/plugin.d.cts +75 -8
  54. package/dist/plugin.d.cts.map +1 -1
  55. package/dist/plugin.d.mts +75 -8
  56. package/dist/plugin.d.mts.map +1 -1
  57. package/dist/plugin.mjs +126 -46
  58. package/dist/plugin.mjs.map +1 -1
  59. package/dist/types.d.cts +2 -2
  60. package/dist/types.d.mts +2 -2
  61. package/dist/utils/theme.cjs +1 -0
  62. package/dist/utils/theme.cjs.map +1 -1
  63. package/dist/utils/theme.mjs +1 -0
  64. package/dist/utils/theme.mjs.map +1 -1
  65. package/package.json +1 -1
  66. package/src/cli/init.ts +60 -11
  67. package/src/cli/prompts.ts +34 -16
  68. package/src/cli/snapshot.ts +46 -0
  69. package/src/cli/status.ts +85 -0
  70. package/src/cli/sync.ts +239 -0
  71. package/src/cli/upgrade.ts +165 -0
  72. package/src/cli.ts +152 -5
  73. package/src/contract.meta.ts +36 -6
  74. package/src/contract.ts +74 -7
  75. package/src/plugin.ts +156 -45
  76. package/src/utils/theme.ts +1 -0
@@ -215,10 +215,10 @@ declare const KeyPublishResultSchema: z.ZodObject<{
215
215
  error: z.ZodOptional<z.ZodString>;
216
216
  }, z.core.$strip>;
217
217
  declare const InitOptionsSchema: z.ZodObject<{
218
+ extendsAccount: z.ZodOptional<z.ZodString>;
219
+ extendsGateway: z.ZodOptional<z.ZodString>;
220
+ directory: z.ZodOptional<z.ZodString>;
218
221
  account: z.ZodOptional<z.ZodString>;
219
- gateway: z.ZodOptional<z.ZodString>;
220
- destination: z.ZodOptional<z.ZodString>;
221
- name: z.ZodOptional<z.ZodString>;
222
222
  domain: z.ZodOptional<z.ZodString>;
223
223
  source: z.ZodOptional<z.ZodString>;
224
224
  withHost: z.ZodDefault<z.ZodBoolean>;
@@ -230,15 +230,84 @@ declare const InitResultSchema: z.ZodObject<{
230
230
  error: "error";
231
231
  initialized: "initialized";
232
232
  }>;
233
- destination: z.ZodString;
234
- parentAccount: z.ZodString;
235
- parentGateway: z.ZodString;
236
- name: z.ZodOptional<z.ZodString>;
233
+ directory: z.ZodString;
234
+ extendsAccount: z.ZodString;
235
+ extendsGateway: z.ZodString;
236
+ account: z.ZodOptional<z.ZodString>;
237
237
  domain: z.ZodOptional<z.ZodString>;
238
238
  extends: z.ZodString;
239
239
  filesCopied: z.ZodNumber;
240
240
  error: z.ZodOptional<z.ZodString>;
241
241
  }, z.core.$strip>;
242
+ declare const SyncOptionsSchema: z.ZodObject<{
243
+ dryRun: z.ZodDefault<z.ZodBoolean>;
244
+ force: z.ZodDefault<z.ZodBoolean>;
245
+ noInstall: z.ZodDefault<z.ZodBoolean>;
246
+ }, z.core.$strip>;
247
+ declare const SyncResultSchema: z.ZodObject<{
248
+ status: z.ZodEnum<{
249
+ error: "error";
250
+ "dry-run": "dry-run";
251
+ synced: "synced";
252
+ }>;
253
+ updated: z.ZodArray<z.ZodString>;
254
+ skipped: z.ZodArray<z.ZodString>;
255
+ added: z.ZodArray<z.ZodString>;
256
+ error: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>;
258
+ declare const UpgradeOptionsSchema: z.ZodObject<{
259
+ dryRun: z.ZodDefault<z.ZodBoolean>;
260
+ force: z.ZodDefault<z.ZodBoolean>;
261
+ noInstall: z.ZodDefault<z.ZodBoolean>;
262
+ noSync: z.ZodDefault<z.ZodBoolean>;
263
+ }, z.core.$strip>;
264
+ declare const UpgradeResultSchema: z.ZodObject<{
265
+ status: z.ZodEnum<{
266
+ error: "error";
267
+ "dry-run": "dry-run";
268
+ upgraded: "upgraded";
269
+ }>;
270
+ packages: z.ZodArray<z.ZodObject<{
271
+ name: z.ZodString;
272
+ from: z.ZodOptional<z.ZodString>;
273
+ to: z.ZodString;
274
+ }, z.core.$strip>>;
275
+ sync: z.ZodOptional<z.ZodObject<{
276
+ status: z.ZodEnum<{
277
+ error: "error";
278
+ "dry-run": "dry-run";
279
+ synced: "synced";
280
+ }>;
281
+ updated: z.ZodArray<z.ZodString>;
282
+ skipped: z.ZodArray<z.ZodString>;
283
+ added: z.ZodArray<z.ZodString>;
284
+ error: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strip>>;
286
+ changelogUrl: z.ZodOptional<z.ZodString>;
287
+ error: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>;
289
+ declare const StatusResultSchema: z.ZodObject<{
290
+ status: z.ZodEnum<{
291
+ error: "error";
292
+ ok: "ok";
293
+ }>;
294
+ extends: z.ZodOptional<z.ZodString>;
295
+ account: z.ZodOptional<z.ZodString>;
296
+ domain: z.ZodOptional<z.ZodString>;
297
+ packages: z.ZodArray<z.ZodObject<{
298
+ name: z.ZodString;
299
+ installed: z.ZodOptional<z.ZodString>;
300
+ latest: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strip>>;
302
+ lastSync: z.ZodOptional<z.ZodString>;
303
+ envFile: z.ZodEnum<{
304
+ found: "found";
305
+ missing: "missing";
306
+ "example-only": "example-only";
307
+ }>;
308
+ parentReachable: z.ZodOptional<z.ZodBoolean>;
309
+ error: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>;
242
311
  declare const bosContract: {
243
312
  dev: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
244
313
  host: z.ZodDefault<z.ZodEnum<{
@@ -445,10 +514,10 @@ declare const bosContract: {
445
514
  error: z.ZodOptional<z.ZodString>;
446
515
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
447
516
  init: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
517
+ extendsAccount: z.ZodOptional<z.ZodString>;
518
+ extendsGateway: z.ZodOptional<z.ZodString>;
519
+ directory: z.ZodOptional<z.ZodString>;
448
520
  account: z.ZodOptional<z.ZodString>;
449
- gateway: z.ZodOptional<z.ZodString>;
450
- destination: z.ZodOptional<z.ZodString>;
451
- name: z.ZodOptional<z.ZodString>;
452
521
  domain: z.ZodOptional<z.ZodString>;
453
522
  source: z.ZodOptional<z.ZodString>;
454
523
  withHost: z.ZodDefault<z.ZodBoolean>;
@@ -459,15 +528,82 @@ declare const bosContract: {
459
528
  error: "error";
460
529
  initialized: "initialized";
461
530
  }>;
462
- destination: z.ZodString;
463
- parentAccount: z.ZodString;
464
- parentGateway: z.ZodString;
465
- name: z.ZodOptional<z.ZodString>;
531
+ directory: z.ZodString;
532
+ extendsAccount: z.ZodString;
533
+ extendsGateway: z.ZodString;
534
+ account: z.ZodOptional<z.ZodString>;
466
535
  domain: z.ZodOptional<z.ZodString>;
467
536
  extends: z.ZodString;
468
537
  filesCopied: z.ZodNumber;
469
538
  error: z.ZodOptional<z.ZodString>;
470
539
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
540
+ sync: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
541
+ dryRun: z.ZodDefault<z.ZodBoolean>;
542
+ force: z.ZodDefault<z.ZodBoolean>;
543
+ noInstall: z.ZodDefault<z.ZodBoolean>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ status: z.ZodEnum<{
546
+ error: "error";
547
+ "dry-run": "dry-run";
548
+ synced: "synced";
549
+ }>;
550
+ updated: z.ZodArray<z.ZodString>;
551
+ skipped: z.ZodArray<z.ZodString>;
552
+ added: z.ZodArray<z.ZodString>;
553
+ error: z.ZodOptional<z.ZodString>;
554
+ }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
555
+ upgrade: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
556
+ dryRun: z.ZodDefault<z.ZodBoolean>;
557
+ force: z.ZodDefault<z.ZodBoolean>;
558
+ noInstall: z.ZodDefault<z.ZodBoolean>;
559
+ noSync: z.ZodDefault<z.ZodBoolean>;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ status: z.ZodEnum<{
562
+ error: "error";
563
+ "dry-run": "dry-run";
564
+ upgraded: "upgraded";
565
+ }>;
566
+ packages: z.ZodArray<z.ZodObject<{
567
+ name: z.ZodString;
568
+ from: z.ZodOptional<z.ZodString>;
569
+ to: z.ZodString;
570
+ }, z.core.$strip>>;
571
+ sync: z.ZodOptional<z.ZodObject<{
572
+ status: z.ZodEnum<{
573
+ error: "error";
574
+ "dry-run": "dry-run";
575
+ synced: "synced";
576
+ }>;
577
+ updated: z.ZodArray<z.ZodString>;
578
+ skipped: z.ZodArray<z.ZodString>;
579
+ added: z.ZodArray<z.ZodString>;
580
+ error: z.ZodOptional<z.ZodString>;
581
+ }, z.core.$strip>>;
582
+ changelogUrl: z.ZodOptional<z.ZodString>;
583
+ error: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
585
+ status: _$_orpc_contract0.ContractProcedure<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
586
+ status: z.ZodEnum<{
587
+ error: "error";
588
+ ok: "ok";
589
+ }>;
590
+ extends: z.ZodOptional<z.ZodString>;
591
+ account: z.ZodOptional<z.ZodString>;
592
+ domain: z.ZodOptional<z.ZodString>;
593
+ packages: z.ZodArray<z.ZodObject<{
594
+ name: z.ZodString;
595
+ installed: z.ZodOptional<z.ZodString>;
596
+ latest: z.ZodOptional<z.ZodString>;
597
+ }, z.core.$strip>>;
598
+ lastSync: z.ZodOptional<z.ZodString>;
599
+ envFile: z.ZodEnum<{
600
+ found: "found";
601
+ missing: "missing";
602
+ "example-only": "example-only";
603
+ }>;
604
+ parentReachable: z.ZodOptional<z.ZodBoolean>;
605
+ error: z.ZodOptional<z.ZodString>;
606
+ }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
471
607
  };
472
608
  type DevOptions = z.infer<typeof DevOptionsSchema>;
473
609
  type StartOptions = z.infer<typeof StartOptionsSchema>;
@@ -485,6 +621,11 @@ type KeyPublishOptions = z.infer<typeof KeyPublishOptionsSchema>;
485
621
  type KeyPublishResult = z.infer<typeof KeyPublishResultSchema>;
486
622
  type InitOptions = z.infer<typeof InitOptionsSchema>;
487
623
  type InitResult = z.infer<typeof InitResultSchema>;
624
+ type SyncOptions = z.infer<typeof SyncOptionsSchema>;
625
+ type SyncResult = z.infer<typeof SyncResultSchema>;
626
+ type UpgradeOptions = z.infer<typeof UpgradeOptionsSchema>;
627
+ type UpgradeResult = z.infer<typeof UpgradeResultSchema>;
628
+ type StatusResult = z.infer<typeof StatusResultSchema>;
488
629
  //#endregion
489
- export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigResultSchema, DevOptions, DevOptionsSchema, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, StartOptions, StartOptionsSchema, StartResultSchema, bosContract };
630
+ export { BosConfigResult, BuildOptions, BuildOptionsSchema, BuildResultSchema, ConfigResultSchema, DevOptions, DevOptionsSchema, DevResultSchema, InitOptions, InitOptionsSchema, InitResult, InitResultSchema, KeyPublishOptions, KeyPublishOptionsSchema, KeyPublishResult, KeyPublishResultSchema, PluginAddOptions, PluginAddOptionsSchema, PluginAddResult, PluginAddResultSchema, PluginListResult, PluginListResultSchema, PluginPublishOptions, PluginPublishOptionsSchema, PluginPublishResult, PluginPublishResultSchema, PluginRemoveOptions, PluginRemoveOptionsSchema, PluginRemoveResult, PluginRemoveResultSchema, PublishOptions, PublishOptionsSchema, PublishResultSchema, StartOptions, StartOptionsSchema, StartResultSchema, StatusResult, StatusResultSchema, SyncOptions, SyncOptionsSchema, SyncResult, SyncResultSchema, UpgradeOptions, UpgradeOptionsSchema, UpgradeResult, UpgradeResultSchema, bosContract };
490
631
  //# sourceMappingURL=contract.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.mts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;cAGa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAUhB,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;cAMf,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAQlB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;cAKjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAMlB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;cAOjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMlB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAMtB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAQrB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAMxB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cActB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cASzB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;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,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,KAClC,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA;AAAA,KACtC,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,KACrC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,KACnC,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,KAClC,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,KAC7B,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA;AAAA,KAC5B,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,KAChC,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,KAC/B,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA"}
@@ -80,22 +80,45 @@ const cliCommandMeta = {
80
80
  summary: "Scaffold a new project from a bos template",
81
81
  interactive: true,
82
82
  fields: {
83
- account: {
83
+ domain: {
84
84
  positional: true,
85
- description: "Parent NEAR account (defaults to dev.everything.near)"
85
+ description: "New project domain (e.g. ironclaw.everything.dev)"
86
86
  },
87
- gateway: {
88
- positional: true,
89
- description: "Parent gateway ID (defaults to everything.dev)"
90
- },
91
- destination: { description: "Target directory (defaults to ./gateway)" },
92
- name: { description: "New project NEAR account" },
93
- domain: { description: "New project domain" },
87
+ account: { description: "New project NEAR account (auto-derived from domain)" },
88
+ extendsAccount: { description: "Parent NEAR account to extend from (defaults to dev.everything.near)" },
89
+ extendsGateway: { description: "Parent gateway to extend from (defaults to everything.dev)" },
90
+ directory: { description: "Target directory (auto-derived from domain)" },
94
91
  source: { description: "Local source dir (skips GitHub download)" },
95
92
  withHost: { description: "Include host/ in template output" },
96
93
  noInteractive: { description: "Skip prompts, use flags only" },
97
94
  noInstall: { description: "Skip bun install" }
98
95
  }
96
+ },
97
+ sync: {
98
+ commandPath: ["sync"],
99
+ summary: "Sync template files from parent project",
100
+ interactive: false,
101
+ fields: {
102
+ dryRun: { description: "Preview changes without writing files" },
103
+ force: { description: "Overwrite user-modified files" },
104
+ noInstall: { description: "Skip bun install" }
105
+ }
106
+ },
107
+ upgrade: {
108
+ commandPath: ["upgrade"],
109
+ summary: "Upgrade framework packages and sync template files",
110
+ interactive: false,
111
+ fields: {
112
+ dryRun: { description: "Preview changes without writing" },
113
+ force: { description: "Overwrite user-modified files during sync" },
114
+ noInstall: { description: "Skip bun install" },
115
+ noSync: { description: "Only upgrade packages, skip template sync" }
116
+ }
117
+ },
118
+ status: {
119
+ commandPath: ["status"],
120
+ summary: "Show project health, versions, and update availability",
121
+ interactive: false
99
122
  }
100
123
  };
101
124
 
@@ -1 +1 @@
1
- {"version":3,"file":"contract.meta.cjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: { positional: true, description: \"Plugin source (local:path or URL)\" },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project from a bos template\",\n interactive: true,\n fields: {\n account: {\n positional: true,\n description: \"Parent NEAR account (defaults to dev.everything.near)\",\n },\n gateway: { positional: true, description: \"Parent gateway ID (defaults to everything.dev)\" },\n destination: { description: \"Target directory (defaults to ./gateway)\" },\n name: { description: \"New project NEAR account\" },\n domain: { description: \"New project domain\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n withHost: { description: \"Include host/ in template output\" },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";;;AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACd;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ;IAAE,YAAY;IAAM,aAAa;IAAqC;GAC9E,IAAI,EAAE,aAAa,gBAAgB;GACnC,YAAY,EAAE,aAAa,2BAA2B;GACvD;EACF;CACD,cAAc;EACZ,aAAa,CAAC,UAAU,SAAS;EACjC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,YAAY;EACV,aAAa,CAAC,UAAU,OAAO;EAC/B,SAAS;EACT,aAAa;EACd;CACD,eAAe;EACb,aAAa,CAAC,UAAU,UAAU;EAClC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,SAAS;EACP,aAAa,CAAC,UAAU;EACxB,SAAS;EACT,aAAa;EACd;CACD,YAAY;EACV,aAAa,CAAC,OAAO,UAAU;EAC/B,SAAS;EACT,aAAa;EACd;CACD,MAAM;EACJ,aAAa,CAAC,OAAO;EACrB,SAAS;EACT,aAAa;EACb,QAAQ;GACN,SAAS;IACP,YAAY;IACZ,aAAa;IACd;GACD,SAAS;IAAE,YAAY;IAAM,aAAa;IAAkD;GAC5F,aAAa,EAAE,aAAa,4CAA4C;GACxE,MAAM,EAAE,aAAa,4BAA4B;GACjD,QAAQ,EAAE,aAAa,sBAAsB;GAC7C,QAAQ,EAAE,aAAa,4CAA4C;GACnE,UAAU,EAAE,aAAa,oCAAoC;GAC7D,eAAe,EAAE,aAAa,gCAAgC;GAC9D,WAAW,EAAE,aAAa,oBAAoB;GAC/C;EACF;CACF"}
1
+ {"version":3,"file":"contract.meta.cjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: { positional: true, description: \"Plugin source (local:path or URL)\" },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project from a bos template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. ironclaw.everything.dev)\",\n },\n account: { description: \"New project NEAR account (auto-derived from domain)\" },\n extendsAccount: {\n description: \"Parent NEAR account to extend from (defaults to dev.everything.near)\",\n },\n extendsGateway: {\n description: \"Parent gateway to extend from (defaults to everything.dev)\",\n },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n withHost: { description: \"Include host/ in template output\" },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n force: { description: \"Overwrite user-modified files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n force: { description: \"Overwrite user-modified files during sync\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";;;AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACd;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ;IAAE,YAAY;IAAM,aAAa;IAAqC;GAC9E,IAAI,EAAE,aAAa,gBAAgB;GACnC,YAAY,EAAE,aAA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6CAA6C;GACrE;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACF"}
@@ -104,22 +104,21 @@ declare const cliCommandMeta: {
104
104
  readonly summary: "Scaffold a new project from a bos template";
105
105
  readonly interactive: true;
106
106
  readonly fields: {
107
- readonly account: {
107
+ readonly domain: {
108
108
  readonly positional: true;
109
- readonly description: "Parent NEAR account (defaults to dev.everything.near)";
109
+ readonly description: "New project domain (e.g. ironclaw.everything.dev)";
110
110
  };
111
- readonly gateway: {
112
- readonly positional: true;
113
- readonly description: "Parent gateway ID (defaults to everything.dev)";
111
+ readonly account: {
112
+ readonly description: "New project NEAR account (auto-derived from domain)";
114
113
  };
115
- readonly destination: {
116
- readonly description: "Target directory (defaults to ./gateway)";
114
+ readonly extendsAccount: {
115
+ readonly description: "Parent NEAR account to extend from (defaults to dev.everything.near)";
117
116
  };
118
- readonly name: {
119
- readonly description: "New project NEAR account";
117
+ readonly extendsGateway: {
118
+ readonly description: "Parent gateway to extend from (defaults to everything.dev)";
120
119
  };
121
- readonly domain: {
122
- readonly description: "New project domain";
120
+ readonly directory: {
121
+ readonly description: "Target directory (auto-derived from domain)";
123
122
  };
124
123
  readonly source: {
125
124
  readonly description: "Local source dir (skips GitHub download)";
@@ -135,6 +134,46 @@ declare const cliCommandMeta: {
135
134
  };
136
135
  };
137
136
  };
137
+ readonly sync: {
138
+ readonly commandPath: ["sync"];
139
+ readonly summary: "Sync template files from parent project";
140
+ readonly interactive: false;
141
+ readonly fields: {
142
+ readonly dryRun: {
143
+ readonly description: "Preview changes without writing files";
144
+ };
145
+ readonly force: {
146
+ readonly description: "Overwrite user-modified files";
147
+ };
148
+ readonly noInstall: {
149
+ readonly description: "Skip bun install";
150
+ };
151
+ };
152
+ };
153
+ readonly upgrade: {
154
+ readonly commandPath: ["upgrade"];
155
+ readonly summary: "Upgrade framework packages and sync template files";
156
+ readonly interactive: false;
157
+ readonly fields: {
158
+ readonly dryRun: {
159
+ readonly description: "Preview changes without writing";
160
+ };
161
+ readonly force: {
162
+ readonly description: "Overwrite user-modified files during sync";
163
+ };
164
+ readonly noInstall: {
165
+ readonly description: "Skip bun install";
166
+ };
167
+ readonly noSync: {
168
+ readonly description: "Only upgrade packages, skip template sync";
169
+ };
170
+ };
171
+ };
172
+ readonly status: {
173
+ readonly commandPath: ["status"];
174
+ readonly summary: "Show project health, versions, and update availability";
175
+ readonly interactive: false;
176
+ };
138
177
  };
139
178
  //#endregion
140
179
  export { CliCommandMeta, cliCommandMeta };
@@ -104,22 +104,21 @@ declare const cliCommandMeta: {
104
104
  readonly summary: "Scaffold a new project from a bos template";
105
105
  readonly interactive: true;
106
106
  readonly fields: {
107
- readonly account: {
107
+ readonly domain: {
108
108
  readonly positional: true;
109
- readonly description: "Parent NEAR account (defaults to dev.everything.near)";
109
+ readonly description: "New project domain (e.g. ironclaw.everything.dev)";
110
110
  };
111
- readonly gateway: {
112
- readonly positional: true;
113
- readonly description: "Parent gateway ID (defaults to everything.dev)";
111
+ readonly account: {
112
+ readonly description: "New project NEAR account (auto-derived from domain)";
114
113
  };
115
- readonly destination: {
116
- readonly description: "Target directory (defaults to ./gateway)";
114
+ readonly extendsAccount: {
115
+ readonly description: "Parent NEAR account to extend from (defaults to dev.everything.near)";
117
116
  };
118
- readonly name: {
119
- readonly description: "New project NEAR account";
117
+ readonly extendsGateway: {
118
+ readonly description: "Parent gateway to extend from (defaults to everything.dev)";
120
119
  };
121
- readonly domain: {
122
- readonly description: "New project domain";
120
+ readonly directory: {
121
+ readonly description: "Target directory (auto-derived from domain)";
123
122
  };
124
123
  readonly source: {
125
124
  readonly description: "Local source dir (skips GitHub download)";
@@ -135,6 +134,46 @@ declare const cliCommandMeta: {
135
134
  };
136
135
  };
137
136
  };
137
+ readonly sync: {
138
+ readonly commandPath: ["sync"];
139
+ readonly summary: "Sync template files from parent project";
140
+ readonly interactive: false;
141
+ readonly fields: {
142
+ readonly dryRun: {
143
+ readonly description: "Preview changes without writing files";
144
+ };
145
+ readonly force: {
146
+ readonly description: "Overwrite user-modified files";
147
+ };
148
+ readonly noInstall: {
149
+ readonly description: "Skip bun install";
150
+ };
151
+ };
152
+ };
153
+ readonly upgrade: {
154
+ readonly commandPath: ["upgrade"];
155
+ readonly summary: "Upgrade framework packages and sync template files";
156
+ readonly interactive: false;
157
+ readonly fields: {
158
+ readonly dryRun: {
159
+ readonly description: "Preview changes without writing";
160
+ };
161
+ readonly force: {
162
+ readonly description: "Overwrite user-modified files during sync";
163
+ };
164
+ readonly noInstall: {
165
+ readonly description: "Skip bun install";
166
+ };
167
+ readonly noSync: {
168
+ readonly description: "Only upgrade packages, skip template sync";
169
+ };
170
+ };
171
+ };
172
+ readonly status: {
173
+ readonly commandPath: ["status"];
174
+ readonly summary: "Show project health, versions, and update availability";
175
+ readonly interactive: false;
176
+ };
138
177
  };
139
178
  //#endregion
140
179
  export { CliCommandMeta, cliCommandMeta };
@@ -78,22 +78,45 @@ const cliCommandMeta = {
78
78
  summary: "Scaffold a new project from a bos template",
79
79
  interactive: true,
80
80
  fields: {
81
- account: {
81
+ domain: {
82
82
  positional: true,
83
- description: "Parent NEAR account (defaults to dev.everything.near)"
83
+ description: "New project domain (e.g. ironclaw.everything.dev)"
84
84
  },
85
- gateway: {
86
- positional: true,
87
- description: "Parent gateway ID (defaults to everything.dev)"
88
- },
89
- destination: { description: "Target directory (defaults to ./gateway)" },
90
- name: { description: "New project NEAR account" },
91
- domain: { description: "New project domain" },
85
+ account: { description: "New project NEAR account (auto-derived from domain)" },
86
+ extendsAccount: { description: "Parent NEAR account to extend from (defaults to dev.everything.near)" },
87
+ extendsGateway: { description: "Parent gateway to extend from (defaults to everything.dev)" },
88
+ directory: { description: "Target directory (auto-derived from domain)" },
92
89
  source: { description: "Local source dir (skips GitHub download)" },
93
90
  withHost: { description: "Include host/ in template output" },
94
91
  noInteractive: { description: "Skip prompts, use flags only" },
95
92
  noInstall: { description: "Skip bun install" }
96
93
  }
94
+ },
95
+ sync: {
96
+ commandPath: ["sync"],
97
+ summary: "Sync template files from parent project",
98
+ interactive: false,
99
+ fields: {
100
+ dryRun: { description: "Preview changes without writing files" },
101
+ force: { description: "Overwrite user-modified files" },
102
+ noInstall: { description: "Skip bun install" }
103
+ }
104
+ },
105
+ upgrade: {
106
+ commandPath: ["upgrade"],
107
+ summary: "Upgrade framework packages and sync template files",
108
+ interactive: false,
109
+ fields: {
110
+ dryRun: { description: "Preview changes without writing" },
111
+ force: { description: "Overwrite user-modified files during sync" },
112
+ noInstall: { description: "Skip bun install" },
113
+ noSync: { description: "Only upgrade packages, skip template sync" }
114
+ }
115
+ },
116
+ status: {
117
+ commandPath: ["status"],
118
+ summary: "Show project health, versions, and update availability",
119
+ interactive: false
97
120
  }
98
121
  };
99
122
 
@@ -1 +1 @@
1
- {"version":3,"file":"contract.meta.mjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: { positional: true, description: \"Plugin source (local:path or URL)\" },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project from a bos template\",\n interactive: true,\n fields: {\n account: {\n positional: true,\n description: \"Parent NEAR account (defaults to dev.everything.near)\",\n },\n gateway: { positional: true, description: \"Parent gateway ID (defaults to everything.dev)\" },\n destination: { description: \"Target directory (defaults to ./gateway)\" },\n name: { description: \"New project NEAR account\" },\n domain: { description: \"New project domain\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n withHost: { description: \"Include host/ in template output\" },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACd;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ;IAAE,YAAY;IAAM,aAAa;IAAqC;GAC9E,IAAI,EAAE,aAAa,gBAAgB;GACnC,YAAY,EAAE,aAAa,2BAA2B;GACvD;EACF;CACD,cAAc;EACZ,aAAa,CAAC,UAAU,SAAS;EACjC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,YAAY;EACV,aAAa,CAAC,UAAU,OAAO;EAC/B,SAAS;EACT,aAAa;EACd;CACD,eAAe;EACb,aAAa,CAAC,UAAU,UAAU;EAClC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAAE;EACjE;CACD,SAAS;EACP,aAAa,CAAC,UAAU;EACxB,SAAS;EACT,aAAa;EACd;CACD,YAAY;EACV,aAAa,CAAC,OAAO,UAAU;EAC/B,SAAS;EACT,aAAa;EACd;CACD,MAAM;EACJ,aAAa,CAAC,OAAO;EACrB,SAAS;EACT,aAAa;EACb,QAAQ;GACN,SAAS;IACP,YAAY;IACZ,aAAa;IACd;GACD,SAAS;IAAE,YAAY;IAAM,aAAa;IAAkD;GAC5F,aAAa,EAAE,aAAa,4CAA4C;GACxE,MAAM,EAAE,aAAa,4BAA4B;GACjD,QAAQ,EAAE,aAAa,sBAAsB;GAC7C,QAAQ,EAAE,aAAa,4CAA4C;GACnE,UAAU,EAAE,aAAa,oCAAoC;GAC7D,eAAe,EAAE,aAAa,gCAAgC;GAC9D,WAAW,EAAE,aAAa,oBAAoB;GAC/C;EACF;CACF"}
1
+ {"version":3,"file":"contract.meta.mjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n commandPath?: string[];\n summary: string;\n description?: string;\n examples?: string[];\n interactive?: boolean;\n longRunning?: boolean;\n fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n dev: {\n commandPath: [\"dev\"],\n summary: \"Start a development session\",\n interactive: true,\n longRunning: true,\n },\n start: {\n commandPath: [\"start\"],\n summary: \"Start the production host\",\n interactive: false,\n longRunning: true,\n fields: {\n env: { description: \"Environment: production or staging\" },\n },\n },\n build: {\n commandPath: [\"build\"],\n summary: \"Build selected workspaces\",\n interactive: false,\n fields: {\n packages: { positional: true, description: \"Comma-separated package list\" },\n },\n },\n config: {\n commandPath: [\"config\"],\n summary: \"Print the loaded BOS configuration\",\n interactive: false,\n },\n pluginAdd: {\n commandPath: [\"plugin\", \"add\"],\n summary: \"Add a plugin attachment\",\n interactive: false,\n fields: {\n source: { positional: true, description: \"Plugin source (local:path or URL)\" },\n as: { description: \"Plugin alias\" },\n production: { description: \"Production URL override\" },\n },\n },\n pluginRemove: {\n commandPath: [\"plugin\", \"remove\"],\n summary: \"Remove a plugin attachment\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n pluginList: {\n commandPath: [\"plugin\", \"list\"],\n summary: \"List configured plugins\",\n interactive: false,\n },\n pluginPublish: {\n commandPath: [\"plugin\", \"publish\"],\n summary: \"Publish a single plugin\",\n interactive: false,\n fields: { key: { positional: true, description: \"Plugin key\" } },\n },\n publish: {\n commandPath: [\"publish\"],\n summary: \"Publish the current workspace configuration\",\n interactive: false,\n },\n keyPublish: {\n commandPath: [\"key\", \"publish\"],\n summary: \"Generate a publish access key\",\n interactive: false,\n },\n init: {\n commandPath: [\"init\"],\n summary: \"Scaffold a new project from a bos template\",\n interactive: true,\n fields: {\n domain: {\n positional: true,\n description: \"New project domain (e.g. ironclaw.everything.dev)\",\n },\n account: { description: \"New project NEAR account (auto-derived from domain)\" },\n extendsAccount: {\n description: \"Parent NEAR account to extend from (defaults to dev.everything.near)\",\n },\n extendsGateway: {\n description: \"Parent gateway to extend from (defaults to everything.dev)\",\n },\n directory: { description: \"Target directory (auto-derived from domain)\" },\n source: { description: \"Local source dir (skips GitHub download)\" },\n withHost: { description: \"Include host/ in template output\" },\n noInteractive: { description: \"Skip prompts, use flags only\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n sync: {\n commandPath: [\"sync\"],\n summary: \"Sync template files from parent project\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing files\" },\n force: { description: \"Overwrite user-modified files\" },\n noInstall: { description: \"Skip bun install\" },\n },\n },\n upgrade: {\n commandPath: [\"upgrade\"],\n summary: \"Upgrade framework packages and sync template files\",\n interactive: false,\n fields: {\n dryRun: { description: \"Preview changes without writing\" },\n force: { description: \"Overwrite user-modified files during sync\" },\n noInstall: { description: \"Skip bun install\" },\n noSync: { description: \"Only upgrade packages, skip template sync\" },\n },\n },\n status: {\n commandPath: [\"status\"],\n summary: \"Show project health, versions, and update availability\",\n interactive: false,\n },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACd;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,aAAa;EACb,QAAQ,EACN,KAAK,EAAE,aAAa,sCAAsC,EAC3D;EACF;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;EACT,aAAa;EACb,QAAQ,EACN,UAAU;GAAE,YAAY;GAAM,aAAa;GAAgC,EAC5E;EACF;CACD,QAAQ;EACN,aAAa,CAAC,SAAS;EACvB,SAAS;EACT,aAAa;EACd;CACD,WAAW;EACT,aAAa,CAAC,UAAU,MAAM;EAC9B,SAAS;EACT,aAAa;EACb,QAAQ;GACN,QAAQ;IAAE,YAAY;IAAM,aAAa;IAAqC;GAC9E,IAAI,EAAE,aAAa,gBAAgB;GACnC,YAAY,EAAE,aAAa,2BAA2B;GACvD;EACF;CACD,cAAc;EACZ,aAAa,CAAC,UAAU,SAAS;EACjC,SAAS;EACT,aAAa;EACb,QAAQ,EAAE,KAAK;GAAE,YAAY;GAAM,aAAa;GAAc,EAA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