@vertesia/cli 0.61.0 → 0.63.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/lib/codegen/index.d.ts +1 -1
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +9 -6
- package/lib/codegen/index.js.map +1 -1
- package/lib/projects/index.d.ts +1 -1
- package/lib/projects/index.d.ts.map +1 -1
- package/lib/projects/index.js +11 -7
- package/lib/projects/index.js.map +1 -1
- package/package.json +4 -4
package/lib/codegen/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
export default function runExport(program: Command, interactionName: string | undefined, options: Record<string, any>): void
|
|
2
|
+
export default function runExport(program: Command, interactionName: string | undefined, options: Record<string, any>): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codegen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codegen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAA8B,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBA2B1H"}
|
package/lib/codegen/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { getClient } from "../client.js";
|
|
2
2
|
import { CodeBuilder } from "./CodeBuilder.js";
|
|
3
|
-
export default function runExport(program, interactionName, options) {
|
|
3
|
+
export default async function runExport(program, interactionName, options) {
|
|
4
4
|
const client = getClient(program);
|
|
5
|
-
|
|
5
|
+
const project = await client.getProject();
|
|
6
|
+
if (!project) {
|
|
6
7
|
console.error('No project id specified');
|
|
7
8
|
process.exit(1);
|
|
8
9
|
}
|
|
@@ -13,15 +14,17 @@ export default function runExport(program, interactionName, options) {
|
|
|
13
14
|
tags: tags,
|
|
14
15
|
versions: options.all ? [] : versions,
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
try {
|
|
18
|
+
const interactions = await client.interactions.export(payload);
|
|
17
19
|
new CodeBuilder().build(interactions, {
|
|
18
20
|
dir: options.dir,
|
|
19
|
-
project:
|
|
21
|
+
project: project.id,
|
|
20
22
|
exportVersion: options.export || undefined,
|
|
21
23
|
});
|
|
22
|
-
}
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
23
26
|
console.error('Failed to export interactions:', error.message || error);
|
|
24
27
|
process.exit(1);
|
|
25
|
-
}
|
|
28
|
+
}
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=index.js.map
|
package/lib/codegen/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codegen/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,OAAgB,EAAE,eAAmC,EAAE,OAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codegen/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,SAAS,CAAC,OAAgB,EAAE,eAAmC,EAAE,OAA4B;IACvH,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC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],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/projects/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAsB,YAAY,CAAC,OAAO,EAAE,OAAO,iBAalD"}
|
package/lib/projects/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import colors from "ansi-colors";
|
|
2
2
|
import { getClient } from "../client.js";
|
|
3
|
-
export function listProjects(program) {
|
|
3
|
+
export async function listProjects(program) {
|
|
4
4
|
const client = getClient(program);
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const project = await client.getProject();
|
|
6
|
+
if (!project) {
|
|
7
|
+
console.error('No project id found.');
|
|
8
|
+
process.exit(1);
|
|
9
|
+
}
|
|
10
|
+
const activeProjectId = project.id;
|
|
11
|
+
const projects = await client.projects.list();
|
|
12
|
+
projects.map(project => {
|
|
13
|
+
const check = activeProjectId === project.id ? " " + colors.symbols.check : "";
|
|
14
|
+
console.log(project.name + ` [${project.id}]` + check);
|
|
11
15
|
});
|
|
12
16
|
}
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/projects/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAC,OAAgB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/projects/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAgB;IAC/C,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,MAAM,eAAe,GAAG,OAAO,CAAC,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC9C,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QACnB,MAAM,KAAK,GAAG,eAAe,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,KAAK,OAAO,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAA;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Code generation for the interaction defined with Composable AI Studio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"signal-exit": "^4.1.0",
|
|
53
53
|
"typescript": "^5.5.3",
|
|
54
54
|
"@llumiverse/common": "0.18.0",
|
|
55
|
-
"@vertesia/
|
|
56
|
-
"@vertesia/
|
|
57
|
-
"@vertesia/workflow": "0.
|
|
55
|
+
"@vertesia/client": "0.63.0",
|
|
56
|
+
"@vertesia/common": "0.63.0",
|
|
57
|
+
"@vertesia/workflow": "0.63.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/jsonwebtoken": "^9.0.6"
|