@vibesdotdev/infra-deploy 0.0.1

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 (183) hide show
  1. package/README.md +125 -0
  2. package/SPEC.md +181 -0
  3. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +39 -0
  4. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -0
  5. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +61 -0
  6. package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -0
  7. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +13 -0
  8. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -0
  9. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +109 -0
  10. package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -0
  11. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +31 -0
  12. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -0
  13. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +36 -0
  14. package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -0
  15. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +11 -0
  16. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -0
  17. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +67 -0
  18. package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -0
  19. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +21 -0
  20. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -0
  21. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +27 -0
  22. package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -0
  23. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +12 -0
  24. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -0
  25. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +74 -0
  26. package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -0
  27. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +12 -0
  28. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts.map +1 -0
  29. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +12 -0
  30. package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -0
  31. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +21 -0
  32. package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -0
  33. package/dist/cli/audit/infra-audit.cli-command.descriptor.js +28 -0
  34. package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -0
  35. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +18 -0
  36. package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -0
  37. package/dist/cli/audit/infra-audit.cli-command.impl.js +219 -0
  38. package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -0
  39. package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +12 -0
  40. package/dist/cli/infra-deploy.cli-group.descriptor.d.ts.map +1 -0
  41. package/dist/cli/infra-deploy.cli-group.descriptor.js +12 -0
  42. package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -0
  43. package/dist/cli/infra.cli-group.descriptor.d.ts +11 -0
  44. package/dist/cli/infra.cli-group.descriptor.d.ts.map +1 -0
  45. package/dist/cli/infra.cli-group.descriptor.js +11 -0
  46. package/dist/cli/infra.cli-group.descriptor.js.map +1 -0
  47. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +34 -0
  48. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -0
  49. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +29 -0
  50. package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -0
  51. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +5 -0
  52. package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -0
  53. package/dist/cli/list/infra-deploy.list.cli-command.impl.js +110 -0
  54. package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -0
  55. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +39 -0
  56. package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -0
  57. package/dist/cli/logs/infra-logs.cli-command.descriptor.js +64 -0
  58. package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -0
  59. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +5 -0
  60. package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -0
  61. package/dist/cli/logs/infra-logs.cli-command.impl.js +323 -0
  62. package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -0
  63. package/dist/cli/logs/stream-worker-tail.d.ts +62 -0
  64. package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -0
  65. package/dist/cli/logs/stream-worker-tail.js +165 -0
  66. package/dist/cli/logs/stream-worker-tail.js.map +1 -0
  67. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +27 -0
  68. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -0
  69. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +75 -0
  70. package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -0
  71. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +5 -0
  72. package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -0
  73. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +383 -0
  74. package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -0
  75. package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +12 -0
  76. package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts.map +1 -0
  77. package/dist/cli/npm/infra-npm.cli-group.descriptor.js +12 -0
  78. package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -0
  79. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +25 -0
  80. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -0
  81. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +57 -0
  82. package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -0
  83. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +17 -0
  84. package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -0
  85. package/dist/cli/observability/infra-observability-set.cli-command.impl.js +152 -0
  86. package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -0
  87. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +21 -0
  88. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -0
  89. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +35 -0
  90. package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -0
  91. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +17 -0
  92. package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -0
  93. package/dist/cli/observability/infra-observability-status.cli-command.impl.js +99 -0
  94. package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -0
  95. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +12 -0
  96. package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts.map +1 -0
  97. package/dist/cli/observability/infra-observability.cli-group.descriptor.js +12 -0
  98. package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -0
  99. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +27 -0
  100. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -0
  101. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +35 -0
  102. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -0
  103. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +5 -0
  104. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -0
  105. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +99 -0
  106. package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -0
  107. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +21 -0
  108. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -0
  109. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +27 -0
  110. package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -0
  111. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +12 -0
  112. package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -0
  113. package/dist/cli/rum/infra-rum-status.cli-command.impl.js +88 -0
  114. package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -0
  115. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +12 -0
  116. package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts.map +1 -0
  117. package/dist/cli/rum/infra-rum.cli-group.descriptor.js +12 -0
  118. package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -0
  119. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +27 -0
  120. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -0
  121. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +49 -0
  122. package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -0
  123. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +5 -0
  124. package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -0
  125. package/dist/cli/run/infra-deploy.run.cli-command.impl.js +272 -0
  126. package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -0
  127. package/dist/cli/shared/discover-deployments.d.ts +41 -0
  128. package/dist/cli/shared/discover-deployments.d.ts.map +1 -0
  129. package/dist/cli/shared/discover-deployments.js +95 -0
  130. package/dist/cli/shared/discover-deployments.js.map +1 -0
  131. package/dist/config-loader.d.ts +24 -0
  132. package/dist/config-loader.d.ts.map +1 -0
  133. package/dist/config-loader.js +135 -0
  134. package/dist/config-loader.js.map +1 -0
  135. package/dist/index.d.ts +5 -0
  136. package/dist/index.d.ts.map +1 -0
  137. package/dist/index.js +4 -0
  138. package/dist/index.js.map +1 -0
  139. package/dist/infra-deploy.plugin.d.ts +3 -0
  140. package/dist/infra-deploy.plugin.d.ts.map +1 -0
  141. package/dist/infra-deploy.plugin.js +59 -0
  142. package/dist/infra-deploy.plugin.js.map +1 -0
  143. package/dist/regenerate.d.ts +55 -0
  144. package/dist/regenerate.d.ts.map +1 -0
  145. package/dist/regenerate.js +206 -0
  146. package/dist/regenerate.js.map +1 -0
  147. package/package.json +85 -0
  148. package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +61 -0
  149. package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +131 -0
  150. package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +36 -0
  151. package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +75 -0
  152. package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +27 -0
  153. package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +88 -0
  154. package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +12 -0
  155. package/src/cli/audit/infra-audit.cli-command.descriptor.ts +28 -0
  156. package/src/cli/audit/infra-audit.cli-command.impl.ts +293 -0
  157. package/src/cli/infra-deploy.cli-group.descriptor.ts +12 -0
  158. package/src/cli/infra.cli-group.descriptor.ts +11 -0
  159. package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +29 -0
  160. package/src/cli/list/infra-deploy.list.cli-command.impl.ts +125 -0
  161. package/src/cli/logs/infra-logs.cli-command.descriptor.ts +65 -0
  162. package/src/cli/logs/infra-logs.cli-command.impl.ts +354 -0
  163. package/src/cli/logs/stream-worker-tail.ts +202 -0
  164. package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +75 -0
  165. package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +474 -0
  166. package/src/cli/npm/infra-npm.cli-group.descriptor.ts +12 -0
  167. package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +57 -0
  168. package/src/cli/observability/infra-observability-set.cli-command.impl.ts +173 -0
  169. package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +35 -0
  170. package/src/cli/observability/infra-observability-status.cli-command.impl.ts +124 -0
  171. package/src/cli/observability/infra-observability.cli-group.descriptor.ts +12 -0
  172. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +36 -0
  173. package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +103 -0
  174. package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +27 -0
  175. package/src/cli/rum/infra-rum-status.cli-command.impl.ts +112 -0
  176. package/src/cli/rum/infra-rum.cli-group.descriptor.ts +12 -0
  177. package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +49 -0
  178. package/src/cli/run/infra-deploy.run.cli-command.impl.ts +330 -0
  179. package/src/cli/shared/discover-deployments.ts +127 -0
  180. package/src/config-loader.ts +179 -0
  181. package/src/index.ts +11 -0
  182. package/src/infra-deploy.plugin.ts +83 -0
  183. package/src/regenerate.ts +230 -0
@@ -0,0 +1,152 @@
1
+ /**
2
+ * `vibes infra observability set [--worker NAME] [--filter GLOB]
3
+ * [--sampling 0.1] [--logs true|false]
4
+ * [--traces true|false] [--dry-run]`
5
+ *
6
+ * Writes observability config to one Worker, a glob-matched subset, or
7
+ * the entire fleet. `--dry-run` shows the diff without writing. Multi-
8
+ * worker writes require `--yes` confirmation.
9
+ *
10
+ * Skips Workers whose live settings already match the requested state
11
+ * (the impl handles this via `skipUnchanged`).
12
+ */
13
+ import { getVibesRuntime } from '@vibesdotdev/runtime';
14
+ import { requestCLIExit } from '@vibesdotdev/cli/providers';
15
+ function readString(v) {
16
+ return typeof v === 'string' && v.length > 0 ? v : undefined;
17
+ }
18
+ function readBoolean(v) {
19
+ return v === true || v === 'true';
20
+ }
21
+ function parseBoolean(raw) {
22
+ if (!raw)
23
+ return undefined;
24
+ const v = raw.toLowerCase();
25
+ if (v === 'true' || v === '1' || v === 'on' || v === 'yes')
26
+ return true;
27
+ if (v === 'false' || v === '0' || v === 'off' || v === 'no')
28
+ return false;
29
+ return undefined;
30
+ }
31
+ function formatPct(rate) {
32
+ if (rate === undefined)
33
+ return '—';
34
+ return `${(rate * 100).toFixed(0)}%`;
35
+ }
36
+ export default {
37
+ async execute(_args, opts) {
38
+ const runtime = await getVibesRuntime();
39
+ const ui = (await runtime.context('cli/ui'));
40
+ const worker = readString(opts.worker);
41
+ const filter = readString(opts.filter);
42
+ const samplingRaw = readString(opts.sampling);
43
+ const logsEnabledRaw = readString(opts.logs);
44
+ const tracesEnabledRaw = readString(opts.traces);
45
+ const providerFilter = readString(opts.provider);
46
+ const dryRun = readBoolean(opts['dry-run']) || readBoolean(opts.dryRun);
47
+ const yes = readBoolean(opts.yes);
48
+ const output = readString(opts.output) ?? 'text';
49
+ // Build the partial settings update.
50
+ const update = {};
51
+ const logsUpdate = { enabled: false };
52
+ let hasLogsField = false;
53
+ if (samplingRaw !== undefined) {
54
+ const sampling = Number(samplingRaw);
55
+ if (!Number.isFinite(sampling) || sampling < 0 || sampling > 1) {
56
+ ui.error(`--sampling must be a number in [0, 1]; got "${samplingRaw}".`);
57
+ requestCLIExit(1);
58
+ return;
59
+ }
60
+ logsUpdate.headSamplingRate = sampling;
61
+ // Sampling rate change implies logs stay enabled (CF gates head_sampling_rate behind enabled).
62
+ logsUpdate.enabled = true;
63
+ hasLogsField = true;
64
+ }
65
+ const logsToggle = parseBoolean(logsEnabledRaw);
66
+ if (logsToggle !== undefined) {
67
+ logsUpdate.enabled = logsToggle;
68
+ hasLogsField = true;
69
+ }
70
+ if (hasLogsField)
71
+ update.logs = logsUpdate;
72
+ const tracesToggle = parseBoolean(tracesEnabledRaw);
73
+ if (tracesToggle !== undefined) {
74
+ update.traces = { enabled: tracesToggle };
75
+ }
76
+ if (!update.logs && !update.traces) {
77
+ ui.error('Nothing to change. Pass --sampling, --logs, or --traces.');
78
+ requestCLIExit(1);
79
+ return;
80
+ }
81
+ if (!runtime.hasKind('infra/observability')) {
82
+ ui.error('No infra/observability kind registered.');
83
+ requestCLIExit(1);
84
+ return;
85
+ }
86
+ const descriptors = runtime.assets('infra/observability').descriptors();
87
+ const target = providerFilter
88
+ ? descriptors.find((d) => d.adapter === providerFilter || d.id === providerFilter)
89
+ : descriptors[0];
90
+ if (!target) {
91
+ ui.error('No matching observability provider.');
92
+ requestCLIExit(1);
93
+ return;
94
+ }
95
+ const scope = worker
96
+ ? { kind: 'worker', workerName: worker }
97
+ : { kind: 'account-wide', ...(filter ? { filter } : {}) };
98
+ const impl = (await runtime
99
+ .query('infra/observability')
100
+ .withId(target.id)
101
+ .resolve());
102
+ // Multi-worker writes need confirmation (unless --yes).
103
+ if (scope.kind === 'account-wide' && !yes && !dryRun) {
104
+ ui.warn(`About to update observability on every Worker matching ${filter ? `glob "${filter}"` : 'all workers'}.\nRe-run with --yes to confirm, or --dry-run to preview.`);
105
+ requestCLIExit(0);
106
+ return;
107
+ }
108
+ if (dryRun) {
109
+ // Use getStatus to compute the diff, then print without writing.
110
+ const snapshots = await impl.getStatus(scope);
111
+ ui.info(`Dry run — ${snapshots.length} worker(s) in scope.`);
112
+ for (const s of snapshots) {
113
+ const beforeSample = s.settings.logs?.headSamplingRate;
114
+ const afterSample = update.logs?.headSamplingRate ?? beforeSample;
115
+ const change = beforeSample !== afterSample
116
+ ? `sampling ${formatPct(beforeSample)} → ${formatPct(afterSample)}`
117
+ : '(no change)';
118
+ ui.info(` ${s.workerName}: ${change}`);
119
+ }
120
+ return;
121
+ }
122
+ let result;
123
+ try {
124
+ result = await impl.set({ scope, settings: update });
125
+ }
126
+ catch (err) {
127
+ ui.error(`Apply failed: ${err instanceof Error ? err.message : String(err)}`);
128
+ requestCLIExit(1);
129
+ return;
130
+ }
131
+ if (output === 'json') {
132
+ ui.json(result);
133
+ return;
134
+ }
135
+ ui.success(`Applied. changed=${result.changed.length} unchanged=${result.unchanged.length} failed=${result.failed.length}`);
136
+ for (const c of result.changed) {
137
+ const beforeRate = c.before.logs?.headSamplingRate;
138
+ const afterRate = c.after.logs?.headSamplingRate;
139
+ ui.info(` ${c.workerName}: sampling ${formatPct(beforeRate)} → ${formatPct(afterRate)}`);
140
+ }
141
+ if (result.unchanged.length > 0) {
142
+ ui.info(`\nUnchanged (already at target): ${result.unchanged.join(', ')}`);
143
+ }
144
+ if (result.failed.length > 0) {
145
+ ui.error('\nFailed:');
146
+ for (const f of result.failed)
147
+ ui.error(` ${f.workerName}: ${f.error}`);
148
+ requestCLIExit(1);
149
+ }
150
+ }
151
+ };
152
+ //# sourceMappingURL=infra-observability-set.cli-command.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability-set.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-set.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAkB,MAAM,4BAA4B,CAAC;AAS5E,SAAS,UAAU,CAAC,CAAU;IAC7B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC;AAED,SAAS,WAAW,CAAC,CAAU;IAC9B,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,MAAM,CAAC;AACnC,CAAC;AA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AAE,CAAC,CAAC;YACzE,cAAc,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;IACF,CAAC;CACD,CAAC"}
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ id: string;
3
+ kind: "cli/command";
4
+ name: string;
5
+ description: string;
6
+ group: string;
7
+ options: ({
8
+ flags: string;
9
+ description: string;
10
+ default?: undefined;
11
+ } | {
12
+ flags: string;
13
+ description: string;
14
+ default: string;
15
+ })[];
16
+ surfaces: string[];
17
+ hardware: string[];
18
+ enabled: true;
19
+ };
20
+ export default _default;
21
+ //# sourceMappingURL=infra-observability-status.cli-command.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability-status.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-status.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,wBAgCG"}
@@ -0,0 +1,35 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/runtime';
2
+ export default createRuntimeAsset({
3
+ id: 'infra-observability.status',
4
+ kind: 'cli/command',
5
+ name: 'status',
6
+ description: 'Read observability config (sampling, logs, traces) across Workers',
7
+ group: 'infra-observability',
8
+ options: [
9
+ {
10
+ flags: '--worker <name>',
11
+ description: 'Scope to a single Worker (omit for fleet-wide sweep)'
12
+ },
13
+ {
14
+ flags: '--filter <glob>',
15
+ description: 'Glob to narrow the fleet sweep (e.g. "vibes-*")'
16
+ },
17
+ {
18
+ flags: '--provider <id>',
19
+ description: 'Provider impl id (default: cloudflare-workers-observability)'
20
+ },
21
+ {
22
+ flags: '--environment <name>',
23
+ description: 'Vibes environment for secret resolution (local|dev|staging|production)'
24
+ },
25
+ {
26
+ flags: '-o, --output <format>',
27
+ description: 'Output format (text|json)',
28
+ default: 'text'
29
+ }
30
+ ],
31
+ surfaces: ['cli'],
32
+ hardware: ['consumer', 'cloud'],
33
+ enabled: true
34
+ });
35
+ //# sourceMappingURL=infra-observability-status.cli-command.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability-status.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-status.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,4BAA4B;IAChC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,mEAAmE;IAChF,KAAK,EAAE,qBAAqB;IAC5B,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,sDAAsD;SACnE;QACD;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,iDAAiD;SAC9D;QACD;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,8DAA8D;SAC3E;QACD;YACC,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,wEAAwE;SACrF;QACD;YACC,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,MAAM;SACf;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * `vibes infra observability status [--worker NAME] [--filter GLOB]`
3
+ *
4
+ * Reads observability config for one Worker, a glob-matched subset, or
5
+ * the entire fleet. Renders a table:
6
+ *
7
+ * worker logs.enabled logs.sample traces.enabled modified
8
+ * ---------------- ------------ ----------- -------------- ------------
9
+ * vibes-account true 100% false 2026-05-22T…
10
+ *
11
+ * `--output json` emits the raw ObservabilitySnapshot[] for piping.
12
+ */
13
+ declare const _default: {
14
+ execute(_args: Record<string, unknown>, opts: Record<string, unknown>): Promise<void>;
15
+ };
16
+ export default _default;
17
+ //# sourceMappingURL=infra-observability-status.cli-command.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability-status.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-status.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;;mBAqBmB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD5F,wBA4FE"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * `vibes infra observability status [--worker NAME] [--filter GLOB]`
3
+ *
4
+ * Reads observability config for one Worker, a glob-matched subset, or
5
+ * the entire fleet. Renders a table:
6
+ *
7
+ * worker logs.enabled logs.sample traces.enabled modified
8
+ * ---------------- ------------ ----------- -------------- ------------
9
+ * vibes-account true 100% false 2026-05-22T…
10
+ *
11
+ * `--output json` emits the raw ObservabilitySnapshot[] for piping.
12
+ */
13
+ import { getVibesRuntime } from '@vibesdotdev/runtime';
14
+ import {} from '@vibesdotdev/cli/providers';
15
+ function readString(v) {
16
+ return typeof v === 'string' && v.length > 0 ? v : undefined;
17
+ }
18
+ function formatPct(rate) {
19
+ if (rate === undefined)
20
+ return '—';
21
+ return `${(rate * 100).toFixed(0)}%`;
22
+ }
23
+ export default {
24
+ async execute(_args, opts) {
25
+ const runtime = await getVibesRuntime();
26
+ const ui = (await runtime.context('cli/ui'));
27
+ const worker = readString(opts.worker);
28
+ const filter = readString(opts.filter);
29
+ const providerFilter = readString(opts.provider);
30
+ const output = readString(opts.output) ?? 'text';
31
+ if (!runtime.hasKind('infra/observability')) {
32
+ ui.warn('No infra/observability kind registered. Load infra-cloudflare or a sibling provider plugin.');
33
+ return;
34
+ }
35
+ const descriptors = runtime.assets('infra/observability').descriptors();
36
+ const target = providerFilter
37
+ ? descriptors.find((d) => d.adapter === providerFilter || d.id === providerFilter)
38
+ : descriptors[0];
39
+ if (!target) {
40
+ ui.error('No matching observability provider.');
41
+ return;
42
+ }
43
+ const scope = worker
44
+ ? { kind: 'worker', workerName: worker }
45
+ : { kind: 'account-wide', ...(filter ? { filter } : {}) };
46
+ let snapshots;
47
+ try {
48
+ const impl = (await runtime
49
+ .query('infra/observability')
50
+ .withId(target.id)
51
+ .resolve());
52
+ snapshots = await impl.getStatus(scope);
53
+ }
54
+ catch (err) {
55
+ ui.error(`Failed to read observability: ${err instanceof Error ? err.message : String(err)}`);
56
+ return;
57
+ }
58
+ if (output === 'json') {
59
+ ui.json(snapshots);
60
+ return;
61
+ }
62
+ if (snapshots.length === 0) {
63
+ ui.info('No workers in scope.');
64
+ return;
65
+ }
66
+ // Compute column widths.
67
+ const nameWidth = Math.max(6, ...snapshots.map((s) => s.workerName.length));
68
+ ui.info(` ${'worker'.padEnd(nameWidth)} ${'logs'.padEnd(6)} ${'sample'.padEnd(7)} ${'traces'.padEnd(7)} modified`);
69
+ ui.info(` ${'-'.repeat(nameWidth)} ------ ------- ------- --------------------`);
70
+ for (const s of snapshots) {
71
+ const logsEnabled = s.settings.logs?.enabled ?? false;
72
+ const logsSample = formatPct(s.settings.logs?.headSamplingRate);
73
+ const tracesEnabled = s.settings.traces?.enabled ?? false;
74
+ const modified = s.modifiedAt ? s.modifiedAt.slice(0, 19) : '—';
75
+ ui.info(` ${s.workerName.padEnd(nameWidth)} ${String(logsEnabled).padEnd(6)} ${logsSample.padEnd(7)} ${String(tracesEnabled).padEnd(7)} ${modified}`);
76
+ }
77
+ // Surface a fleet-wide summary so the gap is impossible to miss.
78
+ const samples = snapshots
79
+ .map((s) => s.settings.logs?.headSamplingRate)
80
+ .filter((r) => typeof r === 'number');
81
+ if (samples.length > 0) {
82
+ const min = Math.min(...samples);
83
+ const max = Math.max(...samples);
84
+ const avg = samples.reduce((a, b) => a + b, 0) / samples.length;
85
+ ui.info(`\nFleet logs head-sampling: min=${formatPct(min)} avg=${formatPct(avg)} max=${formatPct(max)} ` +
86
+ `(${snapshots.length} workers scanned)`);
87
+ if (max >= 1) {
88
+ const overSampled = snapshots
89
+ .filter((s) => (s.settings.logs?.headSamplingRate ?? 0) >= 1)
90
+ .map((s) => s.workerName);
91
+ ui.warn(`\n${overSampled.length} worker(s) at 100% sampling — eligible for tuning:\n ${overSampled.join('\n ')}`);
92
+ ui.info('\nRun `vibes infra observability set --sampling 0.1 --filter "vibes-*"` to drop ' +
93
+ 'customer-facing workers to 10% (recommended before accepting the new CF Workers ' +
94
+ 'Observability pricing).');
95
+ }
96
+ }
97
+ }
98
+ };
99
+ //# sourceMappingURL=infra-observability-status.cli-command.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability-status.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-status.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAkB,MAAM,4BAA4B,CAAC;AAQ5D,SAAS,UAAU,CAAC,CAAU;IAC7B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,IAAwB;IAC1C,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,GAAG,CAAC;IACnC,OAAO,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AACtC,CAAC;AAED,eAAe;IACd,KAAK,CAAC,OAAO,CAAC,KAA8B,EAAE,IAA6B;QAC1E,MAAM,OAAO,GAAG,MAAM,eAAe,EAAE,CAAC;QACxC,MAAM,EAAE,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAc,CAAC;QAE1D,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,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G;gBAC/F,IAAI,SAAS,CAAC,MAAM,mBAAmB,CACxC,CAAC;YACF,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;gBACd,MAAM,WAAW,GAAG,SAAS;qBAC3B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;qBAC5D,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;gBAC3B,EAAE,CAAC,IAAI,CACN,KAAK,WAAW,CAAC,MAAM,yDAAyD,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAC1G,CAAC;gBACF,EAAE,CAAC,IAAI,CACN,kFAAkF;oBACjF,kFAAkF;oBAClF,yBAAyB,CAC1B,CAAC;YACH,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAC"}
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ id: string;
3
+ kind: "cli/group";
4
+ name: string;
5
+ description: string;
6
+ parent: string;
7
+ surfaces: string[];
8
+ hardware: string[];
9
+ enabled: true;
10
+ };
11
+ export default _default;
12
+ //# sourceMappingURL=infra-observability.cli-group.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability.cli-group.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;AAEA,wBASG"}
@@ -0,0 +1,12 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/runtime';
2
+ export default createRuntimeAsset({
3
+ id: 'infra-observability',
4
+ kind: 'cli/group',
5
+ name: 'observability',
6
+ description: 'Provider-agnostic observability config — sampling, logs, traces, exports',
7
+ parent: 'infra',
8
+ surfaces: ['cli'],
9
+ hardware: ['consumer', 'cloud'],
10
+ enabled: true
11
+ });
12
+ //# sourceMappingURL=infra-observability.cli-group.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-observability.cli-group.descriptor.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability.cli-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,qBAAqB;IACzB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,0EAA0E;IACvF,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ id: string;
3
+ kind: "cli/command";
4
+ name: string;
5
+ description: string;
6
+ group: string;
7
+ arguments: {
8
+ name: string;
9
+ description: string;
10
+ required: boolean;
11
+ variadic: boolean;
12
+ }[];
13
+ options: ({
14
+ flags: string;
15
+ description: string;
16
+ default?: undefined;
17
+ } | {
18
+ flags: string;
19
+ description: string;
20
+ default: string;
21
+ })[];
22
+ surfaces: string[];
23
+ hardware: string[];
24
+ enabled: true;
25
+ };
26
+ export default _default;
27
+ //# sourceMappingURL=infra-deploy.regenerate.cli-command.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-deploy.regenerate.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAiCG"}
@@ -0,0 +1,35 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/runtime';
2
+ export default createRuntimeAsset({
3
+ id: 'infra-deploy.regenerate',
4
+ kind: 'cli/command',
5
+ name: 'regenerate',
6
+ description: 'Regenerate wrangler.jsonc from deployment.config.ts for managed apps (or check for drift)',
7
+ group: 'infra-deploy',
8
+ arguments: [
9
+ {
10
+ name: 'path',
11
+ description: 'App directory (defaults to cwd; ignored when --all is set)',
12
+ required: false,
13
+ variadic: false
14
+ }
15
+ ],
16
+ options: [
17
+ {
18
+ flags: '--all',
19
+ description: 'Regenerate every managed app under <root> (defaults to cwd)'
20
+ },
21
+ {
22
+ flags: '--root <dir>',
23
+ description: 'Root directory to scan when --all is set (defaults to cwd)'
24
+ },
25
+ {
26
+ flags: '--check',
27
+ description: 'Read-only drift detection; exit 1 if any managed app is out of sync'
28
+ },
29
+ { flags: '-o, --output <format>', description: 'Output format (text|json)', default: 'text' }
30
+ ],
31
+ surfaces: ['cli'],
32
+ hardware: ['consumer', 'cloud'],
33
+ enabled: true
34
+ });
35
+ //# sourceMappingURL=infra-deploy.regenerate.cli-command.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-deploy.regenerate.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,yBAAyB;IAC7B,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,YAAY;IAClB,WAAW,EACV,2FAA2F;IAC5F,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;SACf;KACD;IACD,OAAO,EAAE;QACR;YACC,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,6DAA6D;SAC1E;QACD;YACC,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,4DAA4D;SACzE;QACD;YACC,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,qEAAqE;SAClF;QACD,EAAE,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,EAAE;KAC7F;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ execute(args: Record<string, unknown>, opts: Record<string, unknown>): Promise<void>;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=infra-deploy.regenerate.cli-command.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-deploy.regenerate.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts"],"names":[],"mappings":";kBAyCqB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD3F,wBA8DE"}
@@ -0,0 +1,99 @@
1
+ import { relative, resolve } from 'node:path';
2
+ import { getVibesRuntime } from '@vibesdotdev/runtime';
3
+ import { regenerateAll, regenerateApp, regenExitCode } from "../../regenerate.js";
4
+ function readString(v) {
5
+ return typeof v === 'string' && v.length > 0 ? v : undefined;
6
+ }
7
+ function readBoolean(v) {
8
+ return v === true || v === 'true';
9
+ }
10
+ function statusGlyph(status) {
11
+ switch (status) {
12
+ case 'unchanged':
13
+ return '·';
14
+ case 'updated':
15
+ return '✎';
16
+ case 'drift':
17
+ return '✗';
18
+ case 'skipped':
19
+ return '–';
20
+ case 'error':
21
+ return '!';
22
+ }
23
+ }
24
+ function summarize(results) {
25
+ const counts = {
26
+ unchanged: 0,
27
+ updated: 0,
28
+ drift: 0,
29
+ skipped: 0,
30
+ error: 0
31
+ };
32
+ for (const r of results)
33
+ counts[r.status] += 1;
34
+ return counts;
35
+ }
36
+ export default {
37
+ async execute(args, opts) {
38
+ const runtime = getVibesRuntime();
39
+ const ui = (await runtime.context('cli/ui'));
40
+ const all = readBoolean(opts.all);
41
+ const check = readBoolean(opts.check);
42
+ const output = readString(opts.output) ?? 'text';
43
+ const mode = check ? 'check' : 'write';
44
+ const results = [];
45
+ if (all) {
46
+ const root = resolve(readString(opts.root) ?? process.cwd());
47
+ const r = await regenerateAll(root, { mode });
48
+ results.push(...r);
49
+ }
50
+ else {
51
+ const path = readString(args.path) ?? process.cwd();
52
+ results.push(await regenerateApp(resolve(path), { mode }));
53
+ }
54
+ if (output === 'json') {
55
+ ui.json({
56
+ mode,
57
+ results: results.map((r) => ({
58
+ appId: r.appId,
59
+ appDir: relative(process.cwd(), r.appDir) || '.',
60
+ wranglerJsoncPath: relative(process.cwd(), r.wranglerJsoncPath),
61
+ status: r.status,
62
+ workerName: r.workerName,
63
+ reason: r.reason,
64
+ diff: r.diff
65
+ })),
66
+ summary: summarize(results)
67
+ });
68
+ }
69
+ else {
70
+ for (const r of results) {
71
+ const path = relative(process.cwd(), r.wranglerJsoncPath);
72
+ const glyph = statusGlyph(r.status);
73
+ const tail = r.status === 'drift'
74
+ ? ` (drift; run without --check to rewrite)`
75
+ : r.status === 'skipped'
76
+ ? ` (skipped: ${r.reason ?? 'not managed'})`
77
+ : r.status === 'error'
78
+ ? ` (error: ${r.reason ?? 'unknown'})`
79
+ : '';
80
+ ui.log(` ${glyph} ${r.appId.padEnd(20)} ${path}${tail}`);
81
+ if (r.status === 'drift' && r.diff) {
82
+ for (const line of r.diff.split('\n'))
83
+ ui.log(` ${line}`);
84
+ }
85
+ }
86
+ const counts = summarize(results);
87
+ const summary = Object.entries(counts)
88
+ .filter(([, n]) => n > 0)
89
+ .map(([k, n]) => `${n} ${k}`)
90
+ .join(', ');
91
+ if (summary)
92
+ ui.info(`Summary: ${summary} (mode=${mode})`);
93
+ }
94
+ const code = regenExitCode(results, mode);
95
+ if (code !== 0)
96
+ process.exitCode = code;
97
+ }
98
+ };
99
+ //# sourceMappingURL=infra-deploy.regenerate.cli-command.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-deploy.regenerate.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAoB,MAAM,qBAAqB,CAAC;AAEpG,SAAS,UAAU,CAAC,CAAU;IAC7B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC;AAED,SAAS,WAAW,CAAC,CAAU;IAC9B,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,MAAM,CAAC;AACnC,CAAC;AAED,SAAS,WAAW,CAAC,MAA6B;IACjD,QAAQ,MAAM,EAAE,CAAC;QAChB,KAAK,WAAW;YACf,OAAO,GAAG,CAAC;QACZ,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ,KAAK,OAAO;YACX,OAAO,GAAG,CAAC;QACZ,KAAK,SAAS;YACb,OAAO,GAAG,CAAC;QACZ,KAAK,OAAO;YACX,OAAO,GAAG,CAAC;IACb,CAAC;AACF,CAAC;AAED,SAAS,SAAS,CAAC,OAAsB;IACxC,MAAM,MAAM,GAA0C;QACrD,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,CAAC;KACR,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,OAAO;QAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,MAAM,CAAC;AACf,CAAC;AAED,eAAe;IACd,KAAK,CAAC,OAAO,CAAC,I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C,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;wBAAE,EAAE,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;gBAChE,CAAC;YACF,CAAC;YACD,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;YAClC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;iBACpC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;iBACxB,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;iBAC5B,IAAI,CAAC,IAAI,CAAC,CAAC;YACb,IAAI,OAAO;gBAAE,EAAE,CAAC,IAAI,CAAC,YAAY,OAAO,UAAU,IAAI,GAAG,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC1C,IAAI,IAAI,KAAK,CAAC;YAAE,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,CAAC;CACD,CAAC"}
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ id: string;
3
+ kind: "cli/command";
4
+ name: string;
5
+ description: string;
6
+ group: string;
7
+ options: ({
8
+ flags: string;
9
+ description: string;
10
+ default?: undefined;
11
+ } | {
12
+ flags: string;
13
+ description: string;
14
+ default: string;
15
+ })[];
16
+ surfaces: string[];
17
+ hardware: string[];
18
+ enabled: true;
19
+ };
20
+ export default _default;
21
+ //# sourceMappingURL=infra-rum-status.cli-command.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-rum-status.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/rum/infra-rum-status.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,wBAwBG"}
@@ -0,0 +1,27 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/runtime';
2
+ export default createRuntimeAsset({
3
+ id: 'infra-rum.status',
4
+ kind: 'cli/command',
5
+ name: 'status',
6
+ description: 'List configured RUM sites + injection mode across providers',
7
+ group: 'infra-rum',
8
+ options: [
9
+ {
10
+ flags: '--provider <id>',
11
+ description: 'Provider impl id (default: cloudflare-web-analytics)'
12
+ },
13
+ {
14
+ flags: '--environment <name>',
15
+ description: 'Vibes environment for secret resolution (local|dev|staging|production)'
16
+ },
17
+ {
18
+ flags: '-o, --output <format>',
19
+ description: 'Output format (text|json)',
20
+ default: 'text'
21
+ }
22
+ ],
23
+ surfaces: ['cli'],
24
+ hardware: ['consumer', 'cloud'],
25
+ enabled: true
26
+ });
27
+ //# sourceMappingURL=infra-rum-status.cli-command.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-rum-status.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/rum/infra-rum-status.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,sDAAsD;SACnE;QACD;YACC,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,wEAAwE;SACrF;QACD;YACC,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,MAAM;SACf;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}