@inworld/cli 1.0.0-rc.1 → 2.0.0-rc.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/dist/index.js +15 -15
- package/package.json +1 -1
- package/dist/package.json +0 -53
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts +0 -10
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js +0 -15
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts +0 -13
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js +0 -2
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts +0 -7
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts +0 -116
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js +0 -71
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts +0 -78
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js +0 -39
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts +0 -10
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts +0 -7
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js +0 -12
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts +0 -115
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js +0 -85
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts +0 -255
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js +0 -87
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js.map +0 -1
- package/dist/proto/generated/portal/fetch.pb.d.ts +0 -26
- package/dist/proto/generated/portal/fetch.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/fetch.pb.js +0 -274
- package/dist/proto/generated/portal/fetch.pb.js.map +0 -1
- package/dist/src/auth/callback_server.d.ts +0 -41
- package/dist/src/auth/callback_server.d.ts.map +0 -1
- package/dist/src/auth/callback_server.js +0 -136
- package/dist/src/auth/callback_server.js.map +0 -1
- package/dist/src/auth/manager.d.ts +0 -97
- package/dist/src/auth/manager.d.ts.map +0 -1
- package/dist/src/auth/manager.js +0 -338
- package/dist/src/auth/manager.js.map +0 -1
- package/dist/src/auth/utils.d.ts +0 -45
- package/dist/src/auth/utils.d.ts.map +0 -1
- package/dist/src/auth/utils.js +0 -183
- package/dist/src/auth/utils.js.map +0 -1
- package/dist/src/commands/auth/disable_telemetry_command.d.ts +0 -3
- package/dist/src/commands/auth/disable_telemetry_command.d.ts.map +0 -1
- package/dist/src/commands/auth/disable_telemetry_command.js +0 -21
- package/dist/src/commands/auth/disable_telemetry_command.js.map +0 -1
- package/dist/src/commands/auth/enable_telemetry_command.d.ts +0 -3
- package/dist/src/commands/auth/enable_telemetry_command.d.ts.map +0 -1
- package/dist/src/commands/auth/enable_telemetry_command.js +0 -22
- package/dist/src/commands/auth/enable_telemetry_command.js.map +0 -1
- package/dist/src/commands/auth/login_ci_command.d.ts +0 -3
- package/dist/src/commands/auth/login_ci_command.d.ts.map +0 -1
- package/dist/src/commands/auth/login_ci_command.js +0 -41
- package/dist/src/commands/auth/login_ci_command.js.map +0 -1
- package/dist/src/commands/auth/login_command.d.ts +0 -4
- package/dist/src/commands/auth/login_command.d.ts.map +0 -1
- package/dist/src/commands/auth/login_command.js +0 -134
- package/dist/src/commands/auth/login_command.js.map +0 -1
- package/dist/src/commands/auth/logout_command.d.ts +0 -4
- package/dist/src/commands/auth/logout_command.d.ts.map +0 -1
- package/dist/src/commands/auth/logout_command.js +0 -54
- package/dist/src/commands/auth/logout_command.js.map +0 -1
- package/dist/src/commands/auth/print_access_token_command.d.ts +0 -3
- package/dist/src/commands/auth/print_access_token_command.d.ts.map +0 -1
- package/dist/src/commands/auth/print_access_token_command.js +0 -21
- package/dist/src/commands/auth/print_access_token_command.js.map +0 -1
- package/dist/src/commands/auth/print_api_key_command.d.ts +0 -3
- package/dist/src/commands/auth/print_api_key_command.d.ts.map +0 -1
- package/dist/src/commands/auth/print_api_key_command.js +0 -26
- package/dist/src/commands/auth/print_api_key_command.js.map +0 -1
- package/dist/src/commands/auth/status_command.d.ts +0 -4
- package/dist/src/commands/auth/status_command.d.ts.map +0 -1
- package/dist/src/commands/auth/status_command.js +0 -84
- package/dist/src/commands/auth/status_command.js.map +0 -1
- package/dist/src/commands/auth_command.d.ts +0 -3
- package/dist/src/commands/auth_command.d.ts.map +0 -1
- package/dist/src/commands/auth_command.js +0 -24
- package/dist/src/commands/auth_command.js.map +0 -1
- package/dist/src/commands/graph/graph_deploy_command.d.ts +0 -24
- package/dist/src/commands/graph/graph_deploy_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_deploy_command.js +0 -204
- package/dist/src/commands/graph/graph_deploy_command.js.map +0 -1
- package/dist/src/commands/graph/graph_init_command.d.ts +0 -4
- package/dist/src/commands/graph/graph_init_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_init_command.js +0 -335
- package/dist/src/commands/graph/graph_init_command.js.map +0 -1
- package/dist/src/commands/graph/graph_run_command.d.ts +0 -24
- package/dist/src/commands/graph/graph_run_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_run_command.js +0 -50
- package/dist/src/commands/graph/graph_run_command.js.map +0 -1
- package/dist/src/commands/graph/graph_serve_command.d.ts +0 -4
- package/dist/src/commands/graph/graph_serve_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_serve_command.js +0 -40
- package/dist/src/commands/graph/graph_serve_command.js.map +0 -1
- package/dist/src/commands/graph/graph_variant_command.d.ts +0 -3
- package/dist/src/commands/graph/graph_variant_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_variant_command.js +0 -13
- package/dist/src/commands/graph/graph_variant_command.js.map +0 -1
- package/dist/src/commands/graph/graph_visualize_command.d.ts +0 -7
- package/dist/src/commands/graph/graph_visualize_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_visualize_command.js +0 -35
- package/dist/src/commands/graph/graph_visualize_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts +0 -3
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_list_command.js +0 -26
- package/dist/src/commands/graph/variant/graph_variant_list_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts +0 -7
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_print_command.js +0 -46
- package/dist/src/commands/graph/variant/graph_variant_print_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts +0 -3
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_register_command.js +0 -46
- package/dist/src/commands/graph/variant/graph_variant_register_command.js.map +0 -1
- package/dist/src/commands/graph_command.d.ts +0 -3
- package/dist/src/commands/graph_command.d.ts.map +0 -1
- package/dist/src/commands/graph_command.js +0 -20
- package/dist/src/commands/graph_command.js.map +0 -1
- package/dist/src/commands/tts/tts_clone_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_clone_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_clone_command.js +0 -80
- package/dist/src/commands/tts/tts_clone_command.js.map +0 -1
- package/dist/src/commands/tts/tts_design_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_design_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_design_command.js +0 -216
- package/dist/src/commands/tts/tts_design_command.js.map +0 -1
- package/dist/src/commands/tts/tts_list_voices_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_list_voices_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_list_voices_command.js +0 -108
- package/dist/src/commands/tts/tts_list_voices_command.js.map +0 -1
- package/dist/src/commands/tts/tts_synthesize_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_synthesize_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_synthesize_command.js +0 -351
- package/dist/src/commands/tts/tts_synthesize_command.js.map +0 -1
- package/dist/src/commands/tts/tts_utils.d.ts +0 -14
- package/dist/src/commands/tts/tts_utils.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_utils.js +0 -84
- package/dist/src/commands/tts/tts_utils.js.map +0 -1
- package/dist/src/commands/tts_commands.d.ts +0 -6
- package/dist/src/commands/tts_commands.d.ts.map +0 -1
- package/dist/src/commands/tts_commands.js +0 -18
- package/dist/src/commands/tts_commands.js.map +0 -1
- package/dist/src/commands/workspace_command.d.ts +0 -22
- package/dist/src/commands/workspace_command.d.ts.map +0 -1
- package/dist/src/commands/workspace_command.js +0 -72
- package/dist/src/commands/workspace_command.js.map +0 -1
- package/dist/src/constants.d.ts +0 -11
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -48
- package/dist/src/constants.js.map +0 -1
- package/dist/src/grpc/core/InworldError.d.ts +0 -30
- package/dist/src/grpc/core/InworldError.d.ts.map +0 -1
- package/dist/src/grpc/core/InworldError.js +0 -46
- package/dist/src/grpc/core/InworldError.js.map +0 -1
- package/dist/src/grpc/core/statusCodes.d.ts +0 -122
- package/dist/src/grpc/core/statusCodes.d.ts.map +0 -1
- package/dist/src/grpc/core/statusCodes.js +0 -133
- package/dist/src/grpc/core/statusCodes.js.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -139
- package/dist/src/index.js.map +0 -1
- package/dist/src/services/analytics.d.ts +0 -45
- package/dist/src/services/analytics.d.ts.map +0 -1
- package/dist/src/services/analytics.js +0 -139
- package/dist/src/services/analytics.js.map +0 -1
- package/dist/src/services/deploy_service.d.ts +0 -4
- package/dist/src/services/deploy_service.d.ts.map +0 -1
- package/dist/src/services/deploy_service.js +0 -128
- package/dist/src/services/deploy_service.js.map +0 -1
- package/dist/src/services/graph_loader.d.ts +0 -7
- package/dist/src/services/graph_loader.d.ts.map +0 -1
- package/dist/src/services/graph_loader.js +0 -103
- package/dist/src/services/graph_loader.js.map +0 -1
- package/dist/src/services/graph_variant_service.d.ts +0 -12
- package/dist/src/services/graph_variant_service.d.ts.map +0 -1
- package/dist/src/services/graph_variant_service.js +0 -66
- package/dist/src/services/graph_variant_service.js.map +0 -1
- package/dist/src/services/template_service.d.ts +0 -79
- package/dist/src/services/template_service.d.ts.map +0 -1
- package/dist/src/services/template_service.js +0 -299
- package/dist/src/services/template_service.js.map +0 -1
- package/dist/src/services/tts_service.d.ts +0 -340
- package/dist/src/services/tts_service.d.ts.map +0 -1
- package/dist/src/services/tts_service.js +0 -320
- package/dist/src/services/tts_service.js.map +0 -1
- package/dist/src/services/update_checker.d.ts +0 -37
- package/dist/src/services/update_checker.d.ts.map +0 -1
- package/dist/src/services/update_checker.js +0 -134
- package/dist/src/services/update_checker.js.map +0 -1
- package/dist/src/services/workspace_service.d.ts +0 -53
- package/dist/src/services/workspace_service.d.ts.map +0 -1
- package/dist/src/services/workspace_service.js +0 -324
- package/dist/src/services/workspace_service.js.map +0 -1
- package/dist/src/utils/array.d.ts +0 -2
- package/dist/src/utils/array.d.ts.map +0 -1
- package/dist/src/utils/array.js +0 -4
- package/dist/src/utils/array.js.map +0 -1
- package/dist/src/utils/audio_player.d.ts +0 -10
- package/dist/src/utils/audio_player.d.ts.map +0 -1
- package/dist/src/utils/audio_player.js +0 -34
- package/dist/src/utils/audio_player.js.map +0 -1
- package/dist/src/utils/confirm.d.ts +0 -62
- package/dist/src/utils/confirm.d.ts.map +0 -1
- package/dist/src/utils/confirm.js +0 -90
- package/dist/src/utils/confirm.js.map +0 -1
- package/dist/src/utils/long_running_operations.d.ts +0 -38
- package/dist/src/utils/long_running_operations.d.ts.map +0 -1
- package/dist/src/utils/long_running_operations.js +0 -62
- package/dist/src/utils/long_running_operations.js.map +0 -1
- package/dist/src/utils/resource_name_helper.d.ts +0 -17
- package/dist/src/utils/resource_name_helper.d.ts.map +0 -1
- package/dist/src/utils/resource_name_helper.js +0 -38
- package/dist/src/utils/resource_name_helper.js.map +0 -1
- package/dist/src/utils/selector.d.ts +0 -62
- package/dist/src/utils/selector.d.ts.map +0 -1
- package/dist/src/utils/selector.js +0 -76
- package/dist/src/utils/selector.js.map +0 -1
- package/dist/src/utils/spinner.d.ts +0 -75
- package/dist/src/utils/spinner.d.ts.map +0 -1
- package/dist/src/utils/spinner.js +0 -178
- package/dist/src/utils/spinner.js.map +0 -1
- package/dist/src/utils/ui.d.ts +0 -27
- package/dist/src/utils/ui.d.ts.map +0 -1
- package/dist/src/utils/ui.js +0 -89
- package/dist/src/utils/ui.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
3
|
-
import * as ui from '@/utils/ui';
|
|
4
|
-
// The actual run action handler
|
|
5
|
-
const runAction = async (file, request) => {
|
|
6
|
-
try {
|
|
7
|
-
const { graph } = await loadGraph(file);
|
|
8
|
-
let requestJson;
|
|
9
|
-
try {
|
|
10
|
-
requestJson = JSON.parse(request);
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
console.error('Error parsing request:', error);
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
16
|
-
const results = await graph.executeJsonRequest(requestJson);
|
|
17
|
-
for await (const result of results) {
|
|
18
|
-
console.log(result);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
console.error('Error starting server:', error);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const makeRunCommand = (description) => {
|
|
26
|
-
return new Command('run')
|
|
27
|
-
.description(description)
|
|
28
|
-
.argument('<file>', 'Path to the graph file (e.g., test.ts)')
|
|
29
|
-
.argument('<request>', `
|
|
30
|
-
Graph input, heavily depends on the exact graph. E.g.:
|
|
31
|
-
|
|
32
|
-
{"input": "Hello"}
|
|
33
|
-
|
|
34
|
-
Also acceptes execution id, user context and data store content:
|
|
35
|
-
|
|
36
|
-
'{
|
|
37
|
-
"input": {"my_complicated_input_object": "not really"},
|
|
38
|
-
"executionId": "123e4567-e89b-12d3-a456-426614174000",
|
|
39
|
-
"userContext": {"targetingKey": "id", "attributes": {}},
|
|
40
|
-
"dataStoreContent": {}
|
|
41
|
-
}'
|
|
42
|
-
|
|
43
|
-
Mirrors the input format of the Inworld HTTP Graph Server.
|
|
44
|
-
`)
|
|
45
|
-
.action(runAction);
|
|
46
|
-
};
|
|
47
|
-
// Create the run subcommand for graph
|
|
48
|
-
export const runCommand = makeRunCommand('Runs single execution against provided Inworld graph. Uses same input and output protocol as http server.');
|
|
49
|
-
export const runCommandAlias = makeRunCommand(`Alias for "${ui.bold('inworld graph run')}"`);
|
|
50
|
-
//# sourceMappingURL=graph_run_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_run_command.js","sourceRoot":"","sources":["../../../../src/commands/graph/graph_run_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;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C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_serve_command.d.ts","sourceRoot":"","sources":["../../../../src/commands/graph/graph_serve_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0DpC,eAAO,MAAM,YAAY,SAExB,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAE7B,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
3
|
-
import * as ui from '@/utils/ui';
|
|
4
|
-
// The actual serve action handler
|
|
5
|
-
const serveAction = async (file, options) => {
|
|
6
|
-
try {
|
|
7
|
-
const { graph } = await loadGraph(file);
|
|
8
|
-
const port = parseInt(options.port, 10);
|
|
9
|
-
const host = options.host;
|
|
10
|
-
if (!['http', 'grpc'].includes(options.transport)) {
|
|
11
|
-
ui.printError('Transport must be either "http" or "grpc"');
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
await graph.serve({
|
|
15
|
-
host,
|
|
16
|
-
port,
|
|
17
|
-
transport: options.transport,
|
|
18
|
-
swagger: options.swagger,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
ui.printError('Error starting server:');
|
|
23
|
-
console.error(error);
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
// Create the serve subcommand for graph
|
|
28
|
-
const makeServeCommand = (description) => {
|
|
29
|
-
return new Command('serve')
|
|
30
|
-
.description(description)
|
|
31
|
-
.argument('<file>', 'Path to the graph file (e.g., test.ts)')
|
|
32
|
-
.option('-p, --port <port>', 'Port to run the server on', '3000')
|
|
33
|
-
.option('--host <host>', 'Host to bind the server to', 'localhost')
|
|
34
|
-
.option('-t, --transport <transport>', 'Transport protocol (http or grpc)', 'http')
|
|
35
|
-
.option('--swagger', 'Enable Swagger UI documentation (HTTP transport only)', false)
|
|
36
|
-
.action(serveAction);
|
|
37
|
-
};
|
|
38
|
-
export const serveCommand = makeServeCommand('Start a server that wraps an Inworld Runtime graph');
|
|
39
|
-
export const serveCommandAlias = makeServeCommand(`Alias for "${ui.bold('inworld graph serve')}"`);
|
|
40
|
-
//# sourceMappingURL=graph_serve_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_serve_command.js","sourceRoot":"","sources":["../../../../src/commands/graph/graph_serve_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,kCAAkC;AAClC,MAAM,WAAW,GAAG,KAAK,EACvB,IAAY,EACZ,OAKC,EACD,EAAE;IACF,IAAI,CAAC;QACH,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAE1B,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YAClD,EAAE,CAAC,UAAU,CAAC,2CAA2C,CAAC,CAAC;YAC3D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,MAAM,KAAK,CAAC,KAAK,CAAC;YAChB,IAAI;YACJ,IAAI;YACJ,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,EAAE,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;QACxC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF,wCAAwC;AACxC,MAAM,gBAAgB,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC/C,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;SACxB,WAAW,CAAC,WAAW,CAAC;SACxB,QAAQ,CAAC,QAAQ,EAAE,wCAAwC,CAAC;SAC5D,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAChE,MAAM,CAAC,eAAe,EAAE,4BAA4B,EAAE,WAAW,CAAC;SAClE,MAAM,CACL,6BAA6B,EAC7B,mCAAmC,EACnC,MAAM,CACP;SACA,MAAM,CACL,WAAW,EACX,uDAAuD,EACvD,KAAK,CACN;SACA,MAAM,CAAC,WAAW,CAAC,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAC1C,oDAAoD,CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAC/C,cAAc,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAChD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_command.d.ts","sourceRoot":"","sources":["../../../../src/commands/graph/graph_variant_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,mBAAmB,SAO5B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { graphListVariantsCommand } from './variant/graph_variant_list_command';
|
|
3
|
-
import { graphVariantPrintCommand } from './variant/graph_variant_print_command';
|
|
4
|
-
import { graphVariantRegisterCommand } from './variant/graph_variant_register_command';
|
|
5
|
-
export const graphVariantCommand = new Command('variant')
|
|
6
|
-
.description('Manage Inworld graph variants')
|
|
7
|
-
.addCommand(graphListVariantsCommand)
|
|
8
|
-
.addCommand(graphVariantRegisterCommand)
|
|
9
|
-
.addCommand(graphVariantPrintCommand)
|
|
10
|
-
.action(() => {
|
|
11
|
-
graphVariantCommand.help();
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=graph_variant_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_command.js","sourceRoot":"","sources":["../../../../src/commands/graph/graph_variant_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;KACtD,WAAW,CAAC,+BAA+B,CAAC;KAC5C,UAAU,CAAC,wBAAwB,CAAC;KACpC,UAAU,CAAC,2BAA2B,CAAC;KACvC,UAAU,CAAC,wBAAwB,CAAC;KACpC,MAAM,CAAC,GAAG,EAAE;IACX,mBAAmB,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
/**
|
|
3
|
-
* Command for visualizing an Inworld Runtime graph.
|
|
4
|
-
* Generates a visual representation of the graph structure.
|
|
5
|
-
*/
|
|
6
|
-
export declare const visualizeCommand: Command;
|
|
7
|
-
//# sourceMappingURL=graph_visualize_command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_visualize_command.d.ts","sourceRoot":"","sources":["../../../../src/commands/graph/graph_visualize_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2BpC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SAQH,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
4
|
-
import * as ui from '@/utils/ui';
|
|
5
|
-
/**
|
|
6
|
-
* Handler for the visualize action.
|
|
7
|
-
* Loads a graph and generates its visualization.
|
|
8
|
-
*
|
|
9
|
-
* @param file - Path to the graph file
|
|
10
|
-
* @param options - Command options
|
|
11
|
-
*/
|
|
12
|
-
const visualizeAction = async (file, options) => {
|
|
13
|
-
try {
|
|
14
|
-
const { graph } = await loadGraph(file);
|
|
15
|
-
ui.print(`Storing graph visualization to ${path.resolve(options.output)}`);
|
|
16
|
-
// Call visualize on the graph object
|
|
17
|
-
await graph.visualize(options.output);
|
|
18
|
-
await graph.stopRuntime();
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
ui.printError('Error visualizing graph:');
|
|
22
|
-
console.error(error);
|
|
23
|
-
process.exit(1);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Command for visualizing an Inworld Runtime graph.
|
|
28
|
-
* Generates a visual representation of the graph structure.
|
|
29
|
-
*/
|
|
30
|
-
export const visualizeCommand = new Command('visualize')
|
|
31
|
-
.description('Generate a visualization of an Inworld Runtime graph')
|
|
32
|
-
.argument('<file>', 'Path to the graph file (e.g., test.ts)')
|
|
33
|
-
.option('-o, --output <file>', 'Output file path (if not specified, outputs to graph.png in current directory)', './graph.png')
|
|
34
|
-
.action(visualizeAction);
|
|
35
|
-
//# sourceMappingURL=graph_visualize_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_visualize_command.js","sourceRoot":"","sources":["../../../../src/commands/graph/graph_visualize_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,KAAK,EAAE,IAAY,EAAE,OAA2B,EAAE,EAAE;IAC1E,IAAI,CAAC;QACH,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;QACxC,EAAE,CAAC,KAAK,CAAC,kCAAkC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC3E,qCAAqC;QACrC,MAAM,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,EAAE,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC;KACrD,WAAW,CAAC,sDAAsD,CAAC;KACnE,QAAQ,CAAC,QAAQ,EAAE,wCAAwC,CAAC;KAC5D,MAAM,CACL,qBAAqB,EACrB,gFAAgF,EAChF,aAAa,CACd;KACA,MAAM,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_list_command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_list_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8BpC,eAAO,MAAM,wBAAwB,SAGR,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { requireWorkspace } from '@/auth/utils';
|
|
3
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
4
|
-
import { listGraphVariants } from '@/services/graph_variant_service';
|
|
5
|
-
import * as ui from '@/utils/ui';
|
|
6
|
-
const listVariantsAction = async (file) => {
|
|
7
|
-
const workspaceId = await requireWorkspace();
|
|
8
|
-
const { graph } = await loadGraph(file);
|
|
9
|
-
graph.stopRuntime();
|
|
10
|
-
const variants = await listGraphVariants(graph.graphId);
|
|
11
|
-
if (!variants || variants.graphVariants?.length === 0) {
|
|
12
|
-
console.log();
|
|
13
|
-
ui.print(`No registered variants of the graph "${graph.graphId}" found in workspace "${workspaceId}"`);
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
console.log();
|
|
17
|
-
ui.printHeader(`Registered variants of the graph "${graph.graphId}" in workspace "${workspaceId}":`);
|
|
18
|
-
variants.graphVariants?.forEach((variant) => {
|
|
19
|
-
ui.printListItem(`${variant.name} - ${variant.displayName}`);
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export const graphListVariantsCommand = new Command('list')
|
|
23
|
-
.description('List all registered variants of the graph.')
|
|
24
|
-
.argument('<file>', 'Path to the graph file (e.g., graph.ts)')
|
|
25
|
-
.action(listVariantsAction);
|
|
26
|
-
//# sourceMappingURL=graph_variant_list_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_list_command.js","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_list_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,kBAAkB,GAAG,KAAK,EAAE,IAAY,EAAE,EAAE;IAChD,MAAM,WAAW,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAE7C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,KAAK,CAAC,WAAW,EAAE,CAAC;IACpB,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACxD,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,aAAa,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,EAAE,CAAC,KAAK,CACN,wCAAwC,KAAK,CAAC,OAAO,yBAAyB,WAAW,GAAG,CAC7F,CAAC;QACF,OAAO;IACT,CAAC;IAED,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,EAAE,CAAC,WAAW,CACZ,qCAAqC,KAAK,CAAC,OAAO,mBAAmB,WAAW,IAAI,CACrF,CAAC;IACF,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1C,EAAE,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,MAAM,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;KACxD,WAAW,CAAC,4CAA4C,CAAC;KACzD,QAAQ,CAAC,QAAQ,EAAE,yCAAyC,CAAC;KAC7D,MAAM,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
/**
|
|
3
|
-
* Command for converting an Inworld Runtime graph to JSON format.
|
|
4
|
-
* Serializes the graph structure and configuration to JSON.
|
|
5
|
-
*/
|
|
6
|
-
export declare const graphVariantPrintCommand: Command;
|
|
7
|
-
//# sourceMappingURL=graph_variant_print_command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_print_command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_print_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6CpC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,SAOH,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
4
|
-
import * as ui from '@/utils/ui';
|
|
5
|
-
/**
|
|
6
|
-
* Handler for the to_json action.
|
|
7
|
-
* Loads a graph and converts it to JSON format.
|
|
8
|
-
*
|
|
9
|
-
* @param file - Path to the graph file
|
|
10
|
-
* @param options - Command options
|
|
11
|
-
*/
|
|
12
|
-
const graphVariantPrintAction = async (file, options) => {
|
|
13
|
-
try {
|
|
14
|
-
const { graph } = await loadGraph(file);
|
|
15
|
-
graph.stopRuntime();
|
|
16
|
-
// Call toJson on the graph object
|
|
17
|
-
const jsonResult = await graph.toJSON();
|
|
18
|
-
// Output the JSON
|
|
19
|
-
if (options.output) {
|
|
20
|
-
// If an output file is specified, write to the file
|
|
21
|
-
const outputPath = path.resolve(options.output);
|
|
22
|
-
const fs = await import('fs/promises');
|
|
23
|
-
await fs.writeFile(options.output, jsonResult);
|
|
24
|
-
ui.success(`JSON saved to ${outputPath}`);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
// Otherwise, output to console
|
|
28
|
-
console.log(jsonResult);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (error) {
|
|
32
|
-
ui.printError('Error converting graph to JSON:');
|
|
33
|
-
console.error(error);
|
|
34
|
-
process.exit(1);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Command for converting an Inworld Runtime graph to JSON format.
|
|
39
|
-
* Serializes the graph structure and configuration to JSON.
|
|
40
|
-
*/
|
|
41
|
-
export const graphVariantPrintCommand = new Command('print')
|
|
42
|
-
.description('Print JSON representation of the graph variant')
|
|
43
|
-
.argument('<file>', 'Path to the graph file (e.g., test.ts)')
|
|
44
|
-
.option('-o, --output <file>', 'Output file path (if not specified, outputs to console)')
|
|
45
|
-
.action(graphVariantPrintAction);
|
|
46
|
-
//# sourceMappingURL=graph_variant_print_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_print_command.js","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_print_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,uBAAuB,GAAG,KAAK,EACnC,IAAY,EACZ,OAEC,EACD,EAAE;IACF,IAAI,CAAC;QACH,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;QACxC,KAAK,CAAC,WAAW,EAAE,CAAC;QAEpB,kCAAkC;QAClC,MAAM,UAAU,GAAW,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC;QAEhD,kBAAkB;QAClB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,oDAAoD;YACpD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAEhD,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;YACvC,MAAM,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YAC/C,EAAE,CAAC,OAAO,CAAC,iBAAiB,UAAU,EAAE,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,+BAA+B;YAC/B,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,EAAE,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;QACjD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;KACzD,WAAW,CAAC,gDAAgD,CAAC;KAC7D,QAAQ,CAAC,QAAQ,EAAE,wCAAwC,CAAC;KAC5D,MAAM,CACL,qBAAqB,EACrB,yDAAyD,CAC1D;KACA,MAAM,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_register_command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_register_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmEpC,eAAO,MAAM,2BAA2B,SAQP,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { requireWorkspace } from '@/auth/utils';
|
|
3
|
-
import { PLATFORM_URL } from '@/constants';
|
|
4
|
-
import { isGrpcError } from '@/grpc/core/InworldError';
|
|
5
|
-
import { GrpcStatusCode } from '@/grpc/core/statusCodes';
|
|
6
|
-
import { loadGraph } from '@/services/graph_loader';
|
|
7
|
-
import { registerGraphVariant } from '@/services/graph_variant_service';
|
|
8
|
-
import { getGraphResourceName } from '@/utils/resource_name_helper';
|
|
9
|
-
import * as ui from '@/utils/ui';
|
|
10
|
-
const registerVariantsAction = async (file, options) => {
|
|
11
|
-
const workspaceId = await requireWorkspace();
|
|
12
|
-
const { graph } = await loadGraph(file);
|
|
13
|
-
graph.stopRuntime();
|
|
14
|
-
let response = await registerGraphVariant(graph.graphId, options.displayName, graph.toJSON());
|
|
15
|
-
if (response !== true &&
|
|
16
|
-
isGrpcError(response) &&
|
|
17
|
-
response.code === GrpcStatusCode.ALREADY_EXISTS) {
|
|
18
|
-
if (options.force) {
|
|
19
|
-
response = await registerGraphVariant(graph.graphId, options.displayName, graph.toJSON(), true);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (response === true) {
|
|
23
|
-
const uri = `${PLATFORM_URL}/v2/${getGraphResourceName(workspaceId, graph.graphId)}/targeting`;
|
|
24
|
-
console.log();
|
|
25
|
-
ui.success(`Variant "${options.displayName}" ${options.force ? 'updated' : 'registered'} successfully`);
|
|
26
|
-
console.log();
|
|
27
|
-
ui.print(`Now you can open ${ui.link(uri)} and setup targeting for different variants`);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
if (isGrpcError(response) &&
|
|
31
|
-
response.code === GrpcStatusCode.ALREADY_EXISTS) {
|
|
32
|
-
console.log();
|
|
33
|
-
ui.printError(`Variant "${options.displayName}" already registered for graph "${graph.graphId}" in workspace "${workspaceId}", use --force option to update it`);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
ui.printError(`Failed to register variant "${options.displayName}"`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const graphVariantRegisterCommand = new Command('register')
|
|
41
|
-
.description('List all registered variants of the graph.')
|
|
42
|
-
.argument('<file>', 'Path to the graph file (e.g., graph.ts)')
|
|
43
|
-
.requiredOption('-d, --display-name <variantDisplayName>', 'The display name of the variant')
|
|
44
|
-
.option('-f, --force', 'Updates the variant if it already exists', false)
|
|
45
|
-
.action(registerVariantsAction);
|
|
46
|
-
//# sourceMappingURL=graph_variant_register_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_variant_register_command.js","sourceRoot":"","sources":["../../../../../src/commands/graph/variant/graph_variant_register_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,sBAAsB,GAAG,KAAK,EAClC,IAAY,EACZ,OAAgD,EAChD,EAAE;IACF,MAAM,WAAW,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAE7C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,KAAK,CAAC,WAAW,EAAE,CAAC;IAEpB,IAAI,QAAQ,GAAG,MAAM,oBAAoB,CACvC,KAAK,CAAC,OAAO,EACb,OAAO,CAAC,WAAW,EACnB,KAAK,CAAC,MAAM,EAAE,CACf,CAAC;IAEF,IACE,QAAQ,KAAK,IAAI;QACjB,WAAW,CAAC,QAAQ,CAAC;QACrB,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC,cAAc,EAC/C,CAAC;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,QAAQ,GAAG,MAAM,oBAAoB,CACnC,KAAK,CAAC,OAAO,EACb,OAAO,CAAC,WAAW,EACnB,KAAK,CAAC,MAAM,EAAE,EACd,IAAI,CACL,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"graph_command.d.ts","sourceRoot":"","sources":["../../../src/commands/graph_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,eAAO,MAAM,YAAY,SAUrB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { deployCommand } from './graph/graph_deploy_command';
|
|
3
|
-
import { initCommand } from './graph/graph_init_command';
|
|
4
|
-
import { runCommand } from './graph/graph_run_command';
|
|
5
|
-
import { serveCommand } from './graph/graph_serve_command';
|
|
6
|
-
import { graphVariantCommand } from './graph/graph_variant_command';
|
|
7
|
-
import { visualizeCommand } from './graph/graph_visualize_command';
|
|
8
|
-
// Create the graph parent command
|
|
9
|
-
export const graphCommand = new Command('graph')
|
|
10
|
-
.description('Manage Inworld graph projects')
|
|
11
|
-
.addCommand(initCommand)
|
|
12
|
-
.addCommand(serveCommand)
|
|
13
|
-
.addCommand(runCommand)
|
|
14
|
-
.addCommand(deployCommand)
|
|
15
|
-
.addCommand(visualizeCommand)
|
|
16
|
-
.addCommand(graphVariantCommand)
|
|
17
|
-
.action(() => {
|
|
18
|
-
graphCommand.help();
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=graph_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_command.js","sourceRoot":"","sources":["../../../src/commands/graph_command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,kCAAkC;AAClC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;KAC7C,WAAW,CAAC,+BAA+B,CAAC;KAC5C,UAAU,CAAC,WAAW,CAAC;KACvB,UAAU,CAAC,YAAY,CAAC;KACxB,UAAU,CAAC,UAAU,CAAC;KACtB,UAAU,CAAC,aAAa,CAAC;KACzB,UAAU,CAAC,gBAAgB,CAAC;KAC5B,UAAU,CAAC,mBAAmB,CAAC;KAC/B,MAAM,CAAC,GAAG,EAAE;IACX,YAAY,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tts_clone_command.d.ts","sourceRoot":"","sources":["../../../../src/commands/tts/tts_clone_command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC;;GAEG;AACH,eAAO,MAAM,YAAY,SAmFrB,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import chalk from 'chalk';
|
|
2
|
-
import { Command } from 'commander';
|
|
3
|
-
import { readFile } from 'fs/promises';
|
|
4
|
-
import { resolve } from 'path';
|
|
5
|
-
import { ttsService } from '@/services/tts_service';
|
|
6
|
-
/**
|
|
7
|
-
* Clone voice command
|
|
8
|
-
*/
|
|
9
|
-
export const cloneCommand = new Command('clone')
|
|
10
|
-
.description('Clone a voice from an audio file (5-15 seconds, max 4MB)')
|
|
11
|
-
.argument('<audioFile>', 'Path to audio file (wav, mp3, webm)')
|
|
12
|
-
.requiredOption('-n, --name <name>', 'Display name for the cloned voice')
|
|
13
|
-
.option('-l, --lang <code>', 'Language code (e.g., EN_US)', 'EN_US')
|
|
14
|
-
.option('-t, --transcription <text>', 'Transcription of the audio')
|
|
15
|
-
.option('-d, --description <text>', 'Description of the voice')
|
|
16
|
-
.option('--tags <tags>', 'Comma-separated tags')
|
|
17
|
-
.option('--remove-noise', 'Remove background noise from audio')
|
|
18
|
-
.option('-j, --json', 'Output response as JSON')
|
|
19
|
-
.action(async (audioFile, options) => {
|
|
20
|
-
try {
|
|
21
|
-
const filePath = resolve(audioFile);
|
|
22
|
-
const audioData = await readFile(filePath);
|
|
23
|
-
if (audioData.length > 4 * 1024 * 1024) {
|
|
24
|
-
console.error(chalk.red('Error: Audio file exceeds 4MB limit'));
|
|
25
|
-
process.exit(1);
|
|
26
|
-
}
|
|
27
|
-
const audioBase64 = audioData.toString('base64');
|
|
28
|
-
console.log(chalk.cyan('Cloning voice...'));
|
|
29
|
-
console.log(chalk.gray(`File: ${filePath}`));
|
|
30
|
-
console.log(chalk.gray(`Name: ${options.name}`));
|
|
31
|
-
console.log(chalk.gray(`Size: ${(audioData.length / 1024).toFixed(1)} KB`));
|
|
32
|
-
const response = await ttsService.cloneVoice({
|
|
33
|
-
displayName: options.name,
|
|
34
|
-
langCode: options.lang,
|
|
35
|
-
voiceSamples: [
|
|
36
|
-
{
|
|
37
|
-
audioData: audioBase64,
|
|
38
|
-
transcription: options.transcription,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
description: options.description,
|
|
42
|
-
tags: options.tags
|
|
43
|
-
?.split(',')
|
|
44
|
-
.map((t) => t.trim())
|
|
45
|
-
.filter(Boolean),
|
|
46
|
-
audioProcessingConfig: options.removeNoise
|
|
47
|
-
? { removeBackgroundNoise: true }
|
|
48
|
-
: undefined,
|
|
49
|
-
});
|
|
50
|
-
if (options.json) {
|
|
51
|
-
console.log(JSON.stringify(response, null, 2));
|
|
52
|
-
process.exit(0);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
for (const sample of response.audioSamplesValidated) {
|
|
56
|
-
for (const warning of sample.warnings) {
|
|
57
|
-
console.log(chalk.yellow(`${warning}`));
|
|
58
|
-
}
|
|
59
|
-
for (const error of sample.errors) {
|
|
60
|
-
console.log(chalk.red(`${error}`));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const voice = response.voice;
|
|
64
|
-
console.log(chalk.green('\nVoice cloned successfully!'));
|
|
65
|
-
console.log(chalk.white(` Voice ID: ${chalk.cyan(voice.voiceId)}`));
|
|
66
|
-
console.log(chalk.white(` Display Name: ${voice.displayName}`));
|
|
67
|
-
console.log(chalk.white(` Language: ${voice.langCode}`));
|
|
68
|
-
if (voice.description) {
|
|
69
|
-
console.log(chalk.white(` Description: ${voice.description}`));
|
|
70
|
-
}
|
|
71
|
-
console.log(chalk.gray(`\nUse this voice: inworld tts synthesize "Hello" -v ${voice.voiceId}`));
|
|
72
|
-
process.exit(0);
|
|
73
|
-
}
|
|
74
|
-
catch (error) {
|
|
75
|
-
console.error(chalk.red('Error cloning voice:'));
|
|
76
|
-
console.error(chalk.red(error.message || error));
|
|
77
|
-
process.exit(1);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=tts_clone_command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tts_clone_command.js","sourceRoot":"","sources":["../../../../src/commands/tts/tts_clone_command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;KAC7C,WAAW,CAAC,0DAA0D,CAAC;KACvE,QAAQ,CAAC,aAAa,EAAE,qCAAqC,CAAC;KAC9D,cAAc,CAAC,mBAAmB,EAAE,mCAAmC,CAAC;KACxE,MAAM,CAAC,mBAAmB,EAAE,6BAA6B,EAAE,OAAO,CAAC;KACnE,MAAM,CAAC,4BAA4B,EA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