@openduo/duoduo 0.2.0

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 (34) hide show
  1. package/README.md +527 -0
  2. package/bin/duoduo +34 -0
  3. package/bootstrap/CLAUDE.md +26 -0
  4. package/bootstrap/config/acp.md +12 -0
  5. package/bootstrap/config/feishu.md +14 -0
  6. package/bootstrap/config/stdio.md +92 -0
  7. package/bootstrap/memory/CLAUDE.md +0 -0
  8. package/bootstrap/memory/entities/.gitkeep +0 -0
  9. package/bootstrap/memory/fragments/.gitkeep +0 -0
  10. package/bootstrap/memory/index.md +9 -0
  11. package/bootstrap/memory/topics/.gitkeep +0 -0
  12. package/bootstrap/meta-prompt.md +61 -0
  13. package/bootstrap/subconscious/CLAUDE.md +62 -0
  14. package/bootstrap/subconscious/cadence-executor/CLAUDE.md +50 -0
  15. package/bootstrap/subconscious/inbox/.gitkeep +0 -0
  16. package/bootstrap/subconscious/memory-committer/CLAUDE.md +81 -0
  17. package/bootstrap/subconscious/memory-weaver/.claude/agents/entity-crystallizer.md +212 -0
  18. package/bootstrap/subconscious/memory-weaver/.claude/agents/intuition-updater.md +92 -0
  19. package/bootstrap/subconscious/memory-weaver/.claude/agents/spine-scanner.md +75 -0
  20. package/bootstrap/subconscious/memory-weaver/CLAUDE.md +120 -0
  21. package/bootstrap/subconscious/playlist.md +5 -0
  22. package/bootstrap/subconscious/sentinel/CLAUDE.md +57 -0
  23. package/bootstrap/var/DUODUO.md +18 -0
  24. package/bootstrap/var/cadence/DUODUO.md +58 -0
  25. package/bootstrap/var/channels/DUODUO.md +101 -0
  26. package/bootstrap/var/jobs/DUODUO.md +84 -0
  27. package/bootstrap/var/usage/DUODUO.md +62 -0
  28. package/dist/release/channel-acp.js +53 -0
  29. package/dist/release/cli.js +1063 -0
  30. package/dist/release/daemon.js +704 -0
  31. package/dist/release/feishu-gateway.js +82 -0
  32. package/dist/release/stdio.js +237 -0
  33. package/dist/release/yoga.wasm +0 -0
  34. package/package.json +99 -0
Binary file
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@openduo/duoduo",
3
+ "version": "0.2.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "files": [
10
+ "bin/duoduo",
11
+ "bootstrap/",
12
+ "dist/release/",
13
+ "README.md"
14
+ ],
15
+ "bin": {
16
+ "duoduo": "bin/duoduo"
17
+ },
18
+ "lint-staged": {
19
+ "*.{ts,js}": [
20
+ "eslint --max-warnings=0",
21
+ "prettier --write"
22
+ ],
23
+ "*.{json,md,mdx,yml,yaml}": [
24
+ "prettier --write"
25
+ ]
26
+ },
27
+ "devDependencies": {
28
+ "@eslint/js": "^9.39.2",
29
+ "@types/node": "^20.11.30",
30
+ "@types/react": "^18.3.12",
31
+ "@types/ws": "^8.18.1",
32
+ "esbuild": "^0.25.12",
33
+ "eslint": "^9.39.2",
34
+ "eslint-config-prettier": "^10.1.8",
35
+ "husky": "^9.1.7",
36
+ "lint-staged": "^16.2.7",
37
+ "prettier": "^3.8.1",
38
+ "tsx": "^4.19.2",
39
+ "typescript": "^5.5.4",
40
+ "typescript-eslint": "^8.54.0",
41
+ "vitest": "^2.1.8",
42
+ "ws": "^8.19.0"
43
+ },
44
+ "dependencies": {
45
+ "@anthropic-ai/claude-agent-sdk": "^0.2.63",
46
+ "@fastify/websocket": "^11.2.0",
47
+ "@modelcontextprotocol/sdk": "^1.27.1",
48
+ "chalk": "^4.1.2",
49
+ "cron-parser": "^5.5.0",
50
+ "fastify": "^5.7.4",
51
+ "gray-matter": "^4.0.3",
52
+ "ink": "^4.4.1",
53
+ "ink-text-input": "^5.0.1",
54
+ "react": "^18.3.1",
55
+ "zod": "^4.3.6",
56
+ "@openduo/protocol": "0.2.0"
57
+ },
58
+ "scripts": {
59
+ "test": "vitest run",
60
+ "test:container": "bash scripts/container-test.sh",
61
+ "test:watch": "vitest",
62
+ "build": "tsc -p tsconfig.build.json",
63
+ "build:release": "node scripts/build-release.mjs",
64
+ "build:release:plain": "ALADUO_MINIFY=false node scripts/build-release.mjs",
65
+ "build:channel:feishu": "pnpm --dir packages/channel-feishu run build:plugin",
66
+ "build:channel:acp": "pnpm --dir packages/channel-acp run build:plugin",
67
+ "release:offline": "bash scripts/release-offline.sh",
68
+ "build:container": "bash scripts/container-build.sh",
69
+ "container:prepare": "bash scripts/container-prepare.sh",
70
+ "container:shell": "bash scripts/container-shell.sh",
71
+ "lint": "eslint .",
72
+ "lint:types": "tsc -p tsconfig.json --noEmit",
73
+ "format": "prettier --write .",
74
+ "format:check": "prettier --check .",
75
+ "lint-staged": "lint-staged",
76
+ "dev": "bash scripts/dev.sh",
77
+ "dev:host": "tsx watch src/daemon/daemon.ts",
78
+ "dev:build": "bash scripts/dev.sh --build",
79
+ "dev:stop": "bash scripts/dev.sh --stop",
80
+ "prod": "bash scripts/prod.sh up",
81
+ "prod:feishu": "bash scripts/prod.sh up --with-feishu",
82
+ "prod:down": "bash scripts/prod.sh down",
83
+ "prod:logs": "bash scripts/prod.sh logs",
84
+ "prod:ps": "bash scripts/prod.sh ps",
85
+ "prod:build": "bash scripts/prod.sh build",
86
+ "start:stdio": "bash scripts/container-cli.sh",
87
+ "start:acp": "bash scripts/container-acp.sh",
88
+ "start:stdio:host": "tsx src/cli/main.ts",
89
+ "start:daemon": "tsx src/daemon/daemon.ts",
90
+ "start:cli": "bash scripts/container-cli.sh",
91
+ "mailbox:prompt": "tsx scripts/mailbox-prompt.ts",
92
+ "runtime:migrate": "tsx scripts/migrate-runtime-state.ts",
93
+ "start:feishu": "bash scripts/feishu-gw.sh",
94
+ "start:feishu:bg": "bash scripts/feishu-gw.sh --bg",
95
+ "stop:feishu": "bash scripts/feishu-gw.sh --stop",
96
+ "logs:feishu": "bash scripts/feishu-gw.sh --logs",
97
+ "logs:feishu:tail": "bash scripts/feishu-gw.sh --tail"
98
+ }
99
+ }