agentful 0.4.46 → 0.4.47
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/README.md +2 -1
- package/THIRD-PARTY-LICENSES.txt +24 -0
- package/dist/engine-tools/imagegen.js +35 -0
- package/dist/index.cjs +60 -10
- package/package.json +7 -4
- package/assets/tools/imagegen.ts +0 -639
- package/assets/tools/package.json +0 -8
package/dist/index.cjs
CHANGED
|
@@ -3044,7 +3044,7 @@ var VERSION, brand, useColor, wrap, paint, tuiDesign, sym, ui;
|
|
|
3044
3044
|
var init_branding = __esm({
|
|
3045
3045
|
"src/branding.ts"() {
|
|
3046
3046
|
"use strict";
|
|
3047
|
-
VERSION = "0.4.
|
|
3047
|
+
VERSION = "0.4.47" ? "0.4.47" : null.version;
|
|
3048
3048
|
brand = {
|
|
3049
3049
|
name: "agentful",
|
|
3050
3050
|
// the command users type
|
|
@@ -7651,20 +7651,46 @@ ${cmd.template}
|
|
|
7651
7651
|
// src/lib/tools.ts
|
|
7652
7652
|
var import_node_fs9 = require("fs");
|
|
7653
7653
|
var import_node_path10 = require("path");
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7654
|
+
var TOOLS_DIR = "engine-tools";
|
|
7655
|
+
function bundledToolsDir(entry) {
|
|
7656
|
+
let here;
|
|
7657
|
+
try {
|
|
7658
|
+
here = (0, import_node_path10.dirname)((0, import_node_fs9.realpathSync)(entry));
|
|
7659
|
+
} catch {
|
|
7660
|
+
return null;
|
|
7661
|
+
}
|
|
7662
|
+
for (const candidate of [(0, import_node_path10.join)(here, TOOLS_DIR), (0, import_node_path10.join)(here, "..", "dist", TOOLS_DIR)]) {
|
|
7663
|
+
if ((0, import_node_fs9.existsSync)((0, import_node_path10.join)(candidate, "imagegen.js"))) return candidate;
|
|
7658
7664
|
}
|
|
7659
7665
|
return null;
|
|
7660
7666
|
}
|
|
7661
|
-
function
|
|
7662
|
-
|
|
7663
|
-
|
|
7667
|
+
function removeUnbundledTool(target) {
|
|
7668
|
+
(0, import_node_fs9.rmSync)((0, import_node_path10.join)(target, "imagegen.ts"), { force: true });
|
|
7669
|
+
try {
|
|
7670
|
+
const manifest = (0, import_node_path10.join)(target, "package.json");
|
|
7671
|
+
if (JSON.parse((0, import_node_fs9.readFileSync)(manifest, "utf8")).name === "agentful-engine-tools") (0, import_node_fs9.rmSync)(manifest, { force: true });
|
|
7672
|
+
} catch {
|
|
7673
|
+
}
|
|
7674
|
+
}
|
|
7675
|
+
var ENGINE_PLUGIN = "@opencode-ai/plugin";
|
|
7676
|
+
function skipRegistryInstall(configDir2) {
|
|
7677
|
+
const lock = (0, import_node_path10.join)(configDir2, "package-lock.json");
|
|
7678
|
+
const manifest = (0, import_node_path10.join)(configDir2, "package.json");
|
|
7679
|
+
(0, import_node_fs9.mkdirSync)((0, import_node_path10.join)(configDir2, "node_modules"), { recursive: true });
|
|
7680
|
+
if ((0, import_node_fs9.existsSync)(lock)) return;
|
|
7681
|
+
const dependencies2 = { [ENGINE_PLUGIN]: "*" };
|
|
7682
|
+
(0, import_node_fs9.writeFileSync)(lock, JSON.stringify({ lockfileVersion: 3, requires: true, packages: { "": { dependencies: dependencies2 } } }, null, 2) + "\n");
|
|
7683
|
+
if (!(0, import_node_fs9.existsSync)(manifest)) (0, import_node_fs9.writeFileSync)(manifest, JSON.stringify({ private: true, dependencies: dependencies2 }, null, 2) + "\n");
|
|
7684
|
+
}
|
|
7685
|
+
function installEngineTools(configDir2, entry = process.argv[1] || "") {
|
|
7664
7686
|
const target = (0, import_node_path10.join)(configDir2, "tools");
|
|
7665
|
-
(0, import_node_fs9.mkdirSync)(target, { recursive: true });
|
|
7666
7687
|
try {
|
|
7667
|
-
(
|
|
7688
|
+
removeUnbundledTool(target);
|
|
7689
|
+
const source = bundledToolsDir(entry);
|
|
7690
|
+
if (!source) return false;
|
|
7691
|
+
(0, import_node_fs9.mkdirSync)(target, { recursive: true });
|
|
7692
|
+
for (const file of (0, import_node_fs9.readdirSync)(source)) (0, import_node_fs9.copyFileSync)((0, import_node_path10.join)(source, file), (0, import_node_path10.join)(target, file));
|
|
7693
|
+
skipRegistryInstall(configDir2);
|
|
7668
7694
|
return true;
|
|
7669
7695
|
} catch {
|
|
7670
7696
|
return false;
|
|
@@ -11371,6 +11397,30 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
11371
11397
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
11372
11398
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
11373
11399
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
11400
|
+
|
|
11401
|
+
### zod (https://github.com/colinhacks/zod)
|
|
11402
|
+
|
|
11403
|
+
MIT License
|
|
11404
|
+
|
|
11405
|
+
Copyright (c) 2025 Colin McDonnell
|
|
11406
|
+
|
|
11407
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11408
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11409
|
+
in the Software without restriction, including without limitation the rights
|
|
11410
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11411
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11412
|
+
furnished to do so, subject to the following conditions:
|
|
11413
|
+
|
|
11414
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11415
|
+
copies or substantial portions of the Software.
|
|
11416
|
+
|
|
11417
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11418
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
11419
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
11420
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
11421
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
11422
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
11423
|
+
SOFTWARE.
|
|
11374
11424
|
`;
|
|
11375
11425
|
|
|
11376
11426
|
// src/commands/licenses.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentful",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.47",
|
|
4
4
|
"description": "Agentful in your terminal — local development with push-to-cloud previews",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://agentful.dev",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"assets",
|
|
13
12
|
"README.md",
|
|
14
13
|
"LICENSE",
|
|
15
14
|
"NOTICE",
|
|
@@ -19,7 +18,8 @@
|
|
|
19
18
|
"node": ">=20"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|
|
22
|
-
"build": "npm run sync-theme && npm run sync-starters && npm run sync-skills && npm run sync-pii && tsup",
|
|
21
|
+
"build": "npm run sync-theme && npm run sync-starters && npm run sync-skills && npm run sync-pii && tsup && npm run build-engine-tools",
|
|
22
|
+
"build-engine-tools": "node scripts/build-engine-tools.mjs",
|
|
23
23
|
"sync-starters": "node scripts/sync-starters.mjs",
|
|
24
24
|
"sync-skills": "node scripts/sync-skills.mjs",
|
|
25
25
|
"sync-pii": "node scripts/sync-pii.mjs",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"check-engine": "node scripts/check-engine-contract.mjs",
|
|
28
28
|
"check-pii": "node scripts/check-pii-guard.mjs",
|
|
29
29
|
"check-guard": "node scripts/check-engine-guard.mjs",
|
|
30
|
+
"check-imagegen": "node scripts/check-imagegen.mjs",
|
|
30
31
|
"dev": "tsx src/index.ts",
|
|
31
32
|
"sync-theme": "cp src/branding/agentful-theme.json ../frontend/public/cli/theme.json",
|
|
32
33
|
"test": "node --import tsx --test src/lib/*.test.ts"
|
|
@@ -34,11 +35,13 @@
|
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@types/node": "^20.14.0",
|
|
36
37
|
"commander": "^12.1.0",
|
|
38
|
+
"esbuild": "0.27.7",
|
|
37
39
|
"fflate": "^0.8.2",
|
|
38
40
|
"ignore": "^5.3.1",
|
|
39
41
|
"tsup": "^8.1.0",
|
|
40
42
|
"tsx": "^4.16.0",
|
|
41
|
-
"typescript": "^5.5.0"
|
|
43
|
+
"typescript": "^5.5.0",
|
|
44
|
+
"zod": "4.1.8"
|
|
42
45
|
},
|
|
43
46
|
"repository": {
|
|
44
47
|
"type": "git",
|