@tbox.cn/app-module-customer-service 0.1.1
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.
- package/AGENTS.md +16 -0
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/chunk-PN4SPFWE.js +277 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +86 -0
- package/dist/customer-service-UTQ5AVTL.css +141 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12 -0
- package/dist/server/index.d.ts +106 -0
- package/dist/server/index.js +14 -0
- package/package.json +69 -0
- package/skills/customer-service/SKILL.md +82 -0
- package/src/client/cards/customer-service-faq/index.tsx +78 -0
- package/src/client/cards/index.ts +1 -0
- package/src/client/index.ts +21 -0
- package/src/client/styles/customer-service.css +141 -0
- package/src/index.ts +1 -0
- package/src/server/cards/customer-service-faq/meta.ts +16 -0
- package/src/server/index.ts +115 -0
- package/src/server/ports/index.ts +77 -0
- package/src/server/ports/local-adapters.ts +107 -0
- package/src/server/projections/index.ts +28 -0
- package/src/server/tools/index.ts +89 -0
- package/tbox.module.json +48 -0
- package/tests/cards-render.test.tsx +77 -0
- package/tests/config-merge.test.ts +50 -0
- package/tests/customer-service.test.ts +136 -0
- package/tests/skill.test.ts +48 -0
- package/tsconfig.json +8 -0
- package/tsup.config.ts +35 -0
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry: {
|
|
5
|
+
index: 'src/index.ts',
|
|
6
|
+
'server/index': 'src/server/index.ts',
|
|
7
|
+
'client/index': 'src/client/index.ts',
|
|
8
|
+
},
|
|
9
|
+
format: ['esm'],
|
|
10
|
+
target: 'node20',
|
|
11
|
+
platform: 'node',
|
|
12
|
+
outDir: 'dist',
|
|
13
|
+
clean: true,
|
|
14
|
+
sourcemap: false,
|
|
15
|
+
// dts worker 以命令行式传参会撞 TS5074(incremental 需单文件 emit 或 tsBuildInfoFile);
|
|
16
|
+
// 声明产物一次性构建无需增量——仅 dts 关闭,typecheck 的增量缓存不受影响。
|
|
17
|
+
dts: { compilerOptions: { incremental: false } },
|
|
18
|
+
external: [
|
|
19
|
+
'@tbox.cn/app-sdk',
|
|
20
|
+
'@tbox.cn/app-contracts',
|
|
21
|
+
'@tbox.cn/app-contracts-mall',
|
|
22
|
+
'react',
|
|
23
|
+
'react-dom',
|
|
24
|
+
'zod',
|
|
25
|
+
'@mastra/core',
|
|
26
|
+
'express',
|
|
27
|
+
'@phosphor-icons/react',
|
|
28
|
+
],
|
|
29
|
+
loader: {
|
|
30
|
+
'.css': 'copy',
|
|
31
|
+
},
|
|
32
|
+
esbuildOptions(options) {
|
|
33
|
+
options.jsx = 'automatic';
|
|
34
|
+
},
|
|
35
|
+
});
|