@tangle-network/create-agent-app 0.50.10 → 0.50.12
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
CHANGED
|
@@ -13,13 +13,16 @@ package's engine requirement and record the version you will run:
|
|
|
13
13
|
```bash
|
|
14
14
|
CREATE_VERSION=$(npm view @tangle-network/create-agent-app@latest version) &&
|
|
15
15
|
npm view "@tangle-network/create-agent-app@$CREATE_VERSION" engines --json &&
|
|
16
|
-
npm view "@tangle-network/agent-app
|
|
16
|
+
npm view "@tangle-network/agent-app@$CREATE_VERSION" version peerDependencies --json &&
|
|
17
17
|
npm create "@tangle-network/agent-app@$CREATE_VERSION" my-agent -- --chat
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Do not continue after a failed registry lookup. The CLI defaults the generated
|
|
21
|
-
`agent-app` dependency to
|
|
22
|
-
records the requested dependencies and `packageManager`.
|
|
21
|
+
`agent-app` dependency to `<scaffolder-version>`; the generated `package.json`
|
|
22
|
+
records the requested dependencies and `packageManager`.
|
|
23
|
+
Use that pnpm version.
|
|
24
|
+
The generated engine pins match the cohort maintained in Agent App's package manifest.
|
|
25
|
+
Upgrade this cohort deliberately and run the product's real flow before deployment.
|
|
23
26
|
Do not force a version override or ignore peer failures to conceal an incomplete
|
|
24
27
|
release.
|
|
25
28
|
|
package/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ const TEMPLATES = {
|
|
|
28
28
|
const COMMON_TEMPLATE = join(HERE, 'template-common')
|
|
29
29
|
|
|
30
30
|
const { version: packageVersion } = JSON.parse(await readFile(join(HERE, 'package.json'), 'utf8'))
|
|
31
|
-
const
|
|
31
|
+
const DEFAULT_AGENT_APP_VERSION = packageVersion
|
|
32
32
|
|
|
33
33
|
// Template files renamed on materialization. A template cannot itself be named
|
|
34
34
|
// `package.json` / `.gitignore` / `tsconfig.json` without confusing the
|
|
@@ -67,7 +67,7 @@ function usage() {
|
|
|
67
67
|
' streaming turns + replay, uploads, agent asks) with',
|
|
68
68
|
' its own end-to-end test. Default: the tool-loop skeleton.',
|
|
69
69
|
' --name <name> Project name (default: the target dir basename).',
|
|
70
|
-
' --agent-app-version <range> @tangle-network/agent-app version (default: ' +
|
|
70
|
+
' --agent-app-version <range> @tangle-network/agent-app version (default: ' + DEFAULT_AGENT_APP_VERSION + ').',
|
|
71
71
|
' --force Write into a non-empty directory.',
|
|
72
72
|
' -h, --help Show this help.',
|
|
73
73
|
'',
|
|
@@ -143,7 +143,7 @@ async function main() {
|
|
|
143
143
|
const targetDir = resolve(args._[0] ?? args.name)
|
|
144
144
|
const projectName = args.name ?? targetDir.split(/[\\/]/).pop()
|
|
145
145
|
const packageName = toPackageName(projectName)
|
|
146
|
-
const agentAppVersion = args.agentAppVersion ??
|
|
146
|
+
const agentAppVersion = args.agentAppVersion ?? DEFAULT_AGENT_APP_VERSION
|
|
147
147
|
const templateDir = TEMPLATES[args.template ?? 'default']
|
|
148
148
|
|
|
149
149
|
if (existsSync(targetDir)) {
|
package/package.json
CHANGED
package/template/_package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"packageManager": "pnpm@11.24.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "wrangler dev",
|
|
12
|
-
"deploy": "wrangler deploy",
|
|
12
|
+
"deploy": "pnpm run peer-check && wrangler deploy",
|
|
13
13
|
"peer-check": "agent-app-peer-check",
|
|
14
14
|
"signoff": "agent-app-signoff",
|
|
15
15
|
"typecheck": "tsc --noEmit",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"@tangle-network/agent-app": "__AGENT_APP_VERSION__"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@tangle-network/agent-eval": ">=0.199.0 <0.
|
|
25
|
-
"@tangle-network/agent-integrations": ">=0.54.2 <0.
|
|
26
|
-
"@tangle-network/agent-interface": "2.13.0",
|
|
27
|
-
"@tangle-network/agent-runtime": ">=0.282.2 <0.
|
|
24
|
+
"@tangle-network/agent-eval": ">=0.199.0 <0.201.0",
|
|
25
|
+
"@tangle-network/agent-integrations": ">=0.54.2 <0.58.0 || >=0.59.0 <0.60.0",
|
|
26
|
+
"@tangle-network/agent-interface": "^2.13.0",
|
|
27
|
+
"@tangle-network/agent-runtime": ">=0.282.2 <0.284.0 || >=0.285.0 <0.286.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@tangle-network/agent-eval": "0.199.1",
|
|
31
|
-
"@tangle-network/agent-integrations": "0.
|
|
32
|
-
"@tangle-network/agent-interface": "2.
|
|
31
|
+
"@tangle-network/agent-integrations": "0.57.0",
|
|
32
|
+
"@tangle-network/agent-interface": "2.14.0",
|
|
33
33
|
"@tangle-network/agent-knowledge": "17.1.10",
|
|
34
|
-
"@tangle-network/agent-runtime": "0.
|
|
35
|
-
"@tangle-network/sandbox": "0.
|
|
34
|
+
"@tangle-network/agent-runtime": "0.285.0",
|
|
35
|
+
"@tangle-network/sandbox": "0.58.1",
|
|
36
36
|
"@types/node": "^22.20.1",
|
|
37
37
|
"typescript": "^7.0.2",
|
|
38
38
|
"viem": "^2.0.0",
|
|
@@ -3,12 +3,16 @@ packages:
|
|
|
3
3
|
|
|
4
4
|
autoInstallPeers: false
|
|
5
5
|
strictPeerDependencies: true
|
|
6
|
+
peerDependencyRules:
|
|
7
|
+
allowedVersions:
|
|
8
|
+
'@ph0ny/sdk@0.1.2>typescript': '7.0.2'
|
|
6
9
|
|
|
7
10
|
minimumReleaseAge: 4320
|
|
8
11
|
minimumReleaseAgeStrict: true
|
|
9
12
|
minimumReleaseAgeIgnoreMissingTime: false
|
|
10
13
|
minimumReleaseAgeExclude:
|
|
11
14
|
- '@tangle-network/*'
|
|
15
|
+
- '@ph0ny/sdk@0.1.2'
|
|
12
16
|
|
|
13
17
|
overrides:
|
|
14
18
|
zod: 4.4.3
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"packageManager": "pnpm@11.24.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "wrangler dev",
|
|
12
|
-
"deploy": "wrangler deploy",
|
|
12
|
+
"deploy": "pnpm run peer-check && wrangler deploy",
|
|
13
13
|
"db:migrate": "wrangler d1 migrations apply __PACKAGE_NAME__ --remote",
|
|
14
14
|
"db:migrate:local": "wrangler d1 migrations apply __PACKAGE_NAME__ --local",
|
|
15
15
|
"peer-check": "agent-app-peer-check",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@tangle-network/agent-app": "__AGENT_APP_VERSION__",
|
|
23
23
|
"@tangle-network/agent-gateway": "0.11.4",
|
|
24
|
-
"@tangle-network/agent-interface": "2.
|
|
25
|
-
"@tangle-network/agent-runtime": "0.
|
|
26
|
-
"@tangle-network/sandbox": "0.
|
|
24
|
+
"@tangle-network/agent-interface": "2.14.0",
|
|
25
|
+
"@tangle-network/agent-runtime": "0.285.0",
|
|
26
|
+
"@tangle-network/sandbox": "0.58.1",
|
|
27
27
|
"better-auth": "^1.7.2",
|
|
28
28
|
"drizzle-orm": "^0.45.2",
|
|
29
29
|
"hono": "^4.13.5",
|
|
30
30
|
"viem": "^2.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@tangle-network/agent-eval": ">=0.199.0 <0.
|
|
34
|
-
"@tangle-network/agent-integrations": ">=0.54.2 <0.
|
|
33
|
+
"@tangle-network/agent-eval": ">=0.199.0 <0.201.0",
|
|
34
|
+
"@tangle-network/agent-integrations": ">=0.54.2 <0.58.0 || >=0.59.0 <0.60.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@tangle-network/agent-eval": "0.199.1",
|
|
38
|
-
"@tangle-network/agent-integrations": "0.
|
|
38
|
+
"@tangle-network/agent-integrations": "0.57.0",
|
|
39
39
|
"@tangle-network/agent-knowledge": "17.1.10",
|
|
40
40
|
"@cloudflare/workers-types": "^5.20260827.1",
|
|
41
41
|
"@types/better-sqlite3": "^9.6.0",
|
|
@@ -3,12 +3,16 @@ packages:
|
|
|
3
3
|
|
|
4
4
|
autoInstallPeers: false
|
|
5
5
|
strictPeerDependencies: true
|
|
6
|
+
peerDependencyRules:
|
|
7
|
+
allowedVersions:
|
|
8
|
+
'@ph0ny/sdk@0.1.2>typescript': '7.0.2'
|
|
6
9
|
|
|
7
10
|
minimumReleaseAge: 4320
|
|
8
11
|
minimumReleaseAgeStrict: true
|
|
9
12
|
minimumReleaseAgeIgnoreMissingTime: false
|
|
10
13
|
minimumReleaseAgeExclude:
|
|
11
14
|
- '@tangle-network/*'
|
|
15
|
+
- '@ph0ny/sdk@0.1.2'
|
|
12
16
|
|
|
13
17
|
overrides:
|
|
14
18
|
zod: 4.4.3
|