@autonoma-io/a6s 5.2.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/binaries/a6s-darwin-arm64 +0 -0
- package/bin/binaries/a6s-darwin-x64 +0 -0
- package/bin/binaries/a6s-linux-arm64 +0 -0
- package/bin/binaries/a6s-linux-x64 +0 -0
- package/bin/binaries/a6s-win32-x64.exe +0 -0
- package/dist/go-bridge.d.ts +14 -0
- package/dist/go-bridge.d.ts.map +1 -0
- package/dist/go-bridge.js +92 -0
- package/dist/go-bridge.js.map +1 -0
- package/dist/go-verbs.generated.d.ts +2 -0
- package/dist/go-verbs.generated.d.ts.map +1 -0
- package/dist/go-verbs.generated.js +46 -0
- package/dist/go-verbs.generated.js.map +1 -0
- package/dist/index.js +79 -230
- package/dist/index.js.map +1 -1
- package/dist/interactive.d.ts +9 -2
- package/dist/interactive.d.ts.map +1 -1
- package/dist/interactive.js +38 -160
- package/dist/interactive.js.map +1 -1
- package/dist/nlp/command-map.d.ts +33 -0
- package/dist/nlp/command-map.d.ts.map +1 -0
- package/dist/nlp/command-map.js +275 -0
- package/dist/nlp/command-map.js.map +1 -0
- package/dist/nlp/processor.d.ts +10 -0
- package/dist/nlp/processor.d.ts.map +1 -1
- package/dist/nlp/processor.js +81 -94
- package/dist/nlp/processor.js.map +1 -1
- package/package.json +6 -30
- package/dist/commands/ai-learning-demo.d.ts +0 -3
- package/dist/commands/ai-learning-demo.d.ts.map +0 -1
- package/dist/commands/ai-learning-demo.js +0 -176
- package/dist/commands/ai-learning-demo.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -33
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/auth.js +0 -603
- package/dist/commands/auth.js.map +0 -1
- package/dist/modules/ab-testing.d.ts +0 -16
- package/dist/modules/ab-testing.d.ts.map +0 -1
- package/dist/modules/ab-testing.js +0 -375
- package/dist/modules/ab-testing.js.map +0 -1
- package/dist/modules/ai-orchestration.d.ts +0 -70
- package/dist/modules/ai-orchestration.d.ts.map +0 -1
- package/dist/modules/ai-orchestration.js +0 -546
- package/dist/modules/ai-orchestration.js.map +0 -1
- package/dist/modules/auth-access-control.d.ts +0 -118
- package/dist/modules/auth-access-control.d.ts.map +0 -1
- package/dist/modules/auth-access-control.js +0 -832
- package/dist/modules/auth-access-control.js.map +0 -1
- package/dist/modules/database.d.ts +0 -14
- package/dist/modules/database.d.ts.map +0 -1
- package/dist/modules/database.js +0 -253
- package/dist/modules/database.js.map +0 -1
- package/dist/modules/edge-computing.d.ts +0 -130
- package/dist/modules/edge-computing.d.ts.map +0 -1
- package/dist/modules/edge-computing.js +0 -656
- package/dist/modules/edge-computing.js.map +0 -1
- package/dist/modules/load-testing.d.ts +0 -21
- package/dist/modules/load-testing.d.ts.map +0 -1
- package/dist/modules/load-testing.js +0 -372
- package/dist/modules/load-testing.js.map +0 -1
- package/dist/modules/monitoring.d.ts +0 -18
- package/dist/modules/monitoring.d.ts.map +0 -1
- package/dist/modules/monitoring.js +0 -375
- package/dist/modules/monitoring.js.map +0 -1
- package/dist/modules/onboarding.d.ts +0 -20
- package/dist/modules/onboarding.d.ts.map +0 -1
- package/dist/modules/onboarding.js +0 -455
- package/dist/modules/onboarding.js.map +0 -1
- package/dist/utils/db-client.d.ts +0 -35
- package/dist/utils/db-client.d.ts.map +0 -1
- package/dist/utils/db-client.js +0 -132
- package/dist/utils/db-client.js.map +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Name Node would give the binary for this platform. */
|
|
2
|
+
export declare function goBinaryName(): string;
|
|
3
|
+
/**
|
|
4
|
+
* Absolute path to the bundled binary, or null when this platform has none.
|
|
5
|
+
*
|
|
6
|
+
* The executable bit is repaired here because npm 12 blocks install scripts by
|
|
7
|
+
* default, so scripts/chmod-binaries.js does not run on a normal install.
|
|
8
|
+
*/
|
|
9
|
+
export declare function goBinaryPath(): string | null;
|
|
10
|
+
/** Message for the case where no binary shipped for this platform. */
|
|
11
|
+
export declare function missingBinaryMessage(verb: string): string;
|
|
12
|
+
/** Run the Go CLI with `args`, inheriting stdio. Returns its exit code. */
|
|
13
|
+
export declare function runGo(args: string[]): number;
|
|
14
|
+
//# sourceMappingURL=go-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-bridge.d.ts","sourceRoot":"","sources":["../src/go-bridge.ts"],"names":[],"mappings":"AAUA,yDAAyD;AACzD,wBAAgB,YAAY,IAAI,MAAM,CAGrC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAY5C;AAED,sEAAsE;AACtE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOzD;AAED,2EAA2E;AAC3E,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAQ5C"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.goBinaryName = goBinaryName;
|
|
37
|
+
exports.goBinaryPath = goBinaryPath;
|
|
38
|
+
exports.missingBinaryMessage = missingBinaryMessage;
|
|
39
|
+
exports.runGo = runGo;
|
|
40
|
+
/**
|
|
41
|
+
* Locating and running the bundled Go CLI.
|
|
42
|
+
*
|
|
43
|
+
* Kept dependency-free on purpose: index.ts requires this before its heavy
|
|
44
|
+
* imports so the Go path pays nothing for compromise/natural/inquirer.
|
|
45
|
+
*/
|
|
46
|
+
const path = __importStar(require("path"));
|
|
47
|
+
const fs = __importStar(require("fs"));
|
|
48
|
+
const cp = __importStar(require("child_process"));
|
|
49
|
+
/** Name Node would give the binary for this platform. */
|
|
50
|
+
function goBinaryName() {
|
|
51
|
+
const ext = process.platform === 'win32' ? '.exe' : '';
|
|
52
|
+
return `a6s-${process.platform}-${process.arch}${ext}`;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Absolute path to the bundled binary, or null when this platform has none.
|
|
56
|
+
*
|
|
57
|
+
* The executable bit is repaired here because npm 12 blocks install scripts by
|
|
58
|
+
* default, so scripts/chmod-binaries.js does not run on a normal install.
|
|
59
|
+
*/
|
|
60
|
+
function goBinaryPath() {
|
|
61
|
+
const p = path.join(__dirname, '..', 'bin', 'binaries', goBinaryName());
|
|
62
|
+
if (!fs.existsSync(p))
|
|
63
|
+
return null;
|
|
64
|
+
try {
|
|
65
|
+
const st = fs.statSync(p);
|
|
66
|
+
if (process.platform !== 'win32' && (st.mode & 0o111) === 0) {
|
|
67
|
+
fs.chmodSync(p, 0o755);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
/* tolerate; spawn fails loudly if it matters */
|
|
72
|
+
}
|
|
73
|
+
return p;
|
|
74
|
+
}
|
|
75
|
+
/** Message for the case where no binary shipped for this platform. */
|
|
76
|
+
function missingBinaryMessage(verb) {
|
|
77
|
+
return (`[a6s] No bundled binary for ${process.platform}-${process.arch} ` +
|
|
78
|
+
`(expected ${path.join(__dirname, '..', 'bin', 'binaries', goBinaryName())}). ` +
|
|
79
|
+
`\`${verb}\` is implemented only in the Go CLI; reinstall ` +
|
|
80
|
+
`\`@autonoma-io/a6s\` or build from source.`);
|
|
81
|
+
}
|
|
82
|
+
/** Run the Go CLI with `args`, inheriting stdio. Returns its exit code. */
|
|
83
|
+
function runGo(args) {
|
|
84
|
+
const bin = goBinaryPath();
|
|
85
|
+
if (!bin) {
|
|
86
|
+
console.error(missingBinaryMessage(args[0] ?? 'that command'));
|
|
87
|
+
return 127;
|
|
88
|
+
}
|
|
89
|
+
const r = cp.spawnSync(bin, args, { stdio: 'inherit' });
|
|
90
|
+
return r.status ?? 1;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=go-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-bridge.js","sourceRoot":"","sources":["../src/go-bridge.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,oCAGC;AAQD,oCAYC;AAGD,oDAOC;AAGD,sBAQC;AAvDD;;;;;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;IAClC,MAAM,GAAG,GAAG,YAAY,EAAE,CAAC;IAC3B,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC;QAC/D,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACxD,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-verbs.generated.d.ts","sourceRoot":"","sources":["../src/go-verbs.generated.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,MAAM,CAsCvC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GO_VERBS = void 0;
|
|
4
|
+
// GENERATED by scripts/gen-go-verbs.js — do not edit.
|
|
5
|
+
// Source of truth: the `Available Commands` section of the Go CLI's --help.
|
|
6
|
+
// Regenerate with `npm run gen:verbs` (runs as part of `npm run build:all`).
|
|
7
|
+
exports.GO_VERBS = new Set([
|
|
8
|
+
'agent',
|
|
9
|
+
'background',
|
|
10
|
+
'backup',
|
|
11
|
+
'build',
|
|
12
|
+
'capacity',
|
|
13
|
+
'code',
|
|
14
|
+
'config',
|
|
15
|
+
'connect',
|
|
16
|
+
'debug',
|
|
17
|
+
'deploy',
|
|
18
|
+
'deps',
|
|
19
|
+
'diag',
|
|
20
|
+
'doctor',
|
|
21
|
+
'fleet',
|
|
22
|
+
'github',
|
|
23
|
+
'hook',
|
|
24
|
+
'incident',
|
|
25
|
+
'init',
|
|
26
|
+
'login',
|
|
27
|
+
'lsp',
|
|
28
|
+
'maintain',
|
|
29
|
+
'modernize',
|
|
30
|
+
'monitor',
|
|
31
|
+
'observe',
|
|
32
|
+
'operate',
|
|
33
|
+
'resource',
|
|
34
|
+
'review',
|
|
35
|
+
'scan-status',
|
|
36
|
+
'secure',
|
|
37
|
+
'security',
|
|
38
|
+
'status',
|
|
39
|
+
'tech-debt',
|
|
40
|
+
'test',
|
|
41
|
+
'threathunter',
|
|
42
|
+
'update',
|
|
43
|
+
'version',
|
|
44
|
+
'workflow',
|
|
45
|
+
]);
|
|
46
|
+
//# sourceMappingURL=go-verbs.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-verbs.generated.js","sourceRoot":"","sources":["../src/go-verbs.generated.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,4EAA4E;AAC5E,6EAA6E;AAChE,QAAA,QAAQ,GAAwB,IAAI,GAAG,CAAC;IACnD,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,OAAO;IACP,UAAU;IACV,MAAM;IACN,QAAQ;IACR,SAAS;IACT,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,UAAU;IACV,MAAM;IACN,OAAO;IACP,KAAK;IACL,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;IACV,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,WAAW;IACX,MAAM;IACN,cAAc;IACd,QAAQ;IACR,SAAS;IACT,UAAU;CACX,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,76 +5,54 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
// ============================================================================
|
|
8
|
-
// Go
|
|
8
|
+
// argv router: Go CLI vs TypeScript.
|
|
9
9
|
//
|
|
10
|
-
// `a6s` ships
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
// we exec the Go binary directly so it owns the WebSocket the IDE
|
|
14
|
-
// extensions connect to. All other commands fall through to the
|
|
15
|
-
// commander/NLP path below.
|
|
10
|
+
// `a6s` ships a compiled Go CLI at bin/binaries/a6s-{platform}-{arch} and this
|
|
11
|
+
// TypeScript front end. The Go CLI is the product; this file owns only the
|
|
12
|
+
// natural-language path, `interactive`, and `upgrade`.
|
|
16
13
|
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
14
|
+
// THIS USED TO BE AN ALLOWLIST, AND THE ALLOWLIST ROTTED. `ROUTE_TO_GO` named
|
|
15
|
+
// the verbs to hand off, so every verb added to the Go CLI afterwards was
|
|
16
|
+
// unreachable from the npm package. By 5.2.2 it carried 12 of 39 real verbs
|
|
17
|
+
// plus `daemon`, which the Go CLI does not implement at all — so `a6s login`,
|
|
18
|
+
// `a6s init`, `a6s review`, `a6s security`, `a6s status` and 22 others fell
|
|
19
|
+
// through to this file and printed generic usage. `a6s deploy` had the same
|
|
20
|
+
// defect; fixing it by hand in 5.2.1 fixed one entry and left the mechanism
|
|
21
|
+
// just as able to rot.
|
|
22
|
+
//
|
|
23
|
+
// So the list is no longer written by hand. scripts/gen-go-verbs.js asks the
|
|
24
|
+
// built binary for its command tree and generates go-verbs.generated.ts, and
|
|
25
|
+
// CI fails if that file is stale. What this file owns is the short list; a
|
|
26
|
+
// verb we do not claim goes to Go, and anything that is not a verb at all
|
|
27
|
+
// falls through to the NLP path.
|
|
28
|
+
//
|
|
29
|
+
// Detection runs *before* the heavy imports so the Go path pays no cost for
|
|
30
|
+
// loading compromise/natural/inquirer.
|
|
19
31
|
// ============================================================================
|
|
20
32
|
{
|
|
21
33
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
22
|
-
const
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
24
|
-
const _fs = require('fs');
|
|
34
|
+
const { GO_VERBS } = require('./go-verbs.generated');
|
|
25
35
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'fleet', 'lsp', 'connect', 'doctor',
|
|
30
|
-
// `deploy` belongs to the Go CLI, which implements ten subcommands
|
|
31
|
-
// (create/list/status/update/rollback/delete/history/pause/resume and
|
|
32
|
-
// `release promote|rollback|status`). A commander block here once
|
|
33
|
-
// registered three subcommands of the same name; they were internal
|
|
34
|
-
// operator tooling published by accident and were removed in 5.2.2.
|
|
35
|
-
'deploy',
|
|
36
|
-
// SDLC scan triggers/status — implemented only in the Go CLI
|
|
37
|
-
// (POST /api/admin/{tech-debt,modernization}/scan, GET /api/admin/scan/{id}).
|
|
38
|
-
'tech-debt', 'modernize', 'scan-status',
|
|
39
|
-
]);
|
|
36
|
+
const { runGo } = require('./go-bridge');
|
|
37
|
+
// Verbs this file implements. Everything else the Go CLI knows goes to Go.
|
|
38
|
+
const TS_OWNED = new Set(['interactive', 'upgrade']);
|
|
40
39
|
const argv0 = process.argv.slice(2);
|
|
41
40
|
const first0 = argv0[0];
|
|
42
|
-
if (first0 &&
|
|
43
|
-
|
|
44
|
-
const arch = process.arch;
|
|
45
|
-
const ext = platform === 'win32' ? '.exe' : '';
|
|
46
|
-
const binName = `a6s-${platform}-${arch}${ext}`;
|
|
47
|
-
const binPath = _path.join(__dirname, '..', 'bin', 'binaries', binName);
|
|
48
|
-
if (_fs.existsSync(binPath)) {
|
|
49
|
-
try {
|
|
50
|
-
const st = _fs.statSync(binPath);
|
|
51
|
-
if (platform !== 'win32' && (st.mode & 0o111) === 0) {
|
|
52
|
-
_fs.chmodSync(binPath, 0o755);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch { /* tolerate; spawn will fail loudly if needed */ }
|
|
56
|
-
const r = _cp.spawnSync(binPath, argv0, { stdio: 'inherit' });
|
|
57
|
-
process.exit(r.status ?? 1);
|
|
58
|
-
}
|
|
59
|
-
console.error(`[a6s] No bundled daemon binary for ${platform}-${arch} ` +
|
|
60
|
-
`(expected ${binPath}). The TypeScript CLI does not implement \`${first0}\` ` +
|
|
61
|
-
`directly; reinstall \`@autonoma-io/a6s\` or build from source.`);
|
|
62
|
-
process.exit(127);
|
|
41
|
+
if (first0 && !TS_OWNED.has(first0) && GO_VERBS.has(first0)) {
|
|
42
|
+
process.exit(runGo(argv0));
|
|
63
43
|
}
|
|
64
44
|
}
|
|
65
45
|
const commander_1 = require("commander");
|
|
66
46
|
const chalk_1 = __importDefault(require("chalk"));
|
|
67
47
|
const dotenv_1 = require("dotenv");
|
|
68
48
|
const processor_1 = require("./nlp/processor");
|
|
69
|
-
const database_1 = require("./modules/database");
|
|
70
|
-
const monitoring_1 = require("./modules/monitoring");
|
|
71
|
-
const load_testing_1 = require("./modules/load-testing");
|
|
72
|
-
const ab_testing_1 = require("./modules/ab-testing");
|
|
73
|
-
const onboarding_1 = require("./modules/onboarding");
|
|
74
49
|
const interactive_1 = require("./interactive");
|
|
75
50
|
const memory_1 = require("./nlp/memory");
|
|
76
51
|
const version_check_1 = require("./modules/version-check");
|
|
77
52
|
const upgrade_1 = require("./commands/upgrade");
|
|
53
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
54
|
+
const command_map_1 = require("./nlp/command-map");
|
|
55
|
+
const go_bridge_1 = require("./go-bridge");
|
|
78
56
|
// Load environment variables
|
|
79
57
|
(0, dotenv_1.config)();
|
|
80
58
|
// Fire the upgrade-check fetcher BEFORE we run the user's command. kickoff()
|
|
@@ -136,154 +114,10 @@ program
|
|
|
136
114
|
// Process natural language
|
|
137
115
|
const intent = await nlp.process(input, memory.getContext());
|
|
138
116
|
// Route to appropriate module
|
|
139
|
-
await routeCommand(intent);
|
|
117
|
+
await routeCommand(input, intent?.action);
|
|
140
118
|
// Update memory with result
|
|
141
119
|
memory.addMessage('system', `Executed: ${intent.action}`);
|
|
142
120
|
});
|
|
143
|
-
// Database Commands (Alpha Phase)
|
|
144
|
-
const database = program
|
|
145
|
-
.command('db')
|
|
146
|
-
.description('Database operations');
|
|
147
|
-
database
|
|
148
|
-
.command('migrate')
|
|
149
|
-
.description('Run pending migrations')
|
|
150
|
-
.action(async () => {
|
|
151
|
-
const module = new database_1.DatabaseModule();
|
|
152
|
-
await module.runMigrations();
|
|
153
|
-
});
|
|
154
|
-
database
|
|
155
|
-
.command('query')
|
|
156
|
-
.description('Execute SQL query')
|
|
157
|
-
.argument('<sql>', 'SQL query to execute')
|
|
158
|
-
.option('--safe', 'Run in safe mode (SELECT only)')
|
|
159
|
-
.action(async (sql, options) => {
|
|
160
|
-
const module = new database_1.DatabaseModule();
|
|
161
|
-
await module.executeQuery(sql, options);
|
|
162
|
-
});
|
|
163
|
-
database
|
|
164
|
-
.command('backup')
|
|
165
|
-
.description('Create database backup')
|
|
166
|
-
.action(async () => {
|
|
167
|
-
const module = new database_1.DatabaseModule();
|
|
168
|
-
await module.createBackup();
|
|
169
|
-
});
|
|
170
|
-
// Monitoring Commands (Alpha Phase)
|
|
171
|
-
const monitor = program
|
|
172
|
-
.command('monitor')
|
|
173
|
-
.description('System monitoring and diagnostics');
|
|
174
|
-
monitor
|
|
175
|
-
.command('health')
|
|
176
|
-
.description('Check system health')
|
|
177
|
-
.action(async () => {
|
|
178
|
-
const module = new monitoring_1.MonitoringModule();
|
|
179
|
-
await module.checkHealth();
|
|
180
|
-
});
|
|
181
|
-
monitor
|
|
182
|
-
.command('logs')
|
|
183
|
-
.description('View CloudWatch logs')
|
|
184
|
-
.option('-s, --service <service>', 'Service name')
|
|
185
|
-
.option('-f, --filter <filter>', 'Log filter pattern')
|
|
186
|
-
.option('-t, --time <time>', 'Time range (e.g., "24h", "7d")')
|
|
187
|
-
.action(async (options) => {
|
|
188
|
-
const module = new monitoring_1.MonitoringModule();
|
|
189
|
-
await module.viewLogs(options);
|
|
190
|
-
});
|
|
191
|
-
monitor
|
|
192
|
-
.command('alerts')
|
|
193
|
-
.description('Show recent alerts')
|
|
194
|
-
.action(async () => {
|
|
195
|
-
const module = new monitoring_1.MonitoringModule();
|
|
196
|
-
await module.showAlerts();
|
|
197
|
-
});
|
|
198
|
-
// Load Testing Commands (Beta Phase)
|
|
199
|
-
const loadTest = program
|
|
200
|
-
.command('load-test')
|
|
201
|
-
.description('Load testing and performance analysis');
|
|
202
|
-
loadTest
|
|
203
|
-
.command('simulate')
|
|
204
|
-
.description('Simulate concurrent users')
|
|
205
|
-
.option('-u, --users <count>', 'Number of users', '100')
|
|
206
|
-
.option('-d, --duration <seconds>', 'Test duration', '60')
|
|
207
|
-
.option('-s, --scenario <name>', 'Test scenario')
|
|
208
|
-
.action(async (options) => {
|
|
209
|
-
const module = new load_testing_1.LoadTestingModule();
|
|
210
|
-
await module.simulateUsers(options);
|
|
211
|
-
});
|
|
212
|
-
loadTest
|
|
213
|
-
.command('campaign-load')
|
|
214
|
-
.description('Test email campaign at scale')
|
|
215
|
-
.option('-c, --count <emails>', 'Number of emails to simulate', '1000')
|
|
216
|
-
.action(async (options) => {
|
|
217
|
-
const module = new load_testing_1.LoadTestingModule();
|
|
218
|
-
await module.testCampaignLoad(options);
|
|
219
|
-
});
|
|
220
|
-
loadTest
|
|
221
|
-
.command('report')
|
|
222
|
-
.description('Generate performance report')
|
|
223
|
-
.action(async () => {
|
|
224
|
-
const module = new load_testing_1.LoadTestingModule();
|
|
225
|
-
await module.generateReport();
|
|
226
|
-
});
|
|
227
|
-
// A/B Testing Commands (Beta Phase)
|
|
228
|
-
const abTest = program
|
|
229
|
-
.command('experiment')
|
|
230
|
-
.description('A/B testing and experimentation');
|
|
231
|
-
abTest
|
|
232
|
-
.command('create')
|
|
233
|
-
.description('Create new A/B test')
|
|
234
|
-
.argument('<name>', 'Experiment name')
|
|
235
|
-
.option('-v, --variants <variants>', 'Comma-separated variants', 'control,treatment')
|
|
236
|
-
.option('-s, --split <ratio>', 'Traffic split ratio', '50/50')
|
|
237
|
-
.action(async (name, options) => {
|
|
238
|
-
const module = new ab_testing_1.ABTestingModule();
|
|
239
|
-
await module.createExperiment(name, options);
|
|
240
|
-
});
|
|
241
|
-
abTest
|
|
242
|
-
.command('metrics')
|
|
243
|
-
.description('View experiment metrics')
|
|
244
|
-
.argument('[name]', 'Experiment name')
|
|
245
|
-
.action(async (name) => {
|
|
246
|
-
const module = new ab_testing_1.ABTestingModule();
|
|
247
|
-
await module.showMetrics(name);
|
|
248
|
-
});
|
|
249
|
-
abTest
|
|
250
|
-
.command('conclude')
|
|
251
|
-
.description('End experiment and pick winner')
|
|
252
|
-
.argument('<name>', 'Experiment name')
|
|
253
|
-
.action(async (name) => {
|
|
254
|
-
const module = new ab_testing_1.ABTestingModule();
|
|
255
|
-
await module.concludeExperiment(name);
|
|
256
|
-
});
|
|
257
|
-
// Customer Onboarding Commands (Beta Phase)
|
|
258
|
-
const onboard = program
|
|
259
|
-
.command('onboard')
|
|
260
|
-
.description('Customer onboarding automation');
|
|
261
|
-
onboard
|
|
262
|
-
.command('invite')
|
|
263
|
-
.description('Send invitation')
|
|
264
|
-
.argument('<email>', 'Customer email')
|
|
265
|
-
.option('-t, --tier <tier>', 'Customer tier', 'standard')
|
|
266
|
-
.action(async (email, options) => {
|
|
267
|
-
const module = new onboarding_1.OnboardingModule();
|
|
268
|
-
await module.sendInvitation(email, options);
|
|
269
|
-
});
|
|
270
|
-
onboard
|
|
271
|
-
.command('provision')
|
|
272
|
-
.description('Provision new organization')
|
|
273
|
-
.argument('<org>', 'Organization name')
|
|
274
|
-
.option('--plan <plan>', 'Pricing plan', 'enterprise')
|
|
275
|
-
.action(async (org, options) => {
|
|
276
|
-
const module = new onboarding_1.OnboardingModule();
|
|
277
|
-
await module.provisionOrganization(org, options);
|
|
278
|
-
});
|
|
279
|
-
onboard
|
|
280
|
-
.command('validate')
|
|
281
|
-
.description('Validate customer setup')
|
|
282
|
-
.argument('<org>', 'Organization name')
|
|
283
|
-
.action(async (org) => {
|
|
284
|
-
const module = new onboarding_1.OnboardingModule();
|
|
285
|
-
await module.validateSetup(org);
|
|
286
|
-
});
|
|
287
121
|
// Interactive Mode Command
|
|
288
122
|
program
|
|
289
123
|
.command('interactive')
|
|
@@ -307,40 +141,55 @@ program
|
|
|
307
141
|
if (code !== 0)
|
|
308
142
|
process.exitCode = code;
|
|
309
143
|
});
|
|
310
|
-
//
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
144
|
+
// Natural language -> a6s command.
|
|
145
|
+
//
|
|
146
|
+
// Every intent used to dispatch to a TypeScript module that talked to
|
|
147
|
+
// Autonoma's own infrastructure; those modules were operator tooling
|
|
148
|
+
// published by accident and were removed in 5.3.0. Natural language now
|
|
149
|
+
// resolves to a real a6s command and runs it through the Go CLI, so the NLP
|
|
150
|
+
// layer stays a front end for the product rather than a second implementation
|
|
151
|
+
// of it that only worked on our machines.
|
|
152
|
+
async function routeCommand(query, intentAction, opts = {}) {
|
|
153
|
+
const resolved = (0, command_map_1.resolveCommand)(query, intentAction);
|
|
154
|
+
if (!resolved) {
|
|
155
|
+
// Say what we could not do, and show what this layer CAN do. A silent
|
|
156
|
+
// "not recognized" gives the user nothing to correct.
|
|
157
|
+
console.log(chalk_1.default.yellow(`Could not turn that into an a6s command.`));
|
|
158
|
+
console.log(chalk_1.default.gray('\nTry, for example:'));
|
|
159
|
+
for (const ex of [
|
|
160
|
+
'a6s "deploy to staging"',
|
|
161
|
+
'a6s "roll back the last release"',
|
|
162
|
+
'a6s "is everything healthy?"',
|
|
163
|
+
'a6s "show me the agents"',
|
|
164
|
+
'a6s "scan for vulnerabilities"',
|
|
165
|
+
]) {
|
|
166
|
+
console.log(chalk_1.default.gray(` ${ex}`));
|
|
167
|
+
}
|
|
168
|
+
console.log(chalk_1.default.gray('\nOr run `a6s --help` for the full command list.'));
|
|
169
|
+
process.exitCode = 1;
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const printable = `a6s ${resolved.argv.join(' ')}`;
|
|
173
|
+
if (resolved.consequential && !opts.yes) {
|
|
174
|
+
// Anything that changes state is confirmed against the RESOLVED command,
|
|
175
|
+
// not the sentence — the user approves what will actually run.
|
|
176
|
+
console.log(`${chalk_1.default.bold('Interpreted as:')} ${chalk_1.default.cyan(printable)}`);
|
|
177
|
+
console.log(chalk_1.default.gray(` (${resolved.describe})`));
|
|
178
|
+
const { proceed } = await inquirer_1.default.prompt([
|
|
179
|
+
{ type: 'confirm', name: 'proceed', message: 'Run it?', default: false },
|
|
180
|
+
]);
|
|
181
|
+
if (!proceed) {
|
|
182
|
+
console.log(chalk_1.default.gray('Cancelled. Nothing was run.'));
|
|
183
|
+
process.exitCode = 130;
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
else if (program.opts().verbose) {
|
|
188
|
+
console.log(chalk_1.default.gray(`[${resolved.id}] ${printable}`));
|
|
343
189
|
}
|
|
190
|
+
const code = (0, go_bridge_1.runGo)(resolved.argv);
|
|
191
|
+
if (code !== 0)
|
|
192
|
+
process.exitCode = code;
|
|
344
193
|
}
|
|
345
194
|
// Error handling
|
|
346
195
|
process.on('unhandledRejection', (error) => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,+EAA+E;AAC/E,yBAAyB;AACzB,EAAE;AACF,sEAAsE;AACtE,wEAAwE;AACxE,yEAAyE;AACzE,kEAAkE;AAClE,gEAAgE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AAK,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjE,+BAA+B;AAC/B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/interactive.d.ts
CHANGED
|
@@ -6,11 +6,18 @@ export declare class InteractiveMode {
|
|
|
6
6
|
private isRunning;
|
|
7
7
|
constructor(nlp: NaturalLanguageProcessor, memory: ConversationMemory);
|
|
8
8
|
start(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Turn an utterance into an a6s command and run it.
|
|
11
|
+
*
|
|
12
|
+
* This used to switch over intent.action and call a TypeScript module per
|
|
13
|
+
* branch; every one of those modules talked to Autonoma's own database,
|
|
14
|
+
* SendGrid account or ECS cluster, and was removed in 5.3.0. Interactive
|
|
15
|
+
* mode now drives the same Go CLI the rest of the tool does, so it can only
|
|
16
|
+
* do things the product can actually do.
|
|
17
|
+
*/
|
|
9
18
|
private executeIntent;
|
|
10
19
|
private executeCommand;
|
|
11
20
|
private askForClarification;
|
|
12
|
-
private promptForExperimentDetails;
|
|
13
|
-
private promptForOnboardingDetails;
|
|
14
21
|
private showHelp;
|
|
15
22
|
private showHistory;
|
|
16
23
|
private showSystemStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,qBAAa,eAAe;IAC1B,OAAO,CAAC,GAAG,CAA2B;IACtC,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,SAAS,CAAkB;gBAEvB,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,kBAAkB;IAK/D,KAAK;IAqFX;;;;;;;;OAQG;YACW,aAAa;YA+Bb,cAAc;YAMd,mBAAmB;IA0BjC,OAAO,CAAC,QAAQ;IA4BhB,OAAO,CAAC,WAAW;YAiBL,gBAAgB;IAM9B,OAAO,CAAC,eAAe;CAiBxB"}
|