aui-agent-builder 0.3.111 → 0.3.113
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 +51 -0
- package/dist/api-client/apollo-client.d.ts +162 -0
- package/dist/api-client/apollo-client.d.ts.map +1 -0
- package/dist/api-client/apollo-client.js +285 -0
- package/dist/api-client/apollo-client.js.map +1 -0
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +9 -10
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/apollo.d.ts +77 -0
- package/dist/commands/apollo.d.ts.map +1 -0
- package/dist/commands/apollo.js +410 -0
- package/dist/commands/apollo.js.map +1 -0
- package/dist/commands/import-agent.d.ts.map +1 -1
- package/dist/commands/import-agent.js +59 -99
- package/dist/commands/import-agent.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/util/bundled-agent.d.ts +46 -0
- package/dist/commands/util/bundled-agent.d.ts.map +1 -0
- package/dist/commands/util/bundled-agent.js +50 -0
- package/dist/commands/util/bundled-agent.js.map +1 -0
- package/dist/commands/validate.d.ts +10 -0
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +8 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +13 -0
- package/dist/config/index.js.map +1 -1
- package/dist/index.js +102 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/select-prompt.d.ts +32 -0
- package/dist/utils/select-prompt.d.ts.map +1 -0
- package/dist/utils/select-prompt.js +71 -0
- package/dist/utils/select-prompt.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Searchable single-select prompt.
|
|
3
|
+
*
|
|
4
|
+
* Wraps `inquirer-autocomplete-prompt` so the org / account / agent pickers
|
|
5
|
+
* gain type-to-filter search while still behaving like the old `type: "list"`
|
|
6
|
+
* prompts: when the search box is empty every choice is shown and can be
|
|
7
|
+
* navigated with the arrow keys exactly as before.
|
|
8
|
+
*
|
|
9
|
+
* The flow is unchanged — only the picker UX gains search.
|
|
10
|
+
*/
|
|
11
|
+
import inquirer from "inquirer";
|
|
12
|
+
export interface SelectChoice<T> {
|
|
13
|
+
name: string;
|
|
14
|
+
value: T;
|
|
15
|
+
}
|
|
16
|
+
export interface SearchableSelectOptions<T> {
|
|
17
|
+
message: string;
|
|
18
|
+
choices: Array<SelectChoice<T>>;
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Static entries appended after the (filtered) choices on every keystroke —
|
|
22
|
+
* use for things like a separator + "Skip" option that should always remain
|
|
23
|
+
* reachable regardless of the current search term.
|
|
24
|
+
*/
|
|
25
|
+
trailing?: Array<SelectChoice<T> | InstanceType<typeof inquirer.Separator>>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Prompt the user to pick one value from `choices`, with live search.
|
|
29
|
+
* Returns the `value` of the selected choice.
|
|
30
|
+
*/
|
|
31
|
+
export declare function searchableSelect<T>(options: SearchableSelectOptions<T>): Promise<T>;
|
|
32
|
+
//# sourceMappingURL=select-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-prompt.d.ts","sourceRoot":"","sources":["../../src/utils/select-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwChC,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;CAC7E;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAClC,OAAO,CAAC,CAAC,CAAC,CA2BZ"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Searchable single-select prompt.
|
|
3
|
+
*
|
|
4
|
+
* Wraps `inquirer-autocomplete-prompt` so the org / account / agent pickers
|
|
5
|
+
* gain type-to-filter search while still behaving like the old `type: "list"`
|
|
6
|
+
* prompts: when the search box is empty every choice is shown and can be
|
|
7
|
+
* navigated with the arrow keys exactly as before.
|
|
8
|
+
*
|
|
9
|
+
* The flow is unchanged — only the picker UX gains search.
|
|
10
|
+
*/
|
|
11
|
+
import inquirer from "inquirer";
|
|
12
|
+
import chalk from "chalk";
|
|
13
|
+
import autocompletePrompt from "inquirer-autocomplete-prompt";
|
|
14
|
+
/**
|
|
15
|
+
* Thin subclass of the autocomplete prompt that only recolors the
|
|
16
|
+
* one-time "(Use arrow keys or type to search)" affordance so it stands
|
|
17
|
+
* out (the upstream plugin hardcodes it as dim). No prompt logic is
|
|
18
|
+
* changed: we append our own colored hint on the first render and clear
|
|
19
|
+
* `firstRender` so the plugin's dim hint is skipped on the very next line.
|
|
20
|
+
*/
|
|
21
|
+
const SEARCH_HINT = chalk.cyan.bold(" (Use arrow keys or type to search)");
|
|
22
|
+
class SearchableSelectPrompt extends autocompletePrompt {
|
|
23
|
+
getQuestion() {
|
|
24
|
+
const question = super.getQuestion();
|
|
25
|
+
if (this.firstRender) {
|
|
26
|
+
this.firstRender = false;
|
|
27
|
+
return question + SEARCH_HINT;
|
|
28
|
+
}
|
|
29
|
+
return question;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
let registered = false;
|
|
33
|
+
function ensureRegistered() {
|
|
34
|
+
if (!registered) {
|
|
35
|
+
inquirer.registerPrompt("autocomplete", SearchableSelectPrompt);
|
|
36
|
+
registered = true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// Labels are colored with chalk, so strip ANSI escape codes before matching.
|
|
40
|
+
const ANSI_PATTERN = /\u001b\[[0-9;]*m/g;
|
|
41
|
+
function stripAnsi(value) {
|
|
42
|
+
return value.replace(ANSI_PATTERN, "");
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Prompt the user to pick one value from `choices`, with live search.
|
|
46
|
+
* Returns the `value` of the selected choice.
|
|
47
|
+
*/
|
|
48
|
+
export async function searchableSelect(options) {
|
|
49
|
+
ensureRegistered();
|
|
50
|
+
const { message, choices, pageSize = 15, trailing = [] } = options;
|
|
51
|
+
const filter = (input) => {
|
|
52
|
+
const term = (input || "").trim().toLowerCase();
|
|
53
|
+
const matched = term
|
|
54
|
+
? choices.filter((c) => stripAnsi(c.name).toLowerCase().includes(term))
|
|
55
|
+
: choices;
|
|
56
|
+
return [...matched, ...trailing];
|
|
57
|
+
};
|
|
58
|
+
const { chosen } = await inquirer.prompt([
|
|
59
|
+
{
|
|
60
|
+
type: "autocomplete",
|
|
61
|
+
name: "chosen",
|
|
62
|
+
message,
|
|
63
|
+
pageSize,
|
|
64
|
+
// Show all choices up-front (empty search) and never block on an empty
|
|
65
|
+
// result so the prompt still renders before the user types.
|
|
66
|
+
source: (_answersSoFar, input) => Promise.resolve(filter(input)),
|
|
67
|
+
},
|
|
68
|
+
]);
|
|
69
|
+
return chosen;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=select-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-prompt.js","sourceRoot":"","sources":["../../src/utils/select-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAE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IAAI;YAClB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvE,CAAC,CAAC,OAAO,CAAC;QACZ,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;QACvC;YACE,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,OAAO;YACP,QAAQ;YACR,uEAAuE;YACvE,4DAA4D;YAC5D,MAAM,EAAE,CAAC,aAAsB,EAAE,KAAc,EAAE,EAAE,CACjD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACxB;KACX,CAAC,CAAC;IAEH,OAAO,MAAW,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aui-agent-builder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.113",
|
|
4
4
|
"description": "CLI for building, managing, and deploying AUI AI agent configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"license": "SEE LICENSE IN LICENSE",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@aui.io/aui-client": "^1.2.34",
|
|
45
|
-
"@composio/core": "^0.6.10",
|
|
46
45
|
"@aui.io/aui-ui-kit": "^0.1.0",
|
|
47
46
|
"@babel/standalone": "^7.29.2",
|
|
47
|
+
"@composio/core": "^0.6.10",
|
|
48
48
|
"@opentelemetry/api": "^1.9.0",
|
|
49
49
|
"@opentelemetry/exporter-trace-otlp-http": "^0.213.0",
|
|
50
50
|
"@opentelemetry/resources": "^2.6.0",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"ink-spinner": "^5.0.0",
|
|
62
62
|
"ink-text-input": "^6.0.0",
|
|
63
63
|
"inquirer": "^8.2.6",
|
|
64
|
+
"inquirer-autocomplete-prompt": "^2.0.1",
|
|
64
65
|
"node-fetch": "^2.7.0",
|
|
65
66
|
"open": "^11.0.0",
|
|
66
67
|
"ora": "^5.4.1",
|