@tomflow/chatloop-tools 0.9.16 → 0.9.17

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 (145) hide show
  1. package/index.mjs +4 -0
  2. package/lib/gateway.mjs +15 -3
  3. package/lib/mcp-tool-router.mjs +50 -3
  4. package/node_modules/@tomflow/chatloop-context/README.md +240 -0
  5. package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +48 -0
  6. package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +151 -0
  7. package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +376 -0
  8. package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +266 -0
  9. package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +134 -0
  10. package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +82 -0
  11. package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +349 -0
  12. package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +72 -0
  13. package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +73 -0
  14. package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +507 -0
  15. package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +11 -0
  16. package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +182 -0
  17. package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +277 -0
  18. package/node_modules/@tomflow/chatloop-context/index.mjs +233 -0
  19. package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +86 -0
  20. package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +24 -0
  21. package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +1989 -0
  22. package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +67 -0
  23. package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +280 -0
  24. package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +298 -0
  25. package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +280 -0
  26. package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +115 -0
  27. package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +51 -0
  28. package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +55 -0
  29. package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +262 -0
  30. package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +246 -0
  31. package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +147 -0
  32. package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +343 -0
  33. package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +391 -0
  34. package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +166 -0
  35. package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +13 -0
  36. package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +111 -0
  37. package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +107 -0
  38. package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +117 -0
  39. package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +20 -0
  40. package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +312 -0
  41. package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +153 -0
  42. package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +19 -0
  43. package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +115 -0
  44. package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +86 -0
  45. package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +169 -0
  46. package/node_modules/@tomflow/chatloop-context/package.json +40 -0
  47. package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +114 -0
  48. package/node_modules/@tomflow/chatloop-extension/README.md +94 -0
  49. package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +11 -0
  50. package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +141 -0
  51. package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +109 -0
  52. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +1 -0
  53. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +1 -0
  54. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +1 -0
  55. package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +1 -0
  56. package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +1 -0
  57. package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +1 -0
  58. package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +1 -0
  59. package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +1 -0
  60. package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +1 -0
  61. package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +120 -0
  62. package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +180 -0
  63. package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +322 -0
  64. package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +2 -0
  65. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +378 -0
  66. package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +2 -0
  67. package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +54 -0
  68. package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +9 -0
  69. package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +20 -0
  70. package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +69 -0
  71. package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +287 -0
  72. package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +23 -0
  73. package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +2 -0
  74. package/node_modules/@tomflow/chatloop-extension/extension/background.js +16 -0
  75. package/node_modules/@tomflow/chatloop-extension/extension/clean.html +5 -0
  76. package/node_modules/@tomflow/chatloop-extension/extension/content.js +40 -0
  77. package/node_modules/@tomflow/chatloop-extension/extension/continue.html +9 -0
  78. package/node_modules/@tomflow/chatloop-extension/extension/dom.html +17 -0
  79. package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +9 -0
  80. package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +2 -0
  81. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +275 -0
  82. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +76 -0
  83. package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +107 -0
  84. package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +36 -0
  85. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +227 -0
  86. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +144 -0
  87. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +171 -0
  88. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +109 -0
  89. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +154 -0
  90. package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +254 -0
  91. package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +42 -0
  92. package/node_modules/@tomflow/chatloop-extension/extension/popup.html +25 -0
  93. package/node_modules/@tomflow/chatloop-extension/extension/popup.js +93 -0
  94. package/node_modules/@tomflow/chatloop-extension/extension/reload.html +17 -0
  95. package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +17 -0
  96. package/node_modules/@tomflow/chatloop-extension/extension/start.html +6 -0
  97. package/node_modules/@tomflow/chatloop-extension/extension/status.html +6 -0
  98. package/node_modules/@tomflow/chatloop-extension/extension/text.html +17 -0
  99. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +136 -0
  100. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +220 -0
  101. package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +122 -0
  102. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +155 -0
  103. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +185 -0
  104. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +120 -0
  105. package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +172 -0
  106. package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +165 -0
  107. package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +244 -0
  108. package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +181 -0
  109. package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +147 -0
  110. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +197 -0
  111. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +200 -0
  112. package/node_modules/@tomflow/chatloop-extension/index.mjs +71 -0
  113. package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +18 -0
  114. package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +74 -0
  115. package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +208 -0
  116. package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +40 -0
  117. package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +45 -0
  118. package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +111 -0
  119. package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +67 -0
  120. package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +120 -0
  121. package/node_modules/@tomflow/chatloop-extension/package.json +38 -0
  122. package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +133 -0
  123. package/node_modules/@tomflow/chatloop-trace/README.md +105 -0
  124. package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +23 -0
  125. package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +22 -0
  126. package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +4 -0
  127. package/node_modules/@tomflow/chatloop-trace/index.mjs +59 -0
  128. package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +273 -0
  129. package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +265 -0
  130. package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +205 -0
  131. package/node_modules/@tomflow/chatloop-trace/package.json +30 -0
  132. package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +68 -0
  133. package/node_modules/ps-list/index.d.ts +76 -0
  134. package/node_modules/ps-list/index.js +366 -0
  135. package/node_modules/ps-list/license +9 -0
  136. package/node_modules/ps-list/package.json +44 -0
  137. package/node_modules/ps-list/readme.md +56 -0
  138. package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
  139. package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
  140. package/package.json +23 -8
  141. package/providers/form.mjs +68 -8
  142. package/scripts/build-form-app.mjs +27 -0
  143. package/ui/form/review-app.js +128 -0
  144. package/ui/form/review.html +859 -0
  145. package/ui/form/review.template.html +45 -0
@@ -0,0 +1,45 @@
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>Chat Loop 表单</title>
7
+ <style>
8
+ :root{color-scheme:light dark;font:14px/1.5 system-ui,-apple-system,sans-serif}
9
+ *{box-sizing:border-box}
10
+ body{margin:0;padding:16px;color:var(--app-color,#191919);background:transparent}
11
+ main{max-width:760px;margin:auto;padding:16px;border:1px solid #aaa6;border-radius:12px}
12
+ h1{font-size:16px;margin:0 0 6px}
13
+ p{margin:6px 0 12px;color:inherit}
14
+ small{color:#888}
15
+ fieldset{border:0;padding:0;margin:8px 0}
16
+ label.option{display:flex;align-items:center;gap:10px;padding:10px 8px;cursor:pointer}
17
+ label.option+label.option{border-top:1px solid #aaa3}
18
+ input[type=radio]{width:18px;height:18px;accent-color:#2675bf}
19
+ textarea{width:100%;min-height:100px;padding:10px;font:inherit;resize:vertical;border:1px solid #aaa8;border-radius:9px;background:transparent;color:inherit}
20
+ button{width:100%;margin:12px 0;padding:10px 12px;border:0;border-radius:24px;background:#186ac1;color:white;font:inherit;cursor:pointer}
21
+ button:disabled{opacity:.44;cursor:not-allowed}
22
+ [hidden]{display:none!important}
23
+ #status{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
24
+ #status[data-state=error]{color:#bf3030}
25
+ #status[data-state=ok]{color:#247d48}
26
+ @media(prefers-color-scheme:dark){button{background:#4295e8}textarea{border-color:#888}}
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <main aria-live="polite">
31
+ <h1 id="title">Chat Loop 表单</h1>
32
+ <p id="description">正在连接表单工具…</p>
33
+ <fieldset id="options" disabled>
34
+ <legend id="legend">请选择一项</legend>
35
+ <label class="option"><input type="radio" name="choice" value="A"><span id="a-label">确认</span></label>
36
+ <label class="option"><input type="radio" name="choice" value="B"><span id="b-label">修改</span></label>
37
+ </fieldset>
38
+ <div id="modify" hidden><textarea id="comment" maxlength="4000"></textarea></div>
39
+ <button id="submit" disabled>提交评审</button>
40
+ <div id="status" role="status">等待真实 MCP Form prepare 回执</div>
41
+ <small id="footer"></small>
42
+ </main>
43
+ <!-- CHAT_LOOP_FORM_SCRIPT -->
44
+ </body>
45
+ </html>