libretto 0.4.0 → 0.4.1
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/cli/cli.js +83 -223
- package/dist/cli/commands/ai.js +32 -16
- package/dist/cli/commands/browser.js +126 -85
- package/dist/cli/commands/execution.js +147 -108
- package/dist/cli/commands/init.js +100 -40
- package/dist/cli/commands/logs.js +90 -65
- package/dist/cli/commands/shared.js +50 -0
- package/dist/cli/commands/snapshot.js +31 -16
- package/dist/cli/framework/simple-cli.js +776 -0
- package/dist/cli/router.js +29 -0
- package/package.json +2 -4
- /package/{.agents/skills → skills}/libretto/SKILL.md +0 -0
- /package/{.agents/skills → skills}/libretto/code-generation-rules.md +0 -0
- /package/{.agents/skills → skills}/libretto/integration-approach-selection.md +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { aiCommands } from "./commands/ai.js";
|
|
2
|
+
import { createBrowserCommands } from "./commands/browser.js";
|
|
3
|
+
import { createExecutionCommands } from "./commands/execution.js";
|
|
4
|
+
import { initCommand } from "./commands/init.js";
|
|
5
|
+
import { logCommands } from "./commands/logs.js";
|
|
6
|
+
import { sessionOption } from "./commands/shared.js";
|
|
7
|
+
import { createSnapshotCommand } from "./commands/snapshot.js";
|
|
8
|
+
import { SimpleCLI } from "./framework/simple-cli.js";
|
|
9
|
+
function buildCLIRoutes(logger) {
|
|
10
|
+
return {
|
|
11
|
+
...createBrowserCommands(logger),
|
|
12
|
+
...createExecutionCommands(logger),
|
|
13
|
+
...logCommands,
|
|
14
|
+
ai: aiCommands,
|
|
15
|
+
init: initCommand,
|
|
16
|
+
snapshot: createSnapshotCommand(logger)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function createCLIApp(logger) {
|
|
20
|
+
return SimpleCLI.define("libretto-cli", buildCLIRoutes(logger), {
|
|
21
|
+
globalNamed: {
|
|
22
|
+
session: sessionOption()
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
buildCLIRoutes,
|
|
28
|
+
createCLIApp
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libretto",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "AI-powered browser automation library and CLI built on Playwright",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"
|
|
17
|
+
"skills/libretto"
|
|
18
18
|
],
|
|
19
19
|
"bin": {
|
|
20
20
|
"libretto": "./dist/cli/index.js",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"@ai-sdk/google-vertex": "^4.0.80",
|
|
68
68
|
"@ai-sdk/openai": "^3.0.41",
|
|
69
69
|
"@types/node": "^25.5.0",
|
|
70
|
-
"@types/yargs": "^17.0.35",
|
|
71
70
|
"openai": "^6.29.0",
|
|
72
71
|
"tsup": "^8.5.1",
|
|
73
72
|
"typescript": "^5.9.3",
|
|
@@ -77,7 +76,6 @@
|
|
|
77
76
|
"ai": "^6.0.116",
|
|
78
77
|
"playwright": "^1.58.2",
|
|
79
78
|
"tsx": "^4.21.0",
|
|
80
|
-
"yargs": "^18.0.0",
|
|
81
79
|
"zod": "^4.3.6"
|
|
82
80
|
}
|
|
83
81
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|