@coze-arch/cli 0.1.4 → 0.1.5-alpha.2e246f

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.
@@ -6,5 +6,5 @@ Set-Location $workspace
6
6
  Write-Host "Installing Expo project dependencies..."
7
7
  & pnpm install --registry=https://registry.npmmirror.com
8
8
  if ($LASTEXITCODE -ne 0) {
9
- Write-Warning "Expo 项目依赖安装失败"
9
+ Write-Warning "Expo project dependency installation failed."
10
10
  }
@@ -42,7 +42,7 @@ Stop-ListeningProcess $expoPort
42
42
  $webUrl = if ($env:COZE_PROJECT_DOMAIN_DEFAULT) {
43
43
  $env:COZE_PROJECT_DOMAIN_DEFAULT
44
44
  } elseif ($env:COZE_HARDWARE_DID) {
45
- "https://cozedaemon-$($env:COZE_HARDWARE_DID)-$expoPort.dev.coze.site"
45
+ "https://preview-$($env:COZE_HARDWARE_DID)-$expoPort.dev.coze.site"
46
46
  } else {
47
47
  "http://127.0.0.1:$serverPort"
48
48
  }
@@ -64,11 +64,11 @@ $expo = Start-LoggedProcess (Join-Path $workspace "client") $clientLog @("exec",
64
64
 
65
65
  Start-Sleep -Seconds 8
66
66
  if ((Test-Path $clientLog) -and (Select-String -Path $clientLog -Pattern "TypeError: fetch failed" -Quiet)) {
67
- Write-Host "Expo 启动检测到网络错误,启用离线模式重试"
67
+ Write-Host "Expo startup detected a network error; retrying in offline mode."
68
68
  Stop-ProcessTree $expo.Id
69
69
  $expoEnvironment.EXPO_OFFLINE = "1"
70
70
  $expo = Start-LoggedProcess (Join-Path $workspace "client") $clientLog @("exec", "expo", "start", "--web", "--clear", "--port", "$expoPort") $expoEnvironment
71
71
  }
72
72
 
73
- Write-Host "服务已启动。Server PID: $($server.Id), Expo PID: $($expo.Id)"
73
+ Write-Host "Services started. Server PID: $($server.Id), Expo PID: $($expo.Id)"
74
74
  Write-Host "EXPO_PUBLIC_BACKEND_BASE_URL=$webUrl"
@@ -98,7 +98,7 @@
98
98
  },
99
99
  "pnpm": {
100
100
  "overrides": {
101
- "sharp": "0.35.3"
101
+ "sharp": "^0.35.4"
102
102
  }
103
103
  }
104
104
  }
@@ -5,7 +5,7 @@ settings:
5
5
  excludeLinksFromLockfile: false
6
6
 
7
7
  overrides:
8
- sharp: 0.35.3
8
+ sharp: ^0.35.4
9
9
 
10
10
  importers:
11
11
 
@@ -165,8 +165,8 @@ importers:
165
165
  specifier: 2.15.4
166
166
  version: 2.15.4(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
167
167
  sharp:
168
- specifier: 0.35.3
169
- version: 0.35.3(@types/node@20.19.30)
168
+ specifier: ^0.35.4
169
+ version: 0.35.4(@types/node@20.19.30)
170
170
  sonner:
171
171
  specifier: ^2.0.7
172
172
  version: 2.0.7(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
@@ -1178,160 +1178,160 @@ packages:
1178
1178
  resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
1179
1179
  engines: {node: '>=18'}
1180
1180
 
1181
- '@img/sharp-darwin-arm64@0.35.3':
1182
- resolution: {integrity: sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==}
1181
+ '@img/sharp-darwin-arm64@0.35.4':
1182
+ resolution: {integrity: sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==}
1183
1183
  engines: {node: '>=20.9.0'}
1184
1184
  cpu: [arm64]
1185
1185
  os: [darwin]
1186
1186
 
1187
- '@img/sharp-darwin-x64@0.35.3':
1188
- resolution: {integrity: sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==}
1187
+ '@img/sharp-darwin-x64@0.35.4':
1188
+ resolution: {integrity: sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==}
1189
1189
  engines: {node: '>=20.9.0'}
1190
1190
  cpu: [x64]
1191
1191
  os: [darwin]
1192
1192
 
1193
- '@img/sharp-freebsd-wasm32@0.35.3':
1194
- resolution: {integrity: sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==}
1193
+ '@img/sharp-freebsd-wasm32@0.35.4':
1194
+ resolution: {integrity: sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==}
1195
1195
  engines: {node: '>=20.9.0'}
1196
1196
  os: [freebsd]
1197
1197
 
1198
- '@img/sharp-libvips-darwin-arm64@1.3.2':
1199
- resolution: {integrity: sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==}
1198
+ '@img/sharp-libvips-darwin-arm64@1.3.3':
1199
+ resolution: {integrity: sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==}
1200
1200
  cpu: [arm64]
1201
1201
  os: [darwin]
1202
1202
 
1203
- '@img/sharp-libvips-darwin-x64@1.3.2':
1204
- resolution: {integrity: sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==}
1203
+ '@img/sharp-libvips-darwin-x64@1.3.3':
1204
+ resolution: {integrity: sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==}
1205
1205
  cpu: [x64]
1206
1206
  os: [darwin]
1207
1207
 
1208
- '@img/sharp-libvips-linux-arm64@1.3.2':
1209
- resolution: {integrity: sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==}
1208
+ '@img/sharp-libvips-linux-arm64@1.3.3':
1209
+ resolution: {integrity: sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==}
1210
1210
  cpu: [arm64]
1211
1211
  os: [linux]
1212
1212
  libc: [glibc]
1213
1213
 
1214
- '@img/sharp-libvips-linux-arm@1.3.2':
1215
- resolution: {integrity: sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==}
1214
+ '@img/sharp-libvips-linux-arm@1.3.3':
1215
+ resolution: {integrity: sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==}
1216
1216
  cpu: [arm]
1217
1217
  os: [linux]
1218
1218
  libc: [glibc]
1219
1219
 
1220
- '@img/sharp-libvips-linux-ppc64@1.3.2':
1221
- resolution: {integrity: sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==}
1220
+ '@img/sharp-libvips-linux-ppc64@1.3.3':
1221
+ resolution: {integrity: sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==}
1222
1222
  cpu: [ppc64]
1223
1223
  os: [linux]
1224
1224
  libc: [glibc]
1225
1225
 
1226
- '@img/sharp-libvips-linux-riscv64@1.3.2':
1227
- resolution: {integrity: sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==}
1226
+ '@img/sharp-libvips-linux-riscv64@1.3.3':
1227
+ resolution: {integrity: sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==}
1228
1228
  cpu: [riscv64]
1229
1229
  os: [linux]
1230
1230
  libc: [glibc]
1231
1231
 
1232
- '@img/sharp-libvips-linux-s390x@1.3.2':
1233
- resolution: {integrity: sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==}
1232
+ '@img/sharp-libvips-linux-s390x@1.3.3':
1233
+ resolution: {integrity: sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==}
1234
1234
  cpu: [s390x]
1235
1235
  os: [linux]
1236
1236
  libc: [glibc]
1237
1237
 
1238
- '@img/sharp-libvips-linux-x64@1.3.2':
1239
- resolution: {integrity: sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==}
1238
+ '@img/sharp-libvips-linux-x64@1.3.3':
1239
+ resolution: {integrity: sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==}
1240
1240
  cpu: [x64]
1241
1241
  os: [linux]
1242
1242
  libc: [glibc]
1243
1243
 
1244
- '@img/sharp-libvips-linuxmusl-arm64@1.3.2':
1245
- resolution: {integrity: sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==}
1244
+ '@img/sharp-libvips-linuxmusl-arm64@1.3.3':
1245
+ resolution: {integrity: sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==}
1246
1246
  cpu: [arm64]
1247
1247
  os: [linux]
1248
1248
  libc: [musl]
1249
1249
 
1250
- '@img/sharp-libvips-linuxmusl-x64@1.3.2':
1251
- resolution: {integrity: sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==}
1250
+ '@img/sharp-libvips-linuxmusl-x64@1.3.3':
1251
+ resolution: {integrity: sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==}
1252
1252
  cpu: [x64]
1253
1253
  os: [linux]
1254
1254
  libc: [musl]
1255
1255
 
1256
- '@img/sharp-linux-arm64@0.35.3':
1257
- resolution: {integrity: sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==}
1256
+ '@img/sharp-linux-arm64@0.35.4':
1257
+ resolution: {integrity: sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==}
1258
1258
  engines: {node: '>=20.9.0'}
1259
1259
  cpu: [arm64]
1260
1260
  os: [linux]
1261
1261
  libc: [glibc]
1262
1262
 
1263
- '@img/sharp-linux-arm@0.35.3':
1264
- resolution: {integrity: sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==}
1263
+ '@img/sharp-linux-arm@0.35.4':
1264
+ resolution: {integrity: sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==}
1265
1265
  engines: {node: '>=20.9.0'}
1266
1266
  cpu: [arm]
1267
1267
  os: [linux]
1268
1268
  libc: [glibc]
1269
1269
 
1270
- '@img/sharp-linux-ppc64@0.35.3':
1271
- resolution: {integrity: sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==}
1270
+ '@img/sharp-linux-ppc64@0.35.4':
1271
+ resolution: {integrity: sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==}
1272
1272
  engines: {node: '>=20.9.0'}
1273
1273
  cpu: [ppc64]
1274
1274
  os: [linux]
1275
1275
  libc: [glibc]
1276
1276
 
1277
- '@img/sharp-linux-riscv64@0.35.3':
1278
- resolution: {integrity: sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==}
1277
+ '@img/sharp-linux-riscv64@0.35.4':
1278
+ resolution: {integrity: sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==}
1279
1279
  engines: {node: '>=20.9.0'}
1280
1280
  cpu: [riscv64]
1281
1281
  os: [linux]
1282
1282
  libc: [glibc]
1283
1283
 
1284
- '@img/sharp-linux-s390x@0.35.3':
1285
- resolution: {integrity: sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==}
1284
+ '@img/sharp-linux-s390x@0.35.4':
1285
+ resolution: {integrity: sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==}
1286
1286
  engines: {node: '>=20.9.0'}
1287
1287
  cpu: [s390x]
1288
1288
  os: [linux]
1289
1289
  libc: [glibc]
1290
1290
 
1291
- '@img/sharp-linux-x64@0.35.3':
1292
- resolution: {integrity: sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==}
1291
+ '@img/sharp-linux-x64@0.35.4':
1292
+ resolution: {integrity: sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==}
1293
1293
  engines: {node: '>=20.9.0'}
1294
1294
  cpu: [x64]
1295
1295
  os: [linux]
1296
1296
  libc: [glibc]
1297
1297
 
1298
- '@img/sharp-linuxmusl-arm64@0.35.3':
1299
- resolution: {integrity: sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==}
1298
+ '@img/sharp-linuxmusl-arm64@0.35.4':
1299
+ resolution: {integrity: sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==}
1300
1300
  engines: {node: '>=20.9.0'}
1301
1301
  cpu: [arm64]
1302
1302
  os: [linux]
1303
1303
  libc: [musl]
1304
1304
 
1305
- '@img/sharp-linuxmusl-x64@0.35.3':
1306
- resolution: {integrity: sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==}
1305
+ '@img/sharp-linuxmusl-x64@0.35.4':
1306
+ resolution: {integrity: sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==}
1307
1307
  engines: {node: '>=20.9.0'}
1308
1308
  cpu: [x64]
1309
1309
  os: [linux]
1310
1310
  libc: [musl]
1311
1311
 
1312
- '@img/sharp-wasm32@0.35.3':
1313
- resolution: {integrity: sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==}
1312
+ '@img/sharp-wasm32@0.35.4':
1313
+ resolution: {integrity: sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==}
1314
1314
  engines: {node: '>=20.9.0'}
1315
1315
 
1316
- '@img/sharp-webcontainers-wasm32@0.35.3':
1317
- resolution: {integrity: sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==}
1316
+ '@img/sharp-webcontainers-wasm32@0.35.4':
1317
+ resolution: {integrity: sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==}
1318
1318
  engines: {node: '>=20.9.0'}
1319
1319
  cpu: [wasm32]
1320
1320
 
1321
- '@img/sharp-win32-arm64@0.35.3':
1322
- resolution: {integrity: sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==}
1321
+ '@img/sharp-win32-arm64@0.35.4':
1322
+ resolution: {integrity: sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==}
1323
1323
  engines: {node: '>=20.9.0'}
1324
1324
  cpu: [arm64]
1325
1325
  os: [win32]
1326
1326
 
1327
- '@img/sharp-win32-ia32@0.35.3':
1328
- resolution: {integrity: sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==}
1327
+ '@img/sharp-win32-ia32@0.35.4':
1328
+ resolution: {integrity: sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==}
1329
1329
  engines: {node: ^20.9.0}
1330
1330
  cpu: [ia32]
1331
1331
  os: [win32]
1332
1332
 
1333
- '@img/sharp-win32-x64@0.35.3':
1334
- resolution: {integrity: sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==}
1333
+ '@img/sharp-win32-x64@0.35.4':
1334
+ resolution: {integrity: sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==}
1335
1335
  engines: {node: '>=20.9.0'}
1336
1336
  cpu: [x64]
1337
1337
  os: [win32]
@@ -1457,24 +1457,28 @@ packages:
1457
1457
  engines: {node: '>= 10'}
1458
1458
  cpu: [arm64]
1459
1459
  os: [linux]
1460
+ libc: [glibc]
1460
1461
 
1461
1462
  '@next/swc-linux-arm64-musl@16.1.1':
1462
1463
  resolution: {integrity: sha512-MFHrgL4TXNQbBPzkKKur4Fb5ICEJa87HM7fczFs2+HWblM7mMLdco3dvyTI+QmLBU9xgns/EeeINSZD6Ar+oLg==}
1463
1464
  engines: {node: '>= 10'}
1464
1465
  cpu: [arm64]
1465
1466
  os: [linux]
1467
+ libc: [musl]
1466
1468
 
1467
1469
  '@next/swc-linux-x64-gnu@16.1.1':
1468
1470
  resolution: {integrity: sha512-20bYDfgOQAPUkkKBnyP9PTuHiJGM7HzNBbuqmD0jiFVZ0aOldz+VnJhbxzjcSabYsnNjMPsE0cyzEudpYxsrUQ==}
1469
1471
  engines: {node: '>= 10'}
1470
1472
  cpu: [x64]
1471
1473
  os: [linux]
1474
+ libc: [glibc]
1472
1475
 
1473
1476
  '@next/swc-linux-x64-musl@16.1.1':
1474
1477
  resolution: {integrity: sha512-9pRbK3M4asAHQRkwaXwu601oPZHghuSC8IXNENgbBSyImHv/zY4K5udBusgdHkvJ/Tcr96jJwQYOll0qU8+fPA==}
1475
1478
  engines: {node: '>= 10'}
1476
1479
  cpu: [x64]
1477
1480
  os: [linux]
1481
+ libc: [musl]
1478
1482
 
1479
1483
  '@next/swc-win32-arm64-msvc@16.1.1':
1480
1484
  resolution: {integrity: sha512-bdfQkggaLgnmYrFkSQfsHfOhk/mCYmjnrbRCGgkMcoOBZ4n+TRRSLmT/CU5SATzlBJ9TpioUyBW/vWFXTqQRiA==}
@@ -5620,8 +5624,8 @@ packages:
5620
5624
  resolution: {integrity: sha512-zOXNAIFclguSYmmoibyXyKiYA6qjEJtXDSvloAMziSREW9Q0R/dLqBUYdb81lOejmZkDYuZApGabbMLH7G8qvQ==}
5621
5625
  hasBin: true
5622
5626
 
5623
- sharp@0.35.3:
5624
- resolution: {integrity: sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==}
5627
+ sharp@0.35.4:
5628
+ resolution: {integrity: sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==}
5625
5629
  engines: {node: '>=20.9.0'}
5626
5630
  peerDependencies:
5627
5631
  '@types/node': '*'
@@ -7392,108 +7396,108 @@ snapshots:
7392
7396
 
7393
7397
  '@img/colour@1.1.0': {}
7394
7398
 
7395
- '@img/sharp-darwin-arm64@0.35.3':
7399
+ '@img/sharp-darwin-arm64@0.35.4':
7396
7400
  optionalDependencies:
7397
- '@img/sharp-libvips-darwin-arm64': 1.3.2
7401
+ '@img/sharp-libvips-darwin-arm64': 1.3.3
7398
7402
  optional: true
7399
7403
 
7400
- '@img/sharp-darwin-x64@0.35.3':
7404
+ '@img/sharp-darwin-x64@0.35.4':
7401
7405
  optionalDependencies:
7402
- '@img/sharp-libvips-darwin-x64': 1.3.2
7406
+ '@img/sharp-libvips-darwin-x64': 1.3.3
7403
7407
  optional: true
7404
7408
 
7405
- '@img/sharp-freebsd-wasm32@0.35.3':
7409
+ '@img/sharp-freebsd-wasm32@0.35.4':
7406
7410
  dependencies:
7407
- '@img/sharp-wasm32': 0.35.3
7411
+ '@img/sharp-wasm32': 0.35.4
7408
7412
  optional: true
7409
7413
 
7410
- '@img/sharp-libvips-darwin-arm64@1.3.2':
7414
+ '@img/sharp-libvips-darwin-arm64@1.3.3':
7411
7415
  optional: true
7412
7416
 
7413
- '@img/sharp-libvips-darwin-x64@1.3.2':
7417
+ '@img/sharp-libvips-darwin-x64@1.3.3':
7414
7418
  optional: true
7415
7419
 
7416
- '@img/sharp-libvips-linux-arm64@1.3.2':
7420
+ '@img/sharp-libvips-linux-arm64@1.3.3':
7417
7421
  optional: true
7418
7422
 
7419
- '@img/sharp-libvips-linux-arm@1.3.2':
7423
+ '@img/sharp-libvips-linux-arm@1.3.3':
7420
7424
  optional: true
7421
7425
 
7422
- '@img/sharp-libvips-linux-ppc64@1.3.2':
7426
+ '@img/sharp-libvips-linux-ppc64@1.3.3':
7423
7427
  optional: true
7424
7428
 
7425
- '@img/sharp-libvips-linux-riscv64@1.3.2':
7429
+ '@img/sharp-libvips-linux-riscv64@1.3.3':
7426
7430
  optional: true
7427
7431
 
7428
- '@img/sharp-libvips-linux-s390x@1.3.2':
7432
+ '@img/sharp-libvips-linux-s390x@1.3.3':
7429
7433
  optional: true
7430
7434
 
7431
- '@img/sharp-libvips-linux-x64@1.3.2':
7435
+ '@img/sharp-libvips-linux-x64@1.3.3':
7432
7436
  optional: true
7433
7437
 
7434
- '@img/sharp-libvips-linuxmusl-arm64@1.3.2':
7438
+ '@img/sharp-libvips-linuxmusl-arm64@1.3.3':
7435
7439
  optional: true
7436
7440
 
7437
- '@img/sharp-libvips-linuxmusl-x64@1.3.2':
7441
+ '@img/sharp-libvips-linuxmusl-x64@1.3.3':
7438
7442
  optional: true
7439
7443
 
7440
- '@img/sharp-linux-arm64@0.35.3':
7444
+ '@img/sharp-linux-arm64@0.35.4':
7441
7445
  optionalDependencies:
7442
- '@img/sharp-libvips-linux-arm64': 1.3.2
7446
+ '@img/sharp-libvips-linux-arm64': 1.3.3
7443
7447
  optional: true
7444
7448
 
7445
- '@img/sharp-linux-arm@0.35.3':
7449
+ '@img/sharp-linux-arm@0.35.4':
7446
7450
  optionalDependencies:
7447
- '@img/sharp-libvips-linux-arm': 1.3.2
7451
+ '@img/sharp-libvips-linux-arm': 1.3.3
7448
7452
  optional: true
7449
7453
 
7450
- '@img/sharp-linux-ppc64@0.35.3':
7454
+ '@img/sharp-linux-ppc64@0.35.4':
7451
7455
  optionalDependencies:
7452
- '@img/sharp-libvips-linux-ppc64': 1.3.2
7456
+ '@img/sharp-libvips-linux-ppc64': 1.3.3
7453
7457
  optional: true
7454
7458
 
7455
- '@img/sharp-linux-riscv64@0.35.3':
7459
+ '@img/sharp-linux-riscv64@0.35.4':
7456
7460
  optionalDependencies:
7457
- '@img/sharp-libvips-linux-riscv64': 1.3.2
7461
+ '@img/sharp-libvips-linux-riscv64': 1.3.3
7458
7462
  optional: true
7459
7463
 
7460
- '@img/sharp-linux-s390x@0.35.3':
7464
+ '@img/sharp-linux-s390x@0.35.4':
7461
7465
  optionalDependencies:
7462
- '@img/sharp-libvips-linux-s390x': 1.3.2
7466
+ '@img/sharp-libvips-linux-s390x': 1.3.3
7463
7467
  optional: true
7464
7468
 
7465
- '@img/sharp-linux-x64@0.35.3':
7469
+ '@img/sharp-linux-x64@0.35.4':
7466
7470
  optionalDependencies:
7467
- '@img/sharp-libvips-linux-x64': 1.3.2
7471
+ '@img/sharp-libvips-linux-x64': 1.3.3
7468
7472
  optional: true
7469
7473
 
7470
- '@img/sharp-linuxmusl-arm64@0.35.3':
7474
+ '@img/sharp-linuxmusl-arm64@0.35.4':
7471
7475
  optionalDependencies:
7472
- '@img/sharp-libvips-linuxmusl-arm64': 1.3.2
7476
+ '@img/sharp-libvips-linuxmusl-arm64': 1.3.3
7473
7477
  optional: true
7474
7478
 
7475
- '@img/sharp-linuxmusl-x64@0.35.3':
7479
+ '@img/sharp-linuxmusl-x64@0.35.4':
7476
7480
  optionalDependencies:
7477
- '@img/sharp-libvips-linuxmusl-x64': 1.3.2
7481
+ '@img/sharp-libvips-linuxmusl-x64': 1.3.3
7478
7482
  optional: true
7479
7483
 
7480
- '@img/sharp-wasm32@0.35.3':
7484
+ '@img/sharp-wasm32@0.35.4':
7481
7485
  dependencies:
7482
7486
  '@emnapi/runtime': 1.11.3
7483
7487
  optional: true
7484
7488
 
7485
- '@img/sharp-webcontainers-wasm32@0.35.3':
7489
+ '@img/sharp-webcontainers-wasm32@0.35.4':
7486
7490
  dependencies:
7487
- '@img/sharp-wasm32': 0.35.3
7491
+ '@img/sharp-wasm32': 0.35.4
7488
7492
  optional: true
7489
7493
 
7490
- '@img/sharp-win32-arm64@0.35.3':
7494
+ '@img/sharp-win32-arm64@0.35.4':
7491
7495
  optional: true
7492
7496
 
7493
- '@img/sharp-win32-ia32@0.35.3':
7497
+ '@img/sharp-win32-ia32@0.35.4':
7494
7498
  optional: true
7495
7499
 
7496
- '@img/sharp-win32-x64@0.35.3':
7500
+ '@img/sharp-win32-x64@0.35.4':
7497
7501
  optional: true
7498
7502
 
7499
7503
  '@inquirer/ansi@1.0.2': {}
@@ -11303,7 +11307,7 @@ snapshots:
11303
11307
  '@next/swc-linux-x64-musl': 16.1.1
11304
11308
  '@next/swc-win32-arm64-msvc': 16.1.1
11305
11309
  '@next/swc-win32-x64-msvc': 16.1.1
11306
- sharp: 0.35.3(@types/node@20.19.30)
11310
+ sharp: 0.35.4(@types/node@20.19.30)
11307
11311
  transitivePeerDependencies:
11308
11312
  - '@babel/core'
11309
11313
  - '@types/node'
@@ -12072,37 +12076,37 @@ snapshots:
12072
12076
  - supports-color
12073
12077
  - typescript
12074
12078
 
12075
- sharp@0.35.3(@types/node@20.19.30):
12079
+ sharp@0.35.4(@types/node@20.19.30):
12076
12080
  dependencies:
12077
12081
  '@img/colour': 1.1.0
12078
12082
  detect-libc: 2.1.2
12079
12083
  semver: 7.8.5
12080
12084
  optionalDependencies:
12081
- '@img/sharp-darwin-arm64': 0.35.3
12082
- '@img/sharp-darwin-x64': 0.35.3
12083
- '@img/sharp-freebsd-wasm32': 0.35.3
12084
- '@img/sharp-libvips-darwin-arm64': 1.3.2
12085
- '@img/sharp-libvips-darwin-x64': 1.3.2
12086
- '@img/sharp-libvips-linux-arm': 1.3.2
12087
- '@img/sharp-libvips-linux-arm64': 1.3.2
12088
- '@img/sharp-libvips-linux-ppc64': 1.3.2
12089
- '@img/sharp-libvips-linux-riscv64': 1.3.2
12090
- '@img/sharp-libvips-linux-s390x': 1.3.2
12091
- '@img/sharp-libvips-linux-x64': 1.3.2
12092
- '@img/sharp-libvips-linuxmusl-arm64': 1.3.2
12093
- '@img/sharp-libvips-linuxmusl-x64': 1.3.2
12094
- '@img/sharp-linux-arm': 0.35.3
12095
- '@img/sharp-linux-arm64': 0.35.3
12096
- '@img/sharp-linux-ppc64': 0.35.3
12097
- '@img/sharp-linux-riscv64': 0.35.3
12098
- '@img/sharp-linux-s390x': 0.35.3
12099
- '@img/sharp-linux-x64': 0.35.3
12100
- '@img/sharp-linuxmusl-arm64': 0.35.3
12101
- '@img/sharp-linuxmusl-x64': 0.35.3
12102
- '@img/sharp-webcontainers-wasm32': 0.35.3
12103
- '@img/sharp-win32-arm64': 0.35.3
12104
- '@img/sharp-win32-ia32': 0.35.3
12105
- '@img/sharp-win32-x64': 0.35.3
12085
+ '@img/sharp-darwin-arm64': 0.35.4
12086
+ '@img/sharp-darwin-x64': 0.35.4
12087
+ '@img/sharp-freebsd-wasm32': 0.35.4
12088
+ '@img/sharp-libvips-darwin-arm64': 1.3.3
12089
+ '@img/sharp-libvips-darwin-x64': 1.3.3
12090
+ '@img/sharp-libvips-linux-arm': 1.3.3
12091
+ '@img/sharp-libvips-linux-arm64': 1.3.3
12092
+ '@img/sharp-libvips-linux-ppc64': 1.3.3
12093
+ '@img/sharp-libvips-linux-riscv64': 1.3.3
12094
+ '@img/sharp-libvips-linux-s390x': 1.3.3
12095
+ '@img/sharp-libvips-linux-x64': 1.3.3
12096
+ '@img/sharp-libvips-linuxmusl-arm64': 1.3.3
12097
+ '@img/sharp-libvips-linuxmusl-x64': 1.3.3
12098
+ '@img/sharp-linux-arm': 0.35.4
12099
+ '@img/sharp-linux-arm64': 0.35.4
12100
+ '@img/sharp-linux-ppc64': 0.35.4
12101
+ '@img/sharp-linux-riscv64': 0.35.4
12102
+ '@img/sharp-linux-s390x': 0.35.4
12103
+ '@img/sharp-linux-x64': 0.35.4
12104
+ '@img/sharp-linuxmusl-arm64': 0.35.4
12105
+ '@img/sharp-linuxmusl-x64': 0.35.4
12106
+ '@img/sharp-webcontainers-wasm32': 0.35.4
12107
+ '@img/sharp-win32-arm64': 0.35.4
12108
+ '@img/sharp-win32-ia32': 0.35.4
12109
+ '@img/sharp-win32-x64': 0.35.4
12106
12110
  '@types/node': 20.19.30
12107
12111
 
12108
12112
  shebang-command@2.0.0:
@@ -1,12 +1,9 @@
1
1
  $ErrorActionPreference = "Stop"
2
2
 
3
3
  $workspace = if ($env:COZE_WORKSPACE_PATH) { $env:COZE_WORKSPACE_PATH } else { (Get-Location).Path }
4
+ & "$PSScriptRoot/ensure-deps.ps1"
4
5
  Set-Location $workspace
5
6
 
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
7
  Write-Host "Building frontend with Vite..."
11
8
  & pnpm vite build
12
9
  if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
@@ -51,13 +51,29 @@ try {
51
51
  }
52
52
 
53
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
54
+
55
+ $startupTimeoutSeconds = 30
56
+ $startupDeadline = (Get-Date).AddSeconds($startupTimeoutSeconds)
57
+ while ((Get-Date) -lt $startupDeadline) {
58
+ if ($process.HasExited) {
59
+ Write-Error "Dev server exited before listening on port $port."
60
+ Get-Content $errorLogFile -Tail 20 -ErrorAction SilentlyContinue
61
+ Remove-Item $pidFile -Force -ErrorAction SilentlyContinue
62
+ exit 1
63
+ }
64
+
65
+ if (Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction SilentlyContinue) {
66
+ Write-Host "Dev server is listening on port $port (PID: $($process.Id))."
67
+ Write-Host "Log file: $logFile"
68
+ exit 0
69
+ }
70
+
71
+ Start-Sleep -Milliseconds 200
59
72
  }
60
73
 
61
- Write-Host "Dev server started (PID: $($process.Id))."
62
- Write-Host "Log file: $logFile"
74
+ Write-Error "Dev server did not listen on port $port within $startupTimeoutSeconds seconds."
75
+ Stop-ProcessTree $process.Id
76
+ Get-Content $errorLogFile -Tail 20 -ErrorAction SilentlyContinue
77
+ Remove-Item $pidFile -Force -ErrorAction SilentlyContinue
78
+ exit 1
63
79
  <% } %>
@@ -0,0 +1,33 @@
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
+ $lockfile = Join-Path $workspace "pnpm-lock.yaml"
7
+ $modulesDirectory = Join-Path $workspace "node_modules"
8
+ $modulesManifest = Join-Path $modulesDirectory ".modules.yaml"
9
+ $lockHashFile = Join-Path $modulesDirectory ".coze-lockfile-sha256"
10
+
11
+ if (-not (Test-Path $lockfile)) {
12
+ throw "pnpm-lock.yaml is required to install dependencies."
13
+ }
14
+
15
+ $lockHash = (Get-FileHash -LiteralPath $lockfile -Algorithm SHA256).Hash
16
+ $cachedLockHash = if (Test-Path $lockHashFile) {
17
+ (Get-Content -LiteralPath $lockHashFile -Raw).Trim()
18
+ } else {
19
+ ""
20
+ }
21
+
22
+ if ((Test-Path $modulesManifest) -and $cachedLockHash -eq $lockHash) {
23
+ Write-Host "Dependencies already match pnpm-lock.yaml; skipping install."
24
+ return
25
+ }
26
+
27
+ Write-Host "Installing dependencies..."
28
+ & pnpm install --frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
29
+ if ($LASTEXITCODE -ne 0) {
30
+ throw "pnpm install failed with exit code $LASTEXITCODE."
31
+ }
32
+
33
+ Set-Content -LiteralPath $lockHashFile -Value $lockHash -NoNewline
@@ -1,14 +1,9 @@
1
1
  $ErrorActionPreference = "Stop"
2
2
 
3
3
  $workspace = if ($env:COZE_WORKSPACE_PATH) { $env:COZE_WORKSPACE_PATH } else { (Get-Location).Path }
4
+ & "$PSScriptRoot/ensure-deps.ps1"
4
5
  Set-Location $workspace
5
6
 
6
- Write-Host "Installing dependencies..."
7
- & pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
8
- if ($LASTEXITCODE -ne 0) {
9
- exit $LASTEXITCODE
10
- }
11
-
12
7
  if (Get-Command coze-dev -ErrorAction SilentlyContinue) {
13
8
  & coze-dev check-bins --help *> $null
14
9
  if ($LASTEXITCODE -eq 0) {
package/lib/cli.js CHANGED
@@ -2114,7 +2114,7 @@ const EventBuilder = {
2114
2114
  };
2115
2115
 
2116
2116
  var name = "@coze-arch/cli";
2117
- var version = "0.1.4";
2117
+ var version = "0.1.5-alpha.2e246f";
2118
2118
  var description = "coze coding devtools cli";
2119
2119
  var license = "MIT";
2120
2120
  var author = "fanwenjie.fe@bytedance.com";
@@ -11085,7 +11085,10 @@ class DeployApiClient {
11085
11085
  if (cozeAccount) {
11086
11086
  headers['x-coze-account'] = cozeAccount;
11087
11087
  }
11088
- const lane = _optionalChain$a([this, 'access', _4 => _4.globalOptions, 'access', _5 => _5.lane, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _optionalChain$a([this, 'access', _8 => _8.config, 'access', _9 => _9.xTTEnv, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
11088
+ // Deployment traffic must only enter a PPE lane when the caller explicitly
11089
+ // opts in for this invocation. The shared CLI config may contain xTTEnv for
11090
+ // other command families, but it must not silently affect deployments.
11091
+ const lane = _optionalChain$a([this, 'access', _4 => _4.globalOptions, 'access', _5 => _5.lane, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
11089
11092
  if (lane) {
11090
11093
  headers['x-use-ppe'] = '1';
11091
11094
  headers['x-tt-env'] = lane;
@@ -11116,7 +11119,7 @@ class DeployApiClient {
11116
11119
  if (!response.ok) {
11117
11120
  const root = isRecord(payload) ? payload : undefined;
11118
11121
  throw new CliError(
11119
- typeof _optionalChain$a([root, 'optionalAccess', _12 => _12.msg]) === 'string'
11122
+ typeof _optionalChain$a([root, 'optionalAccess', _8 => _8.msg]) === 'string'
11120
11123
  ? root.msg.slice(0, MAX_MESSAGE_LENGTH)
11121
11124
  : `Deployment API failed: ${response.status} ${response.statusText}` +
11122
11125
  `${validJson ? '' : '; response was not JSON'}`,
@@ -11549,7 +11552,7 @@ const registerContext = (program) => {
11549
11552
  organization_id: runtime.config.organizationId,
11550
11553
  space_id: runtime.config.spaceId,
11551
11554
  project_id: runtime.config.projectId,
11552
- lane: runtime.globalOptions.lane || runtime.config.xTTEnv,
11555
+ lane: runtime.globalOptions.lane,
11553
11556
  config_path: runtime.globalOptions.config || getSharedConfigPath(),
11554
11557
  });
11555
11558
  });
@@ -13486,7 +13489,7 @@ const registerDeploy = (deploy) => {
13486
13489
  risks: config.risk_list || [],
13487
13490
  ...(!appId && deploymentName ? { name: deploymentName } : {}),
13488
13491
  message: options.message,
13489
- lane: runtime.globalOptions.lane || runtime.config.xTTEnv,
13492
+ lane: runtime.globalOptions.lane,
13490
13493
  });
13491
13494
  return;
13492
13495
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-alpha.2e246f",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",