@agentuity/cli 0.0.50 → 0.0.51
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/AGENTS.md +17 -4
- package/README.md +26 -8
- package/dist/cli.d.ts.map +1 -1
- package/dist/cmd/{capabilities → ai/capabilities}/index.d.ts +1 -1
- package/dist/cmd/ai/capabilities/index.d.ts.map +1 -0
- package/dist/cmd/{capabilities → ai/capabilities}/show.d.ts +1 -1
- package/dist/cmd/ai/capabilities/show.d.ts.map +1 -0
- package/dist/cmd/ai/index.d.ts.map +1 -0
- package/dist/cmd/ai/prompt/index.d.ts +4 -0
- package/dist/cmd/ai/prompt/index.d.ts.map +1 -0
- package/dist/cmd/ai/prompt/llm.d.ts +3 -0
- package/dist/cmd/ai/prompt/llm.d.ts.map +1 -0
- package/dist/cmd/ai/schema/index.d.ts +4 -0
- package/dist/cmd/ai/schema/index.d.ts.map +1 -0
- package/dist/cmd/ai/schema/show.d.ts +3 -0
- package/dist/cmd/ai/schema/show.d.ts.map +1 -0
- package/dist/cmd/build/ast.d.ts.map +1 -0
- package/dist/cmd/{bundle → build}/ast.test.d.ts.map +1 -1
- package/dist/cmd/build/bundler.d.ts.map +1 -0
- package/dist/cmd/build/file.d.ts.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.d.ts.map +1 -0
- package/dist/cmd/build/fix-duplicate-exports.test.d.ts.map +1 -0
- package/dist/cmd/build/index.d.ts.map +1 -0
- package/dist/cmd/build/patch/_util.d.ts.map +1 -0
- package/dist/cmd/build/patch/aisdk.d.ts.map +1 -0
- package/dist/cmd/build/patch/index.d.ts.map +1 -0
- package/dist/cmd/build/patch/llm.d.ts.map +1 -0
- package/dist/cmd/build/plugin.d.ts.map +1 -0
- package/dist/cmd/cloud/agents/index.d.ts +3 -0
- package/dist/cmd/cloud/agents/index.d.ts.map +1 -0
- package/dist/cmd/cloud/env/delete.d.ts +2 -0
- package/dist/cmd/cloud/env/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/env/get.d.ts +2 -0
- package/dist/cmd/cloud/env/get.d.ts.map +1 -0
- package/dist/cmd/cloud/env/import.d.ts +2 -0
- package/dist/cmd/cloud/env/import.d.ts.map +1 -0
- package/dist/cmd/cloud/env/index.d.ts +3 -0
- package/dist/cmd/cloud/env/index.d.ts.map +1 -0
- package/dist/cmd/cloud/env/list.d.ts +2 -0
- package/dist/cmd/cloud/env/list.d.ts.map +1 -0
- package/dist/cmd/cloud/env/pull.d.ts +2 -0
- package/dist/cmd/cloud/env/pull.d.ts.map +1 -0
- package/dist/cmd/cloud/env/push.d.ts +2 -0
- package/dist/cmd/cloud/env/push.d.ts.map +1 -0
- package/dist/cmd/cloud/env/set.d.ts +2 -0
- package/dist/cmd/cloud/env/set.d.ts.map +1 -0
- package/dist/cmd/cloud/index.d.ts.map +1 -1
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/create-namespace.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/delete.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/get.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/get.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/index.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/index.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/keys.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/keys.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/repl.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/repl.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/search.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/search.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/set.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/set.d.ts.map +1 -0
- package/dist/cmd/cloud/keyvalue/stats.d.ts +3 -0
- package/dist/cmd/cloud/keyvalue/stats.d.ts.map +1 -0
- package/dist/cmd/{kv → cloud/keyvalue}/util.d.ts +1 -1
- package/dist/cmd/cloud/keyvalue/util.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/delete-bucket.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/delete.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/get.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/get.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/index.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/index.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/list-buckets.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/list-buckets.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/list-keys.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/list-keys.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/put.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/put.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/repl.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/repl.d.ts.map +1 -0
- package/dist/cmd/cloud/objectstore/url.d.ts +3 -0
- package/dist/cmd/cloud/objectstore/url.d.ts.map +1 -0
- package/dist/cmd/{objectstore → cloud/objectstore}/util.d.ts +1 -1
- package/dist/cmd/cloud/objectstore/util.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/delete.d.ts +2 -0
- package/dist/cmd/cloud/secret/delete.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/get.d.ts +2 -0
- package/dist/cmd/cloud/secret/get.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/import.d.ts +2 -0
- package/dist/cmd/cloud/secret/import.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/index.d.ts +3 -0
- package/dist/cmd/cloud/secret/index.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/list.d.ts +2 -0
- package/dist/cmd/cloud/secret/list.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/pull.d.ts +2 -0
- package/dist/cmd/cloud/secret/pull.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/push.d.ts +2 -0
- package/dist/cmd/cloud/secret/push.d.ts.map +1 -0
- package/dist/cmd/cloud/secret/set.d.ts +2 -0
- package/dist/cmd/cloud/secret/set.d.ts.map +1 -0
- package/dist/cmd/profile/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/cli.ts +7 -2
- package/src/cmd/{capabilities → ai/capabilities}/index.ts +2 -2
- package/src/cmd/{capabilities → ai/capabilities}/show.ts +6 -6
- package/src/cmd/ai/index.ts +11 -0
- package/src/cmd/{prompt → ai/prompt}/index.ts +2 -2
- package/src/cmd/{prompt → ai/prompt}/llm.ts +6 -6
- package/src/cmd/{schema → ai/schema}/index.ts +2 -2
- package/src/cmd/{schema → ai/schema}/show.ts +3 -3
- package/src/cmd/build/index.ts +89 -0
- package/src/cmd/{agents → cloud/agents}/index.ts +4 -3
- package/src/cmd/cloud/deploy.ts +1 -1
- package/src/cmd/{env → cloud/env}/delete.ts +4 -4
- package/src/cmd/{env → cloud/env}/get.ts +5 -5
- package/src/cmd/{env → cloud/env}/import.ts +4 -4
- package/src/cmd/{env → cloud/env}/index.ts +2 -1
- package/src/cmd/{env → cloud/env}/list.ts +4 -4
- package/src/cmd/{env → cloud/env}/pull.ts +4 -4
- package/src/cmd/{env → cloud/env}/push.ts +4 -4
- package/src/cmd/{env → cloud/env}/set.ts +4 -4
- package/src/cmd/cloud/index.ts +10 -0
- package/src/cmd/{kv → cloud/keyvalue}/create-namespace.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/delete-namespace.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/delete.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/get.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/index.ts +2 -1
- package/src/cmd/{kv → cloud/keyvalue}/keys.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/list-namespaces.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/repl.ts +6 -6
- package/src/cmd/{kv → cloud/keyvalue}/search.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/set.ts +4 -4
- package/src/cmd/{kv → cloud/keyvalue}/stats.ts +3 -3
- package/src/cmd/{kv → cloud/keyvalue}/util.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/delete-bucket.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/delete.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/get.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/index.ts +2 -1
- package/src/cmd/{objectstore → cloud/objectstore}/list-buckets.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/list-keys.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/put.ts +4 -4
- package/src/cmd/{objectstore → cloud/objectstore}/repl.ts +6 -6
- package/src/cmd/{objectstore → cloud/objectstore}/url.ts +3 -3
- package/src/cmd/{objectstore → cloud/objectstore}/util.ts +3 -3
- package/src/cmd/{secret → cloud/secret}/delete.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/get.ts +5 -5
- package/src/cmd/{secret → cloud/secret}/import.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/index.ts +2 -1
- package/src/cmd/{secret → cloud/secret}/list.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/pull.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/push.ts +4 -4
- package/src/cmd/{secret → cloud/secret}/set.ts +4 -4
- package/src/cmd/dev/index.ts +3 -3
- package/src/cmd/profile/index.ts +1 -0
- package/src/cmd/project/create.ts +1 -1
- package/src/cmd/project/index.ts +1 -1
- package/dist/cmd/agents/index.d.ts.map +0 -1
- package/dist/cmd/bundle/ast.d.ts.map +0 -1
- package/dist/cmd/bundle/bundler.d.ts.map +0 -1
- package/dist/cmd/bundle/file.d.ts.map +0 -1
- package/dist/cmd/bundle/fix-duplicate-exports.d.ts.map +0 -1
- package/dist/cmd/bundle/fix-duplicate-exports.test.d.ts.map +0 -1
- package/dist/cmd/bundle/index.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/_util.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/aisdk.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/index.d.ts.map +0 -1
- package/dist/cmd/bundle/patch/llm.d.ts.map +0 -1
- package/dist/cmd/bundle/plugin.d.ts.map +0 -1
- package/dist/cmd/capabilities/index.d.ts.map +0 -1
- package/dist/cmd/capabilities/show.d.ts.map +0 -1
- package/dist/cmd/env/delete.d.ts +0 -2
- package/dist/cmd/env/delete.d.ts.map +0 -1
- package/dist/cmd/env/get.d.ts +0 -2
- package/dist/cmd/env/get.d.ts.map +0 -1
- package/dist/cmd/env/import.d.ts +0 -2
- package/dist/cmd/env/import.d.ts.map +0 -1
- package/dist/cmd/env/index.d.ts +0 -2
- package/dist/cmd/env/index.d.ts.map +0 -1
- package/dist/cmd/env/list.d.ts +0 -2
- package/dist/cmd/env/list.d.ts.map +0 -1
- package/dist/cmd/env/pull.d.ts +0 -2
- package/dist/cmd/env/pull.d.ts.map +0 -1
- package/dist/cmd/env/push.d.ts +0 -2
- package/dist/cmd/env/push.d.ts.map +0 -1
- package/dist/cmd/env/set.d.ts +0 -2
- package/dist/cmd/env/set.d.ts.map +0 -1
- package/dist/cmd/kv/create-namespace.d.ts +0 -3
- package/dist/cmd/kv/create-namespace.d.ts.map +0 -1
- package/dist/cmd/kv/delete-namespace.d.ts +0 -3
- package/dist/cmd/kv/delete-namespace.d.ts.map +0 -1
- package/dist/cmd/kv/delete.d.ts +0 -3
- package/dist/cmd/kv/delete.d.ts.map +0 -1
- package/dist/cmd/kv/get.d.ts +0 -3
- package/dist/cmd/kv/get.d.ts.map +0 -1
- package/dist/cmd/kv/index.d.ts +0 -2
- package/dist/cmd/kv/index.d.ts.map +0 -1
- package/dist/cmd/kv/keys.d.ts +0 -3
- package/dist/cmd/kv/keys.d.ts.map +0 -1
- package/dist/cmd/kv/list-namespaces.d.ts +0 -3
- package/dist/cmd/kv/list-namespaces.d.ts.map +0 -1
- package/dist/cmd/kv/repl.d.ts +0 -3
- package/dist/cmd/kv/repl.d.ts.map +0 -1
- package/dist/cmd/kv/search.d.ts +0 -3
- package/dist/cmd/kv/search.d.ts.map +0 -1
- package/dist/cmd/kv/set.d.ts +0 -3
- package/dist/cmd/kv/set.d.ts.map +0 -1
- package/dist/cmd/kv/stats.d.ts +0 -3
- package/dist/cmd/kv/stats.d.ts.map +0 -1
- package/dist/cmd/kv/util.d.ts.map +0 -1
- package/dist/cmd/objectstore/delete-bucket.d.ts +0 -3
- package/dist/cmd/objectstore/delete-bucket.d.ts.map +0 -1
- package/dist/cmd/objectstore/delete.d.ts +0 -3
- package/dist/cmd/objectstore/delete.d.ts.map +0 -1
- package/dist/cmd/objectstore/get.d.ts +0 -3
- package/dist/cmd/objectstore/get.d.ts.map +0 -1
- package/dist/cmd/objectstore/index.d.ts +0 -2
- package/dist/cmd/objectstore/index.d.ts.map +0 -1
- package/dist/cmd/objectstore/list-buckets.d.ts +0 -3
- package/dist/cmd/objectstore/list-buckets.d.ts.map +0 -1
- package/dist/cmd/objectstore/list-keys.d.ts +0 -3
- package/dist/cmd/objectstore/list-keys.d.ts.map +0 -1
- package/dist/cmd/objectstore/put.d.ts +0 -3
- package/dist/cmd/objectstore/put.d.ts.map +0 -1
- package/dist/cmd/objectstore/repl.d.ts +0 -3
- package/dist/cmd/objectstore/repl.d.ts.map +0 -1
- package/dist/cmd/objectstore/url.d.ts +0 -3
- package/dist/cmd/objectstore/url.d.ts.map +0 -1
- package/dist/cmd/objectstore/util.d.ts.map +0 -1
- package/dist/cmd/prompt/index.d.ts +0 -4
- package/dist/cmd/prompt/index.d.ts.map +0 -1
- package/dist/cmd/prompt/llm.d.ts +0 -3
- package/dist/cmd/prompt/llm.d.ts.map +0 -1
- package/dist/cmd/schema/index.d.ts +0 -4
- package/dist/cmd/schema/index.d.ts.map +0 -1
- package/dist/cmd/schema/show.d.ts +0 -3
- package/dist/cmd/schema/show.d.ts.map +0 -1
- package/dist/cmd/secret/delete.d.ts +0 -2
- package/dist/cmd/secret/delete.d.ts.map +0 -1
- package/dist/cmd/secret/get.d.ts +0 -2
- package/dist/cmd/secret/get.d.ts.map +0 -1
- package/dist/cmd/secret/import.d.ts +0 -2
- package/dist/cmd/secret/import.d.ts.map +0 -1
- package/dist/cmd/secret/index.d.ts +0 -2
- package/dist/cmd/secret/index.d.ts.map +0 -1
- package/dist/cmd/secret/list.d.ts +0 -2
- package/dist/cmd/secret/list.d.ts.map +0 -1
- package/dist/cmd/secret/pull.d.ts +0 -2
- package/dist/cmd/secret/pull.d.ts.map +0 -1
- package/dist/cmd/secret/push.d.ts +0 -2
- package/dist/cmd/secret/push.d.ts.map +0 -1
- package/dist/cmd/secret/set.d.ts +0 -2
- package/dist/cmd/secret/set.d.ts.map +0 -1
- package/src/cmd/bundle/index.ts +0 -58
- /package/dist/cmd/{agents → ai}/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/ast.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/ast.test.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/bundler.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/file.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/fix-duplicate-exports.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/fix-duplicate-exports.test.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/_util.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/aisdk.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/index.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/patch/llm.d.ts +0 -0
- /package/dist/cmd/{bundle → build}/plugin.d.ts +0 -0
- /package/src/cmd/{bundle → build}/ast.test.ts +0 -0
- /package/src/cmd/{bundle → build}/ast.ts +0 -0
- /package/src/cmd/{bundle → build}/bundler.ts +0 -0
- /package/src/cmd/{bundle → build}/file.ts +0 -0
- /package/src/cmd/{bundle → build}/fix-duplicate-exports.test.ts +0 -0
- /package/src/cmd/{bundle → build}/fix-duplicate-exports.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/_util.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/aisdk.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/index.ts +0 -0
- /package/src/cmd/{bundle → build}/patch/llm.ts +0 -0
- /package/src/cmd/{bundle → build}/plugin.ts +0 -0
package/src/cli.ts
CHANGED
|
@@ -183,7 +183,7 @@ function handleProjectConfigError(
|
|
|
183
183
|
createError(ErrorCode.PROJECT_NOT_FOUND, 'Invalid project folder', undefined, [
|
|
184
184
|
'Use --dir to specify a different directory',
|
|
185
185
|
'Change to a directory containing agentuity.json',
|
|
186
|
-
`Run "${getCommand('project
|
|
186
|
+
`Run "${getCommand('project create')}" to create a new project`,
|
|
187
187
|
]),
|
|
188
188
|
logger,
|
|
189
189
|
errorFormat ?? 'text'
|
|
@@ -271,6 +271,11 @@ export async function createCLI(version: string): Promise<Command> {
|
|
|
271
271
|
},
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
+
// Configure help to show only main command names, not aliases
|
|
275
|
+
program.configureHelp({
|
|
276
|
+
subcommandTerm: (cmd) => cmd.name(),
|
|
277
|
+
});
|
|
278
|
+
|
|
274
279
|
return program;
|
|
275
280
|
}
|
|
276
281
|
|
|
@@ -503,7 +508,7 @@ async function registerSubcommand(
|
|
|
503
508
|
createError(ErrorCode.PROJECT_NOT_FOUND, 'Invalid project folder', undefined, [
|
|
504
509
|
'Use --dir to specify a different directory',
|
|
505
510
|
'Change to a directory containing agentuity.json',
|
|
506
|
-
`Run "${getCommand('project
|
|
511
|
+
`Run "${getCommand('project create')}" to create a new project`,
|
|
507
512
|
]),
|
|
508
513
|
baseCtx.logger,
|
|
509
514
|
baseCtx.options.errorFormat
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommandDefinition } from '
|
|
2
|
-
import { createCommand } from '
|
|
1
|
+
import type { CommandDefinition } from '../../../types';
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
3
|
import { showSubcommand } from './show';
|
|
4
4
|
|
|
5
5
|
export const capabilitiesCommand: CommandDefinition = createCommand({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createSubcommand } from '
|
|
2
|
-
import type { CommandContext } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { getCommand } from '
|
|
1
|
+
import { createSubcommand } from '../../../types';
|
|
2
|
+
import type { CommandContext } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { getCommand } from '../../../command-prefix';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
7
7
|
export interface Capability {
|
|
@@ -82,7 +82,7 @@ export const showSubcommand = createSubcommand({
|
|
|
82
82
|
name: 'Project Management',
|
|
83
83
|
description: 'Create, list, and manage projects',
|
|
84
84
|
commands: [
|
|
85
|
-
'project
|
|
85
|
+
'project create',
|
|
86
86
|
'project list',
|
|
87
87
|
'project show',
|
|
88
88
|
'project download',
|
|
@@ -183,7 +183,7 @@ export const showSubcommand = createSubcommand({
|
|
|
183
183
|
steps: [
|
|
184
184
|
'auth signup',
|
|
185
185
|
'auth login',
|
|
186
|
-
'project
|
|
186
|
+
'project create',
|
|
187
187
|
'secret set API_KEY <value>',
|
|
188
188
|
'dev',
|
|
189
189
|
],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createCommand } from '../../types';
|
|
2
|
+
import capabilitiesCommand from './capabilities';
|
|
3
|
+
import promptCommand from './prompt';
|
|
4
|
+
import schemaCommand from './schema';
|
|
5
|
+
|
|
6
|
+
export const command = createCommand({
|
|
7
|
+
name: 'ai',
|
|
8
|
+
description: 'AI coding agent related commands',
|
|
9
|
+
tags: ['fast'],
|
|
10
|
+
subcommands: [capabilitiesCommand, promptCommand, schemaCommand],
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommandDefinition } from '
|
|
2
|
-
import { createCommand } from '
|
|
1
|
+
import type { CommandDefinition } from '../../../types';
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
3
|
import { llmSubcommand } from './llm';
|
|
4
4
|
|
|
5
5
|
export const promptCommand: CommandDefinition = createCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createSubcommand } from '
|
|
2
|
-
import type { CommandContext } from '
|
|
3
|
-
import { getCommand } from '
|
|
1
|
+
import { createSubcommand } from '../../../types';
|
|
2
|
+
import type { CommandContext } from '../../../types';
|
|
3
|
+
import { getCommand } from '../../../command-prefix';
|
|
4
4
|
|
|
5
5
|
export const llmSubcommand = createSubcommand({
|
|
6
6
|
name: 'llm',
|
|
@@ -120,7 +120,7 @@ When using \`--json\` or \`--error-format=json\`, errors are structured:
|
|
|
120
120
|
"suggestions": [
|
|
121
121
|
"Use --dir to specify a different directory",
|
|
122
122
|
"Change to a directory containing agentuity.json",
|
|
123
|
-
"Run \\"${getCommand('project
|
|
123
|
+
"Run \\"${getCommand('project create')}\\" to create a new project"
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -180,7 +180,7 @@ ${getCommand('--dir /path/to/project command')}
|
|
|
180
180
|
### Creating a Project
|
|
181
181
|
|
|
182
182
|
\`\`\`bash
|
|
183
|
-
${getCommand('project
|
|
183
|
+
${getCommand('project create')}
|
|
184
184
|
\`\`\`
|
|
185
185
|
|
|
186
186
|
## Common Workflows
|
|
@@ -190,7 +190,7 @@ ${getCommand('project init')}
|
|
|
190
190
|
\`\`\`bash
|
|
191
191
|
${getCommand('auth signup')}
|
|
192
192
|
${getCommand('auth login')}
|
|
193
|
-
${getCommand('project
|
|
193
|
+
${getCommand('project create')}
|
|
194
194
|
${getCommand('secret set API_KEY <value>')}
|
|
195
195
|
\`\`\`
|
|
196
196
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommandDefinition } from '
|
|
2
|
-
import { createCommand } from '
|
|
1
|
+
import type { CommandDefinition } from '../../../types';
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
3
|
import { showSubcommand } from './show';
|
|
4
4
|
|
|
5
5
|
export const schemaCommand: CommandDefinition = createCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createSubcommand, type CommandContext } from '
|
|
2
|
-
import { ErrorCode } from '
|
|
3
|
-
import { getCommand } from '
|
|
1
|
+
import { createSubcommand, type CommandContext } from '../../../types';
|
|
2
|
+
import { ErrorCode } from '../../../errors';
|
|
3
|
+
import { getCommand } from '../../../command-prefix';
|
|
4
4
|
|
|
5
5
|
export const showSubcommand = createSubcommand({
|
|
6
6
|
name: 'show',
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createCommand } from '../../types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { bundle } from './bundler';
|
|
4
|
+
import * as tui from '../../tui';
|
|
5
|
+
import { getCommand } from '../../command-prefix';
|
|
6
|
+
|
|
7
|
+
const BuildResponseSchema = z.object({
|
|
8
|
+
success: z.boolean().describe('Whether the build succeeded'),
|
|
9
|
+
bundlePath: z.string().describe('Path to the build directory'),
|
|
10
|
+
projectName: z.string().describe('Project name'),
|
|
11
|
+
dev: z.boolean().describe('Whether dev mode was enabled'),
|
|
12
|
+
size: z.number().optional().describe('Build size in bytes'),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export const command = createCommand({
|
|
16
|
+
name: 'build',
|
|
17
|
+
description: 'Build Agentuity application for deployment',
|
|
18
|
+
tags: ['read-only', 'slow', 'requires-project'],
|
|
19
|
+
aliases: ['bundle'],
|
|
20
|
+
optional: { project: true },
|
|
21
|
+
idempotent: false,
|
|
22
|
+
examples: [getCommand('build'), getCommand('build --dev'), getCommand('bundle')],
|
|
23
|
+
schema: {
|
|
24
|
+
options: z.object({
|
|
25
|
+
dev: z.boolean().optional().describe('Enable development mode'),
|
|
26
|
+
}),
|
|
27
|
+
response: BuildResponseSchema,
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
async handler(ctx) {
|
|
31
|
+
const { opts, projectDir, project } = ctx;
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
tui.info(`Bundling project at: ${projectDir}`);
|
|
35
|
+
|
|
36
|
+
// Run TypeScript type checking before bundling (skip in dev mode)
|
|
37
|
+
if (!opts.dev) {
|
|
38
|
+
try {
|
|
39
|
+
tui.info('Running type check...');
|
|
40
|
+
const { resolve } = await import('node:path');
|
|
41
|
+
const absoluteProjectDir = resolve(projectDir);
|
|
42
|
+
const result = await Bun.$`bunx tsc --noEmit --skipLibCheck`.cwd(absoluteProjectDir).nothrow();
|
|
43
|
+
if (result.exitCode !== 0) {
|
|
44
|
+
const errorOutput = result.stderr.toString();
|
|
45
|
+
// Filter out errors from node_modules - only show user code errors
|
|
46
|
+
const lines = errorOutput.split('\n');
|
|
47
|
+
const userErrorLines = lines.filter((line) => !line.includes('node_modules/'));
|
|
48
|
+
|
|
49
|
+
if (userErrorLines.length > 0 && userErrorLines.some(line => line.trim())) {
|
|
50
|
+
tui.error('Type check failed:\n');
|
|
51
|
+
console.error(userErrorLines.join('\n'));
|
|
52
|
+
tui.fatal('Fix type errors before building');
|
|
53
|
+
}
|
|
54
|
+
// If only node_modules errors, pass with info
|
|
55
|
+
tui.info('Type check passed (ignoring dependency type errors)');
|
|
56
|
+
} else {
|
|
57
|
+
tui.success('Type check passed');
|
|
58
|
+
}
|
|
59
|
+
} catch (error) {
|
|
60
|
+
// If tsc fails to run, show error and fail
|
|
61
|
+
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
62
|
+
tui.error(`Type check failed to run: ${errorMsg}`);
|
|
63
|
+
tui.fatal('Unable to run TypeScript type checking. Ensure TypeScript is installed.');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
await bundle({
|
|
68
|
+
rootDir: projectDir,
|
|
69
|
+
dev: opts.dev || false,
|
|
70
|
+
project,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
tui.success('Bundle complete');
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
success: true,
|
|
77
|
+
bundlePath: `${projectDir}/.agentuity`,
|
|
78
|
+
projectName: project?.projectId || 'unknown',
|
|
79
|
+
dev: opts.dev || false,
|
|
80
|
+
};
|
|
81
|
+
} catch (error) {
|
|
82
|
+
if (error instanceof Error) {
|
|
83
|
+
tui.fatal(`Bundle failed: ${error.message}`);
|
|
84
|
+
} else {
|
|
85
|
+
tui.fatal('Bundle failed');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { APIResponseSchema } from '@agentuity/server';
|
|
5
5
|
import { Table } from 'console-table-printer';
|
|
6
|
-
import { abbreviate, abbreviateDescription } from '
|
|
6
|
+
import { abbreviate, abbreviateDescription } from '../../../utils/format';
|
|
7
7
|
|
|
8
8
|
const AgentSchema = z.object({
|
|
9
9
|
id: z.string(),
|
|
@@ -145,3 +145,4 @@ export const command = createCommand({
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
});
|
|
148
|
+
export default command;
|
package/src/cmd/cloud/deploy.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { createSubcommand } from '../../types';
|
|
|
6
6
|
import * as tui from '../../tui';
|
|
7
7
|
import { saveProjectDir } from '../../config';
|
|
8
8
|
import { runSteps, stepSuccess, stepSkipped, stepError, Step, ProgressCallback } from '../../steps';
|
|
9
|
-
import { bundle } from '../
|
|
9
|
+
import { bundle } from '../build/bundler';
|
|
10
10
|
import { loadBuildMetadata } from '../../config';
|
|
11
11
|
import {
|
|
12
12
|
projectEnvUpdate,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvDelete } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findExistingEnvFile,
|
|
7
7
|
readEnvFile,
|
|
8
8
|
writeEnvFile,
|
|
9
9
|
filterAgentuitySdkKeys,
|
|
10
|
-
} from '
|
|
11
|
-
import { getCommand } from '
|
|
10
|
+
} from '../../../env-util';
|
|
11
|
+
import { getCommand } from '../../../command-prefix';
|
|
12
12
|
|
|
13
13
|
const EnvDeleteResponseSchema = z.object({
|
|
14
14
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectGet } from '@agentuity/server';
|
|
5
|
-
import { maskSecret } from '
|
|
6
|
-
import { getCommand } from '
|
|
7
|
-
import { ErrorCode } from '
|
|
5
|
+
import { maskSecret } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
|
+
import { ErrorCode } from '../../../errors';
|
|
8
8
|
|
|
9
9
|
const EnvGetResponseSchema = z.object({
|
|
10
10
|
key: z.string().describe('Environment variable key name'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findEnvFile,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
mergeEnvVars,
|
|
11
11
|
splitEnvAndSecrets,
|
|
12
12
|
looksLikeSecret,
|
|
13
|
-
} from '
|
|
14
|
-
import { getCommand } from '
|
|
13
|
+
} from '../../../env-util';
|
|
14
|
+
import { getCommand } from '../../../command-prefix';
|
|
15
15
|
|
|
16
16
|
const EnvImportResponseSchema = z.object({
|
|
17
17
|
success: z.boolean().describe('Whether import succeeded'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommand } from '
|
|
1
|
+
import { createCommand } from '../../../types';
|
|
2
2
|
import { pullSubcommand } from './pull';
|
|
3
3
|
import { pushSubcommand } from './push';
|
|
4
4
|
import { setSubcommand } from './set';
|
|
@@ -21,3 +21,4 @@ export const command = createCommand({
|
|
|
21
21
|
importSubcommand,
|
|
22
22
|
],
|
|
23
23
|
});
|
|
24
|
+
export default command;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectGet } from '@agentuity/server';
|
|
5
|
-
import { maskSecret } from '
|
|
6
|
-
import { getCommand } from '
|
|
5
|
+
import { maskSecret } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const EnvListResponseSchema = z.record(
|
|
9
9
|
z.string(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { createSubcommand } from '
|
|
4
|
-
import * as tui from '
|
|
3
|
+
import { createSubcommand } from '../../../types';
|
|
4
|
+
import * as tui from '../../../tui';
|
|
5
5
|
import { projectGet } from '@agentuity/server';
|
|
6
6
|
import {
|
|
7
7
|
findEnvFile,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
readEnvFile,
|
|
10
10
|
writeEnvFile,
|
|
11
11
|
mergeEnvVars,
|
|
12
|
-
} from '
|
|
13
|
-
import { getCommand } from '
|
|
12
|
+
} from '../../../env-util';
|
|
13
|
+
import { getCommand } from '../../../command-prefix';
|
|
14
14
|
|
|
15
15
|
const EnvPullResponseSchema = z.object({
|
|
16
16
|
success: z.boolean().describe('Whether pull succeeded'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
|
-
import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '
|
|
6
|
-
import { getCommand } from '
|
|
5
|
+
import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '../../../env-util';
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const EnvPushResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether push succeeded'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createSubcommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createSubcommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { projectEnvUpdate } from '@agentuity/server';
|
|
5
5
|
import {
|
|
6
6
|
findEnvFile,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
writeEnvFile,
|
|
9
9
|
filterAgentuitySdkKeys,
|
|
10
10
|
looksLikeSecret,
|
|
11
|
-
} from '
|
|
12
|
-
import { getCommand } from '
|
|
11
|
+
} from '../../../env-util';
|
|
12
|
+
import { getCommand } from '../../../command-prefix';
|
|
13
13
|
|
|
14
14
|
const EnvSetResponseSchema = z.object({
|
|
15
15
|
success: z.boolean().describe('Whether the operation succeeded'),
|
package/src/cmd/cloud/index.ts
CHANGED
|
@@ -5,12 +5,22 @@ import { sessionCommand } from './session';
|
|
|
5
5
|
import { sshSubcommand } from './ssh';
|
|
6
6
|
import { scpSubcommand } from './scp';
|
|
7
7
|
import { deploymentCommand } from './deployment';
|
|
8
|
+
import keyvalueCommand from './keyvalue';
|
|
9
|
+
import agentsCommand from './agents';
|
|
10
|
+
import objectstoreCommand from './objectstore';
|
|
11
|
+
import envCommand from './env';
|
|
12
|
+
import secretCommand from './secret';
|
|
8
13
|
|
|
9
14
|
export const command = createCommand({
|
|
10
15
|
name: 'cloud',
|
|
11
16
|
description: 'Cloud related commands',
|
|
12
17
|
tags: ['slow', 'requires-auth'],
|
|
13
18
|
subcommands: [
|
|
19
|
+
keyvalueCommand,
|
|
20
|
+
agentsCommand,
|
|
21
|
+
objectstoreCommand,
|
|
22
|
+
envCommand,
|
|
23
|
+
secretCommand,
|
|
14
24
|
deploySubcommand,
|
|
15
25
|
resourceSubcommand,
|
|
16
26
|
sessionCommand,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
export const createNamespaceSubcommand = createCommand({
|
|
8
8
|
name: 'create-namespace',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import { ErrorCode } from '
|
|
4
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import { ErrorCode } from '../../../errors';
|
|
4
|
+
import * as tui from '../../../tui';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
export const deleteNamespaceSubcommand = createCommand({
|
|
9
9
|
name: 'delete-namespace',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVDeleteResponseSchema = z.object({
|
|
8
8
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { tryParseJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const KVGetResponseSchema = z.object({
|
|
9
9
|
exists: z.boolean().describe('Whether the key exists'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCommand } from '
|
|
1
|
+
import { createCommand } from '../../../types';
|
|
2
2
|
import { createNamespaceSubcommand } from './create-namespace';
|
|
3
3
|
import { deleteSubcommand } from './delete';
|
|
4
4
|
import { deleteNamespaceSubcommand } from './delete-namespace';
|
|
@@ -29,3 +29,4 @@ export const command = createCommand({
|
|
|
29
29
|
],
|
|
30
30
|
requires: { auth: true, project: true },
|
|
31
31
|
});
|
|
32
|
+
export default command;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVKeysResponseSchema = z.object({
|
|
8
8
|
namespace: z.string().describe('Namespace name'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const NamespaceListResponseSchema = z.array(z.string().describe('Namespace name'));
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import { createRepl, type ReplCommand } from '
|
|
4
|
-
import { showBanner } from '
|
|
5
|
-
import * as tui from '
|
|
6
|
-
import { isPossiblyJSON, tryParseJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import { createRepl, type ReplCommand } from '../../../repl';
|
|
4
|
+
import { showBanner } from '../../../banner';
|
|
5
|
+
import * as tui from '../../../tui';
|
|
6
|
+
import { isPossiblyJSON, tryParseJSON } from '../../../json';
|
|
7
7
|
import { createStorageAdapter } from './util';
|
|
8
|
-
import { getCommand } from '
|
|
8
|
+
import { getCommand } from '../../../command-prefix';
|
|
9
9
|
|
|
10
10
|
export const replSubcommand = createCommand({
|
|
11
11
|
name: 'repl',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVSearchResponseSchema = z.object({
|
|
8
8
|
namespace: z.string().describe('Namespace name'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
4
|
-
import { isPossiblyJSON } from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
|
+
import { isPossiblyJSON } from '../../../json';
|
|
5
5
|
import { createStorageAdapter } from './util';
|
|
6
|
-
import { getCommand } from '
|
|
6
|
+
import { getCommand } from '../../../command-prefix';
|
|
7
7
|
|
|
8
8
|
const KVSetResponseSchema = z.object({
|
|
9
9
|
success: z.boolean().describe('Whether the operation succeeded'),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const KVStatsResponseSchema = z.union([
|
|
8
8
|
z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KeyValueStorageService, Logger } from '@agentuity/core';
|
|
2
2
|
import { createServerFetchAdapter } from '@agentuity/server';
|
|
3
|
-
import { loadProjectSDKKey } from '
|
|
4
|
-
import { ErrorCode } from '
|
|
5
|
-
import type { Config } from '
|
|
6
|
-
import * as tui from '
|
|
3
|
+
import { loadProjectSDKKey } from '../../../config';
|
|
4
|
+
import { ErrorCode } from '../../../errors';
|
|
5
|
+
import type { Config } from '../../../types';
|
|
6
|
+
import * as tui from '../../../tui';
|
|
7
7
|
|
|
8
8
|
export async function createStorageAdapter(ctx: {
|
|
9
9
|
logger: Logger;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
export const deleteBucketSubcommand = createCommand({
|
|
8
8
|
name: 'delete-bucket',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createCommand } from '
|
|
3
|
-
import * as tui from '
|
|
2
|
+
import { createCommand } from '../../../types';
|
|
3
|
+
import * as tui from '../../../tui';
|
|
4
4
|
import { createStorageAdapter } from './util';
|
|
5
|
-
import { getCommand } from '
|
|
5
|
+
import { getCommand } from '../../../command-prefix';
|
|
6
6
|
|
|
7
7
|
const ObjectStoreDeleteResponseSchema = z.object({
|
|
8
8
|
success: z.boolean().describe('Whether the operation succeeded'),
|