windows-development-sandbox 1.11.7 → 1.13.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 (246) hide show
  1. package/README.md +13 -6
  2. package/config.example.json +15 -4
  3. package/dist/app/features/access/access.def.d.ts +190 -0
  4. package/dist/app/features/access/access.def.js +273 -0
  5. package/dist/app/features/access/access.run.d.ts +79 -0
  6. package/dist/app/features/access/access.run.js +129 -0
  7. package/dist/app/features/access/index.d.ts +2 -0
  8. package/dist/app/features/access/index.js +3 -0
  9. package/dist/app/features/agents/agent-entry.js +5 -0
  10. package/dist/app/features/agents/agents.def.js +1 -0
  11. package/dist/app/features/apps/apps-rows.d.ts +4 -1
  12. package/dist/app/features/apps/apps-rows.js +7 -2
  13. package/dist/app/features/apps/apps.def.d.ts +19 -0
  14. package/dist/app/features/apps/apps.def.js +50 -12
  15. package/dist/app/features/apps/apps.run.d.ts +2 -0
  16. package/dist/app/features/apps/apps.run.js +1 -1
  17. package/dist/app/features/audit/audit.def.d.ts +350 -0
  18. package/dist/app/features/audit/audit.def.js +457 -0
  19. package/dist/app/features/audit/audit.run.d.ts +110 -0
  20. package/dist/app/features/audit/audit.run.js +133 -0
  21. package/dist/app/features/audit/index.d.ts +2 -0
  22. package/dist/app/features/audit/index.js +3 -0
  23. package/dist/app/features/defs.d.ts +349 -4
  24. package/dist/app/features/defs.js +16 -1
  25. package/dist/app/features/files/files.def.js +1 -0
  26. package/dist/app/features/health/health.def.js +1 -0
  27. package/dist/app/features/sandbox/sandbox.def.js +3 -0
  28. package/dist/app/features/sessions/sessions.def.d.ts +36 -0
  29. package/dist/app/features/sessions/sessions.def.js +77 -9
  30. package/dist/app/features/sessions/sessions.run.d.ts +25 -2
  31. package/dist/app/features/sessions/sessions.run.js +71 -3
  32. package/dist/app/features/settings/settings.def.d.ts +8 -0
  33. package/dist/app/features/settings/settings.def.js +17 -0
  34. package/dist/app/features/settings/settings.run.d.ts +3 -0
  35. package/dist/app/features/settings/settings.run.js +16 -2
  36. package/dist/app/features/web/web.def.d.ts +9 -0
  37. package/dist/app/features/web/web.def.js +26 -1
  38. package/dist/app/features/web/web.run.d.ts +3 -0
  39. package/dist/app/features/web/web.run.js +11 -3
  40. package/dist/app/kernel/access.d.ts +33 -0
  41. package/dist/app/kernel/access.js +44 -0
  42. package/dist/app/kernel/define.d.ts +26 -2
  43. package/dist/app/kernel/index.d.ts +1 -0
  44. package/dist/app/kernel/index.js +1 -0
  45. package/dist/app/kernel/rpc.d.ts +5 -2
  46. package/dist/app/registry.d.ts +4 -1
  47. package/dist/app/registry.js +26 -4
  48. package/dist/cli/args.d.ts +0 -3
  49. package/dist/cli/args.js +3 -4
  50. package/dist/cli/commands/index.d.ts +1 -1
  51. package/dist/cli/commands/index.js +1 -1
  52. package/dist/cli/commands/launch/prepare.js +1 -1
  53. package/dist/cli/commands/maintenance/index.d.ts +0 -1
  54. package/dist/cli/commands/maintenance/index.js +0 -1
  55. package/dist/cli/commands/registry.js +3 -2
  56. package/dist/cli/commands/remote.d.ts +2 -0
  57. package/dist/cli/commands/remote.js +49 -0
  58. package/dist/cli/commands/sessions/reopen.js +3 -0
  59. package/dist/cli/commands/web.js +66 -0
  60. package/dist/cli/manifest.d.ts +63 -45
  61. package/dist/cli/manifest.js +33 -18
  62. package/dist/cli/menu/io-menu.d.ts +5 -3
  63. package/dist/cli/menu/io-menu.js +12 -5
  64. package/dist/cli/menu/pages/apps-page.js +2 -15
  65. package/dist/cli/menu/pages/maintenance-page.d.ts +4 -0
  66. package/dist/cli/menu/pages/maintenance-page.js +51 -8
  67. package/dist/cli/menu/remote-menu.d.ts +19 -0
  68. package/dist/cli/menu/remote-menu.js +108 -0
  69. package/dist/cli/menu/views.js +4 -0
  70. package/dist/cli/operations/handler.js +15 -1
  71. package/dist/cli/services/remote-client.d.ts +16 -0
  72. package/dist/cli/services/remote-client.js +141 -0
  73. package/dist/cli/services/sessions-service.d.ts +5 -0
  74. package/dist/cli/services/sessions-service.js +17 -1
  75. package/dist/core/config/defaults.js +12 -2
  76. package/dist/core/local-config/file.js +16 -2
  77. package/dist/core/local-config/overrides.js +7 -0
  78. package/dist/core/run/versions.js +9 -8
  79. package/dist/core/schema/apps.d.ts +9 -0
  80. package/dist/core/schema/apps.js +9 -0
  81. package/dist/core/schema/config.d.ts +23 -3
  82. package/dist/core/schema/config.js +42 -5
  83. package/dist/core/schema/sandbox.d.ts +1 -0
  84. package/dist/core/schema/sandbox.js +11 -3
  85. package/dist/core/schema/web.d.ts +51 -0
  86. package/dist/core/schema/web.js +46 -1
  87. package/dist/core/util/fs.d.ts +5 -0
  88. package/dist/core/util/fs.js +23 -0
  89. package/dist/core/util/index.d.ts +1 -1
  90. package/dist/core/util/index.js +1 -1
  91. package/dist/guest/apps/app-installer.js +50 -4
  92. package/dist/guest/apps/index.d.ts +1 -1
  93. package/dist/guest/apps/index.js +1 -1
  94. package/dist/guest/apps/sources.js +1 -1
  95. package/dist/guest/audit/parse.d.ts +32 -2
  96. package/dist/guest/audit/parse.js +43 -5
  97. package/dist/guest/audit/process-audit.d.ts +3 -1
  98. package/dist/guest/audit/process-audit.js +9 -6
  99. package/dist/guest/boot/boot.js +12 -3
  100. package/dist/guest/boot/guide.d.ts +1 -1
  101. package/dist/guest/boot/guide.js +27 -3
  102. package/dist/guest/daemon/daemon.js +2 -0
  103. package/dist/guest/daemon/idle-shutdown.js +2 -1
  104. package/dist/guest/daemon/sessions.d.ts +23 -2
  105. package/dist/guest/daemon/sessions.js +151 -20
  106. package/dist/guest/entries/daemon.js +2 -1
  107. package/dist/guest/git/decision.js +7 -0
  108. package/dist/guest/sessions/cmdline.d.ts +14 -0
  109. package/dist/guest/sessions/cmdline.js +10 -0
  110. package/dist/guest/setup/addon-mcp.d.ts +2 -0
  111. package/dist/guest/setup/addon-mcp.js +49 -0
  112. package/dist/guest/setup/agent-addons.d.ts +9 -0
  113. package/dist/guest/setup/agent-addons.js +22 -0
  114. package/dist/guest/setup/headroom.d.ts +7 -0
  115. package/dist/guest/setup/headroom.js +60 -0
  116. package/dist/guest/setup/managed-policy.d.ts +2 -1
  117. package/dist/guest/setup/managed-policy.js +15 -6
  118. package/dist/guest/toolchains/plan.js +8 -3
  119. package/dist/guest/toolchains/setup.js +3 -0
  120. package/dist/host/audit/attribute.d.ts +46 -0
  121. package/dist/host/audit/attribute.js +76 -0
  122. package/dist/host/audit/collect.d.ts +29 -3
  123. package/dist/host/audit/collect.js +256 -61
  124. package/dist/host/audit/git-commits.d.ts +29 -0
  125. package/dist/host/audit/git-commits.js +157 -0
  126. package/dist/host/audit/index.d.ts +5 -0
  127. package/dist/host/audit/index.js +6 -0
  128. package/dist/host/audit/log.d.ts +45 -7
  129. package/dist/host/audit/log.js +148 -45
  130. package/dist/host/audit/redact.d.ts +2 -0
  131. package/dist/host/audit/redact.js +67 -0
  132. package/dist/host/channel/channel.d.ts +5 -1
  133. package/dist/host/channel/channel.js +12 -0
  134. package/dist/host/guard/agent-files.js +7 -1
  135. package/dist/host/guard/commands.js +13 -1
  136. package/dist/host/guard/git-config.js +27 -7
  137. package/dist/host/guard/git-dirs.js +78 -3
  138. package/dist/host/guard/mark-of-the-web.js +3 -1
  139. package/dist/host/guard/nested-repos.js +7 -2
  140. package/dist/host/guard/store.js +1 -0
  141. package/dist/host/guard/types.d.ts +2 -0
  142. package/dist/host/launch/mappings.js +11 -1
  143. package/dist/host/launch/project-scan.js +2 -21
  144. package/dist/host/launch/stage.js +4 -0
  145. package/dist/host/life/session-ledger.js +2 -1
  146. package/dist/host/remote/access-store.d.ts +156 -0
  147. package/dist/host/remote/access-store.js +308 -0
  148. package/dist/host/remote/cert.d.ts +20 -0
  149. package/dist/host/remote/cert.js +103 -0
  150. package/dist/host/remote/door-client.d.ts +13 -0
  151. package/dist/host/remote/door-client.js +54 -0
  152. package/dist/host/remote/firewall.d.ts +44 -0
  153. package/dist/host/remote/firewall.js +118 -0
  154. package/dist/host/remote/gate.d.ts +125 -0
  155. package/dist/host/remote/gate.js +391 -0
  156. package/dist/host/remote/index.d.ts +8 -0
  157. package/dist/host/remote/index.js +10 -0
  158. package/dist/host/remote/lan.d.ts +24 -0
  159. package/dist/host/remote/lan.js +88 -0
  160. package/dist/host/remote/tls-store.d.ts +22 -0
  161. package/dist/host/remote/tls-store.js +63 -0
  162. package/dist/host/remote/windows-helper.d.ts +67 -0
  163. package/dist/host/remote/windows-helper.js +129 -0
  164. package/dist/host/web/bridge.d.ts +5 -1
  165. package/dist/host/web/bridge.js +6 -2
  166. package/dist/host/web/browser.js +1 -1
  167. package/dist/host/web/control.d.ts +4 -1
  168. package/dist/host/web/control.js +28 -4
  169. package/dist/host/web/rpc.d.ts +16 -2
  170. package/dist/host/web/rpc.js +37 -4
  171. package/dist/host/web/runner.d.ts +4 -0
  172. package/dist/host/web/runner.js +12 -0
  173. package/dist/host/web/server.d.ts +18 -2
  174. package/dist/host/web/server.js +97 -24
  175. package/dist/host/web/state.d.ts +5 -0
  176. package/dist/host/web/state.js +8 -0
  177. package/dist/runtime/agent.js +184 -18
  178. package/dist/runtime/daemon.js +772 -338
  179. package/dist/runtime/db.js +184 -18
  180. package/dist/runtime/gitguard.js +6 -0
  181. package/dist/runtime/main.js +966 -553
  182. package/dist/runtime/netproxy.js +184 -18
  183. package/dist/runtime/view.js +186 -18
  184. package/dist/selftest/app.test.js +66 -7
  185. package/dist/selftest/audit.test.js +354 -47
  186. package/dist/selftest/channel.test.js +16 -0
  187. package/dist/selftest/cmdline.test.js +16 -0
  188. package/dist/selftest/git-access.test.js +8 -0
  189. package/dist/selftest/hcs.test.js +35 -0
  190. package/dist/selftest/hostile-input.test.js +12 -1
  191. package/dist/selftest/index.js +2 -0
  192. package/dist/selftest/live-daemon.test.js +25 -0
  193. package/dist/selftest/local-config.test.js +30 -0
  194. package/dist/selftest/menu-screens.js +1 -1
  195. package/dist/selftest/menu.test.js +3 -3
  196. package/dist/selftest/remote.test.d.ts +2 -0
  197. package/dist/selftest/remote.test.js +536 -0
  198. package/dist/selftest/repo-guard.test.js +56 -2
  199. package/dist/selftest/resume.test.js +2 -1
  200. package/dist/selftest/sharing.test.js +9 -2
  201. package/dist/selftest/support/engine-golden.js +9 -0
  202. package/dist/selftest/support/fixtures.d.ts +14 -0
  203. package/dist/selftest/support/web-preview.js +157 -0
  204. package/dist/selftest/toolchains.test.js +147 -2
  205. package/dist/selftest/web.test.js +2 -0
  206. package/dist/shared/apps/agent-addons.d.ts +64 -0
  207. package/dist/shared/apps/agent-addons.js +95 -0
  208. package/dist/shared/apps/catalogue.d.ts +33 -2
  209. package/dist/shared/apps/catalogue.js +102 -11
  210. package/dist/shared/apps/index.d.ts +3 -2
  211. package/dist/shared/apps/index.js +3 -2
  212. package/dist/shared/apps/selection.d.ts +2 -0
  213. package/dist/shared/apps/selection.js +7 -0
  214. package/dist/shared/channel/schema.d.ts +23 -0
  215. package/dist/shared/channel/schema.js +8 -0
  216. package/dist/shared/pty/protocol.d.ts +2 -0
  217. package/dist/shared/pty/protocol.js +2 -0
  218. package/dist/sync/watcher.js +9 -1
  219. package/dist/web/index.html +2 -2
  220. package/dist/web/{main-RQFN4WBY.css → main-UAQPI5XD.css} +1 -1
  221. package/dist/web/main-Z2WYAE2Z.js +221 -0
  222. package/native/csharp/HcsHost/AssemblyInfo.cs +5 -3
  223. package/native/csharp/HcsHost/Hcs.cs +9 -0
  224. package/native/csharp/HcsHost/Program.cs +26 -1
  225. package/native/csharp/HcsHost/Share.cs +173 -0
  226. package/native/csharp/HostTools/AssemblyInfo.cs +3 -3
  227. package/native/csharp/HostTools/Program.cs +17 -1
  228. package/native/csharp/HostTools/WebHelper.cs +499 -0
  229. package/native/scripts/get-network-profile.ps1 +19 -0
  230. package/native/scripts/set-folder-access.ps1 +11 -0
  231. package/native/scripts/set-web-firewall.ps1 +103 -0
  232. package/package.json +1 -1
  233. package/sandbox/addons/ccusage/package-lock.json +111 -0
  234. package/sandbox/addons/ccusage/package.json +7 -0
  235. package/sandbox/addons/context7/package-lock.json +1313 -0
  236. package/sandbox/addons/context7/package.json +7 -0
  237. package/sandbox/addons/headroom/requirements.in +1 -0
  238. package/sandbox/addons/headroom/requirements.txt +2922 -0
  239. package/sandbox/addons/playwright-mcp/package-lock.json +56 -0
  240. package/sandbox/addons/playwright-mcp/package.json +7 -0
  241. package/sandbox/csharp/PtyHost.cs +20 -0
  242. package/schemas/config.schema.json +78 -4
  243. package/schemas/sandbox-config.schema.json +2 -20
  244. package/dist/cli/commands/maintenance/audit.d.ts +0 -3
  245. package/dist/cli/commands/maintenance/audit.js +0 -58
  246. package/dist/web/main-K2JMCAZI.js +0 -219
@@ -0,0 +1,350 @@
1
+ import { z } from 'zod';
2
+ import { type Page } from '../../kernel/index.js';
3
+ export declare const AUDIT_EVENT_KINDS: readonly ["proc", "file", "commit", "session", "guard", "note", "remote"];
4
+ export declare const AUDIT_KIND_FILTERS: readonly ["all", "proc", "file", "commit", "session", "guard", "remote"];
5
+ /** The session filter that means "not linked to any session". */
6
+ export declare const NO_SESSION = "none";
7
+ export declare const AuditRowSchema: z.ZodObject<{
8
+ time: z.ZodString;
9
+ kind: z.ZodEnum<{
10
+ file: "file";
11
+ remote: "remote";
12
+ session: "session";
13
+ note: "note";
14
+ commit: "commit";
15
+ proc: "proc";
16
+ guard: "guard";
17
+ }>;
18
+ what: z.ZodString;
19
+ command: z.ZodOptional<z.ZodString>;
20
+ parent: z.ZodOptional<z.ZodString>;
21
+ action: z.ZodOptional<z.ZodString>;
22
+ folder: z.ZodOptional<z.ZodString>;
23
+ project: z.ZodOptional<z.ZodString>;
24
+ session: z.ZodOptional<z.ZodString>;
25
+ agent: z.ZodOptional<z.ZodString>;
26
+ linked: z.ZodOptional<z.ZodEnum<{
27
+ process: "process";
28
+ "only-session": "only-session";
29
+ }>>;
30
+ count: z.ZodNumber;
31
+ sha: z.ZodOptional<z.ZodString>;
32
+ author: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ export type AuditRow = z.output<typeof AuditRowSchema>;
35
+ export declare const AuditSessionSchema: z.ZodObject<{
36
+ commands: z.ZodNumber;
37
+ files: z.ZodNumber;
38
+ commits: z.ZodNumber;
39
+ id: z.ZodString;
40
+ agent: z.ZodString;
41
+ project: z.ZodString;
42
+ started: z.ZodString;
43
+ ended: z.ZodOptional<z.ZodString>;
44
+ last: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strip>;
46
+ export type AuditSession = z.output<typeof AuditSessionSchema>;
47
+ export declare const AuditAgentSchema: z.ZodObject<{
48
+ commands: z.ZodNumber;
49
+ files: z.ZodNumber;
50
+ commits: z.ZodNumber;
51
+ agent: z.ZodString;
52
+ sessions: z.ZodNumber;
53
+ }, z.core.$strip>;
54
+ export declare const AuditListSchema: z.ZodObject<{
55
+ enabled: z.ZodBoolean;
56
+ keepDays: z.ZodNumber;
57
+ maxMb: z.ZodNumber;
58
+ bytes: z.ZodNumber;
59
+ folder: z.ZodString;
60
+ filter: z.ZodObject<{
61
+ days: z.ZodNumber;
62
+ kind: z.ZodEnum<{
63
+ file: "file";
64
+ remote: "remote";
65
+ all: "all";
66
+ session: "session";
67
+ commit: "commit";
68
+ proc: "proc";
69
+ guard: "guard";
70
+ }>;
71
+ session: z.ZodOptional<z.ZodString>;
72
+ agent: z.ZodOptional<z.ZodString>;
73
+ project: z.ZodOptional<z.ZodString>;
74
+ grep: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ matched: z.ZodNumber;
77
+ events: z.ZodArray<z.ZodObject<{
78
+ time: z.ZodString;
79
+ kind: z.ZodEnum<{
80
+ file: "file";
81
+ remote: "remote";
82
+ session: "session";
83
+ note: "note";
84
+ commit: "commit";
85
+ proc: "proc";
86
+ guard: "guard";
87
+ }>;
88
+ what: z.ZodString;
89
+ command: z.ZodOptional<z.ZodString>;
90
+ parent: z.ZodOptional<z.ZodString>;
91
+ action: z.ZodOptional<z.ZodString>;
92
+ folder: z.ZodOptional<z.ZodString>;
93
+ project: z.ZodOptional<z.ZodString>;
94
+ session: z.ZodOptional<z.ZodString>;
95
+ agent: z.ZodOptional<z.ZodString>;
96
+ linked: z.ZodOptional<z.ZodEnum<{
97
+ process: "process";
98
+ "only-session": "only-session";
99
+ }>>;
100
+ count: z.ZodNumber;
101
+ sha: z.ZodOptional<z.ZodString>;
102
+ author: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>>;
104
+ totals: z.ZodObject<{
105
+ commands: z.ZodNumber;
106
+ files: z.ZodNumber;
107
+ commits: z.ZodNumber;
108
+ events: z.ZodNumber;
109
+ sessions: z.ZodNumber;
110
+ }, z.core.$strip>;
111
+ agents: z.ZodArray<z.ZodObject<{
112
+ commands: z.ZodNumber;
113
+ files: z.ZodNumber;
114
+ commits: z.ZodNumber;
115
+ agent: z.ZodString;
116
+ sessions: z.ZodNumber;
117
+ }, z.core.$strip>>;
118
+ sessions: z.ZodArray<z.ZodObject<{
119
+ commands: z.ZodNumber;
120
+ files: z.ZodNumber;
121
+ commits: z.ZodNumber;
122
+ id: z.ZodString;
123
+ agent: z.ZodString;
124
+ project: z.ZodString;
125
+ started: z.ZodString;
126
+ ended: z.ZodOptional<z.ZodString>;
127
+ last: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strip>>;
129
+ unlinked: z.ZodObject<{
130
+ commands: z.ZodNumber;
131
+ files: z.ZodNumber;
132
+ commits: z.ZodNumber;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>;
135
+ export type AuditList = z.output<typeof AuditListSchema>;
136
+ export declare const listAudit: import("../../kernel/define.js").QueryDef<z.ZodObject<{
137
+ days: z.ZodDefault<z.ZodNumber>;
138
+ kind: z.ZodDefault<z.ZodEnum<{
139
+ file: "file";
140
+ remote: "remote";
141
+ all: "all";
142
+ session: "session";
143
+ commit: "commit";
144
+ proc: "proc";
145
+ guard: "guard";
146
+ }>>;
147
+ session: z.ZodOptional<z.ZodString>;
148
+ agent: z.ZodOptional<z.ZodString>;
149
+ project: z.ZodOptional<z.ZodString>;
150
+ grep: z.ZodOptional<z.ZodString>;
151
+ limit: z.ZodDefault<z.ZodNumber>;
152
+ }, z.core.$strip>, z.ZodObject<{
153
+ enabled: z.ZodBoolean;
154
+ keepDays: z.ZodNumber;
155
+ maxMb: z.ZodNumber;
156
+ bytes: z.ZodNumber;
157
+ folder: z.ZodString;
158
+ filter: z.ZodObject<{
159
+ days: z.ZodNumber;
160
+ kind: z.ZodEnum<{
161
+ file: "file";
162
+ remote: "remote";
163
+ all: "all";
164
+ session: "session";
165
+ commit: "commit";
166
+ proc: "proc";
167
+ guard: "guard";
168
+ }>;
169
+ session: z.ZodOptional<z.ZodString>;
170
+ agent: z.ZodOptional<z.ZodString>;
171
+ project: z.ZodOptional<z.ZodString>;
172
+ grep: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>;
174
+ matched: z.ZodNumber;
175
+ events: z.ZodArray<z.ZodObject<{
176
+ time: z.ZodString;
177
+ kind: z.ZodEnum<{
178
+ file: "file";
179
+ remote: "remote";
180
+ session: "session";
181
+ note: "note";
182
+ commit: "commit";
183
+ proc: "proc";
184
+ guard: "guard";
185
+ }>;
186
+ what: z.ZodString;
187
+ command: z.ZodOptional<z.ZodString>;
188
+ parent: z.ZodOptional<z.ZodString>;
189
+ action: z.ZodOptional<z.ZodString>;
190
+ folder: z.ZodOptional<z.ZodString>;
191
+ project: z.ZodOptional<z.ZodString>;
192
+ session: z.ZodOptional<z.ZodString>;
193
+ agent: z.ZodOptional<z.ZodString>;
194
+ linked: z.ZodOptional<z.ZodEnum<{
195
+ process: "process";
196
+ "only-session": "only-session";
197
+ }>>;
198
+ count: z.ZodNumber;
199
+ sha: z.ZodOptional<z.ZodString>;
200
+ author: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>;
202
+ totals: z.ZodObject<{
203
+ commands: z.ZodNumber;
204
+ files: z.ZodNumber;
205
+ commits: z.ZodNumber;
206
+ events: z.ZodNumber;
207
+ sessions: z.ZodNumber;
208
+ }, z.core.$strip>;
209
+ agents: z.ZodArray<z.ZodObject<{
210
+ commands: z.ZodNumber;
211
+ files: z.ZodNumber;
212
+ commits: z.ZodNumber;
213
+ agent: z.ZodString;
214
+ sessions: z.ZodNumber;
215
+ }, z.core.$strip>>;
216
+ sessions: z.ZodArray<z.ZodObject<{
217
+ commands: z.ZodNumber;
218
+ files: z.ZodNumber;
219
+ commits: z.ZodNumber;
220
+ id: z.ZodString;
221
+ agent: z.ZodString;
222
+ project: z.ZodString;
223
+ started: z.ZodString;
224
+ ended: z.ZodOptional<z.ZodString>;
225
+ last: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strip>>;
227
+ unlinked: z.ZodObject<{
228
+ commands: z.ZodNumber;
229
+ files: z.ZodNumber;
230
+ commits: z.ZodNumber;
231
+ }, z.core.$strip>;
232
+ }, z.core.$strip>, "audit.list">;
233
+ /** "14:03:22" today, "Oct 18 14:03" before (local time). */
234
+ export declare function eventTime(iso: string, now?: number): string;
235
+ /** The first few characters of a session id (enough to tell sessions apart, and to filter by). */
236
+ export declare function shortId(id: string): string;
237
+ /** What an event says, in one line. */
238
+ export declare function eventWhat(e: AuditRow): string;
239
+ /** The page: the period's totals, per agent, the sessions (each opens its own events), and the events. Pure. */
240
+ export declare function auditPage(o: AuditList): Page;
241
+ /** The command line that shows what a view address of this page shows (the menu runs it on the normal screen). */
242
+ export declare function auditArgv(params?: Readonly<Record<string, string>>): string[];
243
+ /** What the view's address can set. */
244
+ export interface AuditParams {
245
+ readonly days?: string;
246
+ readonly kind?: string;
247
+ readonly session?: string;
248
+ readonly agent?: string;
249
+ readonly project?: string;
250
+ readonly grep?: string;
251
+ }
252
+ export declare const auditView: import("../../kernel/define.js").ViewDef<{
253
+ audit: import("../../kernel/define.js").QueryDef<z.ZodObject<{
254
+ days: z.ZodDefault<z.ZodNumber>;
255
+ kind: z.ZodDefault<z.ZodEnum<{
256
+ file: "file";
257
+ remote: "remote";
258
+ all: "all";
259
+ session: "session";
260
+ commit: "commit";
261
+ proc: "proc";
262
+ guard: "guard";
263
+ }>>;
264
+ session: z.ZodOptional<z.ZodString>;
265
+ agent: z.ZodOptional<z.ZodString>;
266
+ project: z.ZodOptional<z.ZodString>;
267
+ grep: z.ZodOptional<z.ZodString>;
268
+ limit: z.ZodDefault<z.ZodNumber>;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ enabled: z.ZodBoolean;
271
+ keepDays: z.ZodNumber;
272
+ maxMb: z.ZodNumber;
273
+ bytes: z.ZodNumber;
274
+ folder: z.ZodString;
275
+ filter: z.ZodObject<{
276
+ days: z.ZodNumber;
277
+ kind: z.ZodEnum<{
278
+ file: "file";
279
+ remote: "remote";
280
+ all: "all";
281
+ session: "session";
282
+ commit: "commit";
283
+ proc: "proc";
284
+ guard: "guard";
285
+ }>;
286
+ session: z.ZodOptional<z.ZodString>;
287
+ agent: z.ZodOptional<z.ZodString>;
288
+ project: z.ZodOptional<z.ZodString>;
289
+ grep: z.ZodOptional<z.ZodString>;
290
+ }, z.core.$strip>;
291
+ matched: z.ZodNumber;
292
+ events: z.ZodArray<z.ZodObject<{
293
+ time: z.ZodString;
294
+ kind: z.ZodEnum<{
295
+ file: "file";
296
+ remote: "remote";
297
+ session: "session";
298
+ note: "note";
299
+ commit: "commit";
300
+ proc: "proc";
301
+ guard: "guard";
302
+ }>;
303
+ what: z.ZodString;
304
+ command: z.ZodOptional<z.ZodString>;
305
+ parent: z.ZodOptional<z.ZodString>;
306
+ action: z.ZodOptional<z.ZodString>;
307
+ folder: z.ZodOptional<z.ZodString>;
308
+ project: z.ZodOptional<z.ZodString>;
309
+ session: z.ZodOptional<z.ZodString>;
310
+ agent: z.ZodOptional<z.ZodString>;
311
+ linked: z.ZodOptional<z.ZodEnum<{
312
+ process: "process";
313
+ "only-session": "only-session";
314
+ }>>;
315
+ count: z.ZodNumber;
316
+ sha: z.ZodOptional<z.ZodString>;
317
+ author: z.ZodOptional<z.ZodString>;
318
+ }, z.core.$strip>>;
319
+ totals: z.ZodObject<{
320
+ commands: z.ZodNumber;
321
+ files: z.ZodNumber;
322
+ commits: z.ZodNumber;
323
+ events: z.ZodNumber;
324
+ sessions: z.ZodNumber;
325
+ }, z.core.$strip>;
326
+ agents: z.ZodArray<z.ZodObject<{
327
+ commands: z.ZodNumber;
328
+ files: z.ZodNumber;
329
+ commits: z.ZodNumber;
330
+ agent: z.ZodString;
331
+ sessions: z.ZodNumber;
332
+ }, z.core.$strip>>;
333
+ sessions: z.ZodArray<z.ZodObject<{
334
+ commands: z.ZodNumber;
335
+ files: z.ZodNumber;
336
+ commits: z.ZodNumber;
337
+ id: z.ZodString;
338
+ agent: z.ZodString;
339
+ project: z.ZodString;
340
+ started: z.ZodString;
341
+ ended: z.ZodOptional<z.ZodString>;
342
+ last: z.ZodOptional<z.ZodString>;
343
+ }, z.core.$strip>>;
344
+ unlinked: z.ZodObject<{
345
+ commands: z.ZodNumber;
346
+ files: z.ZodNumber;
347
+ commits: z.ZodNumber;
348
+ }, z.core.$strip>;
349
+ }, z.core.$strip>, "audit.list">;
350
+ }, AuditParams, "audit">;