@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.
- package/README.md +125 -0
- package/SPEC.md +181 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +39 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +61 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +13 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +109 -0
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +36 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +11 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +67 -0
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +21 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +27 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +12 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +74 -0
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -0
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +12 -0
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -0
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +21 -0
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +28 -0
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -0
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +18 -0
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/audit/infra-audit.cli-command.impl.js +219 -0
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.js +12 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -0
- package/dist/cli/infra.cli-group.descriptor.d.ts +11 -0
- package/dist/cli/infra.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/infra.cli-group.descriptor.js +11 -0
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +34 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +29 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +5 -0
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +110 -0
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -0
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +39 -0
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +64 -0
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -0
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +5 -0
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/logs/infra-logs.cli-command.impl.js +323 -0
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -0
- package/dist/cli/logs/stream-worker-tail.d.ts +62 -0
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -0
- package/dist/cli/logs/stream-worker-tail.js +165 -0
- package/dist/cli/logs/stream-worker-tail.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +27 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +75 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +5 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +383 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js +12 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +25 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +57 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +17 -0
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js +152 -0
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +21 -0
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +35 -0
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -0
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +17 -0
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js +99 -0
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js +12 -0
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +27 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +35 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +5 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +99 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +21 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +27 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +12 -0
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js +88 -0
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js +12 -0
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +27 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +49 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +5 -0
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js +272 -0
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -0
- package/dist/cli/shared/discover-deployments.d.ts +41 -0
- package/dist/cli/shared/discover-deployments.d.ts.map +1 -0
- package/dist/cli/shared/discover-deployments.js +95 -0
- package/dist/cli/shared/discover-deployments.js.map +1 -0
- package/dist/config-loader.d.ts +24 -0
- package/dist/config-loader.d.ts.map +1 -0
- package/dist/config-loader.js +135 -0
- package/dist/config-loader.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/infra-deploy.plugin.d.ts +3 -0
- package/dist/infra-deploy.plugin.d.ts.map +1 -0
- package/dist/infra-deploy.plugin.js +59 -0
- package/dist/infra-deploy.plugin.js.map +1 -0
- package/dist/regenerate.d.ts +55 -0
- package/dist/regenerate.d.ts.map +1 -0
- package/dist/regenerate.js +206 -0
- package/dist/regenerate.js.map +1 -0
- package/package.json +85 -0
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +61 -0
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +131 -0
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +36 -0
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +75 -0
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +27 -0
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +88 -0
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +12 -0
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +28 -0
- package/src/cli/audit/infra-audit.cli-command.impl.ts +293 -0
- package/src/cli/infra-deploy.cli-group.descriptor.ts +12 -0
- package/src/cli/infra.cli-group.descriptor.ts +11 -0
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +29 -0
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +125 -0
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +65 -0
- package/src/cli/logs/infra-logs.cli-command.impl.ts +354 -0
- package/src/cli/logs/stream-worker-tail.ts +202 -0
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +75 -0
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +474 -0
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +12 -0
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +57 -0
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +173 -0
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +35 -0
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +124 -0
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +12 -0
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +36 -0
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +103 -0
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +27 -0
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +112 -0
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +12 -0
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +49 -0
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +330 -0
- package/src/cli/shared/discover-deployments.ts +127 -0
- package/src/config-loader.ts +179 -0
- package/src/index.ts +11 -0
- package/src/infra-deploy.plugin.ts +83 -0
- package/src/regenerate.ts +230 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes infra alerts delete <providerId>`
|
|
3
|
+
*
|
|
4
|
+
* Deletes a policy on the chosen provider. Requires explicit
|
|
5
|
+
* confirmation unless `--yes` is passed.
|
|
6
|
+
*/
|
|
7
|
+
import { getVibesRuntime } from '@vibesdotdev/runtime';
|
|
8
|
+
import { requestCLIExit } from '@vibesdotdev/cli/providers';
|
|
9
|
+
function readString(v) {
|
|
10
|
+
return typeof v === 'string' && v.length > 0 ? v : undefined;
|
|
11
|
+
}
|
|
12
|
+
function readBoolean(v) {
|
|
13
|
+
return v === true || v === 'true';
|
|
14
|
+
}
|
|
15
|
+
export default {
|
|
16
|
+
async execute(args, opts) {
|
|
17
|
+
const runtime = await getVibesRuntime();
|
|
18
|
+
const ui = (await runtime.context('cli/ui'));
|
|
19
|
+
const providerId = readString(args.providerId);
|
|
20
|
+
if (!providerId) {
|
|
21
|
+
ui.error('A providerId is required. List policies with `vibes infra alerts list` first.');
|
|
22
|
+
requestCLIExit(1);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const providerFilter = readString(opts.provider);
|
|
26
|
+
const yes = readBoolean(opts.yes);
|
|
27
|
+
const output = readString(opts.output) ?? 'text';
|
|
28
|
+
if (!runtime.hasKind('infra/alerts')) {
|
|
29
|
+
ui.error('infra/alerts kind not registered.');
|
|
30
|
+
requestCLIExit(1);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const descriptors = runtime.assets('infra/alerts').descriptors();
|
|
34
|
+
const target = providerFilter
|
|
35
|
+
? descriptors.find((d) => d.adapter === providerFilter || d.id === providerFilter)
|
|
36
|
+
: descriptors[0];
|
|
37
|
+
if (!target) {
|
|
38
|
+
ui.error('No matching alerts provider.');
|
|
39
|
+
requestCLIExit(1);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (!yes) {
|
|
43
|
+
ui.warn(`About to delete alert policy "${providerId}" on ${target.adapter}. ` +
|
|
44
|
+
'Re-run with --yes to confirm.');
|
|
45
|
+
requestCLIExit(0);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
const impl = (await runtime
|
|
50
|
+
.query('infra/alerts')
|
|
51
|
+
.withId(target.id)
|
|
52
|
+
.resolve());
|
|
53
|
+
await impl.deletePolicy(providerId);
|
|
54
|
+
if (output === 'json') {
|
|
55
|
+
ui.json({ deleted: providerId, provider: target.adapter });
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
ui.success(`Deleted policy ${providerId} on ${target.adapter}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
ui.error(`Delete failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
63
|
+
requestCLIExit(1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=infra-alerts-delete.cli-command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts-delete.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts-delete.cli-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CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC/E,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-alerts-list.cli-command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts-list.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts-list.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-alerts.list',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'list',
|
|
6
|
+
description: 'List configured alert policies across providers',
|
|
7
|
+
group: 'infra-alerts',
|
|
8
|
+
options: [
|
|
9
|
+
{
|
|
10
|
+
flags: '--provider <id>',
|
|
11
|
+
description: 'Restrict to a single provider impl id (e.g. cloudflare-alerts)'
|
|
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-alerts-list.cli-command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts-list.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,mBAAmB;IACvB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,gEAAgE;SAC7E;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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes infra alerts list`
|
|
3
|
+
*
|
|
4
|
+
* Walks all registered `infra/alerts` implementations and prints the
|
|
5
|
+
* combined set of live policies on each provider. `--output json`
|
|
6
|
+
* returns a structured payload for piping; default is a table.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: {
|
|
9
|
+
execute(_args: Record<string, unknown>, opts: Record<string, unknown>): Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=infra-alerts-list.cli-command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts-list.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts-list.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;mBAkBmB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD5F,wBAgEE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes infra alerts list`
|
|
3
|
+
*
|
|
4
|
+
* Walks all registered `infra/alerts` implementations and prints the
|
|
5
|
+
* combined set of live policies on each provider. `--output json`
|
|
6
|
+
* returns a structured payload for piping; default is a table.
|
|
7
|
+
*/
|
|
8
|
+
import { getVibesRuntime } from '@vibesdotdev/runtime';
|
|
9
|
+
import { requestCLIExit } from '@vibesdotdev/cli/providers';
|
|
10
|
+
function readString(v) {
|
|
11
|
+
return typeof v === 'string' && v.length > 0 ? v : undefined;
|
|
12
|
+
}
|
|
13
|
+
export default {
|
|
14
|
+
async execute(_args, opts) {
|
|
15
|
+
const runtime = await getVibesRuntime();
|
|
16
|
+
const ui = (await runtime.context('cli/ui'));
|
|
17
|
+
const providerFilter = readString(opts.provider);
|
|
18
|
+
const output = readString(opts.output) ?? 'text';
|
|
19
|
+
if (!runtime.hasKind('infra/alerts')) {
|
|
20
|
+
ui.warn('No infra/alerts kind registered. Ensure infra-cloudflare or sibling provider plugin is loaded.');
|
|
21
|
+
requestCLIExit(0);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const descriptors = runtime.assets('infra/alerts').descriptors();
|
|
25
|
+
if (descriptors.length === 0) {
|
|
26
|
+
if (output === 'json')
|
|
27
|
+
ui.json([]);
|
|
28
|
+
else
|
|
29
|
+
ui.info('No infra/alerts descriptors registered. Add a provider plugin (e.g. infra-cloudflare).');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const results = [];
|
|
33
|
+
for (const d of descriptors) {
|
|
34
|
+
if (providerFilter && d.adapter !== providerFilter && d.id !== providerFilter)
|
|
35
|
+
continue;
|
|
36
|
+
try {
|
|
37
|
+
const impl = (await runtime
|
|
38
|
+
.query('infra/alerts')
|
|
39
|
+
.withId(d.id)
|
|
40
|
+
.resolve());
|
|
41
|
+
const policies = await impl.listPolicies();
|
|
42
|
+
results.push({ providerId: d.adapter, descriptorId: d.id, policies });
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
results.push({
|
|
46
|
+
providerId: d.adapter,
|
|
47
|
+
descriptorId: d.id,
|
|
48
|
+
policies: [],
|
|
49
|
+
error: err instanceof Error ? err.message : String(err)
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (output === 'json') {
|
|
54
|
+
ui.json(results);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
for (const r of results) {
|
|
58
|
+
ui.info(`\n[${r.providerId}] (${r.descriptorId})`);
|
|
59
|
+
if (r.error) {
|
|
60
|
+
ui.error(` ${r.error}`);
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (r.policies.length === 0) {
|
|
64
|
+
ui.info(' (no policies configured)');
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
for (const p of r.policies) {
|
|
68
|
+
const mech = p.mechanisms.map((m) => `${m.kind}:${m.target}`).join(', ');
|
|
69
|
+
ui.info(` ${(p.enabled ? '✓' : '✗')} ${p.type.padEnd(12)} ${p.name.padEnd(40)} threshold=${p.threshold} → ${mech}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=infra-alerts-list.cli-command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts-list.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts-list.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAkB,MAAM,4BAA4B,CAAC;AAG5E,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;AASD,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,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;QAEjD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,EAAE,CAAC,IAAI,CAAC,gGAAgG,CAAC,CAAC;YAC1G,cAAc,CAAC,CAAC,CAAC,CAAC;YAClB,OAAO;QACR,CAAC;QAED,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAA6B,CAAC;QAC5F,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9B,IAAI,MAAM,KAAK,MAAM;gBAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,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AAI,CAAC,CAAC,KAAK,EAAE,CAAC;gBACb,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;gBACzB,SAAS;YACV,CAAC;YACD,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC7B,EAAE,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;gBACtC,SAAS;YACV,CAAC;YACD,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAC5B,MAAM,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzE,EAAE,CAAC,IAAI,CACN,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,SAAS,MAAM,IAAI,EAAE,CAC3G,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-alerts.cli-group.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts.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-alerts',
|
|
4
|
+
kind: 'cli/group',
|
|
5
|
+
name: 'alerts',
|
|
6
|
+
description: 'Provider-agnostic alerting / notification policies (CF Notifications, DO Monitoring, …)',
|
|
7
|
+
parent: 'infra',
|
|
8
|
+
surfaces: ['cli'],
|
|
9
|
+
hardware: ['consumer', 'cloud'],
|
|
10
|
+
enabled: true
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=infra-alerts.cli-group.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-alerts.cli-group.descriptor.js","sourceRoot":"","sources":["../../../src/cli/alerts/infra-alerts.cli-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yFAAyF;IACtG,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,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-audit.cli-command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-audit.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/audit/infra-audit.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,wBAyBG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/runtime';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'infra-audit',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'audit',
|
|
6
|
+
description: 'Read-only sweep: workers/logs/alerts/RUM status across all registered providers',
|
|
7
|
+
group: 'infra',
|
|
8
|
+
options: [
|
|
9
|
+
{
|
|
10
|
+
flags: '--provider <id>',
|
|
11
|
+
description: 'Restrict to a single provider impl id'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
flags: '--include <kinds>',
|
|
15
|
+
description: 'Comma-separated subset of kinds to audit (alerts,logs,observability,workers,rum)',
|
|
16
|
+
default: 'alerts,logs,observability'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
flags: '-o, --output <format>',
|
|
20
|
+
description: 'Output format (text|json)',
|
|
21
|
+
default: 'text'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
surfaces: ['cli'],
|
|
25
|
+
hardware: ['consumer', 'cloud'],
|
|
26
|
+
enabled: true
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=infra-audit.cli-command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-audit.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/audit/infra-audit.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iFAAiF;IAC9F,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,uCAAuC;SACpD;QACD;YACC,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,kFAAkF;YAC/F,OAAO,EAAE,2BAA2B;SACpC;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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes infra audit`
|
|
3
|
+
*
|
|
4
|
+
* Composes existing infra/* implementations into one human-readable
|
|
5
|
+
* report. Mirrors the manual CF dashboard sweep we keep doing:
|
|
6
|
+
*
|
|
7
|
+
* - infra/alerts: policies configured (or "GAP" if none)
|
|
8
|
+
* - infra/logs: log sources, retention, analytics-snapshot
|
|
9
|
+
* - (future: infra/observability, infra/rum, infra/worker stats)
|
|
10
|
+
*
|
|
11
|
+
* Read-only. Never modifies provider state. `--output json` emits a
|
|
12
|
+
* structured payload for piping into ops dashboards.
|
|
13
|
+
*/
|
|
14
|
+
declare const _default: {
|
|
15
|
+
execute(_args: Record<string, unknown>, opts: Record<string, unknown>): Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=infra-audit.cli-command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-audit.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/audit/infra-audit.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;mBAgLmB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD5F,wBAyGE"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibes infra audit`
|
|
3
|
+
*
|
|
4
|
+
* Composes existing infra/* implementations into one human-readable
|
|
5
|
+
* report. Mirrors the manual CF dashboard sweep we keep doing:
|
|
6
|
+
*
|
|
7
|
+
* - infra/alerts: policies configured (or "GAP" if none)
|
|
8
|
+
* - infra/logs: log sources, retention, analytics-snapshot
|
|
9
|
+
* - (future: infra/observability, infra/rum, infra/worker stats)
|
|
10
|
+
*
|
|
11
|
+
* Read-only. Never modifies provider state. `--output json` emits a
|
|
12
|
+
* structured payload for piping into ops dashboards.
|
|
13
|
+
*/
|
|
14
|
+
import { getVibesRuntime } from '@vibesdotdev/runtime';
|
|
15
|
+
import {} from '@vibesdotdev/cli/providers';
|
|
16
|
+
function readString(v) {
|
|
17
|
+
return typeof v === 'string' && v.length > 0 ? v : undefined;
|
|
18
|
+
}
|
|
19
|
+
async function gatherAlerts(runtime) {
|
|
20
|
+
const section = { providers: [], gaps: [] };
|
|
21
|
+
if (!runtime.hasKind('infra/alerts')) {
|
|
22
|
+
section.gaps.push('infra/alerts kind not registered — no provider plugin loaded for alerting.');
|
|
23
|
+
return section;
|
|
24
|
+
}
|
|
25
|
+
const descriptors = runtime.assets('infra/alerts').descriptors();
|
|
26
|
+
if (descriptors.length === 0) {
|
|
27
|
+
section.gaps.push('No infra/alerts descriptors registered.');
|
|
28
|
+
return section;
|
|
29
|
+
}
|
|
30
|
+
for (const d of descriptors) {
|
|
31
|
+
try {
|
|
32
|
+
const impl = (await runtime
|
|
33
|
+
.query('infra/alerts')
|
|
34
|
+
.withId(d.id)
|
|
35
|
+
.resolve());
|
|
36
|
+
const policies = await impl.listPolicies();
|
|
37
|
+
section.providers.push({ descriptorId: d.id, adapter: d.adapter, policies });
|
|
38
|
+
if (policies.length === 0) {
|
|
39
|
+
section.gaps.push(`${d.adapter}: zero policies configured. Budget/usage/error-rate alerts are not in place.`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
section.providers.push({
|
|
44
|
+
descriptorId: d.id,
|
|
45
|
+
adapter: d.adapter,
|
|
46
|
+
policies: [],
|
|
47
|
+
error: err instanceof Error ? err.message : String(err)
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return section;
|
|
52
|
+
}
|
|
53
|
+
async function gatherObservability(runtime) {
|
|
54
|
+
const section = { providers: [], gaps: [] };
|
|
55
|
+
if (!runtime.hasKind('infra/observability')) {
|
|
56
|
+
section.gaps.push('infra/observability kind not registered — no provider plugin loaded.');
|
|
57
|
+
return section;
|
|
58
|
+
}
|
|
59
|
+
const descriptors = runtime
|
|
60
|
+
.assets('infra/observability')
|
|
61
|
+
.descriptors();
|
|
62
|
+
for (const d of descriptors) {
|
|
63
|
+
try {
|
|
64
|
+
const impl = (await runtime
|
|
65
|
+
.query('infra/observability')
|
|
66
|
+
.withId(d.id)
|
|
67
|
+
.resolve());
|
|
68
|
+
const snapshots = (await impl.getStatus({ kind: 'account-wide' }));
|
|
69
|
+
const samples = snapshots
|
|
70
|
+
.map((s) => s.settings.logs?.headSamplingRate)
|
|
71
|
+
.filter((r) => typeof r === 'number');
|
|
72
|
+
const overSampled = snapshots
|
|
73
|
+
.filter((s) => (s.settings.logs?.headSamplingRate ?? 0) >= 1)
|
|
74
|
+
.map((s) => s.workerName);
|
|
75
|
+
section.providers.push({
|
|
76
|
+
descriptorId: d.id,
|
|
77
|
+
adapter: d.adapter,
|
|
78
|
+
workerCount: snapshots.length,
|
|
79
|
+
minSampling: samples.length ? Math.min(...samples) : undefined,
|
|
80
|
+
maxSampling: samples.length ? Math.max(...samples) : undefined,
|
|
81
|
+
avgSampling: samples.length ? samples.reduce((a, b) => a + b, 0) / samples.length : undefined,
|
|
82
|
+
overSampledWorkers: overSampled
|
|
83
|
+
});
|
|
84
|
+
if (overSampled.length > 0) {
|
|
85
|
+
section.gaps.push(`${d.adapter}: ${overSampled.length} worker(s) at 100% log sampling — runaway-cost risk under the new CF Observability metering.`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
section.providers.push({
|
|
90
|
+
descriptorId: d.id,
|
|
91
|
+
adapter: d.adapter,
|
|
92
|
+
workerCount: 0,
|
|
93
|
+
overSampledWorkers: [],
|
|
94
|
+
error: err instanceof Error ? err.message : String(err)
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return section;
|
|
99
|
+
}
|
|
100
|
+
async function gatherLogs(runtime) {
|
|
101
|
+
const section = { providers: [] };
|
|
102
|
+
if (!runtime.hasKind('infra/logs'))
|
|
103
|
+
return section;
|
|
104
|
+
const descriptors = runtime.assets('infra/logs').descriptors();
|
|
105
|
+
for (const d of descriptors) {
|
|
106
|
+
try {
|
|
107
|
+
await runtime.query('infra/logs').withId(d.id).resolve(); // probe resolves
|
|
108
|
+
section.providers.push({
|
|
109
|
+
descriptorId: d.id,
|
|
110
|
+
adapter: d.adapter,
|
|
111
|
+
sources: d.sources ?? [],
|
|
112
|
+
retention: d.retention,
|
|
113
|
+
alertsConfigured: (d.alerts ?? []).length
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
section.providers.push({
|
|
118
|
+
descriptorId: d.id,
|
|
119
|
+
adapter: d.adapter,
|
|
120
|
+
sources: [],
|
|
121
|
+
alertsConfigured: 0,
|
|
122
|
+
error: err instanceof Error ? err.message : String(err)
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return section;
|
|
127
|
+
}
|
|
128
|
+
export default {
|
|
129
|
+
async execute(_args, opts) {
|
|
130
|
+
const runtime = await getVibesRuntime();
|
|
131
|
+
const ui = (await runtime.context('cli/ui'));
|
|
132
|
+
const include = (readString(opts.include) ?? 'alerts,logs,observability')
|
|
133
|
+
.split(',')
|
|
134
|
+
.map((s) => s.trim());
|
|
135
|
+
const output = readString(opts.output) ?? 'text';
|
|
136
|
+
const report = { timestamp: new Date().toISOString(), notes: [] };
|
|
137
|
+
if (include.includes('alerts'))
|
|
138
|
+
report.alerts = await gatherAlerts(runtime);
|
|
139
|
+
if (include.includes('logs'))
|
|
140
|
+
report.logs = await gatherLogs(runtime);
|
|
141
|
+
if (include.includes('observability'))
|
|
142
|
+
report.observability = await gatherObservability(runtime);
|
|
143
|
+
if (include.includes('rum')) {
|
|
144
|
+
report.notes.push('infra/rum kind is not implemented yet (Phase 3 of design doc).');
|
|
145
|
+
}
|
|
146
|
+
if (include.includes('workers')) {
|
|
147
|
+
report.notes.push('Workers fleet audit not implemented yet — use `vibes infra deploy list` for the deployed-app inventory and CF dashboard for live request counts.');
|
|
148
|
+
}
|
|
149
|
+
if (output === 'json') {
|
|
150
|
+
ui.json(report);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
ui.info(`=== Infra audit (${report.timestamp}) ===\n`);
|
|
154
|
+
if (report.alerts) {
|
|
155
|
+
ui.info('## Alerts');
|
|
156
|
+
for (const p of report.alerts.providers) {
|
|
157
|
+
ui.info(`\n[${p.adapter}] (${p.descriptorId})`);
|
|
158
|
+
if (p.error) {
|
|
159
|
+
ui.error(` ${p.error}`);
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (p.policies.length === 0) {
|
|
163
|
+
ui.warn(' (no policies — billing / usage / error-rate alerts are off)');
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
for (const policy of p.policies) {
|
|
167
|
+
const mech = policy.mechanisms.map((m) => `${m.kind}:${m.target}`).join(', ');
|
|
168
|
+
ui.info(` ${policy.enabled ? '✓' : '✗'} ${policy.type.padEnd(12)} ${policy.name.padEnd(40)} threshold=${policy.threshold} → ${mech}`);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (report.alerts.gaps.length > 0) {
|
|
172
|
+
ui.info('\nGaps:');
|
|
173
|
+
for (const gap of report.alerts.gaps)
|
|
174
|
+
ui.warn(` • ${gap}`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (report.logs) {
|
|
178
|
+
ui.info('\n## Logs');
|
|
179
|
+
for (const p of report.logs.providers) {
|
|
180
|
+
ui.info(`\n[${p.adapter}] (${p.descriptorId})`);
|
|
181
|
+
if (p.error) {
|
|
182
|
+
ui.error(` ${p.error}`);
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
ui.info(` sources=${p.sources.length} alerts=${p.alertsConfigured}`);
|
|
186
|
+
if (p.retention) {
|
|
187
|
+
ui.info(` retention: hot=${p.retention.hotDays}d cold=${p.retention.coldDays}d`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (report.observability) {
|
|
192
|
+
ui.info('\n## Observability');
|
|
193
|
+
const fmt = (r) => r === undefined ? '—' : `${(r * 100).toFixed(0)}%`;
|
|
194
|
+
for (const p of report.observability.providers) {
|
|
195
|
+
ui.info(`\n[${p.adapter}] (${p.descriptorId})`);
|
|
196
|
+
if (p.error) {
|
|
197
|
+
ui.error(` ${p.error}`);
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
ui.info(` workers=${p.workerCount} sampling min=${fmt(p.minSampling)} avg=${fmt(p.avgSampling)} max=${fmt(p.maxSampling)}`);
|
|
201
|
+
if (p.overSampledWorkers.length > 0) {
|
|
202
|
+
ui.warn(` ${p.overSampledWorkers.length} worker(s) at 100% sampling — tune with ` +
|
|
203
|
+
'`vibes infra observability set --sampling 0.1 --filter "vibes-*"`');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if (report.observability.gaps.length > 0) {
|
|
207
|
+
ui.info('\nGaps:');
|
|
208
|
+
for (const gap of report.observability.gaps)
|
|
209
|
+
ui.warn(` • ${gap}`);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (report.notes.length > 0) {
|
|
213
|
+
ui.info('\n## Notes');
|
|
214
|
+
for (const note of report.notes)
|
|
215
|
+
ui.info(` • ${note}`);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=infra-audit.cli-command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-audit.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/audit/infra-audit.cli-command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAkB,MAAM,4BAA4B,CAAC;AAW5D,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;AA6CD,KAAK,UAAU,YAAY,CAAC,OAA2C;IACtE,MAAM,OAAO,GAAkB,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,4EAA4E,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IAChB,CAAC;IACD,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAA6B,CAAC;IAC5F,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO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AK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;oBACzB,SAAS;gBACV,CAAC;gBACD,EAAE,CAAC,IAAI,CACN,aAAa,CAAC,CAAC,WAAW,kBAAkB,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CACpH,CAAC;gBACF,IAAI,CAAC,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrC,EAAE,CAAC,IAAI,CACN,KAAK,CAAC,CAAC,kBAAkB,CAAC,MAAM,0CAA0C;wBACzE,mEAAmE,CACpE,CAAC;gBACH,CAAC;YACF,CAAC;YACD,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1C,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI;oBAAE,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YACpE,CAAC;QACF,CAAC;QAED,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACtB,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK;gBAAE,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACzD,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-deploy.cli-group.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-deploy.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../src/cli/infra-deploy.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-deploy',
|
|
4
|
+
kind: 'cli/group',
|
|
5
|
+
name: 'deploy',
|
|
6
|
+
description: 'Build and deploy apps declared in deployment.config.ts',
|
|
7
|
+
parent: 'infra',
|
|
8
|
+
surfaces: ['cli'],
|
|
9
|
+
hardware: ['consumer', 'cloud'],
|
|
10
|
+
enabled: true
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=infra-deploy.cli-group.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-deploy.cli-group.descriptor.js","sourceRoot":"","sources":["../../src/cli/infra-deploy.cli-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,wDAAwD;IACrE,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 @@
|
|
|
1
|
+
{"version":3,"file":"infra.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../src/cli/infra.cli-group.descriptor.ts"],"names":[],"mappings":";;;;;;;;;AAEA,wBAQG"}
|