electric-ax 0.1.12 → 0.1.13
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/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/dist/init.cjs +1 -1
- package/dist/init.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -60,13 +60,13 @@ function resolveCommandName(argv) {
|
|
|
60
60
|
return invoked.replace(/\.(c|m)?js$/, ``);
|
|
61
61
|
}
|
|
62
62
|
function commandExample(commandName) {
|
|
63
|
-
return `${commandName}
|
|
63
|
+
return `${commandName} agents`;
|
|
64
64
|
}
|
|
65
65
|
function resolveCommandPrefix(argv, env = process.env) {
|
|
66
66
|
if (env.npm_command === `exec`) {
|
|
67
67
|
const userAgent = env.npm_config_user_agent ?? ``;
|
|
68
|
-
if (userAgent.startsWith(`pnpm/`)) return `pnpx electric-ax
|
|
69
|
-
if (userAgent.startsWith(`npm/`)) return `npx electric-ax
|
|
68
|
+
if (userAgent.startsWith(`pnpm/`)) return `pnpx electric-ax agents`;
|
|
69
|
+
if (userAgent.startsWith(`npm/`)) return `npx electric-ax agents`;
|
|
70
70
|
}
|
|
71
71
|
return commandExample(resolveCommandName(argv));
|
|
72
72
|
}
|
|
@@ -313,7 +313,7 @@ Examples:
|
|
|
313
313
|
function createElectricProgram({ env = getElectricCliEnv(), commandName = `electric`, commandPrefix = commandExample(commandName), handlers = createElectricCliHandlers(env, commandPrefix) } = {}) {
|
|
314
314
|
const program = new commander.Command();
|
|
315
315
|
program.name(commandName).description(`Manage Electric tooling`).showHelpAfterError().showSuggestionAfterError().addHelpText(`after`, getHelpText(commandName));
|
|
316
|
-
const agentsCommand = program.command(`
|
|
316
|
+
const agentsCommand = program.command(`agents`).description(`Manage Electric Agents`);
|
|
317
317
|
const typesCommand = agentsCommand.command(`types`).description(`List entity types`).action(async () => {
|
|
318
318
|
await handlers.listTypes();
|
|
319
319
|
});
|
|
@@ -378,7 +378,7 @@ Setup (add to your shell init file):
|
|
|
378
378
|
Fish: ${commandName} --completion-fish | source # add to config.fish
|
|
379
379
|
|
|
380
380
|
Auto-install (detects your shell and updates init file):
|
|
381
|
-
${commandName}
|
|
381
|
+
${commandName} agents completion install
|
|
382
382
|
`).action((action) => {
|
|
383
383
|
if (action === `install`) {
|
|
384
384
|
try {
|
|
@@ -393,7 +393,7 @@ Auto-install (detects your shell and updates init file):
|
|
|
393
393
|
console.log(`Add to your shell init file:`);
|
|
394
394
|
console.log(` Bash/Zsh: eval "$(${commandName} --completion)"`);
|
|
395
395
|
console.log(` Fish: ${commandName} --completion-fish | source\n`);
|
|
396
|
-
console.log(`Or auto-install: ${commandName}
|
|
396
|
+
console.log(`Or auto-install: ${commandName} agents completion install`);
|
|
397
397
|
});
|
|
398
398
|
completionCommand.alias(`completions`);
|
|
399
399
|
return program;
|
package/dist/index.js
CHANGED
|
@@ -58,13 +58,13 @@ function resolveCommandName(argv) {
|
|
|
58
58
|
return invoked.replace(/\.(c|m)?js$/, ``);
|
|
59
59
|
}
|
|
60
60
|
function commandExample(commandName) {
|
|
61
|
-
return `${commandName}
|
|
61
|
+
return `${commandName} agents`;
|
|
62
62
|
}
|
|
63
63
|
function resolveCommandPrefix(argv, env = process.env) {
|
|
64
64
|
if (env.npm_command === `exec`) {
|
|
65
65
|
const userAgent = env.npm_config_user_agent ?? ``;
|
|
66
|
-
if (userAgent.startsWith(`pnpm/`)) return `pnpx electric-ax
|
|
67
|
-
if (userAgent.startsWith(`npm/`)) return `npx electric-ax
|
|
66
|
+
if (userAgent.startsWith(`pnpm/`)) return `pnpx electric-ax agents`;
|
|
67
|
+
if (userAgent.startsWith(`npm/`)) return `npx electric-ax agents`;
|
|
68
68
|
}
|
|
69
69
|
return commandExample(resolveCommandName(argv));
|
|
70
70
|
}
|
|
@@ -311,7 +311,7 @@ Examples:
|
|
|
311
311
|
function createElectricProgram({ env = getElectricCliEnv(), commandName = `electric`, commandPrefix = commandExample(commandName), handlers = createElectricCliHandlers(env, commandPrefix) } = {}) {
|
|
312
312
|
const program = new Command();
|
|
313
313
|
program.name(commandName).description(`Manage Electric tooling`).showHelpAfterError().showSuggestionAfterError().addHelpText(`after`, getHelpText(commandName));
|
|
314
|
-
const agentsCommand = program.command(`
|
|
314
|
+
const agentsCommand = program.command(`agents`).description(`Manage Electric Agents`);
|
|
315
315
|
const typesCommand = agentsCommand.command(`types`).description(`List entity types`).action(async () => {
|
|
316
316
|
await handlers.listTypes();
|
|
317
317
|
});
|
|
@@ -376,7 +376,7 @@ Setup (add to your shell init file):
|
|
|
376
376
|
Fish: ${commandName} --completion-fish | source # add to config.fish
|
|
377
377
|
|
|
378
378
|
Auto-install (detects your shell and updates init file):
|
|
379
|
-
${commandName}
|
|
379
|
+
${commandName} agents completion install
|
|
380
380
|
`).action((action) => {
|
|
381
381
|
if (action === `install`) {
|
|
382
382
|
try {
|
|
@@ -391,7 +391,7 @@ Auto-install (detects your shell and updates init file):
|
|
|
391
391
|
console.log(`Add to your shell init file:`);
|
|
392
392
|
console.log(` Bash/Zsh: eval "$(${commandName} --completion)"`);
|
|
393
393
|
console.log(` Fish: ${commandName} --completion-fish | source\n`);
|
|
394
|
-
console.log(`Or auto-install: ${commandName}
|
|
394
|
+
console.log(`Or auto-install: ${commandName} agents completion install`);
|
|
395
395
|
});
|
|
396
396
|
completionCommand.alias(`completions`);
|
|
397
397
|
return program;
|
package/dist/init.cjs
CHANGED
|
@@ -35,7 +35,7 @@ async function initProject(projectName) {
|
|
|
35
35
|
console.log(`Get one at https://console.anthropic.com/settings/keys`);
|
|
36
36
|
console.log(``);
|
|
37
37
|
console.log(`Start infrastructure and run:`);
|
|
38
|
-
console.log(` npx electric-ax
|
|
38
|
+
console.log(` npx electric-ax agents quickstart # in one terminal`);
|
|
39
39
|
console.log(` pnpm dev # in another terminal`);
|
|
40
40
|
console.log(``);
|
|
41
41
|
}
|
package/dist/init.js
CHANGED
|
@@ -33,7 +33,7 @@ async function initProject(projectName) {
|
|
|
33
33
|
console.log(`Get one at https://console.anthropic.com/settings/keys`);
|
|
34
34
|
console.log(``);
|
|
35
35
|
console.log(`Start infrastructure and run:`);
|
|
36
|
-
console.log(` npx electric-ax
|
|
36
|
+
console.log(` npx electric-ax agents quickstart # in one terminal`);
|
|
37
37
|
console.log(` pnpm dev # in another terminal`);
|
|
38
38
|
console.log(``);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electric-ax",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "CLI for Electric Agents",
|
|
5
5
|
"author": "ElectricSQL team and contributors",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"ink": "^6.8.0",
|
|
47
47
|
"omelette": "^0.4.17",
|
|
48
48
|
"react": "^19.2.0",
|
|
49
|
-
"@electric-ax/agents": "0.2.
|
|
49
|
+
"@electric-ax/agents": "0.2.2",
|
|
50
50
|
"@electric-ax/agents-runtime": "0.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|