farming-code 2.2.19 → 2.2.22

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 (53) hide show
  1. package/README.md +5 -5
  2. package/README.zh_cn.md +5 -5
  3. package/THIRD_PARTY_NOTICES.md +5 -8
  4. package/backend/acp/client-services.js +37 -5
  5. package/backend/acp/patch-decisions.js +19 -3
  6. package/backend/acp-runtime.js +1201 -198
  7. package/backend/acp-transcript.js +66 -0
  8. package/backend/agent-lifecycle-journal.js +133 -0
  9. package/backend/agent-manager.js +2715 -354
  10. package/backend/agent-order.js +8 -4
  11. package/backend/agent-runtime-binding.js +1 -0
  12. package/backend/bundle-update-helper.js +5 -1
  13. package/backend/config-manager.js +16 -0
  14. package/backend/control-api.js +146 -20
  15. package/backend/farming-app-cli.js +335 -10
  16. package/backend/farming-session-store.js +283 -36
  17. package/backend/json-cli-runtime.js +120 -6
  18. package/backend/npm-update-helper.js +97 -18
  19. package/backend/provider-adapters.js +18 -6
  20. package/backend/review-session-service.js +31 -17
  21. package/backend/server.js +337 -103
  22. package/backend/storage-layout.js +10 -0
  23. package/backend/terminal-screen-worker-pool.js +15 -6
  24. package/backend/theme-manager.js +23 -5
  25. package/backend/update-service.js +239 -27
  26. package/backend/usage-monitor.js +11 -0
  27. package/backend/workspace-file-router.js +9 -3
  28. package/backend/workspace-file-service.js +292 -62
  29. package/dist/acp/codex-acp-1.1.4.js +32 -1
  30. package/dist/assets/App-CmZdNavW.js +210 -0
  31. package/dist/assets/{FileEditorMarkdownPreview-R0jwwLME.js → FileEditorMarkdownPreview-KbnE8VC8.js} +1 -1
  32. package/dist/assets/FileEditorPane-5_HUejjd.js +2 -0
  33. package/dist/assets/IconGlyphs-C2WFcoJS.js +1 -0
  34. package/dist/assets/ProjectFilesSection-C1RAJWOE.js +12 -0
  35. package/dist/assets/{ReviewPage-DBKNOWsJ.js → ReviewPage-L1vh1Ggs.js} +3 -3
  36. package/dist/assets/code-dark-BKtvf0Xc.css +1 -0
  37. package/dist/assets/file-icons-CHWt5nSy.js +1 -0
  38. package/dist/assets/{index-DQdtPfCk.js → index-RvUiMpGP.js} +2 -2
  39. package/dist/assets/main-XMXgyJJt.css +1 -0
  40. package/dist/assets/workspace-view-state-BqB4HM7r.js +7 -0
  41. package/dist/index.html +1 -1
  42. package/frontend/skins/crt/app.js +365 -107
  43. package/frontend/skins/crt/index.html +5 -10
  44. package/frontend/skins/crt/styles/billing.css +6 -1
  45. package/package.json +9 -3
  46. package/dist/assets/App-CbXYBccJ.js +0 -210
  47. package/dist/assets/FileEditorPane-CJs6kfZO.js +0 -2
  48. package/dist/assets/IconGlyphs-CZzDr5o2.js +0 -1
  49. package/dist/assets/ProjectFilesSection-DWCV07lA.js +0 -12
  50. package/dist/assets/code-dark-qIBiLBWV.css +0 -1
  51. package/dist/assets/file-icons-DpbrD5ZP.js +0 -1
  52. package/dist/assets/main-yzZEfgft.css +0 -1
  53. package/dist/assets/workspace-view-state-BpPINu84.js +0 -7
@@ -1475,7 +1475,7 @@
1475
1475
  <div class="top-bar">
1476
1476
  <div class="top-bar-item">AGENTS: <span id="active-agents">0</span>/<span id="total-agents">0</span></div>
1477
1477
  <div class="top-bar-item" id="agent-page-item" hidden>PAGE: <span id="agent-page-status">1/1</span></div>
1478
- <div class="top-bar-item" title="Estimated terminal output tokens per minute over the last 5 minutes">TOK/MIN: <span id="tokens-per-minute">--</span></div>
1478
+ <div class="top-bar-item" title="Provider-reported tokens per minute over the last 5 minutes">TOK/MIN: <span id="tokens-per-minute">--</span></div>
1479
1479
  <div class="top-bar-item">CPU: <span id="cpu-usage">--</span>%</div>
1480
1480
  <div class="top-bar-item">MEM: <span id="mem-percentage">--</span>%</div>
1481
1481
  <div class="top-bar-item" id="focus-region" style="display: none;">Focus: <span id="focus-region-name">--</span></div>
@@ -1545,8 +1545,8 @@
1545
1545
  <h2>Billing</h2>
1546
1546
  <div class="billing-header-actions">
1547
1547
  <div class="billing-view-switch" role="tablist" aria-label="Billing view">
1548
- <button type="button" id="billing-days-tab" class="active" role="tab" aria-selected="true" data-crt-nav-key="billing:days" tabindex="-1" onclick="setCrtBillingMode('days')">[D] DAYS</button>
1549
- <button type="button" id="billing-live-tab" role="tab" aria-selected="false" data-crt-nav-key="billing:live" tabindex="-1" onclick="setCrtBillingMode('live')">[L] LIVE</button>
1548
+ <button type="button" id="billing-days-tab" class="active" role="tab" aria-selected="true" data-crt-nav-key="billing:days" tabindex="-1" onclick="selectCrtBillingMode('days')">[D] DAYS</button>
1549
+ <button type="button" id="billing-live-tab" role="tab" aria-selected="false" data-crt-nav-key="billing:live" tabindex="-1" onclick="selectCrtBillingMode('live')">[L] LIVE</button>
1550
1550
  </div>
1551
1551
  <span class="billing-status" id="billing-status">STANDBY</span>
1552
1552
  </div>
@@ -1960,13 +1960,8 @@
1960
1960
  </div>
1961
1961
  </div>
1962
1962
 
1963
- <h3 style="margin: 30px 0 15px; color: #00ff00;">Session Engine</h3>
1964
- <div id="session-engine-settings">
1965
- <div class="settings-panel">
1966
- <label style="display: block; color: #00ff00; margin-bottom: 10px;">Coding Agent Engine</label>
1967
- <div class="settings-static-value">built-in</div>
1968
- <div style="color: #888; font-size: 12px; margin-top: 8px;">Uses Farming's built-in local session runtime.</div>
1969
- </div>
1963
+ <h3 style="margin: 30px 0 15px; color: #00ff00;">Agent Permissions</h3>
1964
+ <div id="agent-permission-settings">
1970
1965
  <div class="settings-panel">
1971
1966
  <label class="crt-checkbox-label" tabindex="-1" data-crt-nav-key="settings:skip-permissions">
1972
1967
  <input type="checkbox" id="skip-permission-check-by-default" class="crt-checkbox danger">
@@ -50,7 +50,12 @@
50
50
 
51
51
  #farming-crt .billing-view-switch button:hover,
52
52
  #farming-crt .billing-view-switch button:focus-visible,
53
- #farming-crt .billing-view-switch button.crt-nav-selected,
53
+ #farming-crt .billing-view-switch button.crt-nav-selected {
54
+ color: var(--crt-phosphor-bright);
55
+ border-color: rgba(85, 245, 155, 0.72);
56
+ outline: none;
57
+ }
58
+
54
59
  #farming-crt .billing-view-switch button.active {
55
60
  color: var(--crt-background);
56
61
  background: var(--crt-phosphor-bright);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "farming-code",
3
- "version": "2.2.19",
4
- "description": "Remote browser workspace for supervising AI coding agents",
3
+ "version": "2.2.22",
4
+ "description": "Farming Code is a self-hosted browser workspace for running and supervising AI coding agents",
5
5
  "main": "backend/server.js",
6
6
  "bin": {
7
7
  "farming": "bin/farming"
@@ -80,10 +80,16 @@
80
80
  },
81
81
  "keywords": [
82
82
  "ai-agent",
83
+ "ai-agent-workspace",
84
+ "browser-terminal",
85
+ "claude-code",
83
86
  "coding-agent",
84
87
  "codex",
85
- "claude",
88
+ "codex-cli",
89
+ "developer-tools",
90
+ "farming-code",
86
91
  "remote-workspace",
92
+ "self-hosted",
87
93
  "terminal"
88
94
  ],
89
95
  "author": "",