hiwork-core 0.0.29 → 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 (40) 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 +2483 -448
  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/client/voice/entry.d.ts +29 -3
  30. package/lib/types/image-rpc.d.ts +142 -0
  31. package/lib/types/imagegen.d.ts +241 -0
  32. package/lib/types/index.d.ts +70 -8
  33. package/lib/types/knowledge-config.d.ts +50 -2
  34. package/lib/types/tool-names.d.ts +11 -0
  35. package/lib/types/tools.d.ts +80 -0
  36. package/lib/types/user-agent.d.ts +31 -0
  37. package/lib/user-agent.js +54 -0
  38. package/lib/web-search.js +2 -2
  39. package/package.json +35 -25
  40. package/lib/types/client/daily-items.d.ts +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hiwork-core",
3
- "version": "0.0.29",
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
+ }
@@ -1,25 +0,0 @@
1
- /**
2
- * 《海普发展纲领》第三版 正文条目库(每日一条 · 按本地日期轮换)。
3
- * 数据源:★《海普发展纲领》第三版20231121.docx 正文五章全部 ➢ 条目,共 75 条;
4
- * 层级 = 章(第X章 xxx) → 板块(■ xxx) → 条目(➢ 标题) → 正文段落。
5
- * 标题与正文逐字取自原文,不做润色改写(生成期经程序化逐字校验)。
6
- * 内容按条目整体打包进插件;运行时无网络、不读本机 docx。
7
- */
8
- export interface DailyItem {
9
- /** 章标签,含序数,如「第一章 核心理念」。 */
10
- readonly chapter: string;
11
- /** 板块标签,如「海普精神」。 */
12
- readonly section: string;
13
- /** 整句条目标题(含冒号前缀),逐字原文,如「海普寓意:HICAP、海之势、普之态」。 */
14
- readonly title: string;
15
- /** 冒号前词(无冒号条目为空串),页面小字灰展示。 */
16
- readonly prefix: string;
17
- /** 冒号后主体(无冒号条目为整句),页面蓝色渐变大字展示。 */
18
- readonly main: string;
19
- /** 条目正文段落(逐字原文,可含子条目式段落)。 */
20
- readonly paragraphs: readonly string[];
21
- }
22
- export declare const DAILY_ITEMS: readonly DailyItem[];
23
- /** 当日条目序号 = 本地日期纪元日数对条数取模。 */
24
- export declare function dayIndex(date?: Date): number;
25
- export declare function pickToday(date?: Date): DailyItem;