agl 1.0.17 → 21.0.2

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 (277) hide show
  1. package/.smartconfig.json +55 -0
  2. package/changelog.md +1026 -0
  3. package/cli.js +14 -0
  4. package/dist_serve/bundle.js +44778 -0
  5. package/dist_serve/index.html +13 -0
  6. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  7. package/dist_ts/00_commitinfo_data.js +9 -0
  8. package/dist_ts/classes.authmodels.d.ts +126 -0
  9. package/dist_ts/classes.authmodels.js +1422 -0
  10. package/dist_ts/classes.authstore.d.ts +160 -0
  11. package/dist_ts/classes.authstore.js +2483 -0
  12. package/dist_ts/classes.browserresourcehost.d.ts +85 -0
  13. package/dist_ts/classes.browserresourcehost.js +912 -0
  14. package/dist_ts/classes.cli.d.ts +21 -0
  15. package/dist_ts/classes.cli.js +1082 -0
  16. package/dist_ts/classes.config.d.ts +23 -0
  17. package/dist_ts/classes.config.js +267 -0
  18. package/dist_ts/classes.controller.d.ts +523 -0
  19. package/dist_ts/classes.controller.js +10611 -0
  20. package/dist_ts/classes.controllermanagement.d.ts +32 -0
  21. package/dist_ts/classes.controllermanagement.js +222 -0
  22. package/dist_ts/classes.draftmanager.d.ts +30 -0
  23. package/dist_ts/classes.draftmanager.js +179 -0
  24. package/dist_ts/classes.embeddeddb.d.ts +30 -0
  25. package/dist_ts/classes.embeddeddb.js +159 -0
  26. package/dist_ts/classes.flexframedtransport.d.ts +56 -0
  27. package/dist_ts/classes.flexframedtransport.js +275 -0
  28. package/dist_ts/classes.flexmodels.private.d.ts +231 -0
  29. package/dist_ts/classes.flexmodels.private.js +985 -0
  30. package/dist_ts/classes.flexmodels.public.d.ts +207 -0
  31. package/dist_ts/classes.flexmodels.public.js +885 -0
  32. package/dist_ts/classes.flexprojectionreader.d.ts +89 -0
  33. package/dist_ts/classes.flexprojectionreader.js +580 -0
  34. package/dist_ts/classes.flexservice.d.ts +196 -0
  35. package/dist_ts/classes.flexservice.js +3704 -0
  36. package/dist_ts/classes.flexstore.d.ts +174 -0
  37. package/dist_ts/classes.flexstore.js +3400 -0
  38. package/dist_ts/classes.flexsupervisor.d.ts +105 -0
  39. package/dist_ts/classes.flexsupervisor.js +1191 -0
  40. package/dist_ts/classes.gitreversion.d.ts +431 -0
  41. package/dist_ts/classes.gitreversion.js +10592 -0
  42. package/dist_ts/classes.harnessoperationmanager.d.ts +113 -0
  43. package/dist_ts/classes.harnessoperationmanager.js +602 -0
  44. package/dist_ts/classes.opencodeclient.d.ts +146 -0
  45. package/dist_ts/classes.opencodeclient.js +3003 -0
  46. package/dist_ts/classes.opencodesupervisor.d.ts +60 -0
  47. package/dist_ts/classes.opencodesupervisor.js +1003 -0
  48. package/dist_ts/classes.passkeymanager.d.ts +34 -0
  49. package/dist_ts/classes.passkeymanager.js +456 -0
  50. package/dist_ts/classes.processinspection.d.ts +50 -0
  51. package/dist_ts/classes.processinspection.js +484 -0
  52. package/dist_ts/classes.resourcecoordinator.d.ts +64 -0
  53. package/dist_ts/classes.resourcecoordinator.js +294 -0
  54. package/dist_ts/classes.sessionintelligencereader.d.ts +13 -0
  55. package/dist_ts/classes.sessionintelligencereader.js +40 -0
  56. package/dist_ts/classes.systemmetricssampler.d.ts +53 -0
  57. package/dist_ts/classes.systemmetricssampler.js +168 -0
  58. package/dist_ts/classes.terminalmanager.d.ts +95 -0
  59. package/dist_ts/classes.terminalmanager.js +981 -0
  60. package/dist_ts/classes.terminalresourcehost.d.ts +20 -0
  61. package/dist_ts/classes.terminalresourcehost.js +84 -0
  62. package/dist_ts/classes.upgradecoordinator.d.ts +244 -0
  63. package/dist_ts/classes.upgradecoordinator.js +2155 -0
  64. package/dist_ts/classes.upgradetransaction.d.ts +92 -0
  65. package/dist_ts/classes.upgradetransaction.js +2125 -0
  66. package/dist_ts/classes.uploadmanager.d.ts +24 -0
  67. package/dist_ts/classes.uploadmanager.js +210 -0
  68. package/dist_ts/classes.validation.d.ts +91 -0
  69. package/dist_ts/classes.validation.js +1087 -0
  70. package/dist_ts/flexharness.child.d.ts +1 -0
  71. package/dist_ts/flexharness.child.js +28 -0
  72. package/dist_ts/functions.canonicaldirectory.d.ts +21 -0
  73. package/dist_ts/functions.canonicaldirectory.js +144 -0
  74. package/dist_ts/functions.controllerdataroot.d.ts +15 -0
  75. package/dist_ts/functions.controllerdataroot.js +76 -0
  76. package/dist_ts/functions.embeddeddb.d.ts +2 -0
  77. package/dist_ts/functions.embeddeddb.js +21 -0
  78. package/dist_ts/functions.flexcredentialstore.d.ts +16 -0
  79. package/dist_ts/functions.flexcredentialstore.js +93 -0
  80. package/dist_ts/functions.opencodeauth.d.ts +3 -0
  81. package/dist_ts/functions.opencodeauth.js +31 -0
  82. package/dist_ts/functions.runtimeenvironment.d.ts +2 -0
  83. package/dist_ts/functions.runtimeenvironment.js +79 -0
  84. package/dist_ts/functions.upgradefollower.d.ts +3 -0
  85. package/dist_ts/functions.upgradefollower.js +95 -0
  86. package/dist_ts/index.d.ts +24 -0
  87. package/dist_ts/index.js +25 -0
  88. package/dist_ts/interfaces.auth.d.ts +181 -0
  89. package/dist_ts/interfaces.auth.js +82 -0
  90. package/dist_ts/interfaces.config.d.ts +34 -0
  91. package/dist_ts/interfaces.config.js +2 -0
  92. package/dist_ts/interfaces.flexipc.d.ts +939 -0
  93. package/dist_ts/interfaces.flexipc.js +1492 -0
  94. package/dist_ts/interfaces.gitreversion.d.ts +246 -0
  95. package/dist_ts/interfaces.gitreversion.js +2 -0
  96. package/dist_ts/interfaces.lifecycle.d.ts +37 -0
  97. package/dist_ts/interfaces.lifecycle.js +2 -0
  98. package/dist_ts/interfaces.opencode.d.ts +101 -0
  99. package/dist_ts/interfaces.opencode.js +3 -0
  100. package/dist_ts/interfaces.projects.d.ts +156 -0
  101. package/dist_ts/interfaces.projects.js +5 -0
  102. package/dist_ts/plugins.d.ts +36 -0
  103. package/dist_ts/plugins.js +40 -0
  104. package/dist_ts_interfaces/index.d.ts +2 -0
  105. package/dist_ts_interfaces/index.js +3 -0
  106. package/dist_ts_interfaces/interfaces.d.ts +747 -0
  107. package/dist_ts_interfaces/interfaces.js +47 -0
  108. package/dist_ts_interfaces/plugins.d.ts +4 -0
  109. package/dist_ts_interfaces/plugins.js +3 -0
  110. package/dist_ts_interfaces/requests.d.ts +806 -0
  111. package/dist_ts_interfaces/requests.js +2 -0
  112. package/dist_ts_migration/classes.documentmigrationrunner.d.ts +8 -0
  113. package/dist_ts_migration/classes.documentmigrationrunner.js +24 -0
  114. package/dist_ts_migration/classes.flexmigrationrunner.d.ts +11 -0
  115. package/dist_ts_migration/classes.flexmigrationrunner.js +25 -0
  116. package/dist_ts_migration/classes.flexpostharnessmigrationrunner.d.ts +10 -0
  117. package/dist_ts_migration/classes.flexpostharnessmigrationrunner.js +15 -0
  118. package/dist_ts_migration/classes.migrationrunner.d.ts +8 -0
  119. package/dist_ts_migration/classes.migrationrunner.js +34 -0
  120. package/dist_ts_migration/index.d.ts +12 -0
  121. package/dist_ts_migration/index.js +13 -0
  122. package/dist_ts_migration/v10_flexharnessv3migration.d.ts +11 -0
  123. package/dist_ts_migration/v10_flexharnessv3migration.js +23 -0
  124. package/dist_ts_migration/v13_flexprojectionorder.d.ts +11 -0
  125. package/dist_ts_migration/v13_flexprojectionorder.js +23 -0
  126. package/dist_ts_migration/v16_flexprovidercredentials.d.ts +22 -0
  127. package/dist_ts_migration/v16_flexprovidercredentials.js +149 -0
  128. package/dist_ts_migration/v18_resourcelayout.d.ts +22 -0
  129. package/dist_ts_migration/v18_resourcelayout.js +23 -0
  130. package/dist_ts_migration/v18_resourcelayoutmigration.d.ts +6 -0
  131. package/dist_ts_migration/v18_resourcelayoutmigration.js +61 -0
  132. package/dist_ts_migration/v19_flexprojectmanagement.d.ts +11 -0
  133. package/dist_ts_migration/v19_flexprojectmanagement.js +21 -0
  134. package/dist_ts_migration/v1_embeddeddatabaselocation.d.ts +28 -0
  135. package/dist_ts_migration/v1_embeddeddatabaselocation.js +415 -0
  136. package/dist_ts_migration/v22_projectfilesystemidentitymigration.d.ts +7 -0
  137. package/dist_ts_migration/v22_projectfilesystemidentitymigration.js +105 -0
  138. package/dist_ts_migration/v2_controllerdataroot.d.ts +130 -0
  139. package/dist_ts_migration/v2_controllerdataroot.js +1887 -0
  140. package/dist_ts_migration/v6_protocoldocumentmigration.d.ts +7 -0
  141. package/dist_ts_migration/v6_protocoldocumentmigration.js +100 -0
  142. package/dist_ts_migration/v6_protocoldocuments.d.ts +7 -0
  143. package/dist_ts_migration/v6_protocoldocuments.js +138 -0
  144. package/html/index.html +13 -0
  145. package/{LICENSE → license.md} +2 -2
  146. package/package.json +86 -48
  147. package/readme.md +480 -0
  148. package/readme.plan.md +188 -0
  149. package/ts/00_commitinfo_data.ts +8 -0
  150. package/ts/classes.authmodels.ts +1245 -0
  151. package/ts/classes.authstore.ts +3274 -0
  152. package/ts/classes.browserresourcehost.ts +1205 -0
  153. package/ts/classes.cli.ts +1254 -0
  154. package/ts/classes.config.ts +351 -0
  155. package/ts/classes.controller.ts +14426 -0
  156. package/ts/classes.controllermanagement.ts +330 -0
  157. package/ts/classes.draftmanager.ts +232 -0
  158. package/ts/classes.embeddeddb.ts +166 -0
  159. package/ts/classes.flexframedtransport.ts +283 -0
  160. package/ts/classes.flexmodels.private.ts +823 -0
  161. package/ts/classes.flexmodels.public.ts +732 -0
  162. package/ts/classes.flexprojectionreader.ts +816 -0
  163. package/ts/classes.flexservice.ts +4302 -0
  164. package/ts/classes.flexstore.ts +4565 -0
  165. package/ts/classes.flexsupervisor.ts +1453 -0
  166. package/ts/classes.gitreversion.ts +13353 -0
  167. package/ts/classes.harnessoperationmanager.ts +870 -0
  168. package/ts/classes.opencodeclient.ts +4110 -0
  169. package/ts/classes.opencodesupervisor.ts +1280 -0
  170. package/ts/classes.passkeymanager.ts +570 -0
  171. package/ts/classes.processinspection.ts +623 -0
  172. package/ts/classes.resourcecoordinator.ts +436 -0
  173. package/ts/classes.sessionintelligencereader.ts +52 -0
  174. package/ts/classes.systemmetricssampler.ts +215 -0
  175. package/ts/classes.terminalmanager.ts +1207 -0
  176. package/ts/classes.terminalresourcehost.ts +122 -0
  177. package/ts/classes.upgradecoordinator.ts +2675 -0
  178. package/ts/classes.upgradetransaction.ts +2900 -0
  179. package/ts/classes.uploadmanager.ts +240 -0
  180. package/ts/classes.validation.ts +1409 -0
  181. package/ts/flexharness.child.ts +35 -0
  182. package/ts/functions.canonicaldirectory.ts +213 -0
  183. package/ts/functions.controllerdataroot.ts +107 -0
  184. package/ts/functions.embeddeddb.ts +22 -0
  185. package/ts/functions.flexcredentialstore.ts +128 -0
  186. package/ts/functions.opencodeauth.ts +34 -0
  187. package/ts/functions.runtimeenvironment.ts +90 -0
  188. package/ts/functions.upgradefollower.ts +115 -0
  189. package/ts/index.ts +36 -6
  190. package/ts/interfaces.auth.ts +316 -0
  191. package/ts/interfaces.config.ts +37 -0
  192. package/ts/interfaces.flexipc.ts +2586 -0
  193. package/ts/interfaces.gitreversion.ts +336 -0
  194. package/ts/interfaces.lifecycle.ts +46 -0
  195. package/ts/interfaces.opencode.ts +153 -0
  196. package/ts/interfaces.projects.ts +182 -0
  197. package/ts/plugins.ts +64 -0
  198. package/ts_interfaces/index.ts +2 -0
  199. package/ts_interfaces/interfaces.ts +827 -0
  200. package/ts_interfaces/plugins.ts +15 -0
  201. package/ts_interfaces/requests.ts +1186 -0
  202. package/ts_migration/classes.documentmigrationrunner.ts +32 -0
  203. package/ts_migration/classes.flexmigrationrunner.ts +33 -0
  204. package/ts_migration/classes.flexpostharnessmigrationrunner.ts +22 -0
  205. package/ts_migration/classes.migrationrunner.ts +40 -0
  206. package/ts_migration/index.ts +12 -0
  207. package/ts_migration/v10_flexharnessv3migration.ts +35 -0
  208. package/ts_migration/v13_flexprojectionorder.ts +33 -0
  209. package/ts_migration/v16_flexprovidercredentials.ts +196 -0
  210. package/ts_migration/v18_resourcelayout.ts +55 -0
  211. package/ts_migration/v18_resourcelayoutmigration.ts +68 -0
  212. package/ts_migration/v19_flexprojectmanagement.ts +28 -0
  213. package/ts_migration/v1_embeddeddatabaselocation.ts +560 -0
  214. package/ts_migration/v22_projectfilesystemidentitymigration.ts +121 -0
  215. package/ts_migration/v2_controllerdataroot.ts +2349 -0
  216. package/ts_migration/v6_protocoldocumentmigration.ts +144 -0
  217. package/ts_migration/v6_protocoldocuments.ts +198 -0
  218. package/ts_web/00_commitinfo_data.ts +8 -0
  219. package/ts_web/classes.controllersocketclient.ts +517 -0
  220. package/ts_web/classes.sessiondraftsync.ts +390 -0
  221. package/ts_web/elements.harnesscontrollerapp.ts +11494 -0
  222. package/ts_web/index.ts +2 -0
  223. package/ts_web/plugins.ts +31 -0
  224. package/.gitlab-ci.yml +0 -71
  225. package/.npmignore +0 -5
  226. package/README.md +0 -40
  227. package/dist/cli.js +0 -2
  228. package/dist/index.d.ts +0 -0
  229. package/dist/index.js +0 -9
  230. package/dist/mod_bundle/index.d.ts +0 -1
  231. package/dist/mod_bundle/index.js +0 -18
  232. package/dist/mod_bundle/mod.plugins.d.ts +0 -4
  233. package/dist/mod_bundle/mod.plugins.js +0 -11
  234. package/dist/mod_install/index.d.ts +0 -4
  235. package/dist/mod_install/index.js +0 -21
  236. package/dist/mod_install/mod.plugins.d.ts +0 -1
  237. package/dist/mod_install/mod.plugins.js +0 -7
  238. package/dist/mod_standard/index.d.ts +0 -4
  239. package/dist/mod_standard/index.js +0 -21
  240. package/dist/mod_standard/mod.browser.d.ts +0 -6
  241. package/dist/mod_standard/mod.browser.js +0 -14
  242. package/dist/mod_standard/mod.clean.d.ts +0 -4
  243. package/dist/mod_standard/mod.clean.js +0 -12
  244. package/dist/mod_standard/mod.compile.d.ts +0 -4
  245. package/dist/mod_standard/mod.compile.js +0 -21
  246. package/dist/mod_standard/mod.plugins.d.ts +0 -8
  247. package/dist/mod_standard/mod.plugins.js +0 -19
  248. package/dist/mod_standard/mod.test.d.ts +0 -4
  249. package/dist/mod_standard/mod.test.js +0 -12
  250. package/dist/plr.cli.d.ts +0 -3
  251. package/dist/plr.cli.js +0 -57
  252. package/dist/plr.config.d.ts +0 -11
  253. package/dist/plr.config.js +0 -26
  254. package/dist/plr.mods.d.ts +0 -17
  255. package/dist/plr.mods.js +0 -17
  256. package/dist/plr.paths.d.ts +0 -19
  257. package/dist/plr.paths.js +0 -26
  258. package/dist/plr.plugins.d.ts +0 -8
  259. package/dist/plr.plugins.js +0 -16
  260. package/npmextra.json +0 -10
  261. package/ts/mod_bundle/index.ts +0 -20
  262. package/ts/mod_bundle/mod.plugins.ts +0 -9
  263. package/ts/mod_install/index.ts +0 -20
  264. package/ts/mod_install/mod.plugins.ts +0 -1
  265. package/ts/mod_standard/index.ts +0 -23
  266. package/ts/mod_standard/mod.browser.ts +0 -17
  267. package/ts/mod_standard/mod.clean.ts +0 -13
  268. package/ts/mod_standard/mod.compile.ts +0 -23
  269. package/ts/mod_standard/mod.plugins.ts +0 -17
  270. package/ts/mod_standard/mod.test.ts +0 -13
  271. package/ts/plr.cli.ts +0 -60
  272. package/ts/plr.config.ts +0 -36
  273. package/ts/plr.mods.ts +0 -25
  274. package/ts/plr.paths.ts +0 -29
  275. package/ts/plr.plugins.ts +0 -17
  276. package/tslint.json +0 -3
  277. package/yarn.lock +0 -3464
@@ -0,0 +1,246 @@
1
+ import type * as plugins from './plugins.js';
2
+ import type { IControllerFilesystemIdentity } from './interfaces.projects.js';
3
+ export type TGitReversionDirection = 'undo' | 'redo';
4
+ export type TGitReversionSideName = 'before' | 'after';
5
+ export type TGitReversionWalPhase = 'intent' | 'preflighted' | 'applying' | 'targetVerified' | 'decision' | 'committed' | 'compensating' | 'compensated' | 'fenced';
6
+ export type TGitReversionWorktreeState = 'intent' | 'created' | 'registered' | 'active' | 'removing' | 'retainedDirty' | 'removed' | 'fenced';
7
+ export type TGitReversionFaultPoint = 'intent.before-fsync' | 'intent.after-fsync' | 'intent.before-ref-cas' | 'intent.after-ref-cas' | 'intent.before-commit-fsync' | 'intent.after-commit-fsync' | 'intent.before-remove' | 'intent.after-remove' | 'atomic.after-rename-before-directory-fsync' | 'capture.after-before-scan' | 'capture.before-finalize-record' | 'capture.after-finalize-record-fsync' | 'capture.after-staging-repository' | 'capture.after-intent-repository' | 'capture.after-state-repository' | 'capture.after-manifest-repository' | 'capture.before-store-create' | 'capture.after-store-create' | 'capture.before-generation-enrollment' | 'capture.after-generation-enrollment' | 'capture.after-publication-fsync' | 'capture.before-root-delete' | 'capture.after-root-delete' | 'capture.after-root-delete-fsync' | 'apply.after-intent' | 'apply.after-preflight' | 'apply.after-source-pack-import' | 'apply.after-source-pack-fsync' | 'apply.after-repository' | 'apply.after-target-verification' | 'apply.after-decision-repository' | 'apply.after-decision' | 'apply.after-state-repository' | 'apply.during-compensation' | 'apply.before-source-keep-remove' | 'apply.after-source-keep-quarantine' | 'apply.after-source-keep-remove' | 'apply.after-source-keep-remove-fsync' | 'worktree.after-intent' | 'worktree.after-create' | 'worktree.after-removed-record' | 'worktree.record-read.after-open' | 'index.before-sidecar-fsync' | 'index.after-sidecar-fsync' | 'index.after-link' | 'index.after-link-fsync' | 'index.after-rename' | 'index.after-rename-fsync' | 'index.after-cleanup' | 'index.after-cleanup-fsync';
8
+ export type TGitReversionReference = {
9
+ schemaVersion: 1;
10
+ captureKey: string;
11
+ manifestId: string;
12
+ };
13
+ export type TGitReversionFinalizedOutcome = plugins.flexharness.TFlexTurnReversionFinalizedOutcome;
14
+ export type TGitReversionCaptureInspection = plugins.flexharness.TFlexTurnReversionCaptureInspectionV2;
15
+ export type TGitReversionApplyInspection = plugins.flexharness.IFlexTurnReversionApplyInspection;
16
+ export interface IGitReversionIdentity {
17
+ projectId: string;
18
+ sessionId: string;
19
+ runId: string;
20
+ captureId: string;
21
+ }
22
+ export interface IGitReversionCaptureRequest extends IGitReversionIdentity {
23
+ signal?: AbortSignal;
24
+ }
25
+ export interface IGitReversionApplyRequest {
26
+ identity: IGitReversionIdentity;
27
+ reference: TGitReversionReference;
28
+ operationId: string;
29
+ direction: TGitReversionDirection;
30
+ signal?: AbortSignal;
31
+ }
32
+ export interface IGitReversionReleaseRequest {
33
+ identity: IGitReversionIdentity;
34
+ reference: TGitReversionReference;
35
+ signal?: AbortSignal;
36
+ }
37
+ export interface IGitReversionMetadataRequest {
38
+ identity: IGitReversionIdentity;
39
+ reference: TGitReversionReference;
40
+ signal?: AbortSignal;
41
+ }
42
+ export interface IGitReversionWorktreeRequest {
43
+ projectId: string;
44
+ sessionId: string;
45
+ signal?: AbortSignal;
46
+ }
47
+ export interface IGitReversionWorktreeRemoveRequest extends IGitReversionWorktreeRequest {
48
+ worktreeId: string;
49
+ }
50
+ export interface IGitReversionLimits {
51
+ maximumProjects: number;
52
+ maximumRepositories: number;
53
+ maximumScannedDirectories: number;
54
+ maximumScanDepth: number;
55
+ maximumPaths: number;
56
+ maximumPathBytes: number;
57
+ maximumMetadataBytes: number;
58
+ maximumPrivateRefs: number;
59
+ maximumPrivateMetadataAggregateBytes: number;
60
+ maximumIntentFiles: number;
61
+ maximumIntentEntries: number;
62
+ maximumIntentFileBytes: number;
63
+ maximumIntentAggregateBytes: number;
64
+ maximumScavengeEntries: number;
65
+ maximumIgnorePolicyFiles: number;
66
+ maximumIgnorePolicyBytes: number;
67
+ maximumWorktrees: number;
68
+ maximumCaptureRecords: number;
69
+ maximumCaptureRecordBytes: number;
70
+ maximumCaptureAggregateBytes: number;
71
+ maximumCaptures: number;
72
+ maximumGenerationsPerCapture: number;
73
+ maximumGenerationBytes: number;
74
+ maximumGenerationObjects: number;
75
+ maximumCaptureStoreBytes: number;
76
+ maximumCaptureStoreObjects: number;
77
+ maximumControllerStoreBytes: number;
78
+ maximumControllerStoreObjects: number;
79
+ maximumControllerGenerations: number;
80
+ maximumMetadataRecordsPerCapture: number;
81
+ maximumMetadataRecordBytes: number;
82
+ maximumMetadataAggregateBytes: number;
83
+ maximumLifecycleEntries: number;
84
+ maximumLifecycleRecordBytes: number;
85
+ maximumLifecycleAggregateBytes: number;
86
+ maximumPrivateRefsPerCapture: number;
87
+ commandTimeoutMs: number;
88
+ worktreeCommandTimeoutMs: number;
89
+ maximumCommandOutputBytes: number;
90
+ maximumConcurrentGitCommands: number;
91
+ maximumQueuedGitCommands: number;
92
+ }
93
+ export interface IGitReversionFaultContext {
94
+ point: TGitReversionFaultPoint;
95
+ captureKey?: string;
96
+ operationId?: string;
97
+ repositoryId?: string;
98
+ worktreeId?: string;
99
+ intentId?: string;
100
+ ref?: string;
101
+ }
102
+ export interface IGitReversionOptions {
103
+ ownerId: string;
104
+ /** This path must be exclusively owned by one live controller process. */
105
+ temporaryRoot?: string;
106
+ limits?: Partial<IGitReversionLimits>;
107
+ testOnlyFaultInjector?: (context: IGitReversionFaultContext) => Promise<void> | void;
108
+ }
109
+ export interface IGitReversionRepositoryIdentity {
110
+ scope: 'project' | 'owned-worktree';
111
+ repositoryId: string;
112
+ commonId: string;
113
+ objectFormat: 'sha1' | 'sha256';
114
+ root: string;
115
+ rootIdentity: IControllerFilesystemIdentity;
116
+ gitEntryPath: string;
117
+ gitEntryIdentity: IControllerFilesystemIdentity;
118
+ gitDir: string;
119
+ gitDirIdentity: IControllerFilesystemIdentity;
120
+ commonDir: string;
121
+ commonDirIdentity: IControllerFilesystemIdentity;
122
+ objectDir: string;
123
+ objectDirIdentity: IControllerFilesystemIdentity;
124
+ indexPath: string;
125
+ indexParentIdentity: IControllerFilesystemIdentity;
126
+ label: string;
127
+ excludedRepositoryPaths: string[];
128
+ }
129
+ export interface IGitReversionSide {
130
+ objectGenerationId?: string;
131
+ worktreeTree: string;
132
+ indexTree: string;
133
+ headOid: string;
134
+ headRef: string | null;
135
+ refs: Record<string, string>;
136
+ symbolicRefs: Record<string, string>;
137
+ topologyHash: string;
138
+ ignorePolicyHash: string;
139
+ operationHash: string;
140
+ unsupportedReason?: string;
141
+ }
142
+ export interface IGitReversionRepositoryCapture {
143
+ repository: IGitReversionRepositoryIdentity;
144
+ before: IGitReversionSide;
145
+ after?: IGitReversionSide;
146
+ }
147
+ export interface IGitReversionManifest {
148
+ schemaVersion: 1;
149
+ kind: 'manifest';
150
+ ownerKey: string;
151
+ captureKey: string;
152
+ identity: IGitReversionIdentity;
153
+ projectDirectory: string;
154
+ projectIdentity: IControllerFilesystemIdentity;
155
+ phase: 'prepared' | 'finalized';
156
+ repositories: IGitReversionRepositoryCapture[];
157
+ reasonCode?: string;
158
+ affectedWorkspaces: Array<{
159
+ id: string;
160
+ label: string;
161
+ }>;
162
+ }
163
+ export interface IGitReversionCaptureState {
164
+ schemaVersion: 1;
165
+ kind: 'capture-state';
166
+ captureKey: string;
167
+ manifestId: string;
168
+ currentSide: TGitReversionSideName;
169
+ revision: number;
170
+ outcome: TGitReversionFinalizedOutcome;
171
+ }
172
+ export interface IGitReversionSourcePack {
173
+ generationId: string;
174
+ packHash: string;
175
+ packBytes: number;
176
+ objectCount: number;
177
+ syntheticRootOid: string;
178
+ keepToken: string;
179
+ }
180
+ export interface IGitReversionApplyPlan {
181
+ captureKey: string;
182
+ repository: IGitReversionRepositoryIdentity;
183
+ initial: IGitReversionSide;
184
+ source: IGitReversionSide;
185
+ target: IGitReversionSide;
186
+ desiredWorktreeTree: string;
187
+ desiredIndexTree: string;
188
+ scopedRefs: string[];
189
+ sourcePack: IGitReversionSourcePack;
190
+ }
191
+ export interface IGitReversionApplyWal {
192
+ schemaVersion: 1;
193
+ kind: 'apply-wal';
194
+ captureKey: string;
195
+ manifestId: string;
196
+ operationId: string;
197
+ operationKey: string;
198
+ direction: TGitReversionDirection;
199
+ attempt: number;
200
+ sourceSide: TGitReversionSideName;
201
+ targetSide: TGitReversionSideName;
202
+ sourceRevision: number;
203
+ phase: TGitReversionWalPhase;
204
+ decision?: 'source' | 'target';
205
+ touchedRepositoryIds: string[];
206
+ plans: IGitReversionApplyPlan[];
207
+ generationIds: Record<string, string[]>;
208
+ }
209
+ export interface IGitReversionWorktreeDescriptor {
210
+ worktreeId: string;
211
+ projectId: string;
212
+ sessionId: string;
213
+ path: string;
214
+ repositoryId: string;
215
+ createdAt: string;
216
+ state: Exclude<TGitReversionWorktreeState, 'intent' | 'created' | 'registered' | 'removed'>;
217
+ }
218
+ export interface IGitReversionWorktreeRecord {
219
+ schemaVersion: 1;
220
+ kind: 'worktree';
221
+ ownerKey: string;
222
+ worktreeId: string;
223
+ projectId: string;
224
+ sessionId: string;
225
+ path: string;
226
+ parentPath: string;
227
+ parentIdentity: IControllerFilesystemIdentity;
228
+ pathIdentity?: IControllerFilesystemIdentity;
229
+ sourceRoot: string;
230
+ sourceCommonDir: string;
231
+ sourceRepository: IGitReversionRepositoryIdentity;
232
+ repositoryId: string;
233
+ createdAt: string;
234
+ state: TGitReversionWorktreeState;
235
+ }
236
+ export interface IGitReversionMetadata {
237
+ reference: TGitReversionReference;
238
+ disposition: TGitReversionFinalizedOutcome['disposition'];
239
+ currentSide: TGitReversionSideName;
240
+ revision: number;
241
+ affectedWorkspaces: Array<{
242
+ id: string;
243
+ label: string;
244
+ }>;
245
+ reasonCode?: string;
246
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5naXRyZXZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9pbnRlcmZhY2VzLmdpdHJldmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,37 @@
1
+ import type { IControllerStatus, TControllerProcessMode } from '../dist_ts_interfaces/index.js';
2
+ import type { IControllerRuntimeOverrides } from './interfaces.config.js';
3
+ export interface IControllerStartOptions {
4
+ processMode: TControllerProcessMode;
5
+ runtimeOverrides: IControllerRuntimeOverrides;
6
+ /** Operator-provided first-start setup code; a random code is minted when absent. */
7
+ setupCode?: string;
8
+ /** Private upgrade transaction token received over parent IPC. */
9
+ upgradeToken?: string;
10
+ upgradeGlobalRoot?: string;
11
+ onStartupBlocked?: (errorArg: Error) => Promise<void>;
12
+ }
13
+ export interface IControllerStartResult {
14
+ status: IControllerStatus;
15
+ publicUrl: string;
16
+ setupCode?: string;
17
+ }
18
+ export interface IControllerReadyIpcMessage {
19
+ type: 'ready';
20
+ status: IControllerStatus;
21
+ publicUrl: string;
22
+ setupCode?: string;
23
+ }
24
+ export interface IControllerStartupErrorIpcMessage {
25
+ type: 'startupError';
26
+ message: string;
27
+ retained?: true;
28
+ }
29
+ export interface IControllerStartIpcMessage {
30
+ type: 'start';
31
+ /** Transported over IPC so the code never appears in the detached child's argv. */
32
+ setupCode?: string;
33
+ /** Transported over IPC so the token never appears in the detached child's argv. */
34
+ upgradeToken?: string;
35
+ upgradeGlobalRoot?: string;
36
+ }
37
+ export type TControllerIpcMessage = IControllerReadyIpcMessage | IControllerStartupErrorIpcMessage | IControllerStartIpcMessage;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5saWZlY3ljbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9pbnRlcmZhY2VzLmxpZmVjeWNsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,101 @@
1
+ import type * as plugins from './plugins.js';
2
+ import type { IControllerEvent, IControllerMessage, IControllerReasoningUpdate, IControllerRuntimeId, IControllerTextUpdate, IControllerToolExecution, TControllerHarnessLifecycleState } from '../dist_ts_interfaces/index.js';
3
+ export declare const openCodeExpectedVersion: "1.18.15";
4
+ export declare const openCodeUsername: "harness-controller";
5
+ export interface IOpenCodeHealth {
6
+ healthy: true;
7
+ version: typeof openCodeExpectedVersion;
8
+ }
9
+ export interface IOpenCodeLogEntry {
10
+ timestamp: number;
11
+ stream: 'stdout' | 'stderr';
12
+ line: string;
13
+ truncated: boolean;
14
+ }
15
+ export interface IOpenCodeSupervisorStatus {
16
+ state: TControllerHarnessLifecycleState;
17
+ healthy: boolean;
18
+ pid?: number;
19
+ version?: string;
20
+ startedAt?: number;
21
+ }
22
+ export interface IOpenCodeConnectionConfig {
23
+ baseUrl: string;
24
+ directory: string;
25
+ username: typeof openCodeUsername;
26
+ password: string;
27
+ }
28
+ export interface IOpenCodeProcessGroupController {
29
+ isAlive(processGroupIdArg: number): boolean | Promise<boolean>;
30
+ signal(processGroupIdArg: number, signalArg: 'SIGTERM' | 'SIGKILL'): void | Promise<void>;
31
+ }
32
+ export interface IOpenCodeSupervisorOptions {
33
+ directory: string;
34
+ port: number;
35
+ startupTimeoutMs?: number;
36
+ healthRequestTimeoutMs?: number;
37
+ healthPollIntervalMs?: number;
38
+ stopTimeoutMs?: number;
39
+ finalStopTimeoutMs?: number;
40
+ logEntryLimit?: number;
41
+ logLineByteLimit?: number;
42
+ spawnFactory?: typeof plugins.childProcess.spawn;
43
+ fetchImplementation?: typeof globalThis.fetch;
44
+ listenerOwnershipVerifier?: (processId: number, port: number) => boolean | Promise<boolean>;
45
+ processGroupController?: IOpenCodeProcessGroupController;
46
+ /** Called after the owned child exits and can no longer access operation resources. */
47
+ onChildExit?: () => void;
48
+ }
49
+ export type TOpenCodeSdkClient = ReturnType<typeof plugins.opencodeSdk.createOpencodeClient>;
50
+ export interface IOpenCodeClientOptions extends IOpenCodeConnectionConfig {
51
+ clientFactory?: typeof plugins.opencodeSdk.createOpencodeClient;
52
+ fetchImplementation?: typeof globalThis.fetch;
53
+ /** Current-generation lease held until each non-streaming SDK response body settles. */
54
+ acquireRuntimeLease?: () => () => void;
55
+ }
56
+ /** Adapter-internal normalized entries derived from one OpenCode source message. */
57
+ export interface IOpenCodeNormalizedMessageBundle {
58
+ sourceMessageId: IControllerRuntimeId;
59
+ structuralDigest: string;
60
+ sourceRole: 'user' | 'assistant';
61
+ parentMessageId?: IControllerRuntimeId;
62
+ terminal: boolean;
63
+ messages: IControllerMessage[];
64
+ }
65
+ export interface IOpenCodeMessageLifecycle {
66
+ sessionId: IControllerRuntimeId;
67
+ messageId: IControllerRuntimeId;
68
+ role: 'user' | 'assistant';
69
+ parentMessageId?: IControllerRuntimeId;
70
+ terminal: boolean;
71
+ }
72
+ /** Adapter-internal page shape; cursors remain opaque OpenCode values. */
73
+ export interface IOpenCodeMessagePage {
74
+ bundles: IOpenCodeNormalizedMessageBundle[];
75
+ nextCursor?: string;
76
+ }
77
+ export type TOpenCodeToolExecution = Omit<IControllerToolExecution, 'revision' | 'streamEpoch'>;
78
+ export type TOpenCodeReasoningUpdate = Omit<IControllerReasoningUpdate, 'order' | 'revision' | 'streamEpoch'>;
79
+ export type TOpenCodeTextUpdate = Omit<IControllerTextUpdate, 'order' | 'revision' | 'streamEpoch'>;
80
+ export interface IOpenCodeEventStreamOptions {
81
+ /** directory is the raw project worktree the event belongs to. */
82
+ onEvent: (event: IControllerEvent, directory: string) => void | Promise<void>;
83
+ /** Replace-only tool snapshot; the controller assigns delivery ordering. */
84
+ onToolExecution?: (execution: TOpenCodeToolExecution, directory: string, timestamp: number) => void | Promise<void>;
85
+ /** Replace-only Assistant reasoning snapshot; the controller assigns ordering. */
86
+ onReasoningUpdate?: (update: TOpenCodeReasoningUpdate, directory: string) => void | Promise<void>;
87
+ /** Replace-only Assistant text snapshot; the controller assigns ordering. */
88
+ onTextUpdate?: (update: TOpenCodeTextUpdate, directory: string) => void | Promise<void>;
89
+ /** Exact source-message lifecycle used for controller-owned resource cleanup. */
90
+ onMessageLifecycle?: (lifecycle: IOpenCodeMessageLifecycle, directory: string) => void | Promise<void>;
91
+ /** Fires in stream order for the initial connection and every SDK reconnect. */
92
+ onConnected?: () => void | Promise<void>;
93
+ /** Signals that live snapshots may have been lost or could not be normalized. */
94
+ onToolStreamGap?: () => void | Promise<void>;
95
+ /** Signals that live Assistant snapshots may have been lost or could not be normalized. */
96
+ onMessageStreamGap?: () => void | Promise<void>;
97
+ /** Signals that the shared SDK stream ended and both snapshot streams were lost. */
98
+ onStreamGap?: () => void | Promise<void>;
99
+ onError?: (error: Error) => void;
100
+ signal?: AbortSignal;
101
+ }
@@ -0,0 +1,3 @@
1
+ export const openCodeExpectedVersion = '1.18.15';
2
+ export const openCodeUsername = 'harness-controller';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5vcGVuY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2ludGVyZmFjZXMub3BlbmNvZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV0EsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQUcsU0FBa0IsQ0FBQztBQUMxRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxvQkFBNkIsQ0FBQyJ9
@@ -0,0 +1,156 @@
1
+ import type { IControllerRuntimeId, TControllerResourceKind, TControllerSessionId, TControllerModelChoice, TControllerScratchpadUpdater, TControllerIntelligenceStatus, IControllerIntelligenceExchange, IControllerSessionScratchpad } from '../dist_ts_interfaces/index.js';
2
+ import type * as plugins from './plugins.js';
3
+ export declare const controllerProjectLimit = 512;
4
+ export declare const controllerResourceLimit = 4096;
5
+ export declare const controllerResourcesPerProjectLimit = 64;
6
+ export declare const controllerFilesystemIdentityMaximumComponents = 512;
7
+ export type TControllerFilesystemObjectType = 'directory' | 'file';
8
+ export interface IControllerFilesystemIdentityComponent {
9
+ device: string;
10
+ inode: string;
11
+ type: TControllerFilesystemObjectType;
12
+ }
13
+ export interface IControllerFilesystemIdentity {
14
+ /** Ordered filesystem identities from the filesystem root through the target. */
15
+ ancestry: IControllerFilesystemIdentityComponent[];
16
+ }
17
+ export interface IControllerProjectFilesystemIdentity extends IControllerFilesystemIdentity {
18
+ }
19
+ export interface IControllerPersistedSessionGroup {
20
+ id: string;
21
+ name: string;
22
+ sessionIds: TControllerSessionId[];
23
+ }
24
+ export interface IControllerProjectDocument {
25
+ /** 16-byte base64url identifier. */
26
+ id: string;
27
+ /** `controller:<port>` owner scope. */
28
+ controllerId: string;
29
+ /** Directory name under the projects root; doubles as display name. */
30
+ name: string;
31
+ /** Absolute resolved path of the project worktree. */
32
+ directory: string;
33
+ /** Legacy projects that could not be verified during migration remain permanently unbound. */
34
+ directoryIdentityState: 'bound' | 'unbound';
35
+ /** Complete root-to-project filesystem ancestry, present only while bound. */
36
+ directoryIdentity?: IControllerProjectFilesystemIdentity;
37
+ createdAt: Date;
38
+ /** Durable write-before-cleanup intent; startup resumes this removal. */
39
+ removalStartedAt?: Date;
40
+ /** Tombstone: set when the project is deregistered; files stay untouched. */
41
+ removedAt?: Date;
42
+ }
43
+ export interface IControllerSessionGroupsDocument {
44
+ /** `${controllerId}:groups:${projectId}` — one persisted session layout per project. */
45
+ id: string;
46
+ controllerId: string;
47
+ projectId: string;
48
+ groups: IControllerPersistedSessionGroup[];
49
+ /** Present with revision; both are absent on legacy documents. */
50
+ ungroupedSessionIds?: TControllerSessionId[];
51
+ /** Present with ungroupedSessionIds; legacy documents are interpreted as revision zero. */
52
+ revision?: number;
53
+ }
54
+ export interface IControllerPendingResourceAttachment {
55
+ operationId: string;
56
+ attachmentRevision: number;
57
+ sessionId: TControllerSessionId | null;
58
+ requestedAt: Date;
59
+ }
60
+ export interface IControllerTerminalResourceMetadata {
61
+ command: string;
62
+ args: string[];
63
+ cwd: string;
64
+ stoppedAt?: Date;
65
+ lastExitCode?: number;
66
+ }
67
+ export interface IControllerResourceDocument {
68
+ /** Random stable public identifier. */
69
+ id: string;
70
+ controllerId: string;
71
+ projectId: string;
72
+ kind: TControllerResourceKind;
73
+ title: string;
74
+ /** Stable BrowserRuntime attachment authority for the resource lifetime. */
75
+ attachmentAuthorityId: string;
76
+ attachmentRevision: number;
77
+ sessionId: TControllerSessionId | null;
78
+ /** Write-before-side-effect attachment obligation. */
79
+ pendingAttachment?: IControllerPendingResourceAttachment;
80
+ lifecycle: 'active' | 'retiring' | 'retired';
81
+ terminal?: IControllerTerminalResourceMetadata;
82
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ retiringAt?: Date;
85
+ retiredAt?: Date;
86
+ /** Reconciliation identity for the newest exact write. */
87
+ updateId: string;
88
+ }
89
+ export interface IControllerSettingsDocument {
90
+ /** `controller:<port>:settings` — one settings document per controller. */
91
+ id: string;
92
+ controllerId: string;
93
+ /** At most one default per session harness. */
94
+ defaultModels: TControllerModelChoice[];
95
+ /** Present only as `true`; absent means permission requests wait for a human. */
96
+ autoAcceptPermissions?: true;
97
+ /** Flex provider connection currently installed into the controller-owned OpenCode runtime. */
98
+ selectedOpenCodeProviderConnectionId?: string;
99
+ }
100
+ export interface IControllerPersistedIntelligenceExchange {
101
+ id: string;
102
+ question: string;
103
+ status: TControllerIntelligenceStatus;
104
+ answer?: string;
105
+ error?: string;
106
+ model?: string;
107
+ scratchpadConflict?: true;
108
+ /** Private admission state, present only while status is running. */
109
+ scratchpadRevisionAtAdmission?: number;
110
+ /** Cleanup obligation retained until the temporary OpenCode session is confirmed deleted. */
111
+ temporarySessionId?: string;
112
+ createdAt: Date;
113
+ completedAt?: Date;
114
+ }
115
+ export interface IControllerSessionStateDocument {
116
+ /** Hash of the complete controller/project/qualified-session scope. */
117
+ id: string;
118
+ controllerId: string;
119
+ projectId: string;
120
+ sessionId: IControllerRuntimeId;
121
+ scratchpad: {
122
+ text: string;
123
+ revision: number;
124
+ updatedAt?: Date;
125
+ updatedBy?: TControllerScratchpadUpdater;
126
+ };
127
+ intelligenceExchanges: IControllerPersistedIntelligenceExchange[];
128
+ /** Exact FlexHarness project-management state for Flex sessions. */
129
+ flexProjectManagement?: plugins.flexharness.TFlexProjectManagementRecord;
130
+ /** Durable per-session model choice; absent means use the harness default. */
131
+ modelChoice?: TControllerModelChoice;
132
+ /** Fixed-size reconciliation identity for the newest exact transition. */
133
+ updateId: string;
134
+ /** Content-clearing tombstone; TTL cleanup is best-effort storage maintenance. */
135
+ deletedAt?: Date;
136
+ }
137
+ export interface IControllerSessionState {
138
+ scratchpad: IControllerSessionScratchpad;
139
+ intelligenceExchanges: IControllerIntelligenceExchange[];
140
+ modelChoice?: TControllerModelChoice;
141
+ }
142
+ export interface IControllerIntelligenceAdmission {
143
+ exchange: IControllerIntelligenceExchange;
144
+ scratchpadRevision: number;
145
+ scratchpadText: string;
146
+ }
147
+ export interface IControllerInterruptedIntelligenceRecovery {
148
+ recoveredCount: number;
149
+ exhaustive: boolean;
150
+ temporarySessionIds: Array<{
151
+ projectId: string;
152
+ sessionId: IControllerRuntimeId;
153
+ exchangeId: string;
154
+ nativeId: string;
155
+ }>;
156
+ }
@@ -0,0 +1,5 @@
1
+ export const controllerProjectLimit = 512;
2
+ export const controllerResourceLimit = 4096;
3
+ export const controllerResourcesPerProjectLimit = 64;
4
+ export const controllerFilesystemIdentityMaximumComponents = 512;
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5wcm9qZWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2ludGVyZmFjZXMucHJvamVjdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYUEsTUFBTSxDQUFDLE1BQU0sc0JBQXNCLEdBQUcsR0FBRyxDQUFDO0FBQzFDLE1BQU0sQ0FBQyxNQUFNLHVCQUF1QixHQUFHLElBQUksQ0FBQztBQUM1QyxNQUFNLENBQUMsTUFBTSxrQ0FBa0MsR0FBRyxFQUFFLENBQUM7QUFDckQsTUFBTSxDQUFDLE1BQU0sNkNBQTZDLEdBQUcsR0FBRyxDQUFDIn0=
@@ -0,0 +1,36 @@
1
+ import * as childProcess from 'node:child_process';
2
+ import * as crypto from 'node:crypto';
3
+ import * as fs from 'node:fs';
4
+ import { createRequire } from 'node:module';
5
+ import * as net from 'node:net';
6
+ import * as os from 'node:os';
7
+ import * as path from 'node:path';
8
+ import * as stream from 'node:stream';
9
+ import * as url from 'node:url';
10
+ import * as util from 'node:util';
11
+ export { childProcess, createRequire, crypto, fs, net, os, path, stream, url, util };
12
+ import * as smartcli from '@push.rocks/smartcli';
13
+ import * as smartagent from '@push.rocks/smartagent';
14
+ import * as smartagentCompaction from '@push.rocks/smartagent/compaction';
15
+ import * as smartagentTools from '@push.rocks/smartagent/tools';
16
+ import * as smartai from '@push.rocks/smartai';
17
+ import * as smartaiProviders from '@push.rocks/smartai/providers';
18
+ import * as smartdata from '@push.rocks/smartdata';
19
+ import * as smartdb from '@push.rocks/smartdb';
20
+ import * as smartfs from '@push.rocks/smartfs';
21
+ import * as smartsecret from '@push.rocks/smartsecret';
22
+ import * as smartshell from '@push.rocks/smartshell';
23
+ import * as flexharness from '@modelprofile.com/flexharness';
24
+ import * as browserRuntime from '@modelprofile.com/browser-runtime';
25
+ import * as crossharness from '@modelprofile.com/crossharness-mcp';
26
+ import * as flexharnessMigration from '@modelprofile.com/flexharness/migration';
27
+ import * as typedrequest from '@api.global/typedrequest';
28
+ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
29
+ import * as typedserver from '@api.global/typedserver';
30
+ import * as typedsocket from '@api.global/typedsocket';
31
+ export { flexharness, browserRuntime, crossharness, flexharnessMigration, smartagent, smartagentCompaction, smartagentTools, smartai, smartaiProviders, smartcli, smartdata, smartdb, smartfs, smartsecret, smartshell, typedrequest, typedrequestInterfaces, typedserver, typedsocket, };
32
+ import * as simplewebauthnServer from '@simplewebauthn/server';
33
+ import * as opencodeSdk from '@opencode-ai/sdk/v2';
34
+ import * as systeminformation from 'systeminformation';
35
+ import * as tldts from 'tldts';
36
+ export { opencodeSdk, simplewebauthnServer, systeminformation, tldts };
@@ -0,0 +1,40 @@
1
+ // Node native modules
2
+ import * as childProcess from 'node:child_process';
3
+ import * as crypto from 'node:crypto';
4
+ import * as fs from 'node:fs';
5
+ import { createRequire } from 'node:module';
6
+ import * as net from 'node:net';
7
+ import * as os from 'node:os';
8
+ import * as path from 'node:path';
9
+ import * as stream from 'node:stream';
10
+ import * as url from 'node:url';
11
+ import * as util from 'node:util';
12
+ export { childProcess, createRequire, crypto, fs, net, os, path, stream, url, util };
13
+ // foss.global modules
14
+ import * as smartcli from '@push.rocks/smartcli';
15
+ import * as smartagent from '@push.rocks/smartagent';
16
+ import * as smartagentCompaction from '@push.rocks/smartagent/compaction';
17
+ import * as smartagentTools from '@push.rocks/smartagent/tools';
18
+ import * as smartai from '@push.rocks/smartai';
19
+ import * as smartaiProviders from '@push.rocks/smartai/providers';
20
+ import * as smartdata from '@push.rocks/smartdata';
21
+ import * as smartdb from '@push.rocks/smartdb';
22
+ import * as smartfs from '@push.rocks/smartfs';
23
+ import * as smartsecret from '@push.rocks/smartsecret';
24
+ import * as smartshell from '@push.rocks/smartshell';
25
+ import * as flexharness from '@modelprofile.com/flexharness';
26
+ import * as browserRuntime from '@modelprofile.com/browser-runtime';
27
+ import * as crossharness from '@modelprofile.com/crossharness-mcp';
28
+ import * as flexharnessMigration from '@modelprofile.com/flexharness/migration';
29
+ import * as typedrequest from '@api.global/typedrequest';
30
+ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
31
+ import * as typedserver from '@api.global/typedserver';
32
+ import * as typedsocket from '@api.global/typedsocket';
33
+ export { flexharness, browserRuntime, crossharness, flexharnessMigration, smartagent, smartagentCompaction, smartagentTools, smartai, smartaiProviders, smartcli, smartdata, smartdb, smartfs, smartsecret, smartshell, typedrequest, typedrequestInterfaces, typedserver, typedsocket, };
34
+ // third-party modules
35
+ import * as simplewebauthnServer from '@simplewebauthn/server';
36
+ import * as opencodeSdk from '@opencode-ai/sdk/v2';
37
+ import * as systeminformation from 'systeminformation';
38
+ import * as tldts from 'tldts';
39
+ export { opencodeSdk, simplewebauthnServer, systeminformation, tldts };
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3BsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0JBQXNCO0FBQ3RCLE9BQU8sS0FBSyxZQUFZLE1BQU0sb0JBQW9CLENBQUM7QUFDbkQsT0FBTyxLQUFLLE1BQU0sTUFBTSxhQUFhLENBQUM7QUFDdEMsT0FBTyxLQUFLLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDOUIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM1QyxPQUFPLEtBQUssR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUNoQyxPQUFPLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUM5QixPQUFPLEtBQUssSUFBSSxNQUFNLFdBQVcsQ0FBQztBQUNsQyxPQUFPLEtBQUssTUFBTSxNQUFNLGFBQWEsQ0FBQztBQUN0QyxPQUFPLEtBQUssR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUNoQyxPQUFPLEtBQUssSUFBSSxNQUFNLFdBQVcsQ0FBQztBQUVsQyxPQUFPLEVBQUUsWUFBWSxFQUFFLGFBQWEsRUFBRSxNQUFNLEVBQUUsRUFBRSxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLENBQUM7QUFFckYsc0JBQXNCO0FBQ3RCLE9BQU8sS0FBSyxRQUFRLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxLQUFLLFVBQVUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEtBQUssb0JBQW9CLE1BQU0sbUNBQW1DLENBQUM7QUFDMUUsT0FBTyxLQUFLLGVBQWUsTUFBTSw4QkFBOEIsQ0FBQztBQUNoRSxPQUFPLEtBQUssT0FBTyxNQUFNLHFCQUFxQixDQUFDO0FBQy9DLE9BQU8sS0FBSyxnQkFBZ0IsTUFBTSwrQkFBK0IsQ0FBQztBQUNsRSxPQUFPLEtBQUssU0FBUyxNQUFNLHVCQUF1QixDQUFDO0FBQ25ELE9BQU8sS0FBSyxPQUFPLE1BQU0scUJBQXFCLENBQUM7QUFDL0MsT0FBTyxLQUFLLE9BQU8sTUFBTSxxQkFBcUIsQ0FBQztBQUMvQyxPQUFPLEtBQUssV0FBVyxNQUFNLHlCQUF5QixDQUFDO0FBQ3ZELE9BQU8sS0FBSyxVQUFVLE1BQU0sd0JBQXdCLENBQUM7QUFDckQsT0FBTyxLQUFLLFdBQVcsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RCxPQUFPLEtBQUssY0FBYyxNQUFNLG1DQUFtQyxDQUFDO0FBQ3BFLE9BQU8sS0FBSyxZQUFZLE1BQU0sb0NBQW9DLENBQUM7QUFDbkUsT0FBTyxLQUFLLG9CQUFvQixNQUFNLHlDQUF5QyxDQUFDO0FBQ2hGLE9BQU8sS0FBSyxZQUFZLE1BQU0sMEJBQTBCLENBQUM7QUFDekQsT0FBTyxLQUFLLHNCQUFzQixNQUFNLHFDQUFxQyxDQUFDO0FBQzlFLE9BQU8sS0FBSyxXQUFXLE1BQU0seUJBQXlCLENBQUM7QUFDdkQsT0FBTyxLQUFLLFdBQVcsTUFBTSx5QkFBeUIsQ0FBQztBQUV2RCxPQUFPLEVBQ0wsV0FBVyxFQUNYLGNBQWMsRUFDZCxZQUFZLEVBQ1osb0JBQW9CLEVBQ3BCLFVBQVUsRUFDVixvQkFBb0IsRUFDcEIsZUFBZSxFQUNmLE9BQU8sRUFDUCxnQkFBZ0IsRUFDaEIsUUFBUSxFQUNSLFNBQVMsRUFDVCxPQUFPLEVBQ1AsT0FBTyxFQUNQLFdBQVcsRUFDWCxVQUFVLEVBQ1YsWUFBWSxFQUNaLHNCQUFzQixFQUN0QixXQUFXLEVBQ1gsV0FBVyxHQUNaLENBQUM7QUFFRixzQkFBc0I7QUFDdEIsT0FBTyxLQUFLLG9CQUFvQixNQUFNLHdCQUF3QixDQUFDO0FBQy9ELE9BQU8sS0FBSyxXQUFXLE1BQU0scUJBQXFCLENBQUM7QUFDbkQsT0FBTyxLQUFLLGlCQUFpQixNQUFNLG1CQUFtQixDQUFDO0FBQ3ZELE9BQU8sS0FBSyxLQUFLLE1BQU0sT0FBTyxDQUFDO0FBRS9CLE9BQU8sRUFBRSxXQUFXLEVBQUUsb0JBQW9CLEVBQUUsaUJBQWlCLEVBQUUsS0FBSyxFQUFFLENBQUMifQ==
@@ -0,0 +1,2 @@
1
+ export * from './interfaces.js';
2
+ export * from './requests.js';
@@ -0,0 +1,3 @@
1
+ export * from './interfaces.js';
2
+ export * from './requests.js';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90c19pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxlQUFlLENBQUMifQ==