dal-code 1.0.39 → 1.0.40

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 (305) hide show
  1. package/CHANGELOG.md +82 -4
  2. package/NOTICE +224 -0
  3. package/dal-docs/examples/extensions/LICENSE +21 -0
  4. package/dal-docs/examples/extensions/README.md +64 -0
  5. package/dal-docs/examples/extensions/bookmark.ts +52 -0
  6. package/dal-docs/examples/extensions/claude-rules.ts +88 -0
  7. package/dal-docs/examples/extensions/commands.ts +74 -0
  8. package/dal-docs/examples/extensions/custom-footer.ts +66 -0
  9. package/dal-docs/examples/extensions/dirty-repo-guard.ts +58 -0
  10. package/dal-docs/examples/extensions/dynamic-tools.ts +76 -0
  11. package/dal-docs/examples/extensions/hello.ts +49 -0
  12. package/dal-docs/examples/extensions/inline-bash.ts +96 -0
  13. package/dal-docs/examples/extensions/permission-gate.ts +36 -0
  14. package/dal-docs/examples/extensions/protected-paths.ts +32 -0
  15. package/dal-docs/examples/extensions/session-name.ts +29 -0
  16. package/dal-docs/examples/extensions/status-line.ts +34 -0
  17. package/dal-docs/examples/extensions/structured-output.ts +67 -0
  18. package/dal-docs/examples/extensions/tool-override.ts +146 -0
  19. package/dal-docs/examples/extensions/trigger-compact.ts +59 -0
  20. package/dal-docs/examples/extensions/truncated-tool.ts +197 -0
  21. package/dal-docs/extensions.md +27 -0
  22. package/dist/cli/args.d.ts +3 -0
  23. package/dist/cli/args.js +17 -17
  24. package/dist/config.d.ts +1 -0
  25. package/dist/config.js +1 -1
  26. package/dist/core/agent-session.js +6 -6
  27. package/dist/core/extensions/loader.js +1 -1
  28. package/dist/core/extensions/permission-surface.js +1 -1
  29. package/dist/core/extensions/runner.js +1 -1
  30. package/dist/core/extensions/types.d.ts +15 -1
  31. package/dist/core/model-registry.d.ts +1 -0
  32. package/dist/core/model-registry.js +1 -1
  33. package/dist/core/nested-tool-calls.js +2 -2
  34. package/dist/core/resource-loader.js +1 -1
  35. package/dist/core/system-prompt.js +10 -9
  36. package/dist/core/tools/bash.js +13 -12
  37. package/dist/core/tools/path-utils.d.ts +5 -0
  38. package/dist/core/tools/process.d.ts +2 -0
  39. package/dist/core/tools/process.js +14 -13
  40. package/dist/dal/extension-compat.d.ts +62 -0
  41. package/dist/dal/extension-compat.js +4 -0
  42. package/dist/dal/hooks/extension.js +2 -2
  43. package/dist/dal/i18n.js +1 -1
  44. package/dist/dal/manifest.js +1 -1
  45. package/dist/dal/reviewed/endorsed-cli.js +1 -1
  46. package/dist/dal/reviewed/endorsed.js +1 -1
  47. package/dist/dal/reviewed/market-keys.js +1 -0
  48. package/dist/dal/reviewed/market.d.ts +64 -0
  49. package/dist/dal/reviewed/market.js +2 -0
  50. package/dist/extensions/mcp/runtime.d.ts +2 -1
  51. package/dist/extensions/mcp/runtime.js +3 -3
  52. package/dist/extensions/mcp/runtime.lazy.d.ts +1 -0
  53. package/dist/index.d.ts +7 -1
  54. package/dist/index.js +1 -1
  55. package/dist/main.js +4 -4
  56. package/dist/modes/acp/acp-mode.js +1 -1
  57. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  58. package/dist/modes/interactive/interactive-mode.js +14 -14
  59. package/dist/modes/print-mode.js +3 -3
  60. package/dist/modes/rpc/rpc-mode.js +1 -1
  61. package/dist/node_modules/@dalcode/dal-advisor/LICENSE +45 -0
  62. package/dist/node_modules/@dalcode/dal-advisor/package.json +35 -0
  63. package/dist/node_modules/@dalcode/dal-advisor/src/index.js +22 -0
  64. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  65. package/dist/node_modules/@dalcode/dal-bridge/src/ask-user.js +1 -1
  66. package/dist/node_modules/@dalcode/dal-capabilities/LICENSE +21 -0
  67. package/dist/node_modules/@dalcode/dal-capabilities/package.json +38 -0
  68. package/dist/node_modules/@dalcode/dal-capabilities/src/catalogue.js +1 -0
  69. package/dist/node_modules/@dalcode/dal-capabilities/src/index.js +11 -0
  70. package/dist/node_modules/@dalcode/dal-capabilities/src/install.js +4 -0
  71. package/dist/node_modules/@dalcode/dal-capabilities/src/match.js +1 -0
  72. package/dist/node_modules/@dalcode/dal-capabilities/src/state.js +3 -0
  73. package/dist/node_modules/@dalcode/dal-compat/LICENSE +21 -0
  74. package/dist/node_modules/@dalcode/dal-compat/package.json +32 -0
  75. package/dist/node_modules/@dalcode/dal-compat/src/claude-rules.js +3 -0
  76. package/dist/node_modules/@dalcode/dal-compat/src/index.js +7 -0
  77. package/dist/node_modules/@dalcode/dal-dap/LICENSE +47 -0
  78. package/dist/node_modules/@dalcode/dal-dap/package.json +38 -0
  79. package/dist/node_modules/@dalcode/dal-dap/src/adapters.js +1 -0
  80. package/dist/node_modules/@dalcode/dal-dap/src/client.js +5 -0
  81. package/dist/node_modules/@dalcode/dal-dap/src/index.js +9 -0
  82. package/dist/node_modules/@dalcode/dal-dap/src/install.js +2 -0
  83. package/dist/node_modules/@dalcode/dal-dap/src/session.js +2 -0
  84. package/dist/node_modules/@dalcode/dal-dap/src/types.js +0 -0
  85. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  86. package/dist/node_modules/@dalcode/dal-goal/package.json +4 -3
  87. package/dist/node_modules/@dalcode/dal-goal/src/core.js +6 -6
  88. package/dist/node_modules/@dalcode/dal-goal/src/index.js +17 -7
  89. package/dist/node_modules/@dalcode/dal-goal/src/verify.js +26 -0
  90. package/dist/node_modules/@dalcode/dal-guard/package.json +6 -4
  91. package/dist/node_modules/@dalcode/dal-guard/src/credentials.js +1 -1
  92. package/dist/node_modules/@dalcode/dal-guard/src/edit-anchor-core.js +23 -0
  93. package/dist/node_modules/@dalcode/dal-guard/src/edit-anchor.js +4 -0
  94. package/dist/node_modules/@dalcode/dal-guard/src/index.js +1 -1
  95. package/dist/node_modules/@dalcode/dal-guard/src/workspace.js +2 -2
  96. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  97. package/dist/node_modules/@dalcode/dal-interactive/LICENSE +209 -0
  98. package/dist/node_modules/@dalcode/dal-interactive/package.json +4 -3
  99. package/dist/node_modules/@dalcode/dal-interactive/src/btw.js +25 -0
  100. package/dist/node_modules/@dalcode/dal-interactive/src/index.js +1 -1
  101. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  102. package/dist/node_modules/@dalcode/dal-learn/LICENSE +21 -0
  103. package/dist/node_modules/@dalcode/dal-learn/package.json +35 -0
  104. package/dist/node_modules/@dalcode/dal-learn/src/engine.js +8 -0
  105. package/dist/node_modules/@dalcode/dal-learn/src/extract.js +14 -0
  106. package/dist/node_modules/@dalcode/dal-learn/src/index.js +17 -0
  107. package/dist/node_modules/@dalcode/dal-learn/src/lessons.js +3 -0
  108. package/dist/node_modules/@dalcode/dal-learn/src/migrate.js +1 -0
  109. package/dist/node_modules/@dalcode/dal-learn/src/procedures.js +11 -0
  110. package/dist/node_modules/@dalcode/dal-learn/src/project-map.js +2 -0
  111. package/dist/node_modules/@dalcode/dal-learn/src/project.js +1 -0
  112. package/dist/node_modules/@dalcode/dal-learn/src/safety.js +2 -0
  113. package/dist/node_modules/@dalcode/dal-learn/src/signals.js +5 -0
  114. package/dist/node_modules/@dalcode/dal-learn/src/skill-actions.js +1 -0
  115. package/dist/node_modules/@dalcode/dal-learn/src/skill-evolution.js +16 -0
  116. package/dist/node_modules/@dalcode/dal-learn/src/store.js +2 -0
  117. package/dist/node_modules/@dalcode/dal-lsp/package.json +6 -4
  118. package/dist/node_modules/@dalcode/dal-lsp/src/client.js +3 -3
  119. package/dist/node_modules/@dalcode/dal-lsp/src/config.js +1 -1
  120. package/dist/node_modules/@dalcode/dal-lsp/src/format.js +8 -7
  121. package/dist/node_modules/@dalcode/dal-lsp/src/index.js +11 -8
  122. package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -5
  123. package/dist/node_modules/@dalcode/dal-mcp/src/config.d.ts +1 -0
  124. package/dist/node_modules/@dalcode/dal-mcp/src/config.js +1 -1
  125. package/dist/node_modules/@dalcode/dal-mcp/src/http-client.d.ts +32 -1
  126. package/dist/node_modules/@dalcode/dal-mcp/src/http-client.js +2 -1
  127. package/dist/node_modules/@dalcode/dal-mcp/src/index.js +16 -16
  128. package/dist/node_modules/@dalcode/dal-mcp/src/oauth.js +2 -0
  129. package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.d.ts +4 -2
  130. package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.js +4 -4
  131. package/dist/node_modules/@dalcode/dal-mcp/src/types.d.ts +9 -0
  132. package/dist/node_modules/@dalcode/dal-mcp/src/types.js +1 -1
  133. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  134. package/dist/node_modules/@dalcode/dal-office/src/index.d.ts +6 -3
  135. package/dist/node_modules/@dalcode/dal-office/src/index.js +1 -1
  136. package/dist/node_modules/@dalcode/dal-office/src/render/chart-theme.d.ts +13 -0
  137. package/dist/node_modules/@dalcode/dal-office/src/render/chart-theme.js +1 -0
  138. package/dist/node_modules/@dalcode/dal-office/src/render/chart.d.ts +16 -0
  139. package/dist/node_modules/@dalcode/dal-office/src/render/chart.js +4 -2
  140. package/dist/node_modules/@dalcode/dal-office/src/render/docx.d.ts +4 -1
  141. package/dist/node_modules/@dalcode/dal-office/src/render/docx.js +1 -1
  142. package/dist/node_modules/@dalcode/dal-office/src/render/drawio-style.d.ts +4 -0
  143. package/dist/node_modules/@dalcode/dal-office/src/render/drawio-style.js +1 -0
  144. package/dist/node_modules/@dalcode/dal-office/src/render/pptx.d.ts +52 -4
  145. package/dist/node_modules/@dalcode/dal-office/src/render/pptx.js +3 -2
  146. package/dist/node_modules/@dalcode/dal-office/src/render/thumbnails.d.ts +1 -1
  147. package/dist/node_modules/@dalcode/dal-office/src/render/thumbnails.js +1 -1
  148. package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.d.ts +1 -0
  149. package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.js +1 -1
  150. package/dist/node_modules/@dalcode/dal-office/src/scratchpad.d.ts +30 -1
  151. package/dist/node_modules/@dalcode/dal-office/src/scratchpad.js +1 -1
  152. package/dist/node_modules/@dalcode/dal-office/src/themes.d.ts +35 -1
  153. package/dist/node_modules/@dalcode/dal-office/src/themes.js +1 -1
  154. package/dist/node_modules/@dalcode/dal-office/src/tools/chart-generate.js +3 -3
  155. package/dist/node_modules/@dalcode/dal-office/src/tools/doc-generate.js +2 -2
  156. package/dist/node_modules/@dalcode/dal-office/src/tools/drawio-generate.js +3 -3
  157. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-generate.js +2 -2
  158. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-plan.js +2 -2
  159. package/dist/node_modules/@dalcode/dal-office/src/tools/sheet-generate.js +2 -2
  160. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +4 -4
  161. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  162. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +4 -4
  163. package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -5
  164. package/dist/node_modules/@dalcode/dal-plugins/src/index.js +11 -11
  165. package/dist/node_modules/@dalcode/dal-plugins/src/manage.js +8 -10
  166. package/dist/node_modules/@dalcode/dal-plugins/src/npm-hook.js +1 -1
  167. package/dist/node_modules/@dalcode/dal-plugins/src/registry.js +2 -2
  168. package/dist/node_modules/@dalcode/dal-recall/LICENSE +45 -0
  169. package/dist/node_modules/@dalcode/dal-recall/package.json +34 -0
  170. package/dist/node_modules/@dalcode/dal-recall/src/index-db.js +57 -0
  171. package/dist/node_modules/@dalcode/dal-recall/src/index.js +1 -0
  172. package/dist/node_modules/@dalcode/dal-recall/src/query.js +1 -0
  173. package/dist/node_modules/@dalcode/dal-recall/src/redact.js +1 -0
  174. package/dist/node_modules/@dalcode/dal-recall/src/sqlite.js +1 -0
  175. package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
  176. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  177. package/dist/node_modules/@dalcode/dal-rewind/src/commands.js +2 -2
  178. package/dist/node_modules/@dalcode/dal-rewind/src/core.d.ts +21 -8
  179. package/dist/node_modules/@dalcode/dal-rewind/src/core.js +8 -3
  180. package/dist/node_modules/@dalcode/dal-rewind/src/index.js +1 -1
  181. package/dist/node_modules/@dalcode/dal-rewind/src/state.js +1 -1
  182. package/dist/node_modules/@dalcode/dal-router/package.json +6 -5
  183. package/dist/node_modules/@dalcode/dal-router/src/advisor.js +1 -0
  184. package/dist/node_modules/@dalcode/dal-router/src/assist.js +4 -2
  185. package/dist/node_modules/@dalcode/dal-router/src/commands.js +8 -8
  186. package/dist/node_modules/@dalcode/dal-router/src/config.d.ts +3 -0
  187. package/dist/node_modules/@dalcode/dal-router/src/config.js +2 -2
  188. package/dist/node_modules/@dalcode/dal-router/src/index.js +4 -4
  189. package/dist/node_modules/@dalcode/dal-router/src/jev.d.ts +2 -1
  190. package/dist/node_modules/@dalcode/dal-router/src/jev.js +4 -4
  191. package/dist/node_modules/@dalcode/dal-router/src/services.js +1 -1
  192. package/dist/node_modules/@dalcode/dal-router/src/subagent.js +1 -1
  193. package/dist/node_modules/@dalcode/dal-skills/package.json +4 -3
  194. package/dist/node_modules/@dalcode/dal-skills/src/bundled/browser-qa/SKILL.md +48 -0
  195. package/dist/node_modules/@dalcode/dal-skills/src/bundled/diagram-design/SKILL.md +81 -0
  196. package/dist/node_modules/@dalcode/dal-skills/src/bundled/poster-design/SKILL.md +50 -0
  197. package/dist/node_modules/@dalcode/dal-skills/src/bundled/print-design/SKILL.md +55 -0
  198. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/dashboard.html +177 -0
  199. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/diagram.html +39 -0
  200. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/echarts-dal.json +360 -0
  201. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/email/notice.html +46 -0
  202. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/landing.html +173 -0
  203. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/mermaid-dal.json +140 -0
  204. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/mindmap.html +65 -0
  205. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/event-poster.html +40 -0
  206. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/poster.css +41 -0
  207. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/square-card.html +25 -0
  208. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/wechat-cover.html +29 -0
  209. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/xhs-card.html +35 -0
  210. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/posters/xhs-cover.html +26 -0
  211. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/print/letter.html +35 -0
  212. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/print/print.css +65 -0
  213. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/print/report.html +76 -0
  214. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/print/resume.html +72 -0
  215. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/render.mjs +18 -0
  216. package/dist/node_modules/@dalcode/dal-skills/src/bundled/visual-kit/tokens.css +264 -0
  217. package/dist/node_modules/@dalcode/dal-skills/src/bundled/web-design/SKILL.md +73 -0
  218. package/dist/node_modules/@dalcode/dal-skills/src/bundled.js +1 -0
  219. package/dist/node_modules/@dalcode/dal-skills/src/catalog.js +2 -2
  220. package/dist/node_modules/@dalcode/dal-skills/src/index.js +16 -11
  221. package/dist/node_modules/@dalcode/dal-statusline/LICENSE +21 -0
  222. package/dist/node_modules/@dalcode/dal-statusline/package.json +31 -0
  223. package/dist/node_modules/@dalcode/dal-statusline/src/index.js +3 -0
  224. package/dist/node_modules/@dalcode/dal-structured/LICENSE +21 -0
  225. package/dist/node_modules/@dalcode/dal-structured/package.json +32 -0
  226. package/dist/node_modules/@dalcode/dal-structured/src/index.js +9 -0
  227. package/dist/node_modules/@dalcode/dal-subagent/LICENSE +24 -0
  228. package/dist/node_modules/@dalcode/dal-subagent/package.json +7 -6
  229. package/dist/node_modules/@dalcode/dal-subagent/src/background.js +13 -0
  230. package/dist/node_modules/@dalcode/dal-subagent/src/index.js +22 -14
  231. package/dist/node_modules/@dalcode/dal-subagent/src/inproc-runner.js +3 -0
  232. package/dist/node_modules/@dalcode/dal-subagent/src/pool.js +1 -0
  233. package/dist/node_modules/@dalcode/dal-subagent/src/process-runner.js +3 -3
  234. package/dist/node_modules/@dalcode/dal-subagent/src/tmux-runner.js +3 -0
  235. package/dist/node_modules/@dalcode/dal-subagent/src/worktree.js +2 -0
  236. package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
  237. package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
  238. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  239. package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -1
  240. package/dist/node_modules/@dalcode/dal-tool-catalog/src/index.js +4 -4
  241. package/dist/node_modules/@dalcode/dal-tool-catalog/src/repair-hook.js +1 -0
  242. package/dist/node_modules/@dalcode/dal-tool-catalog/src/repair.js +4 -0
  243. package/dist/node_modules/@dalcode/dal-usage/LICENSE +45 -0
  244. package/dist/node_modules/@dalcode/dal-usage/package.json +33 -0
  245. package/dist/node_modules/@dalcode/dal-usage/src/budget.d.ts +14 -0
  246. package/dist/node_modules/@dalcode/dal-usage/src/budget.js +3 -0
  247. package/dist/node_modules/@dalcode/dal-usage/src/data.d.ts +30 -0
  248. package/dist/node_modules/@dalcode/dal-usage/src/data.js +1 -0
  249. package/dist/node_modules/@dalcode/dal-usage/src/index.d.ts +12 -0
  250. package/dist/node_modules/@dalcode/dal-usage/src/index.js +2 -0
  251. package/dist/node_modules/@dalcode/dal-usage/src/report.d.ts +29 -0
  252. package/dist/node_modules/@dalcode/dal-usage/src/report.js +3 -0
  253. package/dist/node_modules/@dalcode/dal-web/package.json +6 -4
  254. package/dist/node_modules/@dalcode/dal-web/src/fetch.js +11 -5
  255. package/dist/node_modules/@dalcode/dal-web/src/index.js +2 -2
  256. package/dist/node_modules/@dalcode/dal-web/src/pdf.js +5 -0
  257. package/dist/node_modules/@dalcode/dal-workflow/LICENSE +24 -0
  258. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  259. package/dist/node_modules/@dalcode/dal-workflow/src/announce-check.js +1 -0
  260. package/dist/node_modules/@dalcode/dal-workflow/src/check-in.js +1 -1
  261. package/dist/node_modules/@dalcode/dal-workflow/src/completion-check.js +2 -2
  262. package/dist/node_modules/@dalcode/dal-workflow/src/index.js +4 -4
  263. package/dist/node_modules/@dalcode/dal-workflow/src/lean-code.js +1 -0
  264. package/dist/node_modules/@dalcode/dal-workflow/src/ledger.js +3 -3
  265. package/dist/node_modules/@dalcode/dal-workflow/src/loop-guard.js +3 -0
  266. package/dist/node_modules/@dalcode/dal-workflow/src/shared.js +2 -2
  267. package/dist/node_modules/@dalcode/dal-workflow/src/todo.js +4 -2
  268. package/dist/node_modules/@dalcode/dal-workflow/src/verify-check.js +2 -0
  269. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  270. package/dist/node_modules/@earendil-works/chord/package.json +1 -1
  271. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  272. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +0 -0
  273. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  274. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  275. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  276. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  277. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  278. package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
  279. package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
  280. package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  281. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  282. package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
  283. package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
  284. package/dist/node_modules/@earendil-works/pi-server/package.json +3 -3
  285. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  286. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  287. package/dist/package-manager-cli.js +61 -61
  288. package/dist/sdk/office.d.ts +1 -1
  289. package/dist/sdk/office.js +1 -1
  290. package/dist/sdk/rewind.d.ts +1 -1
  291. package/dist/sdk/rewind.js +1 -1
  292. package/dist/sdk/usage.d.ts +8 -0
  293. package/dist/sdk/usage.js +1 -0
  294. package/dist/utils/open-browser.d.ts +1 -0
  295. package/dist/utils/tools-manager.js +1 -1
  296. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  297. package/examples/extensions/gondolin/package-lock.json +2 -2
  298. package/examples/extensions/gondolin/package.json +1 -1
  299. package/examples/extensions/sandbox/package-lock.json +2 -2
  300. package/examples/extensions/sandbox/package.json +1 -1
  301. package/examples/extensions/with-deps/package-lock.json +2 -2
  302. package/examples/extensions/with-deps/package.json +1 -1
  303. package/npm-shrinkwrap.json +57 -14
  304. package/package.json +9 -2
  305. package/dist/node_modules/@dalcode/dal-plugins/src/compat.js +0 -2
@@ -0,0 +1,140 @@
1
+ {
2
+ "light": {
3
+ "theme": "base",
4
+ "themeVariables": {
5
+ "darkMode": false,
6
+ "background": "#FFFFFF",
7
+ "fontFamily": "PingFang SC, Microsoft YaHei, Noto Sans CJK SC, system-ui, sans-serif",
8
+ "fontSize": "14px",
9
+ "primaryColor": "#F2F5FD",
10
+ "primaryTextColor": "#1F2329",
11
+ "primaryBorderColor": "#8DA4EF",
12
+ "secondaryColor": "#EEF2FC",
13
+ "secondaryBorderColor": "#4269D0",
14
+ "secondaryTextColor": "#1F2329",
15
+ "tertiaryColor": "#F7F8FA",
16
+ "tertiaryBorderColor": "#E5E6EB",
17
+ "tertiaryTextColor": "#646A73",
18
+ "lineColor": "#80838D",
19
+ "textColor": "#1F2329",
20
+ "mainBkg": "#F2F5FD",
21
+ "nodeBorder": "#8DA4EF",
22
+ "clusterBkg": "#FAFAFB",
23
+ "clusterBorder": "#E0E1E6",
24
+ "titleColor": "#1F2329",
25
+ "edgeLabelBackground": "#FFFFFF",
26
+ "noteBkgColor": "#FFFBEB",
27
+ "noteBorderColor": "#E8D9A8",
28
+ "noteTextColor": "#646A73",
29
+ "actorBkg": "#F2F5FD",
30
+ "actorBorder": "#8DA4EF",
31
+ "actorTextColor": "#1F2329",
32
+ "signalColor": "#646A73",
33
+ "signalTextColor": "#1F2329",
34
+ "labelBoxBkgColor": "#F7F8FA",
35
+ "labelBoxBorderColor": "#E5E6EB",
36
+ "activationBkgColor": "#EEF2FC",
37
+ "activationBorderColor": "#4269D0",
38
+ "pie1": "#4269D0",
39
+ "pie2": "#EFB118",
40
+ "pie3": "#FF725C",
41
+ "pie4": "#6CC5B0",
42
+ "pie5": "#3CA951",
43
+ "pie6": "#FF8AB7",
44
+ "pie7": "#A463F2",
45
+ "pie8": "#97BBF5",
46
+ "pieStrokeColor": "#FFFFFF",
47
+ "pieOuterStrokeColor": "#FFFFFF",
48
+ "git0": "#4269D0",
49
+ "git1": "#EFB118",
50
+ "git2": "#FF725C",
51
+ "git3": "#6CC5B0",
52
+ "git4": "#3CA951",
53
+ "git5": "#FF8AB7",
54
+ "git6": "#A463F2",
55
+ "git7": "#97BBF5"
56
+ },
57
+ "flowchart": {
58
+ "htmlLabels": true,
59
+ "padding": 14,
60
+ "nodeSpacing": 40,
61
+ "rankSpacing": 56,
62
+ "curve": "basis"
63
+ },
64
+ "sequence": {
65
+ "mirrorActors": false,
66
+ "actorMargin": 64,
67
+ "messageFontWeight": 400
68
+ },
69
+ "themeCSS": ".node rect, .cluster rect { rx: 6px; ry: 6px; } .edgeLabel { font-size: 12px; }"
70
+ },
71
+ "dark": {
72
+ "theme": "base",
73
+ "themeVariables": {
74
+ "darkMode": true,
75
+ "background": "#16181D",
76
+ "fontFamily": "PingFang SC, Microsoft YaHei, Noto Sans CJK SC, system-ui, sans-serif",
77
+ "fontSize": "14px",
78
+ "primaryColor": "#1A2033",
79
+ "primaryTextColor": "#E8EAED",
80
+ "primaryBorderColor": "#435DB1",
81
+ "secondaryColor": "#182449",
82
+ "secondaryBorderColor": "#6A8DF0",
83
+ "secondaryTextColor": "#E8EAED",
84
+ "tertiaryColor": "#1A1D23",
85
+ "tertiaryBorderColor": "#2E3135",
86
+ "tertiaryTextColor": "#9AA0A6",
87
+ "lineColor": "#8B8D98",
88
+ "textColor": "#E8EAED",
89
+ "mainBkg": "#1A2033",
90
+ "nodeBorder": "#435DB1",
91
+ "clusterBkg": "#18191B",
92
+ "clusterBorder": "#2E3135",
93
+ "titleColor": "#E8EAED",
94
+ "edgeLabelBackground": "#16181D",
95
+ "noteBkgColor": "#302008",
96
+ "noteBorderColor": "#714F19",
97
+ "noteTextColor": "#E8EAED",
98
+ "actorBkg": "#1A2033",
99
+ "actorBorder": "#435DB1",
100
+ "actorTextColor": "#E8EAED",
101
+ "signalColor": "#9AA0A6",
102
+ "signalTextColor": "#E8EAED",
103
+ "labelBoxBkgColor": "#1A1D23",
104
+ "labelBoxBorderColor": "#2E3135",
105
+ "activationBkgColor": "#182449",
106
+ "activationBorderColor": "#6A8DF0",
107
+ "pie1": "#6A8DF0",
108
+ "pie2": "#EFB118",
109
+ "pie3": "#FF725C",
110
+ "pie4": "#6CC5B0",
111
+ "pie5": "#4FC264",
112
+ "pie6": "#FF8AB7",
113
+ "pie7": "#B98AF5",
114
+ "pie8": "#97BBF5",
115
+ "pieStrokeColor": "#16181D",
116
+ "pieOuterStrokeColor": "#16181D",
117
+ "git0": "#6A8DF0",
118
+ "git1": "#EFB118",
119
+ "git2": "#FF725C",
120
+ "git3": "#6CC5B0",
121
+ "git4": "#4FC264",
122
+ "git5": "#FF8AB7",
123
+ "git6": "#B98AF5",
124
+ "git7": "#97BBF5"
125
+ },
126
+ "flowchart": {
127
+ "htmlLabels": true,
128
+ "padding": 14,
129
+ "nodeSpacing": 40,
130
+ "rankSpacing": 56,
131
+ "curve": "basis"
132
+ },
133
+ "sequence": {
134
+ "mirrorActors": false,
135
+ "actorMargin": 64,
136
+ "messageFontWeight": 400
137
+ },
138
+ "themeCSS": ".node rect, .cluster rect { rx: 6px; ry: 6px; } .edgeLabel { font-size: 12px; }"
139
+ }
140
+ }
@@ -0,0 +1,65 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>{{标题}}</title>
7
+ <!--
8
+ DAL mind map page (markmap). Write the outline as Markdown headings and
9
+ nested lists inside the script element with id="outline"; the first heading
10
+ is the root. Export: node render.mjs mindmap.html mindmap.png --width 1600 --height 1000
11
+ markmap 0.18.12 (MIT) and d3 7.9.0 (ISC) from the npmmirror CDN, integrity-checked.
12
+ -->
13
+ <style>
14
+ :root{color-scheme:light dark;--page:#FFFFFF;--text:#1F2329;--line:#E0E1E6}
15
+ @media (prefers-color-scheme:dark){:root{--page:#16181D;--text:#E8EAED;--line:#2E3135}}
16
+ html,body{margin:0;height:100%;background:var(--page)}
17
+ svg#map{width:100vw;height:100vh;display:block}
18
+ .markmap{--markmap-font:500 15px/1.5 "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;--markmap-text-color:var(--text);--markmap-code-bg:var(--line)}
19
+ .markmap-foreign,.markmap-foreign div{color:var(--text)!important}
20
+ .markmap-node[data-depth="1"] .markmap-foreign{font-size:20px;font-weight:600}
21
+ .markmap-node[data-depth="2"] .markmap-foreign{font-weight:600}
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <svg id="map" class="markmap"></svg>
26
+ <script type="text/markdown" id="outline">
27
+ # 中心主题
28
+ ## 分支一
29
+ - 要点
30
+ - 要点
31
+ ## 分支二
32
+ - 要点
33
+ </script>
34
+ <script src="https://cdn.npmmirror.com/packages/d3/7.9.0/files/dist/d3.min.js" integrity="sha384-CjloA8y00+1SDAUkjs099PVfnY2KmDC2BZnws9kh8D/lX1s46w6EPhpXdqMfjK6i" crossorigin="anonymous"></script>
35
+ <script src="https://cdn.npmmirror.com/packages/markmap-view/0.18.12/files/dist/browser/index.js" integrity="sha384-p+gyhsDIg0RmvIKRr9BBGSyJ9NDDkiFsbilRwdZd20Q8mUL2v7e8+orY4pvTV52w" crossorigin="anonymous"></script>
36
+ <script src="https://cdn.npmmirror.com/packages/markmap-lib/0.18.12/files/dist/browser/index.iife.js" integrity="sha384-ZlXKtR0wcZqxEYI8i3TPFFiOJR1MEdIzdVvnhSOonCrPsBup4dnkRw49FeYhfsHF" crossorigin="anonymous"></script>
37
+ <script>
38
+ // DAL chart palette, one hue per first-level branch (children inherit it).
39
+ const PALETTE = ["#4269D0", "#EFB118", "#FF725C", "#3CA951", "#A463F2", "#6CC5B0", "#FF8AB7", "#9C6B4E"];
40
+ const { Transformer, Markmap } = window.markmap;
41
+ const { root } = new Transformer().transform(document.getElementById("outline").textContent);
42
+ // Tag every node with its first-level branch so the whole branch keeps one hue.
43
+ const tag = (node, branch) => {
44
+ node.payload = { ...node.payload, branch };
45
+ for (const child of node.children ?? []) tag(child, branch);
46
+ };
47
+ (root.children ?? []).forEach((child, index) => tag(child, index));
48
+ const branchColor = (node) => {
49
+ const branch = node.payload?.branch;
50
+ return branch === undefined ? "#646A73" : PALETTE[branch % PALETTE.length];
51
+ };
52
+ const map = Markmap.create("#map", {
53
+ autoFit: true,
54
+ duration: 0,
55
+ spacingHorizontal: 96,
56
+ spacingVertical: 10,
57
+ paddingX: 12,
58
+ initialExpandLevel: -1,
59
+ color: branchColor,
60
+ lineWidth: (node) => Math.max(1.5, 4 - (node.state?.depth ?? 0) * 0.8),
61
+ }, root);
62
+ window.DAL_READY = map.fit();
63
+ </script>
64
+ </body>
65
+ </html>
@@ -0,0 +1,40 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>活动海报</title>
6
+ <!-- 竖版活动海报 / 朋友圈长图,9:16,1080×1920。导出:node ../render.mjs event-poster.html poster.png --width 1080 --height 1920 --scale 1 -->
7
+ <link rel="stylesheet" href="poster.css">
8
+ <style>
9
+ .canvas{--w:1080px;--h:1920px;padding:96px 88px;display:flex;flex-direction:column}
10
+ .org{font-size:32px;color:var(--muted)}
11
+ .date{margin-top:120px;font-size:260px;line-height:.9;font-weight:700;color:var(--accent)}
12
+ .week{margin-top:24px;font-size:40px;color:var(--muted)}
13
+ .title{margin-top:96px;font-size:104px;line-height:1.15;font-weight:800;letter-spacing:-0.03em;max-height:360px;overflow:hidden}
14
+ .desc{margin-top:40px;font-size:38px;line-height:1.55;color:var(--muted);max-width:820px;max-height:120px;overflow:hidden}
15
+ dl{margin:auto 0 0;border-top:2px solid var(--ink)}
16
+ dl div{display:grid;grid-template-columns:180px 1fr;padding:30px 0;border-bottom:1px solid var(--line);font-size:36px}
17
+ dt{color:var(--muted)}
18
+ dd{margin:0;font-weight:600}
19
+ .cta{display:flex;align-items:center;gap:40px;margin-top:64px}
20
+ .qr{width:200px;height:200px;border:2px dashed var(--line);display:grid;place-items:center;font-size:24px;color:var(--muted);background:var(--panel)}
21
+ .cta p{font-size:40px;font-weight:700}
22
+ .cta small{display:block;margin-top:12px;font-size:28px;font-weight:400;color:var(--muted)}
23
+ </style>
24
+ </head>
25
+ <body>
26
+ <main class="canvas" data-palette="ink">
27
+ <div class="org">杭州独立开发者联盟 · 第 8 次线下聚会</div>
28
+ <div class="date num">11.08</div>
29
+ <div class="week">周六 14:00 – 18:00</div>
30
+ <h1 class="title balance" data-fit="活动标题">一个人做产品,<br>第一年怎么活下来</h1>
31
+ <p class="desc" data-fit="活动介绍">三位全职独立开发者分享真实收入、踩过的坑和获客渠道,现场答疑。</p>
32
+ <dl>
33
+ <div><dt>地点</dt><dd>西湖区文三路 478 号 2 楼</dd></div>
34
+ <div><dt>名额</dt><dd>60 人,免费,需报名</dd></div>
35
+ <div><dt>嘉宾</dt><dd>林舟 · 周岚 · 许一鸣</dd></div>
36
+ </dl>
37
+ <div class="cta"><div class="qr">二维码</div><p>扫码报名<small>报名截止 11 月 6 日</small></p></div>
38
+ </main>
39
+ </body>
40
+ </html>
@@ -0,0 +1,41 @@
1
+ /*
2
+ * DAL poster & social card base. One fixed-size canvas per page:
3
+ * <main class="canvas" data-palette="clear"> with .canvas { --w: 1242px; --h: 1660px }
4
+ * Every text block that must not overflow carries data-fit="名字"; render.mjs
5
+ * reports any that do. Sizes are in px on purpose: the canvas is a fixed-size
6
+ * image, not a responsive page.
7
+ */
8
+ :root {
9
+ --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
10
+ --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
11
+ --font-num: "SF Pro Display", "Helvetica Neue", "Segoe UI", "PingFang SC", sans-serif;
12
+ }
13
+
14
+ /* Palettes: background / ink / muted ink / accent / hairline / panel. */
15
+ [data-palette="clear"] { --bg: #f4f6fa; --ink: #14181f; --muted: #5b6270; --accent: #3e63dd; --line: #dfe3ea; --panel: #ffffff; --on-accent: #ffffff; }
16
+ [data-palette="ink"] { --bg: #121418; --ink: #f2f3f5; --muted: #a1a7b3; --accent: #ffc53d; --line: #2a2e36; --panel: #1b1e24; --on-accent: #121418; }
17
+ [data-palette="forest"] { --bg: #e9f0ea; --ink: #12261c; --muted: #4a6455; --accent: #2b9a66; --line: #cddbd1; --panel: #f6faf7; --on-accent: #ffffff; }
18
+ [data-palette="coral"] { --bg: #fff1ee; --ink: #3a1512; --muted: #7d4d47; --accent: #e5484d; --line: #f4d3cd; --panel: #ffffff; --on-accent: #ffffff; }
19
+ [data-palette="ocean"] { --bg: #0d2847; --ink: #eaf4ff; --muted: #9cc2ea; --accent: #70b8ff; --line: #1d4473; --panel: #12345a; --on-accent: #0d2847; }
20
+
21
+ * { box-sizing: border-box; }
22
+ html, body { margin: 0; overflow: hidden; }
23
+ .canvas {
24
+ width: var(--w);
25
+ height: var(--h);
26
+ overflow: hidden;
27
+ position: relative;
28
+ background: var(--bg);
29
+ color: var(--ink);
30
+ font-family: var(--font-sans);
31
+ -webkit-font-smoothing: antialiased;
32
+ font-kerning: normal;
33
+ }
34
+ h1, h2, h3, p { margin: 0; }
35
+ .serif { font-family: var(--font-serif); }
36
+ .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
37
+ .accent { color: var(--accent); }
38
+ .muted { color: var(--muted); }
39
+ .rule { height: 2px; background: var(--ink); }
40
+ .hairline { height: 1px; background: var(--line); }
41
+ .balance { text-wrap: balance; }
@@ -0,0 +1,25 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>数据卡片</title>
6
+ <!-- 方形数据卡 / 金句卡,1:1,1080×1080(朋友圈、微博、小红书都能用)。导出:node ../render.mjs square-card.html card.png --width 1080 --height 1080 --scale 1 -->
7
+ <link rel="stylesheet" href="poster.css">
8
+ <style>
9
+ .canvas{--w:1080px;--h:1080px;padding:88px;display:flex;flex-direction:column}
10
+ .label{font-size:32px;color:var(--muted);padding-bottom:24px;border-bottom:2px solid var(--ink)}
11
+ .stat{margin-top:96px;font-size:300px;line-height:.9;font-weight:700;color:var(--accent)}
12
+ .stat small{font-size:120px}
13
+ .says{margin-top:56px;font-size:60px;line-height:1.35;font-weight:700;letter-spacing:-0.01em;max-height:250px;overflow:hidden}
14
+ .src{margin-top:auto;display:flex;justify-content:space-between;font-size:28px;color:var(--muted)}
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <main class="canvas" data-palette="forest">
19
+ <div class="label">2026 中国家庭消费调查</div>
20
+ <div class="stat num">38<small>%</small></div>
21
+ <p class="says balance" data-fit="结论">的家庭今年把“买得更少、买得更好”写进了预算</p>
22
+ <div class="src"><span>样本 12,400 户</span><span>来源:示例数据</span></div>
23
+ </main>
24
+ </body>
25
+ </html>
@@ -0,0 +1,29 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>公众号封面</title>
6
+ <!-- 公众号头条封面,2.35:1,900×383(导出用 --scale 2 得到 1800×766)。分享时会被裁成正方形:关键文字放在左侧 383px 以外也能看懂。导出:node ../render.mjs wechat-cover.html cover.png --width 900 --height 383 --scale 2 -->
7
+ <link rel="stylesheet" href="poster.css">
8
+ <style>
9
+ .canvas{--w:900px;--h:383px;display:grid;grid-template-columns:1fr 300px}
10
+ .left{padding:48px 40px 40px 52px;display:flex;flex-direction:column}
11
+ .kicker{font-size:18px;color:var(--muted)}
12
+ .title{margin-top:20px;font-size:44px;line-height:1.22;font-weight:800;letter-spacing:-0.02em;max-height:170px;overflow:hidden}
13
+ .meta{margin-top:auto;font-size:16px;color:var(--muted)}
14
+ .right{background:var(--accent);color:var(--on-accent);display:flex;flex-direction:column;justify-content:flex-end;padding:36px}
15
+ .right .num{font-size:120px;line-height:.9;font-weight:700}
16
+ .right span{margin-top:12px;font-size:20px}
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <main class="canvas" data-palette="ocean">
21
+ <div class="left">
22
+ <div class="kicker">行业观察 · 10 月</div>
23
+ <h1 class="title balance" data-fit="标题">县城咖啡店<br>为什么开一家关一家</h1>
24
+ <div class="meta">我们走访了 23 家门店</div>
25
+ </div>
26
+ <div class="right"><div class="num">23</div><span>家门店的账本</span></div>
27
+ </main>
28
+ </body>
29
+ </html>
@@ -0,0 +1,35 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>小红书内页</title>
6
+ <!-- 小红书 / 图文内页,3:4,1242×1660。一页 3–5 条;更多就拆页。导出:node ../render.mjs xhs-card.html p2.png --width 1242 --height 1660 --scale 1 -->
7
+ <link rel="stylesheet" href="poster.css">
8
+ <style>
9
+ .canvas{--w:1242px;--h:1660px;padding:96px;display:flex;flex-direction:column}
10
+ .head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:28px;border-bottom:2px solid var(--ink)}
11
+ .head h2{font-size:64px;font-weight:800;letter-spacing:-0.02em}
12
+ .head span{font-size:32px;color:var(--muted)}
13
+ ol{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column}
14
+ li{display:grid;grid-template-columns:120px 1fr;gap:8px;padding:40px 0;border-bottom:1px solid var(--line)}
15
+ li:last-child{border-bottom:0}
16
+ .n{font-size:72px;font-weight:700;line-height:1;color:var(--accent)}
17
+ li h3{font-size:50px;line-height:1.3;font-weight:700}
18
+ li p{margin-top:16px;font-size:36px;line-height:1.55;color:var(--muted);max-height:112px;overflow:hidden}
19
+ .foot{display:flex;justify-content:space-between;font-size:30px;color:var(--muted)}
20
+ </style>
21
+ </head>
22
+ <body>
23
+ <main class="canvas" data-palette="clear">
24
+ <div class="head"><h2>下班前的 5 件事</h2><span>1 / 1</span></div>
25
+ <ol>
26
+ <li><span class="n num">1</span><div><h3>写下明天最重要的 3 件事</h3><p data-fit="第1条">只写 3 件,按先后排好。第二天到公司直接做第一件。</p></div></li>
27
+ <li><span class="n num">2</span><div><h3>清空今天的消息</h3><p data-fit="第2条">能回复的回复,要跟进的记进待办,别让它们过夜。</p></div></li>
28
+ <li><span class="n num">3</span><div><h3>关掉多余的标签页</h3><p data-fit="第3条">只留明天第一件事要用的,其余收进书签。</p></div></li>
29
+ <li><span class="n num">4</span><div><h3>记一笔今天的完成</h3><p data-fit="第4条">一句话写下今天做成了什么,周五写周报时直接复制。</p></div></li>
30
+ <li><span class="n num">5</span><div><h3>收拾桌面再离开</h3><p data-fit="第5条">桌面清空,第二天坐下就能开始,不用先找东西。</p></div></li>
31
+ </ol>
32
+ <div class="foot"><span>@阿青的效率笔记</span><span>收藏起来,明天试试</span></div>
33
+ </main>
34
+ </body>
35
+ </html>
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>小红书封面</title>
6
+ <!-- 小红书 / 图文封面,3:4,1242×1660。导出:node ../render.mjs xhs-cover.html cover.png --width 1242 --height 1660 --scale 1 -->
7
+ <link rel="stylesheet" href="poster.css">
8
+ <style>
9
+ .canvas{--w:1242px;--h:1660px;padding:104px 96px 96px;display:flex;flex-direction:column}
10
+ .series{display:flex;justify-content:space-between;font-size:34px;color:var(--muted);padding-bottom:28px;border-bottom:2px solid var(--ink)}
11
+ .title{margin-top:88px;font-size:132px;line-height:1.14;font-weight:800;letter-spacing:-0.03em;max-height:604px;overflow:hidden}
12
+ .sub{margin-top:48px;font-size:44px;line-height:1.5;color:var(--muted);max-width:820px;max-height:132px;overflow:hidden}
13
+ .big{position:absolute;right:56px;bottom:-120px;font-size:720px;line-height:1;font-weight:700;color:var(--accent)}
14
+ .author{margin-top:auto;font-size:34px;position:relative}
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <main class="canvas" data-palette="clear">
19
+ <div class="series"><span>职场效率笔记</span><span>第 12 期</span></div>
20
+ <h1 class="title balance" data-fit="主标题">下班前 10 分钟,<br>做完这 5 件事</h1>
21
+ <p class="sub" data-fit="副标题">第二天早上不用再想“先干什么”,坚持一个月,加班少了一半。</p>
22
+ <div class="big num" aria-hidden="true">5</div>
23
+ <div class="author">@阿青的效率笔记</div>
24
+ </main>
25
+ </body>
26
+ </html>
@@ -0,0 +1,35 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>合作邀请函</title>
6
+ <!--
7
+ DAL letter (A4): sender block, recipient, date, subject, body in serif,
8
+ signature. For notices, invitations, cover letters, statements.
9
+ Export: node ../render.mjs letter.html letter.pdf
10
+ -->
11
+ <link rel="stylesheet" href="print.css">
12
+ <style>
13
+ @page { margin: 28mm 26mm; @bottom-center { content: none; } }
14
+ @media screen { body { padding: 28mm 26mm; } }
15
+ body { font-family: var(--font-serif); font-size: 12pt; line-height: 1.9; }
16
+ .from { font-family: var(--font-sans); display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8pt; border-bottom: 1px solid var(--ink); font-size: 9.5pt; color: var(--muted); }
17
+ .from strong { font-size: 12pt; color: var(--ink); }
18
+ .subject { margin: 28pt 0 20pt; font-family: var(--font-sans); font-size: 16pt; font-weight: 700; text-align: center; }
19
+ .to { margin-bottom: 10pt; }
20
+ .body p { text-indent: 2em; margin-bottom: 6pt; }
21
+ .sign { margin-top: 36pt; text-align: right; line-height: 2; }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <div class="from"><strong>星河零售有限公司</strong><span>杭州市西湖区文三路 478 号 · 0571-0000 0000</span></div>
26
+ <h1 class="subject">合作邀请函</h1>
27
+ <p class="to">尊敬的青账科技:</p>
28
+ <div class="body">
29
+ <p>感谢贵司长期以来对我司财务数字化工作的支持。为进一步提升门店费用报销效率,我司计划于 2026 年第四季度在全国 86 家门店推行线上报销。</p>
30
+ <p>经过前期评估,我们希望与贵司就费控系统的部署与培训开展合作,并诚邀贵司于 2026 年 11 月 8 日前来我司总部进行方案交流。</p>
31
+ <p>具体安排请与我司财务部周岚联系(电话 138 0000 0000)。期待与贵司合作。</p>
32
+ </div>
33
+ <div class="sign">星河零售有限公司<br>2026 年 10 月 17 日</div>
34
+ </body>
35
+ </html>
@@ -0,0 +1,65 @@
1
+ /*
2
+ * DAL print base for HTML → PDF (A4). Chrome honours @page sizes and margin
3
+ * boxes, so page numbers and running headers come from CSS, not scripts.
4
+ * Body text is sized in pt for print; the scale is 10.5 / 12 / 14 / 18 / 24.
5
+ */
6
+ @page {
7
+ size: A4;
8
+ margin: 22mm 20mm 24mm;
9
+ @bottom-center {
10
+ content: counter(page) " / " counter(pages);
11
+ font: 9pt var(--font-sans);
12
+ color: #8b8d98;
13
+ }
14
+ }
15
+ @page :first {
16
+ @bottom-center { content: none; }
17
+ }
18
+ :root {
19
+ --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
20
+ --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
21
+ --ink: #1c2024;
22
+ --muted: #60646c;
23
+ --faint: #8b8d98;
24
+ --line: #d9d9e0;
25
+ --subtle: #f6f7f9;
26
+ --accent: #3e63dd;
27
+ }
28
+ * { box-sizing: border-box; }
29
+ html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
30
+ body {
31
+ margin: 0;
32
+ font-family: var(--font-sans);
33
+ font-size: 10.5pt;
34
+ line-height: 1.75;
35
+ color: var(--ink);
36
+ text-align: justify;
37
+ text-justify: inter-character;
38
+ orphans: 2;
39
+ widows: 2;
40
+ }
41
+ /* Screen preview: show the page edges. */
42
+ @media screen {
43
+ html { background: #e8e8ec; }
44
+ body { width: 210mm; min-height: 297mm; margin: 24px auto; padding: 22mm 20mm 24mm; background: #fff; }
45
+ }
46
+ h1, h2, h3 { line-height: 1.35; margin: 0; text-align: left; break-after: avoid; }
47
+ h1 { font-size: 24pt; font-weight: 700; letter-spacing: -0.01em; }
48
+ h2 { font-size: 14pt; font-weight: 700; margin: 22pt 0 8pt; padding-bottom: 4pt; border-bottom: 1px solid var(--line); }
49
+ h3 { font-size: 12pt; font-weight: 600; margin: 14pt 0 4pt; }
50
+ p { margin: 0 0 8pt; }
51
+ ul, ol { margin: 0 0 8pt; padding-left: 1.4em; }
52
+ li { margin: 2pt 0; }
53
+ strong { font-weight: 600; }
54
+ a { color: inherit; text-decoration: none; }
55
+ table { width: 100%; border-collapse: collapse; margin: 6pt 0 12pt; font-size: 9.5pt; line-height: 1.5; text-align: left; break-inside: avoid; }
56
+ th { font-weight: 600; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding: 5pt 6pt; }
57
+ td { border-bottom: 1px solid var(--line); padding: 5pt 6pt; }
58
+ td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
59
+ figure { margin: 8pt 0 14pt; break-inside: avoid; }
60
+ figure img, figure svg { display: block; width: 100%; height: auto; }
61
+ figcaption { margin-top: 4pt; font-size: 9pt; color: var(--muted); text-align: left; }
62
+ blockquote { margin: 8pt 0; padding: 2pt 0 2pt 12pt; border-left: 2px solid var(--line); color: var(--muted); }
63
+ .muted { color: var(--muted); }
64
+ .page-break { break-before: page; }
65
+ .keep { break-inside: avoid; }
@@ -0,0 +1,76 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>2026 年第三季度经营分析报告</title>
6
+ <!--
7
+ DAL report (A4 PDF). Structure: title block, key findings, sections with
8
+ tables/figures, appendix. Charts: generate an SVG with the chart tool and
9
+ put it in a <figure>. Export:
10
+ node ../render.mjs report.html report.pdf
11
+ -->
12
+ <link rel="stylesheet" href="print.css">
13
+ <style>
14
+ .cover { padding-bottom: 14pt; border-bottom: 2px solid var(--ink); margin-bottom: 18pt; }
15
+ .cover .org { font-size: 10pt; color: var(--muted); }
16
+ .cover h1 { margin-top: 10pt; }
17
+ .cover .meta { margin-top: 10pt; font-size: 9.5pt; color: var(--muted); display: flex; gap: 18pt; }
18
+ .summary { background: var(--subtle); padding: 10pt 14pt; margin: 0 0 14pt; break-inside: avoid; }
19
+ .summary h2 { margin-top: 0; border: 0; padding: 0; font-size: 12pt; }
20
+ .summary ol { margin: 4pt 0 0; }
21
+ .kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); margin: 6pt 0 14pt; break-inside: avoid; }
22
+ .kpis div { padding: 8pt 6pt; }
23
+ .kpis dt { font-size: 9pt; color: var(--muted); }
24
+ .kpis dd { margin: 2pt 0 0; font-size: 16pt; font-weight: 600; font-variant-numeric: tabular-nums; }
25
+ .kpis small { font-size: 9pt; font-weight: 400; color: var(--muted); margin-left: 4pt; }
26
+ </style>
27
+ </head>
28
+ <body>
29
+ <header class="cover">
30
+ <div class="org">星河零售有限公司 · 经营分析部</div>
31
+ <h1>2026 年第三季度经营分析报告</h1>
32
+ <div class="meta"><span>报告期:2026 年 7 月 – 9 月</span><span>编制:经营分析部</span><span>2026 年 10 月 17 日</span></div>
33
+ </header>
34
+
35
+ <section class="summary">
36
+ <h2>核心结论</h2>
37
+ <ol>
38
+ <li>营收 2,846 万元,同比增长 12.4%,增速较上季度加快 3.1 个百分点。</li>
39
+ <li>增长主要来自线上商城(+31%);直营门店持平,春熙路店装修拖累西南区。</li>
40
+ <li>客单价下降 2.3%,与促销力度加大有关,第四季度需控制折扣深度。</li>
41
+ </ol>
42
+ </section>
43
+
44
+ <dl class="kpis">
45
+ <div><dt>营收(万元)</dt><dd>2,846<small>+12.4%</small></dd></div>
46
+ <div><dt>订单数</dt><dd>48,210<small>+8.1%</small></dd></div>
47
+ <div><dt>客单价(元)</dt><dd>590<small>−2.3%</small></dd></div>
48
+ <div><dt>复购率</dt><dd>31.6%<small>+1.8 pt</small></dd></div>
49
+ </dl>
50
+
51
+ <h2>一、营收与渠道</h2>
52
+ <p>第三季度营收逐月走高,9 月单月 977 万元,为年内最高。分渠道看,线上商城贡献了新增营收的六成以上,直营门店营收与去年同期基本持平。</p>
53
+ <table>
54
+ <thead><tr><th>渠道</th><th class="n">营收(万元)</th><th class="n">占比</th><th class="n">同比</th></tr></thead>
55
+ <tbody>
56
+ <tr><td>直营门店</td><td class="n">1,124</td><td class="n">39.5%</td><td class="n">+0.8%</td></tr>
57
+ <tr><td>线上商城</td><td class="n">834</td><td class="n">29.3%</td><td class="n">+31.0%</td></tr>
58
+ <tr><td>分销</td><td class="n">512</td><td class="n">18.0%</td><td class="n">+9.6%</td></tr>
59
+ <tr><td>企业团购</td><td class="n">262</td><td class="n">9.2%</td><td class="n">+14.2%</td></tr>
60
+ <tr><td>其他</td><td class="n">114</td><td class="n">4.0%</td><td class="n">−3.5%</td></tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ <h2>二、门店表现</h2>
65
+ <h3>2.1 重点门店</h3>
66
+ <p>天河旗舰店、西湖银泰店继续领跑;陆家嘴店库存周转偏慢,9 月出现两次断货;春熙路店 8 月起停业装修,预计 11 月恢复营业。</p>
67
+ <blockquote>建议:第四季度为陆家嘴店增加一次周中补货,并在春熙路店重开前两周启动会员召回。</blockquote>
68
+
69
+ <h2>三、第四季度建议</h2>
70
+ <ul>
71
+ <li>控制促销折扣深度在 85 折以内,目标客单价回到 600 元。</li>
72
+ <li>线上商城加投搜索广告,预算从 45 万元增至 60 万元。</li>
73
+ <li>西南区以春熙路店重开为节点组织区域活动。</li>
74
+ </ul>
75
+ </body>
76
+ </html>