@coze-arch/cli 0.0.1-alpha.ec9508 → 0.0.1-alpha.ecccee

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 (27) hide show
  1. package/lib/__templates__/expo/pnpm-lock.yaml +101 -45
  2. package/lib/__templates__/expo/server/package.json +9 -7
  3. package/lib/__templates__/nextjs/package.json +3 -1
  4. package/lib/__templates__/nextjs/pnpm-lock.yaml +119 -106
  5. package/lib/__templates__/nextjs/src/app/page.tsx +4 -2
  6. package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +2 -2
  7. package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +4 -3
  8. package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +0 -15
  9. package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +117 -24
  10. package/lib/__templates__/taro/README.md +79 -17
  11. package/lib/__templates__/taro/package.json +4 -2
  12. package/lib/__templates__/taro/pnpm-lock.yaml +392 -114
  13. package/lib/__templates__/taro/server/package.json +4 -1
  14. package/lib/__templates__/taro/server/src/main.ts +14 -2
  15. package/lib/__templates__/taro/src/app.css +18 -18
  16. package/lib/__templates__/taro/src/app.tsx +9 -0
  17. package/lib/__templates__/taro/src/index.html +20 -1
  18. package/lib/__templates__/taro/src/presets/h5-navbar.tsx +171 -0
  19. package/lib/__templates__/taro/src/{utils → presets}/h5-styles.ts +15 -4
  20. package/lib/__templates__/taro/src/presets/index.tsx +18 -0
  21. package/lib/__templates__/vite/package.json +5 -1
  22. package/lib/__templates__/vite/pnpm-lock.yaml +146 -1659
  23. package/lib/__templates__/vite/src/main.ts +2 -2
  24. package/lib/cli.js +5 -59
  25. package/package.json +1 -1
  26. package/lib/__templates__/taro/src/app.ts +0 -14
  27. /package/lib/__templates__/taro/src/{utils → presets}/wx-debug.ts +0 -0
@@ -244,15 +244,21 @@ importers:
244
244
 
245
245
  server:
246
246
  dependencies:
247
+ '@supabase/supabase-js':
248
+ specifier: 2.95.3
249
+ version: 2.95.3
247
250
  cors:
248
251
  specifier: ^2.8.5
249
252
  version: 2.8.6
250
253
  coze-coding-dev-sdk:
251
- specifier: ^0.7.10
252
- version: 0.7.10(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0)
254
+ specifier: ^0.7.16
255
+ version: 0.7.16(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0)
253
256
  dayjs:
254
257
  specifier: ^1.11.19
255
258
  version: 1.11.19
259
+ dotenv:
260
+ specifier: ^17.2.3
261
+ version: 17.2.4
256
262
  drizzle-orm:
257
263
  specifier: ^0.45.1
258
264
  version: 0.45.1(@types/pg@8.16.0)(pg@8.17.2)
@@ -1674,6 +1680,30 @@ packages:
1674
1680
  '@sinonjs/fake-timers@10.3.0':
1675
1681
  resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==}
1676
1682
 
1683
+ '@supabase/auth-js@2.95.3':
1684
+ resolution: {integrity: sha512-vD2YoS8E2iKIX0F7EwXTmqhUpaNsmbU6X2R0/NdFcs02oEfnHyNP/3M716f3wVJ2E5XHGiTFXki6lRckhJ0Thg==}
1685
+ engines: {node: '>=20.0.0'}
1686
+
1687
+ '@supabase/functions-js@2.95.3':
1688
+ resolution: {integrity: sha512-uTuOAKzs9R/IovW1krO0ZbUHSJnsnyJElTXIRhjJTqymIVGcHzkAYnBCJqd7468Fs/Foz1BQ7Dv6DCl05lr7ig==}
1689
+ engines: {node: '>=20.0.0'}
1690
+
1691
+ '@supabase/postgrest-js@2.95.3':
1692
+ resolution: {integrity: sha512-LTrRBqU1gOovxRm1vRXPItSMPBmEFqrfTqdPTRtzOILV4jPSueFz6pES5hpb4LRlkFwCPRmv3nQJ5N625V2Xrg==}
1693
+ engines: {node: '>=20.0.0'}
1694
+
1695
+ '@supabase/realtime-js@2.95.3':
1696
+ resolution: {integrity: sha512-D7EAtfU3w6BEUxDACjowWNJo/ZRo7sDIuhuOGKHIm9FHieGeoJV5R6GKTLtga/5l/6fDr2u+WcW/m8I9SYmaIw==}
1697
+ engines: {node: '>=20.0.0'}
1698
+
1699
+ '@supabase/storage-js@2.95.3':
1700
+ resolution: {integrity: sha512-4GxkJiXI3HHWjxpC3sDx1BVrV87O0hfX+wvJdqGv67KeCu+g44SPnII8y0LL/Wr677jB7tpjAxKdtVWf+xhc9A==}
1701
+ engines: {node: '>=20.0.0'}
1702
+
1703
+ '@supabase/supabase-js@2.95.3':
1704
+ resolution: {integrity: sha512-Fukw1cUTQ6xdLiHDJhKKPu6svEPaCEDvThqCne3OaQyZvuq2qjhJAd91kJu3PXLG18aooCgYBaB6qQz35hhABg==}
1705
+ engines: {node: '>=20.0.0'}
1706
+
1677
1707
  '@tootallnate/once@2.0.0':
1678
1708
  resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
1679
1709
  engines: {node: '>= 10'}
@@ -1759,6 +1789,9 @@ packages:
1759
1789
  '@types/pg@8.16.0':
1760
1790
  resolution: {integrity: sha512-RmhMd/wD+CF8Dfo+cVIy3RR5cl8CyfXQ0tGgW6XBL8L4LM/UTEbNXYRbLwU6w+CgrKBNbrQWt4FUtTfaU5jSYQ==}
1761
1791
 
1792
+ '@types/phoenix@1.6.7':
1793
+ resolution: {integrity: sha512-oN9ive//QSBkf19rfDv45M7eZPi0eEXylht2OLEXicu5b4KoQ1OzXIw+xDSGWxSxe1JmepRR/ZH283vsu518/Q==}
1794
+
1762
1795
  '@types/qs@6.14.0':
1763
1796
  resolution: {integrity: sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==}
1764
1797
 
@@ -1786,6 +1819,9 @@ packages:
1786
1819
  '@types/uuid@10.0.0':
1787
1820
  resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==}
1788
1821
 
1822
+ '@types/ws@8.18.1':
1823
+ resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}
1824
+
1789
1825
  '@types/yargs-parser@21.0.3':
1790
1826
  resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==}
1791
1827
 
@@ -2479,8 +2515,8 @@ packages:
2479
2515
  resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==}
2480
2516
  engines: {node: '>=10'}
2481
2517
 
2482
- coze-coding-dev-sdk@0.7.10:
2483
- resolution: {integrity: sha512-Wg+YXbzR1Ln5abhL1scAfhMBdegYe0KSS2M2KiSUCNcDCNJLkyynDvQnZ6yoPscX/lZ1CZ4OA6rr94Kx8DBTEA==}
2518
+ coze-coding-dev-sdk@0.7.16:
2519
+ resolution: {integrity: sha512-B7gRPBa+sfrZL8ur0+F/92SOgZgFaWD/fOnCN2DjthnHSdmCYhAJWCfqzG2oO2vwTiYCXkKUuTBZ3MJLMj886g==}
2484
2520
  engines: {node: '>=18.0.0'}
2485
2521
  hasBin: true
2486
2522
 
@@ -2685,6 +2721,10 @@ packages:
2685
2721
  resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==}
2686
2722
  engines: {node: '>=12'}
2687
2723
 
2724
+ dotenv@17.2.4:
2725
+ resolution: {integrity: sha512-mudtfb4zRB4bVvdj0xRo+e6duH1csJRM8IukBqfTRvHotn9+LBXB8ynAidP9zHqoRC/fsllXgk4kCKlR21fIhw==}
2726
+ engines: {node: '>=12'}
2727
+
2688
2728
  drizzle-kit@0.31.8:
2689
2729
  resolution: {integrity: sha512-O9EC/miwdnRDY10qRxM8P3Pg8hXe3LyU4ZipReKOgTwn4OqANmftj8XJz1UPUAS6NMHf0E2htjsbQujUTkncCg==}
2690
2730
  hasBin: true
@@ -3598,6 +3638,10 @@ packages:
3598
3638
  hyphenate-style-name@1.1.0:
3599
3639
  resolution: {integrity: sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==}
3600
3640
 
3641
+ iceberg-js@0.8.1:
3642
+ resolution: {integrity: sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==}
3643
+ engines: {node: '>=20.0.0'}
3644
+
3601
3645
  iconv-lite@0.4.24:
3602
3646
  resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
3603
3647
  engines: {node: '>=0.10.0'}
@@ -4667,9 +4711,6 @@ packages:
4667
4711
  resolution: {integrity: sha512-3mqcLomDBXOo7Fo+UlaenG6f71bk1ZezPQy2JCmYHy2W2k5VKpP+Jbin9H0bjXynelTbglCqdFhSEkeIkKTYUA==}
4668
4712
  engines: {node: '>=0.11.0'}
4669
4713
 
4670
- pg-cloudflare@1.2.7:
4671
- resolution: {integrity: sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==}
4672
-
4673
4714
  pg-connection-string@2.10.1:
4674
4715
  resolution: {integrity: sha512-iNzslsoeSH2/gmDDKiyMqF64DATUCWj3YJ0wP14kqcsf2TUklwimd+66yYojKwZCA7h2yRNLGug71hCBA2a4sw==}
4675
4716
 
@@ -4677,19 +4718,11 @@ packages:
4677
4718
  resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==}
4678
4719
  engines: {node: '>=4.0.0'}
4679
4720
 
4680
- pg-pool@3.10.1:
4681
- resolution: {integrity: sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==}
4682
- peerDependencies:
4683
- pg: '>=8.0'
4684
-
4685
4721
  pg-pool@3.11.0:
4686
4722
  resolution: {integrity: sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w==}
4687
4723
  peerDependencies:
4688
4724
  pg: '>=8.0'
4689
4725
 
4690
- pg-protocol@1.10.3:
4691
- resolution: {integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==}
4692
-
4693
4726
  pg-protocol@1.11.0:
4694
4727
  resolution: {integrity: sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==}
4695
4728
 
@@ -4697,15 +4730,6 @@ packages:
4697
4730
  resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==}
4698
4731
  engines: {node: '>=4'}
4699
4732
 
4700
- pg@8.16.3:
4701
- resolution: {integrity: sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==}
4702
- engines: {node: '>= 16.0.0'}
4703
- peerDependencies:
4704
- pg-native: '>=3.0.1'
4705
- peerDependenciesMeta:
4706
- pg-native:
4707
- optional: true
4708
-
4709
4733
  pg@8.17.2:
4710
4734
  resolution: {integrity: sha512-vjbKdiBJRqzcYw1fNU5KuHyYvdJ1qpcQg1CeBrHFqV1pWgHeVR6j/+kX0E1AAXfyuLUGY1ICrN2ELKA/z2HWzw==}
4711
4735
  engines: {node: '>= 16.0.0'}
@@ -7684,6 +7708,44 @@ snapshots:
7684
7708
  dependencies:
7685
7709
  '@sinonjs/commons': 3.0.1
7686
7710
 
7711
+ '@supabase/auth-js@2.95.3':
7712
+ dependencies:
7713
+ tslib: 2.8.1
7714
+
7715
+ '@supabase/functions-js@2.95.3':
7716
+ dependencies:
7717
+ tslib: 2.8.1
7718
+
7719
+ '@supabase/postgrest-js@2.95.3':
7720
+ dependencies:
7721
+ tslib: 2.8.1
7722
+
7723
+ '@supabase/realtime-js@2.95.3':
7724
+ dependencies:
7725
+ '@types/phoenix': 1.6.7
7726
+ '@types/ws': 8.18.1
7727
+ tslib: 2.8.1
7728
+ ws: 8.19.0
7729
+ transitivePeerDependencies:
7730
+ - bufferutil
7731
+ - utf-8-validate
7732
+
7733
+ '@supabase/storage-js@2.95.3':
7734
+ dependencies:
7735
+ iceberg-js: 0.8.1
7736
+ tslib: 2.8.1
7737
+
7738
+ '@supabase/supabase-js@2.95.3':
7739
+ dependencies:
7740
+ '@supabase/auth-js': 2.95.3
7741
+ '@supabase/functions-js': 2.95.3
7742
+ '@supabase/postgrest-js': 2.95.3
7743
+ '@supabase/realtime-js': 2.95.3
7744
+ '@supabase/storage-js': 2.95.3
7745
+ transitivePeerDependencies:
7746
+ - bufferutil
7747
+ - utf-8-validate
7748
+
7687
7749
  '@tootallnate/once@2.0.0': {}
7688
7750
 
7689
7751
  '@tybys/wasm-util@0.10.1':
@@ -7795,6 +7857,8 @@ snapshots:
7795
7857
  pg-protocol: 1.11.0
7796
7858
  pg-types: 2.2.0
7797
7859
 
7860
+ '@types/phoenix@1.6.7': {}
7861
+
7798
7862
  '@types/qs@6.14.0': {}
7799
7863
 
7800
7864
  '@types/range-parser@1.2.7': {}
@@ -7822,6 +7886,10 @@ snapshots:
7822
7886
 
7823
7887
  '@types/uuid@10.0.0': {}
7824
7888
 
7889
+ '@types/ws@8.18.1':
7890
+ dependencies:
7891
+ '@types/node': 25.0.10
7892
+
7825
7893
  '@types/yargs-parser@21.0.3': {}
7826
7894
 
7827
7895
  '@types/yargs@17.0.35':
@@ -8627,19 +8695,22 @@ snapshots:
8627
8695
  path-type: 4.0.0
8628
8696
  yaml: 1.10.2
8629
8697
 
8630
- coze-coding-dev-sdk@0.7.10(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0):
8698
+ coze-coding-dev-sdk@0.7.16(openai@6.16.0(ws@8.19.0)(zod@4.3.6))(ws@8.19.0):
8631
8699
  dependencies:
8632
8700
  '@langchain/core': 1.1.17(openai@6.16.0(ws@8.19.0)(zod@4.3.6))
8633
8701
  '@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)
8702
+ '@supabase/supabase-js': 2.95.3
8634
8703
  axios: 1.13.3
8635
- pg: 8.16.3
8704
+ pg: 8.17.2
8636
8705
  transitivePeerDependencies:
8637
8706
  - '@opentelemetry/api'
8638
8707
  - '@opentelemetry/exporter-trace-otlp-proto'
8639
8708
  - '@opentelemetry/sdk-trace-base'
8709
+ - bufferutil
8640
8710
  - debug
8641
8711
  - openai
8642
8712
  - pg-native
8713
+ - utf-8-validate
8643
8714
  - ws
8644
8715
 
8645
8716
  create-jest@29.7.0(@types/node@25.0.10):
@@ -8848,6 +8919,8 @@ snapshots:
8848
8919
 
8849
8920
  dotenv@16.4.7: {}
8850
8921
 
8922
+ dotenv@17.2.4: {}
8923
+
8851
8924
  drizzle-kit@0.31.8:
8852
8925
  dependencies:
8853
8926
  '@drizzle-team/brocli': 0.10.2
@@ -9917,6 +9990,8 @@ snapshots:
9917
9990
 
9918
9991
  hyphenate-style-name@1.1.0: {}
9919
9992
 
9993
+ iceberg-js@0.8.1: {}
9994
+
9920
9995
  iconv-lite@0.4.24:
9921
9996
  dependencies:
9922
9997
  safer-buffer: 2.1.2
@@ -11256,23 +11331,14 @@ snapshots:
11256
11331
 
11257
11332
  paths-js@0.4.11: {}
11258
11333
 
11259
- pg-cloudflare@1.2.7:
11260
- optional: true
11261
-
11262
11334
  pg-connection-string@2.10.1: {}
11263
11335
 
11264
11336
  pg-int8@1.0.1: {}
11265
11337
 
11266
- pg-pool@3.10.1(pg@8.16.3):
11267
- dependencies:
11268
- pg: 8.16.3
11269
-
11270
11338
  pg-pool@3.11.0(pg@8.17.2):
11271
11339
  dependencies:
11272
11340
  pg: 8.17.2
11273
11341
 
11274
- pg-protocol@1.10.3: {}
11275
-
11276
11342
  pg-protocol@1.11.0: {}
11277
11343
 
11278
11344
  pg-types@2.2.0:
@@ -11283,16 +11349,6 @@ snapshots:
11283
11349
  postgres-date: 1.0.7
11284
11350
  postgres-interval: 1.2.0
11285
11351
 
11286
- pg@8.16.3:
11287
- dependencies:
11288
- pg-connection-string: 2.10.1
11289
- pg-pool: 3.10.1(pg@8.16.3)
11290
- pg-protocol: 1.10.3
11291
- pg-types: 2.2.0
11292
- pgpass: 1.0.5
11293
- optionalDependencies:
11294
- pg-cloudflare: 1.2.7
11295
-
11296
11352
  pg@8.17.2:
11297
11353
  dependencies:
11298
11354
  pg-connection-string: 2.10.1
@@ -3,18 +3,20 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "scripts": {
6
- "preinstall": "npx only-allow pnpm",
7
- "dev": "bash ../.cozeproj/scripts/server_dev_run.sh",
8
6
  "build": "node build.js",
7
+ "dev": "bash ../.cozeproj/scripts/server_dev_run.sh",
8
+ "preinstall": "npx only-allow pnpm",
9
9
  "start": "NODE_ENV=production PORT=${PORT:-5000} node dist/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "express": "^4.22.1",
12
+ "@supabase/supabase-js": "2.95.3",
13
13
  "cors": "^2.8.5",
14
- "coze-coding-dev-sdk": "^0.7.10",
14
+ "coze-coding-dev-sdk": "^0.7.16",
15
15
  "dayjs": "^1.11.19",
16
+ "dotenv": "^17.2.3",
16
17
  "drizzle-orm": "^0.45.1",
17
18
  "drizzle-zod": "^0.8.3",
19
+ "express": "^4.22.1",
18
20
  "multer": "^2.0.2",
19
21
  "pg": "^8.16.3",
20
22
  "zod": "^4.2.1"
@@ -22,11 +24,11 @@
22
24
  "devDependencies": {
23
25
  "@types/cors": "^2.8.19",
24
26
  "@types/express": "^5.0.6",
25
- "tsx": "^4.21.0",
26
27
  "@types/multer": "^2.0.0",
27
28
  "@types/pg": "^8.16.0",
29
+ "drizzle-kit": "^0.31.8",
28
30
  "esbuild": "0.27.2",
29
- "typescript": "^5.8.3",
30
- "drizzle-kit": "^0.31.8"
31
+ "tsx": "^4.21.0",
32
+ "typescript": "^5.8.3"
31
33
  }
32
34
  }
@@ -40,11 +40,13 @@
40
40
  "@radix-ui/react-toggle": "^1.1.10",
41
41
  "@radix-ui/react-toggle-group": "^1.1.11",
42
42
  "@radix-ui/react-tooltip": "^1.2.8",
43
+ "@supabase/supabase-js": "2.95.3",
43
44
  "class-variance-authority": "^0.7.1",
44
45
  "clsx": "^2.1.1",
45
46
  "cmdk": "^1.1.1",
46
- "coze-coding-dev-sdk": "^0.7.3",
47
+ "coze-coding-dev-sdk": "^0.7.16",
47
48
  "date-fns": "^4.1.0",
49
+ "dotenv": "^17.2.3",
48
50
  "drizzle-kit": "^0.31.8",
49
51
  "drizzle-orm": "^0.45.1",
50
52
  "drizzle-zod": "^0.8.3",