@coze-arch/cli 0.0.36-alpha.0a210b → 0.0.36-alpha.15544e

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.
Files changed (109) hide show
  1. package/README.md +68 -114
  2. package/docs/deploy.md +57 -40
  3. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +38 -4
  4. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +1 -1
  5. package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +1 -1
  6. package/lib/__templates__/expo/client/metro.config.js +3 -1
  7. package/lib/__templates__/expo/pnpm-lock.yaml +5 -5
  8. package/lib/__templates__/expo/server/package.json +2 -2
  9. package/lib/__templates__/expo/server/src/index.ts +1 -1
  10. package/lib/__templates__/expo/template.config.js +11 -2
  11. package/lib/__templates__/native-static/.coze +2 -0
  12. package/lib/__templates__/native-static/scripts/serve.ps1 +7 -0
  13. package/lib/__templates__/nextjs/.coze +5 -0
  14. package/lib/__templates__/nextjs/package.json +3 -3
  15. package/lib/__templates__/nextjs/pnpm-lock.yaml +513 -9
  16. package/lib/__templates__/nextjs/scripts/build.ps1 +16 -0
  17. package/lib/__templates__/nextjs/scripts/dev.ps1 +63 -0
  18. package/lib/__templates__/nextjs/scripts/dev.sh +230 -13
  19. package/lib/__templates__/nextjs/scripts/prepare.ps1 +18 -0
  20. package/lib/__templates__/nextjs/scripts/start.ps1 +11 -0
  21. package/lib/__templates__/nextjs/scripts/validate.ps1 +8 -0
  22. package/lib/__templates__/nextjs/template.config.js +1 -1
  23. package/lib/__templates__/nuxt-vue/.coze +5 -0
  24. package/lib/__templates__/nuxt-vue/package.json +1 -1
  25. package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +5 -5
  26. package/lib/__templates__/nuxt-vue/scripts/build.ps1 +12 -0
  27. package/lib/__templates__/nuxt-vue/scripts/dev.ps1 +63 -0
  28. package/lib/__templates__/nuxt-vue/scripts/dev.sh +110 -1
  29. package/lib/__templates__/nuxt-vue/scripts/prepare.ps1 +12 -0
  30. package/lib/__templates__/nuxt-vue/scripts/start.ps1 +11 -0
  31. package/lib/__templates__/nuxt-vue/scripts/validate.ps1 +8 -0
  32. package/lib/__templates__/phaser/.coze +5 -0
  33. package/lib/__templates__/phaser/README.md +8 -0
  34. package/lib/__templates__/phaser/scripts/build.ps1 +12 -0
  35. package/lib/__templates__/phaser/scripts/dev.ps1 +49 -0
  36. package/lib/__templates__/phaser/scripts/prepare.ps1 +8 -0
  37. package/lib/__templates__/phaser/scripts/start.ps1 +49 -0
  38. package/lib/__templates__/phaser/scripts/validate.ps1 +7 -0
  39. package/lib/__templates__/phaser/src/global.d.ts +3 -0
  40. package/lib/__templates__/phaser/src/scene/BootScene.ts +4 -0
  41. package/lib/__templates__/phaser/src/scene/DevLoadingScene.ts +3 -0
  42. package/lib/__templates__/phaser/src/utils/mark-editable.ts +8 -1
  43. package/lib/__templates__/phaser/vite.config.ts +1 -1
  44. package/lib/__templates__/phaser-static/.coze +15 -0
  45. package/lib/__templates__/phaser-static/README.md +40 -0
  46. package/lib/__templates__/phaser-static/_gitignore +6 -0
  47. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0001.png +0 -0
  48. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0002.png +0 -0
  49. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0003.png +0 -0
  50. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0004.png +0 -0
  51. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0005.png +0 -0
  52. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0006.png +0 -0
  53. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0007.png +0 -0
  54. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0008.png +0 -0
  55. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0009.png +0 -0
  56. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0010.png +0 -0
  57. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0011.png +0 -0
  58. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0012.png +0 -0
  59. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0013.png +0 -0
  60. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0014.png +0 -0
  61. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0015.png +0 -0
  62. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0016.png +0 -0
  63. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0017.png +0 -0
  64. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0018.png +0 -0
  65. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0019.png +0 -0
  66. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0020.png +0 -0
  67. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0021.png +0 -0
  68. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0022.png +0 -0
  69. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0023.png +0 -0
  70. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/frame_0024.png +0 -0
  71. package/lib/__templates__/phaser-static/assets/image_sequence/coze-game-loading/manifest.json +11 -0
  72. package/lib/__templates__/phaser-static/debug-runtime/flow-graph.json +20 -0
  73. package/lib/__templates__/phaser-static/index.html +17 -0
  74. package/lib/__templates__/phaser-static/scripts/serve.ps1 +7 -0
  75. package/lib/__templates__/phaser-static/src/assets.js +15 -0
  76. package/lib/__templates__/phaser-static/src/main.js +26 -0
  77. package/lib/__templates__/phaser-static/src/phaser.js +7 -0
  78. package/lib/__templates__/phaser-static/src/scene/BootScene.js +205 -0
  79. package/lib/__templates__/phaser-static/src/scene/DevLoadingScene.js +67 -0
  80. package/lib/__templates__/phaser-static/src/style.css +28 -0
  81. package/lib/__templates__/phaser-static/src/utils/asset-loader.js +267 -0
  82. package/lib/__templates__/phaser-static/src/utils/index.js +2 -0
  83. package/lib/__templates__/phaser-static/src/utils/mark-editable.js +3 -0
  84. package/lib/__templates__/phaser-static/template.config.js +35 -0
  85. package/lib/__templates__/pi-agent/package.json +1 -1
  86. package/lib/__templates__/pi-agent/pnpm-lock.yaml +5 -5
  87. package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +1 -1
  88. package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +172 -68
  89. package/lib/__templates__/taro/AGENTS.md +11 -7
  90. package/lib/__templates__/taro/README.md +4 -4
  91. package/lib/__templates__/taro/config/index.ts +10 -2
  92. package/lib/__templates__/taro/pnpm-lock.yaml +5 -5
  93. package/lib/__templates__/taro/server/package.json +1 -1
  94. package/lib/__templates__/taro/server/src/main.ts +8 -2
  95. package/lib/__templates__/templates.json +26 -1
  96. package/lib/__templates__/vite/.coze +5 -0
  97. package/lib/__templates__/vite/package.json +1 -1
  98. package/lib/__templates__/vite/pnpm-lock.yaml +5 -5
  99. package/lib/__templates__/vite/scripts/build.ps1 +16 -0
  100. package/lib/__templates__/vite/scripts/dev.ps1 +63 -0
  101. package/lib/__templates__/vite/scripts/dev.sh +110 -1
  102. package/lib/__templates__/vite/scripts/prepare.ps1 +18 -0
  103. package/lib/__templates__/vite/scripts/start.ps1 +11 -0
  104. package/lib/__templates__/vite/scripts/validate.ps1 +8 -0
  105. package/lib/__templates__/vite/template.config.js +1 -1
  106. package/lib/cli.js +746 -217
  107. package/lib/deploy/package-project.js +22 -4
  108. package/lib/deploy/package-project.py +18 -3
  109. package/package.json +1 -1
@@ -108,8 +108,8 @@ importers:
108
108
  specifier: ^1.1.1
109
109
  version: 1.1.1(@types/react-dom@19.2.3(@types/react@19.2.10))(@types/react@19.2.10)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
110
110
  coze-coding-dev-sdk:
111
- specifier: ^0.7.16
112
- version: 0.7.16(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0)
111
+ specifier: ^0.7.25-beta.8
112
+ version: 0.7.25-beta.8(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0)
113
113
  date-fns:
114
114
  specifier: ^4.1.0
115
115
  version: 4.1.0
@@ -135,8 +135,8 @@ importers:
135
135
  specifier: ^0.468.0
136
136
  version: 0.468.0(react@19.2.3)
137
137
  next:
138
- specifier: 16.1.1
139
- version: 16.1.1(@babel/core@7.28.6)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
138
+ specifier: 16.3.3
139
+ version: 16.3.3(@babel/core@7.28.6)(@types/node@20.19.30)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
140
140
  next-themes:
141
141
  specifier: ^0.4.6
142
142
  version: 0.4.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
@@ -202,8 +202,8 @@ importers:
202
202
  specifier: ^9
203
203
  version: 9.39.2(jiti@2.6.1)
204
204
  eslint-config-next:
205
- specifier: 16.1.1
206
- version: 16.1.1(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
205
+ specifier: 16.3.3
206
+ version: 16.3.3(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
207
207
  only-allow:
208
208
  specifier: ^1.2.2
209
209
  version: 1.2.2
@@ -3363,8 +3363,8 @@ packages:
3363
3363
  typescript:
3364
3364
  optional: true
3365
3365
 
3366
- coze-coding-dev-sdk@0.7.16:
3367
- resolution: {integrity: sha512-B7gRPBa+sfrZL8ur0+F/92SOgZgFaWD/fOnCN2DjthnHSdmCYhAJWCfqzG2oO2vwTiYCXkKUuTBZ3MJLMj886g==}
3366
+ coze-coding-dev-sdk@0.7.25-beta.8:
3367
+ resolution: {integrity: sha512-RSKlXCO0W/OPDjx9D9JICn2cGeOJw3iG+y0Pr1AhAf7YdAjjNbBZoG7qfg0Zg2SqgaVN2qSLQFmKPbhNq9ZWSg==}
3368
3368
  engines: {node: '>=18.0.0'}
3369
3369
  hasBin: true
3370
3370
 
@@ -6224,6 +6224,270 @@ packages:
6224
6224
  zod@4.3.6:
6225
6225
  resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
6226
6226
 
6227
+ '@emnapi/runtime@1.11.3':
6228
+ resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
6229
+
6230
+ '@img/colour@1.1.0':
6231
+ resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
6232
+ engines: {node: '>=18'}
6233
+
6234
+ '@img/sharp-darwin-arm64@0.35.3':
6235
+ resolution: {integrity: sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==}
6236
+ engines: {node: '>=20.9.0'}
6237
+ cpu: [arm64]
6238
+ os: [darwin]
6239
+
6240
+ '@img/sharp-darwin-x64@0.35.3':
6241
+ resolution: {integrity: sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==}
6242
+ engines: {node: '>=20.9.0'}
6243
+ cpu: [x64]
6244
+ os: [darwin]
6245
+
6246
+ '@img/sharp-freebsd-wasm32@0.35.3':
6247
+ resolution: {integrity: sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==}
6248
+ engines: {node: '>=20.9.0'}
6249
+ os: [freebsd]
6250
+
6251
+ '@img/sharp-libvips-darwin-arm64@1.3.2':
6252
+ resolution: {integrity: sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==}
6253
+ cpu: [arm64]
6254
+ os: [darwin]
6255
+
6256
+ '@img/sharp-libvips-darwin-x64@1.3.2':
6257
+ resolution: {integrity: sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==}
6258
+ cpu: [x64]
6259
+ os: [darwin]
6260
+
6261
+ '@img/sharp-libvips-linux-arm64@1.3.2':
6262
+ resolution: {integrity: sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==}
6263
+ cpu: [arm64]
6264
+ os: [linux]
6265
+
6266
+ '@img/sharp-libvips-linux-arm@1.3.2':
6267
+ resolution: {integrity: sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==}
6268
+ cpu: [arm]
6269
+ os: [linux]
6270
+
6271
+ '@img/sharp-libvips-linux-ppc64@1.3.2':
6272
+ resolution: {integrity: sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==}
6273
+ cpu: [ppc64]
6274
+ os: [linux]
6275
+
6276
+ '@img/sharp-libvips-linux-riscv64@1.3.2':
6277
+ resolution: {integrity: sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==}
6278
+ cpu: [riscv64]
6279
+ os: [linux]
6280
+
6281
+ '@img/sharp-libvips-linux-s390x@1.3.2':
6282
+ resolution: {integrity: sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==}
6283
+ cpu: [s390x]
6284
+ os: [linux]
6285
+
6286
+ '@img/sharp-libvips-linux-x64@1.3.2':
6287
+ resolution: {integrity: sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==}
6288
+ cpu: [x64]
6289
+ os: [linux]
6290
+
6291
+ '@img/sharp-libvips-linuxmusl-arm64@1.3.2':
6292
+ resolution: {integrity: sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==}
6293
+ cpu: [arm64]
6294
+ os: [linux]
6295
+
6296
+ '@img/sharp-libvips-linuxmusl-x64@1.3.2':
6297
+ resolution: {integrity: sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==}
6298
+ cpu: [x64]
6299
+ os: [linux]
6300
+
6301
+ '@img/sharp-linux-arm64@0.35.3':
6302
+ resolution: {integrity: sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==}
6303
+ engines: {node: '>=20.9.0'}
6304
+ cpu: [arm64]
6305
+ os: [linux]
6306
+
6307
+ '@img/sharp-linux-arm@0.35.3':
6308
+ resolution: {integrity: sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==}
6309
+ engines: {node: '>=20.9.0'}
6310
+ cpu: [arm]
6311
+ os: [linux]
6312
+
6313
+ '@img/sharp-linux-ppc64@0.35.3':
6314
+ resolution: {integrity: sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==}
6315
+ engines: {node: '>=20.9.0'}
6316
+ cpu: [ppc64]
6317
+ os: [linux]
6318
+
6319
+ '@img/sharp-linux-riscv64@0.35.3':
6320
+ resolution: {integrity: sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==}
6321
+ engines: {node: '>=20.9.0'}
6322
+ cpu: [riscv64]
6323
+ os: [linux]
6324
+
6325
+ '@img/sharp-linux-s390x@0.35.3':
6326
+ resolution: {integrity: sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==}
6327
+ engines: {node: '>=20.9.0'}
6328
+ cpu: [s390x]
6329
+ os: [linux]
6330
+
6331
+ '@img/sharp-linux-x64@0.35.3':
6332
+ resolution: {integrity: sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==}
6333
+ engines: {node: '>=20.9.0'}
6334
+ cpu: [x64]
6335
+ os: [linux]
6336
+
6337
+ '@img/sharp-linuxmusl-arm64@0.35.3':
6338
+ resolution: {integrity: sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==}
6339
+ engines: {node: '>=20.9.0'}
6340
+ cpu: [arm64]
6341
+ os: [linux]
6342
+
6343
+ '@img/sharp-linuxmusl-x64@0.35.3':
6344
+ resolution: {integrity: sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==}
6345
+ engines: {node: '>=20.9.0'}
6346
+ cpu: [x64]
6347
+ os: [linux]
6348
+
6349
+ '@img/sharp-wasm32@0.35.3':
6350
+ resolution: {integrity: sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==}
6351
+ engines: {node: '>=20.9.0'}
6352
+
6353
+ '@img/sharp-webcontainers-wasm32@0.35.3':
6354
+ resolution: {integrity: sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==}
6355
+ engines: {node: '>=20.9.0'}
6356
+ cpu: [wasm32]
6357
+
6358
+ '@img/sharp-win32-arm64@0.35.3':
6359
+ resolution: {integrity: sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==}
6360
+ engines: {node: '>=20.9.0'}
6361
+ cpu: [arm64]
6362
+ os: [win32]
6363
+
6364
+ '@img/sharp-win32-ia32@0.35.3':
6365
+ resolution: {integrity: sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==}
6366
+ engines: {node: ^20.9.0}
6367
+ cpu: [ia32]
6368
+ os: [win32]
6369
+
6370
+ '@img/sharp-win32-x64@0.35.3':
6371
+ resolution: {integrity: sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==}
6372
+ engines: {node: '>=20.9.0'}
6373
+ cpu: [x64]
6374
+ os: [win32]
6375
+
6376
+ '@next/env@16.3.3':
6377
+ resolution: {integrity: sha512-U2eYQRwXj+dsqxV79zFqExDdatnNY/ZWc2nsJU1p/OgT7fd3dXwlF6OjYaFQCfMoeTA19PWq+wVmYgimVA+V+g==}
6378
+
6379
+ '@next/eslint-plugin-next@16.3.3':
6380
+ resolution: {integrity: sha512-pbEh30vvjKpDoTAmo1v3q2uM4JUi8QaEBpbmjWvGfoec2jLghy/WNtvzAT0bk+Ik9oz6etjt4YjXEk4BQnicCw==}
6381
+
6382
+ '@next/swc-darwin-arm64@16.3.3':
6383
+ resolution: {integrity: sha512-8Hiv32QJPwdV6KYJ8meR9SBA061tQqnIKTJDocvOXlEQqib0xMFpzArosuffFUUc0sslbh7QQ8a3Yey1QV8EIw==}
6384
+ engines: {node: '>= 10'}
6385
+ cpu: [arm64]
6386
+ os: [darwin]
6387
+
6388
+ '@next/swc-darwin-x64@16.3.3':
6389
+ resolution: {integrity: sha512-A1lgKgwVchRYmSe467zdwhxT9040dd8lH+o65sL5Jet8fjB4kegw/rDyPIpYVRb6jAqwXFOJpjIXJLxQKLiE3A==}
6390
+ engines: {node: '>= 10'}
6391
+ cpu: [x64]
6392
+ os: [darwin]
6393
+
6394
+ '@next/swc-linux-arm64-gnu@16.3.3':
6395
+ resolution: {integrity: sha512-bf0FIssMFueU2dm7vQEWWxk0c8UjKTdW0yzuh0sQsD8pf1+KCLDdaqhYZNMYGmXwEOiHAUzgBKudovIlcvvBjg==}
6396
+ engines: {node: '>= 10'}
6397
+ cpu: [arm64]
6398
+ os: [linux]
6399
+
6400
+ '@next/swc-linux-arm64-musl@16.3.3':
6401
+ resolution: {integrity: sha512-W7viwCk9JY/cAkdz/A273rd5bb3RgT/IHwR7Upv90tunjBWNtAAhGhoecHh+teRNRSinuAFmE+l7fwZ4YKkrXg==}
6402
+ engines: {node: '>= 10'}
6403
+ cpu: [arm64]
6404
+ os: [linux]
6405
+
6406
+ '@next/swc-linux-x64-gnu@16.3.3':
6407
+ resolution: {integrity: sha512-0W46zw1N3ODpI6n0GeivHvvob1pooozgZVqy65k0mh4/7vr+FbY9+WpHzNVXjHipJf/A3FDheBG19H1s5A25rA==}
6408
+ engines: {node: '>= 10'}
6409
+ cpu: [x64]
6410
+ os: [linux]
6411
+
6412
+ '@next/swc-linux-x64-musl@16.3.3':
6413
+ resolution: {integrity: sha512-H4mBso8ZTMBPtdT0PN0pBx2ayTvQuTuvS6qT13d77yVFJXAPCxkyIhLTmdMaGTJs0krQYI/qpzdHijCeihXhbg==}
6414
+ engines: {node: '>= 10'}
6415
+ cpu: [x64]
6416
+ os: [linux]
6417
+
6418
+ '@next/swc-win32-arm64-msvc@16.3.3':
6419
+ resolution: {integrity: sha512-cTMUJpcEGmeywofCUfhR+rSsoE33+rVPnPEYNTNdLNlsOeEg/vktOsKUSTb28vUGqD2jkm4Zaskcwn7OCI6FQg==}
6420
+ engines: {node: '>= 10'}
6421
+ cpu: [arm64]
6422
+ os: [win32]
6423
+
6424
+ '@next/swc-win32-x64-msvc@16.3.3':
6425
+ resolution: {integrity: sha512-2VR4cTBzHXaBjnGsuH6GyJjENzQOmHeAh11uY1iUhjm3j5dEUrVJuUj+VL78jaGi/Dik8xS76zEj18BsFhlVZQ==}
6426
+ engines: {node: '>= 10'}
6427
+ cpu: [x64]
6428
+ os: [win32]
6429
+
6430
+ '@swc/helpers@0.5.23':
6431
+ resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
6432
+
6433
+ baseline-browser-mapping@2.11.19:
6434
+ resolution: {integrity: sha512-Grytf1xOxOEMTGRwx6rLGKkTabd4vMg3VrKdj/7joCmV0qgh4QwMMO6xh34YEXQqirAuUdgQGa5orJQQ+69RBw==}
6435
+ engines: {node: '>=6.0.0'}
6436
+ hasBin: true
6437
+
6438
+ eslint-config-next@16.3.3:
6439
+ resolution: {integrity: sha512-teqtsR26tnlfXFHfVLTM/4tzEzU8DMu6GS1sddZzhfGzgd2f2ofbgDUcsk6cssSCzX6Tk6fmWifJcdANSdPJrw==}
6440
+ peerDependencies:
6441
+ eslint: '>=9.0.0'
6442
+ typescript: '>=3.3.1'
6443
+ peerDependenciesMeta:
6444
+ typescript:
6445
+ optional: true
6446
+
6447
+ nanoid@3.3.18:
6448
+ resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==}
6449
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
6450
+ hasBin: true
6451
+
6452
+ next@16.3.3:
6453
+ resolution: {integrity: sha512-tuRTx1nQ/yVw83cwJBo9F+njGUgMn3UHQycreWHB8XsStvvAh1AthbI8/4IpKnFaF58F+iSiHejYOlMQ/eq83g==}
6454
+ engines: {node: '>=20.9.0'}
6455
+ hasBin: true
6456
+ peerDependencies:
6457
+ '@opentelemetry/api': ^1.1.0
6458
+ '@playwright/test': ^1.51.1
6459
+ babel-plugin-react-compiler: '*'
6460
+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
6461
+ react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
6462
+ sass: ^1.3.0
6463
+ peerDependenciesMeta:
6464
+ '@opentelemetry/api':
6465
+ optional: true
6466
+ '@playwright/test':
6467
+ optional: true
6468
+ babel-plugin-react-compiler:
6469
+ optional: true
6470
+ sass:
6471
+ optional: true
6472
+
6473
+ postcss@8.5.23:
6474
+ resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==}
6475
+ engines: {node: ^10 || ^12 || >=14}
6476
+
6477
+ semver@7.8.5:
6478
+ resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==}
6479
+ engines: {node: '>=10'}
6480
+ hasBin: true
6481
+
6482
+ sharp@0.35.3:
6483
+ resolution: {integrity: sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==}
6484
+ engines: {node: '>=20.9.0'}
6485
+ peerDependencies:
6486
+ '@types/node': '*'
6487
+ peerDependenciesMeta:
6488
+ '@types/node':
6489
+ optional: true
6490
+
6227
6491
  snapshots:
6228
6492
 
6229
6493
  '@alloc/quick-lru@5.2.0': {}
@@ -9627,7 +9891,7 @@ snapshots:
9627
9891
  optionalDependencies:
9628
9892
  typescript: 5.9.3
9629
9893
 
9630
- coze-coding-dev-sdk@0.7.16(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0):
9894
+ coze-coding-dev-sdk@0.7.25-beta.8(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0):
9631
9895
  dependencies:
9632
9896
  '@langchain/core': 1.1.17(openai@6.16.0(ws@8.19.0)(zod@4.3.6))
9633
9897
  '@langchain/openai': 1.2.3(@langchain/core@1.1.17(openai@6.16.0(ws@8.19.0)(zod@4.3.6)))(ws@8.19.0)
@@ -12786,3 +13050,243 @@ snapshots:
12786
13050
  zod@3.25.76: {}
12787
13051
 
12788
13052
  zod@4.3.6: {}
13053
+ '@emnapi/runtime@1.11.3':
13054
+ dependencies:
13055
+ tslib: 2.8.1
13056
+ optional: true
13057
+
13058
+ '@img/colour@1.1.0':
13059
+ optional: true
13060
+
13061
+ '@img/sharp-darwin-arm64@0.35.3':
13062
+ optionalDependencies:
13063
+ '@img/sharp-libvips-darwin-arm64': 1.3.2
13064
+ optional: true
13065
+
13066
+ '@img/sharp-darwin-x64@0.35.3':
13067
+ optionalDependencies:
13068
+ '@img/sharp-libvips-darwin-x64': 1.3.2
13069
+ optional: true
13070
+
13071
+ '@img/sharp-freebsd-wasm32@0.35.3':
13072
+ dependencies:
13073
+ '@img/sharp-wasm32': 0.35.3
13074
+ optional: true
13075
+
13076
+ '@img/sharp-libvips-darwin-arm64@1.3.2':
13077
+ optional: true
13078
+
13079
+ '@img/sharp-libvips-darwin-x64@1.3.2':
13080
+ optional: true
13081
+
13082
+ '@img/sharp-libvips-linux-arm64@1.3.2':
13083
+ optional: true
13084
+
13085
+ '@img/sharp-libvips-linux-arm@1.3.2':
13086
+ optional: true
13087
+
13088
+ '@img/sharp-libvips-linux-ppc64@1.3.2':
13089
+ optional: true
13090
+
13091
+ '@img/sharp-libvips-linux-riscv64@1.3.2':
13092
+ optional: true
13093
+
13094
+ '@img/sharp-libvips-linux-s390x@1.3.2':
13095
+ optional: true
13096
+
13097
+ '@img/sharp-libvips-linux-x64@1.3.2':
13098
+ optional: true
13099
+
13100
+ '@img/sharp-libvips-linuxmusl-arm64@1.3.2':
13101
+ optional: true
13102
+
13103
+ '@img/sharp-libvips-linuxmusl-x64@1.3.2':
13104
+ optional: true
13105
+
13106
+ '@img/sharp-linux-arm64@0.35.3':
13107
+ optionalDependencies:
13108
+ '@img/sharp-libvips-linux-arm64': 1.3.2
13109
+ optional: true
13110
+
13111
+ '@img/sharp-linux-arm@0.35.3':
13112
+ optionalDependencies:
13113
+ '@img/sharp-libvips-linux-arm': 1.3.2
13114
+ optional: true
13115
+
13116
+ '@img/sharp-linux-ppc64@0.35.3':
13117
+ optionalDependencies:
13118
+ '@img/sharp-libvips-linux-ppc64': 1.3.2
13119
+ optional: true
13120
+
13121
+ '@img/sharp-linux-riscv64@0.35.3':
13122
+ optionalDependencies:
13123
+ '@img/sharp-libvips-linux-riscv64': 1.3.2
13124
+ optional: true
13125
+
13126
+ '@img/sharp-linux-s390x@0.35.3':
13127
+ optionalDependencies:
13128
+ '@img/sharp-libvips-linux-s390x': 1.3.2
13129
+ optional: true
13130
+
13131
+ '@img/sharp-linux-x64@0.35.3':
13132
+ optionalDependencies:
13133
+ '@img/sharp-libvips-linux-x64': 1.3.2
13134
+ optional: true
13135
+
13136
+ '@img/sharp-linuxmusl-arm64@0.35.3':
13137
+ optionalDependencies:
13138
+ '@img/sharp-libvips-linuxmusl-arm64': 1.3.2
13139
+ optional: true
13140
+
13141
+ '@img/sharp-linuxmusl-x64@0.35.3':
13142
+ optionalDependencies:
13143
+ '@img/sharp-libvips-linuxmusl-x64': 1.3.2
13144
+ optional: true
13145
+
13146
+ '@img/sharp-wasm32@0.35.3':
13147
+ dependencies:
13148
+ '@emnapi/runtime': 1.11.3
13149
+ optional: true
13150
+
13151
+ '@img/sharp-webcontainers-wasm32@0.35.3':
13152
+ dependencies:
13153
+ '@img/sharp-wasm32': 0.35.3
13154
+ optional: true
13155
+
13156
+ '@img/sharp-win32-arm64@0.35.3':
13157
+ optional: true
13158
+
13159
+ '@img/sharp-win32-ia32@0.35.3':
13160
+ optional: true
13161
+
13162
+ '@img/sharp-win32-x64@0.35.3':
13163
+ optional: true
13164
+
13165
+ '@next/env@16.3.3': {}
13166
+
13167
+ '@next/eslint-plugin-next@16.3.3(eslint@9.39.2(jiti@2.6.1))':
13168
+ dependencies:
13169
+ '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.6.1))
13170
+ fast-glob: 3.3.1
13171
+ transitivePeerDependencies:
13172
+ - eslint
13173
+
13174
+ '@next/swc-darwin-arm64@16.3.3':
13175
+ optional: true
13176
+
13177
+ '@next/swc-darwin-x64@16.3.3':
13178
+ optional: true
13179
+
13180
+ '@next/swc-linux-arm64-gnu@16.3.3':
13181
+ optional: true
13182
+
13183
+ '@next/swc-linux-arm64-musl@16.3.3':
13184
+ optional: true
13185
+
13186
+ '@next/swc-linux-x64-gnu@16.3.3':
13187
+ optional: true
13188
+
13189
+ '@next/swc-linux-x64-musl@16.3.3':
13190
+ optional: true
13191
+
13192
+ '@next/swc-win32-arm64-msvc@16.3.3':
13193
+ optional: true
13194
+
13195
+ '@next/swc-win32-x64-msvc@16.3.3':
13196
+ optional: true
13197
+
13198
+ '@swc/helpers@0.5.23':
13199
+ dependencies:
13200
+ tslib: 2.8.1
13201
+
13202
+ baseline-browser-mapping@2.11.19: {}
13203
+
13204
+ eslint-config-next@16.3.3(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3):
13205
+ dependencies:
13206
+ '@next/eslint-plugin-next': 16.3.3(eslint@9.39.2(jiti@2.6.1))
13207
+ eslint: 9.39.2(jiti@2.6.1)
13208
+ eslint-import-resolver-node: 0.3.9
13209
+ eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2(jiti@2.6.1))
13210
+ eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1))
13211
+ eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.2(jiti@2.6.1))
13212
+ eslint-plugin-react: 7.37.5(eslint@9.39.2(jiti@2.6.1))
13213
+ eslint-plugin-react-hooks: 7.0.1(eslint@9.39.2(jiti@2.6.1))
13214
+ globals: 16.4.0
13215
+ typescript-eslint: 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
13216
+ optionalDependencies:
13217
+ typescript: 5.9.3
13218
+ transitivePeerDependencies:
13219
+ - '@typescript-eslint/parser'
13220
+ - eslint-import-resolver-webpack
13221
+ - eslint-plugin-import-x
13222
+ - supports-color
13223
+
13224
+ nanoid@3.3.18: {}
13225
+
13226
+ next@16.3.3(@babel/core@7.28.6)(@types/node@20.19.30)(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
13227
+ dependencies:
13228
+ '@next/env': 16.3.3
13229
+ '@swc/helpers': 0.5.23
13230
+ baseline-browser-mapping: 2.11.19
13231
+ caniuse-lite: 1.0.30001766
13232
+ postcss: 8.5.23
13233
+ react: 19.2.3
13234
+ react-dom: 19.2.3(react@19.2.3)
13235
+ styled-jsx: 5.1.6(@babel/core@7.28.6)(react@19.2.3)
13236
+ optionalDependencies:
13237
+ '@next/swc-darwin-arm64': 16.3.3
13238
+ '@next/swc-darwin-x64': 16.3.3
13239
+ '@next/swc-linux-arm64-gnu': 16.3.3
13240
+ '@next/swc-linux-arm64-musl': 16.3.3
13241
+ '@next/swc-linux-x64-gnu': 16.3.3
13242
+ '@next/swc-linux-x64-musl': 16.3.3
13243
+ '@next/swc-win32-arm64-msvc': 16.3.3
13244
+ '@next/swc-win32-x64-msvc': 16.3.3
13245
+ sharp: 0.35.3(@types/node@20.19.30)
13246
+ transitivePeerDependencies:
13247
+ - '@babel/core'
13248
+ - '@types/node'
13249
+ - babel-plugin-macros
13250
+
13251
+ postcss@8.5.23:
13252
+ dependencies:
13253
+ nanoid: 3.3.18
13254
+ picocolors: 1.1.1
13255
+ source-map-js: 1.2.1
13256
+
13257
+ semver@7.8.5:
13258
+ optional: true
13259
+
13260
+ sharp@0.35.3(@types/node@20.19.30):
13261
+ dependencies:
13262
+ '@img/colour': 1.1.0
13263
+ detect-libc: 2.1.2
13264
+ semver: 7.8.5
13265
+ optionalDependencies:
13266
+ '@img/sharp-darwin-arm64': 0.35.3
13267
+ '@img/sharp-darwin-x64': 0.35.3
13268
+ '@img/sharp-freebsd-wasm32': 0.35.3
13269
+ '@img/sharp-libvips-darwin-arm64': 1.3.2
13270
+ '@img/sharp-libvips-darwin-x64': 1.3.2
13271
+ '@img/sharp-libvips-linux-arm': 1.3.2
13272
+ '@img/sharp-libvips-linux-arm64': 1.3.2
13273
+ '@img/sharp-libvips-linux-ppc64': 1.3.2
13274
+ '@img/sharp-libvips-linux-riscv64': 1.3.2
13275
+ '@img/sharp-libvips-linux-s390x': 1.3.2
13276
+ '@img/sharp-libvips-linux-x64': 1.3.2
13277
+ '@img/sharp-libvips-linuxmusl-arm64': 1.3.2
13278
+ '@img/sharp-libvips-linuxmusl-x64': 1.3.2
13279
+ '@img/sharp-linux-arm': 0.35.3
13280
+ '@img/sharp-linux-arm64': 0.35.3
13281
+ '@img/sharp-linux-ppc64': 0.35.3
13282
+ '@img/sharp-linux-riscv64': 0.35.3
13283
+ '@img/sharp-linux-s390x': 0.35.3
13284
+ '@img/sharp-linux-x64': 0.35.3
13285
+ '@img/sharp-linuxmusl-arm64': 0.35.3
13286
+ '@img/sharp-linuxmusl-x64': 0.35.3
13287
+ '@img/sharp-webcontainers-wasm32': 0.35.3
13288
+ '@img/sharp-win32-arm64': 0.35.3
13289
+ '@img/sharp-win32-ia32': 0.35.3
13290
+ '@img/sharp-win32-x64': 0.35.3
13291
+ '@types/node': 20.19.30
13292
+ optional: true
@@ -0,0 +1,16 @@
1
+ $ErrorActionPreference = "Stop"
2
+
3
+ $workspace = if ($env:COZE_WORKSPACE_PATH) { $env:COZE_WORKSPACE_PATH } else { (Get-Location).Path }
4
+ Set-Location $workspace
5
+
6
+ Write-Host "Installing dependencies..."
7
+ & pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
8
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
9
+
10
+ Write-Host "Building the Next.js project..."
11
+ & pnpm next build
12
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
13
+
14
+ Write-Host "Bundling server with tsup..."
15
+ & pnpm tsup src/server.ts --format cjs --platform node --target node20 --outDir dist --no-splitting --no-minify
16
+ exit $LASTEXITCODE
@@ -0,0 +1,63 @@
1
+ $ErrorActionPreference = "Stop"
2
+
3
+ function Get-WorkspacePath {
4
+ if ($env:COZE_WORKSPACE_PATH) {
5
+ return $env:COZE_WORKSPACE_PATH
6
+ }
7
+ return (Get-Location).Path
8
+ }
9
+
10
+ function Stop-ProcessTree([int] $processId) {
11
+ if ($processId -gt 0 -and (Get-Process -Id $processId -ErrorAction SilentlyContinue)) {
12
+ & taskkill.exe /PID $processId /T /F *> $null
13
+ }
14
+ }
15
+
16
+ function Stop-ListeningProcess([int] $port) {
17
+ $connections = Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction SilentlyContinue
18
+ $connections | Select-Object -ExpandProperty OwningProcess -Unique | ForEach-Object {
19
+ Stop-ProcessTree $_
20
+ }
21
+ }
22
+
23
+ $workspace = Get-WorkspacePath
24
+ $defaultPort = <%= port %>
25
+ $port = if ($env:DEPLOY_RUN_PORT) { [int] $env:DEPLOY_RUN_PORT } elseif ($env:PORT) { [int] $env:PORT } else { $defaultPort }
26
+ Set-Location $workspace
27
+ Stop-ListeningProcess $port
28
+
29
+ <% if (process.env.NODE_ENV === 'test') { %>
30
+ $env:PORT = "$port"
31
+ & pnpm tsx watch src/server.ts
32
+ exit $LASTEXITCODE
33
+ <% } else { %>
34
+ $logDirectory = if ($env:COZE_LOG_DIR) { $env:COZE_LOG_DIR } else { Join-Path $workspace "logs" }
35
+ $logFile = Join-Path $logDirectory "server.log"
36
+ $errorLogFile = Join-Path $logDirectory "server-error.log"
37
+ $pidFile = Join-Path $logDirectory "server.pid"
38
+ New-Item -ItemType Directory -Force -Path $logDirectory | Out-Null
39
+
40
+ if (Test-Path $pidFile) {
41
+ Stop-ProcessTree ([int] (Get-Content $pidFile -Raw))
42
+ Remove-Item $pidFile -Force
43
+ }
44
+
45
+ $previousPort = $env:PORT
46
+ $env:PORT = "$port"
47
+ try {
48
+ $process = Start-Process -FilePath $env:ComSpec -ArgumentList @("/d", "/s", "/c", "pnpm tsx watch src/server.ts") -WorkingDirectory $workspace -RedirectStandardOutput $logFile -RedirectStandardError $errorLogFile -PassThru
49
+ } finally {
50
+ if ($null -eq $previousPort) { Remove-Item Env:PORT -ErrorAction SilentlyContinue } else { $env:PORT = $previousPort }
51
+ }
52
+
53
+ $process.Id | Set-Content $pidFile
54
+ Start-Sleep -Seconds 1
55
+ if ($process.HasExited) {
56
+ Get-Content $errorLogFile -Tail 20 -ErrorAction SilentlyContinue
57
+ Remove-Item $pidFile -Force -ErrorAction SilentlyContinue
58
+ exit 1
59
+ }
60
+
61
+ Write-Host "Dev server started (PID: $($process.Id))."
62
+ Write-Host "Log file: $logFile"
63
+ <% } %>