@ssamurias/dsh-fish 1.0.7 → 1.0.9

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 (77) hide show
  1. package/AGENTS.md +32 -3
  2. package/CHANGELOG.md +4366 -4265
  3. package/README.md +243 -627
  4. package/RELEASE-NOTES-1.0.8.md +81 -0
  5. package/RELEASE-NOTES-1.0.9.md +79 -0
  6. package/THIRD-PARTY-NOTICES.md +1 -1
  7. package/docs/troubleshooting.md +79 -1
  8. package/docs//350/256/244/344/272/272/345/210/244/346/215/256.md +112 -0
  9. package/lib/appoint.js +106 -22
  10. package/lib/ask.js +8 -3
  11. package/lib/at.js +16 -1
  12. package/lib/capture.js +51 -1
  13. package/lib/claim.js +103 -0
  14. package/lib/client/00-shell.js +500 -0
  15. package/lib/client/01-state-load.js +860 -0
  16. package/lib/client/02-actions.js +670 -0
  17. package/lib/client/03-widgets-header.js +721 -0
  18. package/lib/client/04-pressure-lab.js +891 -0
  19. package/lib/client/05-pressure-charts.js +431 -0
  20. package/lib/client/06-tab-status-grow.js +468 -0
  21. package/lib/client/07-tab-home-bili.js +542 -0
  22. package/lib/client/08-tab-memory-plugins.js +733 -0
  23. package/lib/client/09-tab-outing.js +710 -0
  24. package/lib/client/10-data-handlers.js +519 -0
  25. package/lib/client/11-tab-data-frame.js +661 -0
  26. package/lib/client/12-pressure-chip-mount.js +565 -0
  27. package/lib/client.js +109 -24
  28. package/lib/comment.js +18 -3
  29. package/lib/cue.js +102 -5
  30. package/lib/deliver.js +3 -1
  31. package/lib/derive.js +308 -41
  32. package/lib/doing.js +31 -15
  33. package/lib/drive.js +3 -5
  34. package/lib/env.d.ts +224 -0
  35. package/lib/health.js +56 -0
  36. package/lib/hear.js +70 -0
  37. package/lib/home.js +48 -20
  38. package/lib/identity.js +25 -2
  39. package/lib/index.js +32 -18
  40. package/lib/look.js +2 -1
  41. package/lib/loops.js +39 -0
  42. package/lib/make.js +60 -12
  43. package/lib/markup.js +77 -1
  44. package/lib/match.js +262 -0
  45. package/lib/observe-bili.js +331 -0
  46. package/lib/observe-config.js +223 -0
  47. package/lib/observe-data.js +522 -0
  48. package/lib/observe-home.js +383 -0
  49. package/lib/observe-http.js +250 -0
  50. package/lib/observe-outing.js +650 -0
  51. package/lib/observe-state.js +419 -0
  52. package/lib/observe-trip.js +286 -0
  53. package/lib/observe.js +99 -3574
  54. package/lib/persona.js +187 -40
  55. package/lib/proactive.js +48 -47
  56. package/lib/pronounask.js +15 -1
  57. package/lib/restrict.js +146 -9
  58. package/lib/say.js +68 -4
  59. package/lib/scheduler.js +63 -25
  60. package/lib/schema.js +57 -4
  61. package/lib/scrub.js +16 -1
  62. package/lib/settings.js +128 -12
  63. package/lib/stance.js +131 -19
  64. package/lib/status.js +14 -5
  65. package/lib/store.js +24 -2
  66. package/lib/sub.js +7 -1
  67. package/lib/talkmem.js +12 -8
  68. package/lib/transcript.js +205 -0
  69. package/lib/turns.js +147 -19
  70. package/lib/types.d.ts +513 -0
  71. package/lib/voices.js +26 -1
  72. package/lib/wiki.js +47 -13
  73. package/lib/works.js +200 -49
  74. package/media/banner.jpg +0 -0
  75. package/package.json +1 -1
  76. package/scripts/build-client.mjs +83 -0
  77. package/scripts/sync-pressure-formulas.mjs +12 -15
@@ -1,17 +1,14 @@
1
- import { readFile, writeFile } from 'node:fs/promises'
1
+ // @ts-check
2
+ /**
3
+ * 兼容旧入口:把 `lib/session-pressure-formulas.js` 与 `lib/client/*.js` 一并拼回 `lib/client.js`。
4
+ */
5
+ import { writeFile } from 'node:fs/promises'
6
+ import { readFileSync } from 'node:fs'
7
+ import { CLIENT_OUT_FILE, buildClientSource } from './build-client.mjs'
2
8
 
3
- const formulas = new URL('../lib/session-pressure-formulas.js', import.meta.url)
4
- const client = new URL('../lib/client.js', import.meta.url)
5
- const source = (await readFile(formulas, 'utf8')).replace(/\r\n/g, '\n').split('\nexport {')[0].trim()
6
- const original = (await readFile(client, 'utf8')).replace(/\r\n/g, '\n')
7
- const start = ' // BEGIN shared pressure formulas'
8
- const end = ' // END shared pressure formulas'
9
- const first = original.indexOf(start)
10
- const last = original.indexOf(end, first)
11
- if (first < 0 || last < 0) throw new Error('Missing client formula markers')
12
- const body = source.split('\n').map(line => line ? ' ' + line : '').join('\n')
13
- const generated = original.slice(0, first) + start + '\n' + body + '\n' + original.slice(last)
14
- if (generated !== original) {
15
- if (process.argv.includes('--check')) throw new Error('Client formulas are out of sync')
16
- await writeFile(client, generated)
9
+ const { code } = buildClientSource()
10
+ const original = readFileSync(CLIENT_OUT_FILE, 'utf8').replace(/\r\n/g, '\n')
11
+ if (code !== original) {
12
+ if (process.argv.includes('--check')) throw new Error('Client formulas or slices are out of sync')
13
+ await writeFile(CLIENT_OUT_FILE, code, 'utf8')
17
14
  }