hiwork-core 0.0.30 → 0.0.35

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 (38) hide show
  1. package/cordis.patch.yml +15 -1
  2. package/lib/ai-router-client.js +394 -2
  3. package/lib/client-policy.js +2 -2
  4. package/lib/client.js +2413 -439
  5. package/lib/image-rpc.js +306 -0
  6. package/lib/imagegen.js +424 -0
  7. package/lib/index.js +19212 -7694
  8. package/lib/knowledge-config.js +91 -1
  9. package/lib/provision-session.js +10 -2
  10. package/lib/tool-names.js +10 -0
  11. package/lib/tools.js +205 -0
  12. package/lib/types/ai-router-client.d.ts +255 -2
  13. package/lib/types/client/about-section.d.ts +27 -7
  14. package/lib/types/client/controller.d.ts +17 -9
  15. package/lib/types/client/feature-center.d.ts +46 -1
  16. package/lib/types/client/feature-registry.d.ts +36 -3
  17. package/lib/types/client/image-cards.d.ts +218 -0
  18. package/lib/types/client/image-styles.d.ts +9 -0
  19. package/lib/types/client/images-data.d.ts +127 -0
  20. package/lib/types/client/images-page.d.ts +97 -0
  21. package/lib/types/client/index.d.ts +0 -1
  22. package/lib/types/client/login-gate.d.ts +2 -2
  23. package/lib/types/client/logo.d.ts +7 -2
  24. package/lib/types/client/menu-preferences.d.ts +163 -0
  25. package/lib/types/client/menu-section.d.ts +5 -0
  26. package/lib/types/client/menu-store.d.ts +101 -0
  27. package/lib/types/client/styles.d.ts +16 -0
  28. package/lib/types/client/types.d.ts +9 -0
  29. package/lib/types/image-rpc.d.ts +142 -0
  30. package/lib/types/imagegen.d.ts +241 -0
  31. package/lib/types/index.d.ts +70 -8
  32. package/lib/types/knowledge-config.d.ts +50 -2
  33. package/lib/types/tool-names.d.ts +11 -0
  34. package/lib/types/tools.d.ts +80 -0
  35. package/lib/types/user-agent.d.ts +31 -0
  36. package/lib/user-agent.js +54 -0
  37. package/lib/web-search.js +2 -2
  38. package/package.json +34 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hiwork-core",
3
- "version": "0.0.30",
3
+ "version": "0.0.35",
4
4
  "type": "module",
5
5
  "description": "HiWork 企业统一登录与模型自动供给插件(ai-router 网关登录,Web 表单,无 CLI 认证)",
6
6
  "license": "UNLICENSED",
@@ -32,6 +32,7 @@
32
32
  "@deepseek-ai/dsh-client-store",
33
33
  "@deepseek-ai/dsh-client-ui-slots",
34
34
  "@deepseek-ai/dsh-client-ui-settings",
35
+ "@deepseek-ai/dsh-client-ui-layout",
35
36
  "@deepseek-ai/dsh-api-remotes",
36
37
  "@deepseek-ai/dsh-client-ui-primitives",
37
38
  "@deepseek-ai/dsh-client-ui-chat",
@@ -40,29 +41,35 @@
40
41
  }
41
42
  },
42
43
  "peerDependencies": {
43
- "@deepseek-ai/cordis": "4.0.2"
44
+ "@deepseek-ai/cordis": "~4.0.4",
45
+ "@deepseek-ai/dsh-client-ui-layout": ">=0.1.0-rc.5 <0.2.0"
44
46
  },
45
47
  "devDependencies": {
46
- "@deepseek-ai/cordis": "4.0.2",
47
- "@deepseek-ai/dsh-api-remotes": "0.1.5-rc.1",
48
- "@deepseek-ai/dsh-client-store": "0.1.5-rc.1",
49
- "@deepseek-ai/dsh-client-ui-chat": "0.1.5-rc.1",
50
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
51
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
52
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
53
- "@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
54
- "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
55
- "@deepseek-ai/dsh-client-ui-sidebar": "0.1.5-rc.1",
56
- "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
57
- "@deepseek-ai/dsh-credentials": "0.1.5-rc.1",
58
- "@deepseek-ai/dsh-credentials-local": "0.1.5-rc.1",
59
- "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
60
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.5-rc.1",
61
- "@deepseek-ai/dsh-settings": "0.1.5-rc.1",
62
- "@deepseek-ai/dsh-settings-file": "0.1.5-rc.1",
63
- "@deepseek-ai/dsh-web": "0.1.5-rc.1",
64
- "@deepseek-ai/dsh-workspace": "0.1.5-rc.1",
65
- "@deepseek-ai/schemastery": "3.18.2",
48
+ "@deepseek-ai/cordis": "4.0.4",
49
+ "@deepseek-ai/cordis-plugin-loader": "1.0.5",
50
+ "@deepseek-ai/dsh-agent-default-model": "0.1.7-rc.2",
51
+ "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
52
+ "@deepseek-ai/dsh-app-boot": "0.1.7-rc.2",
53
+ "@deepseek-ai/dsh-attachment": "0.1.7-rc.2",
54
+ "@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
55
+ "@deepseek-ai/dsh-client-ui-chat": "0.1.7-rc.2",
56
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
57
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
58
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
59
+ "@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2",
60
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
61
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.1.7-rc.2",
62
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
63
+ "@deepseek-ai/dsh-config-editor": "0.1.7-rc.2",
64
+ "@deepseek-ai/dsh-credentials": "0.1.7-rc.2",
65
+ "@deepseek-ai/dsh-credentials-local": "0.1.7-rc.2",
66
+ "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
67
+ "@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2",
68
+ "@deepseek-ai/dsh-settings": "0.1.7-rc.2",
69
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
70
+ "@deepseek-ai/dsh-web": "0.1.7-rc.2",
71
+ "@deepseek-ai/dsh-workspace": "0.1.7-rc.2",
72
+ "@deepseek-ai/schemastery": "3.18.4",
66
73
  "@types/node": "^22",
67
74
  "@types/react": "^18",
68
75
  "@types/react-dom": "^18",
@@ -72,13 +79,16 @@
72
79
  "react-dom": "^18",
73
80
  "tsx": "^4.23.12",
74
81
  "typescript": "^5",
75
- "vitest": "^3"
82
+ "vitest": "^3",
83
+ "yaml": "^2.8.1",
84
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.7-rc.2"
76
85
  },
77
86
  "scripts": {
78
87
  "typecheck": "tsc --noEmit",
79
88
  "build:host": "tsc -p tsconfig.build.json && node scripts/host-build.mjs",
80
89
  "build:client": "tsc -p tsconfig.client-build.json && node scripts/client-build.mjs",
81
90
  "build": "npm run build:host && npm run build:client",
82
- "test": "vitest run"
91
+ "test": "vitest run",
92
+ "smoke": "tsx scripts/smoke/smoke.ts"
83
93
  }
84
94
  }