@phigon/observer 8.0.2 → 8.2.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 (375) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +8 -0
  3. package/README.md +376 -303
  4. package/THIRD_PARTY_NOTICES.md +610 -0
  5. package/dist/bin/guardian-runner-darwin-amd64 +0 -0
  6. package/dist/bin/guardian-runner-darwin-arm64 +0 -0
  7. package/dist/bin/guardian-runner-linux-amd64 +0 -0
  8. package/dist/bin/guardian-runner-linux-arm64 +0 -0
  9. package/dist/bin/guardian-runner-windows-amd64.exe +0 -0
  10. package/dist/bin/guardian-runner-windows-arm64.exe +0 -0
  11. package/dist/src/action-policy.d.ts +0 -0
  12. package/dist/src/action-policy.d.ts.map +1 -1
  13. package/dist/src/action-policy.js +4 -2
  14. package/dist/src/action-policy.js.map +1 -1
  15. package/dist/src/activity/adapters/claude.d.ts +0 -0
  16. package/dist/src/activity/adapters/claude.d.ts.map +1 -1
  17. package/dist/src/activity/adapters/claude.js +19 -1
  18. package/dist/src/activity/adapters/claude.js.map +1 -1
  19. package/dist/src/activity/adapters/cline-task.d.ts +7 -0
  20. package/dist/src/activity/adapters/cline-task.d.ts.map +1 -0
  21. package/dist/src/activity/adapters/cline-task.js +197 -0
  22. package/dist/src/activity/adapters/cline-task.js.map +1 -0
  23. package/dist/src/activity/adapters/cline.d.ts +3 -0
  24. package/dist/src/activity/adapters/cline.d.ts.map +1 -0
  25. package/dist/src/activity/adapters/cline.js +102 -0
  26. package/dist/src/activity/adapters/cline.js.map +1 -0
  27. package/dist/src/activity/adapters/codex.d.ts +0 -0
  28. package/dist/src/activity/adapters/codex.d.ts.map +1 -1
  29. package/dist/src/activity/adapters/codex.js +76 -0
  30. package/dist/src/activity/adapters/codex.js.map +1 -1
  31. package/dist/src/activity/adapters/copilot-chat.d.ts +3 -0
  32. package/dist/src/activity/adapters/copilot-chat.d.ts.map +1 -0
  33. package/dist/src/activity/adapters/copilot-chat.js +176 -0
  34. package/dist/src/activity/adapters/copilot-chat.js.map +1 -0
  35. package/dist/src/activity/adapters/copilot.d.ts +2 -1
  36. package/dist/src/activity/adapters/copilot.d.ts.map +1 -1
  37. package/dist/src/activity/adapters/copilot.js +173 -2
  38. package/dist/src/activity/adapters/copilot.js.map +1 -1
  39. package/dist/src/activity/adapters/cursor.d.ts +3 -0
  40. package/dist/src/activity/adapters/cursor.d.ts.map +1 -0
  41. package/dist/src/activity/adapters/cursor.js +86 -0
  42. package/dist/src/activity/adapters/cursor.js.map +1 -0
  43. package/dist/src/activity/adapters/factory-droid.d.ts +3 -0
  44. package/dist/src/activity/adapters/factory-droid.d.ts.map +1 -0
  45. package/dist/src/activity/adapters/factory-droid.js +126 -0
  46. package/dist/src/activity/adapters/factory-droid.js.map +1 -0
  47. package/dist/src/activity/adapters/gemini.d.ts +3 -0
  48. package/dist/src/activity/adapters/gemini.d.ts.map +1 -0
  49. package/dist/src/activity/adapters/gemini.js +177 -0
  50. package/dist/src/activity/adapters/gemini.js.map +1 -0
  51. package/dist/src/activity/adapters/generic.d.ts +0 -0
  52. package/dist/src/activity/adapters/generic.d.ts.map +0 -0
  53. package/dist/src/activity/adapters/generic.js +0 -0
  54. package/dist/src/activity/adapters/generic.js.map +0 -0
  55. package/dist/src/activity/adapters/goose.d.ts +3 -0
  56. package/dist/src/activity/adapters/goose.d.ts.map +1 -0
  57. package/dist/src/activity/adapters/goose.js +116 -0
  58. package/dist/src/activity/adapters/goose.js.map +1 -0
  59. package/dist/src/activity/adapters/hermes.d.ts +0 -0
  60. package/dist/src/activity/adapters/hermes.d.ts.map +0 -0
  61. package/dist/src/activity/adapters/hermes.js +0 -0
  62. package/dist/src/activity/adapters/hermes.js.map +0 -0
  63. package/dist/src/activity/adapters/kiro.d.ts +3 -0
  64. package/dist/src/activity/adapters/kiro.d.ts.map +1 -0
  65. package/dist/src/activity/adapters/kiro.js +47 -0
  66. package/dist/src/activity/adapters/kiro.js.map +1 -0
  67. package/dist/src/activity/adapters/openai-compatible.d.ts +0 -0
  68. package/dist/src/activity/adapters/openai-compatible.d.ts.map +0 -0
  69. package/dist/src/activity/adapters/openai-compatible.js +0 -0
  70. package/dist/src/activity/adapters/openai-compatible.js.map +0 -0
  71. package/dist/src/activity/adapters/openclaw.d.ts +0 -0
  72. package/dist/src/activity/adapters/openclaw.d.ts.map +0 -0
  73. package/dist/src/activity/adapters/openclaw.js +0 -0
  74. package/dist/src/activity/adapters/openclaw.js.map +0 -0
  75. package/dist/src/activity/adapters/opencode.d.ts +0 -0
  76. package/dist/src/activity/adapters/opencode.d.ts.map +1 -1
  77. package/dist/src/activity/adapters/opencode.js +108 -1
  78. package/dist/src/activity/adapters/opencode.js.map +1 -1
  79. package/dist/src/activity/adapters/zed.d.ts +3 -0
  80. package/dist/src/activity/adapters/zed.d.ts.map +1 -0
  81. package/dist/src/activity/adapters/zed.js +134 -0
  82. package/dist/src/activity/adapters/zed.js.map +1 -0
  83. package/dist/src/activity/bridges.d.ts +0 -0
  84. package/dist/src/activity/bridges.d.ts.map +0 -0
  85. package/dist/src/activity/bridges.js +0 -0
  86. package/dist/src/activity/bridges.js.map +0 -0
  87. package/dist/src/activity/collector.d.ts +12 -0
  88. package/dist/src/activity/collector.d.ts.map +1 -1
  89. package/dist/src/activity/collector.js +156 -3
  90. package/dist/src/activity/collector.js.map +1 -1
  91. package/dist/src/activity/goose-sqlite-source.d.ts +33 -0
  92. package/dist/src/activity/goose-sqlite-source.d.ts.map +1 -0
  93. package/dist/src/activity/goose-sqlite-source.js +274 -0
  94. package/dist/src/activity/goose-sqlite-source.js.map +1 -0
  95. package/dist/src/activity/index.d.ts +3 -0
  96. package/dist/src/activity/index.d.ts.map +1 -1
  97. package/dist/src/activity/index.js +3 -0
  98. package/dist/src/activity/index.js.map +1 -1
  99. package/dist/src/activity/ingest.d.ts +0 -0
  100. package/dist/src/activity/ingest.d.ts.map +1 -1
  101. package/dist/src/activity/ingest.js +2 -1
  102. package/dist/src/activity/ingest.js.map +1 -1
  103. package/dist/src/activity/json-document-source.d.ts +136 -0
  104. package/dist/src/activity/json-document-source.d.ts.map +1 -0
  105. package/dist/src/activity/json-document-source.js +569 -0
  106. package/dist/src/activity/json-document-source.js.map +1 -0
  107. package/dist/src/activity/native-capabilities.d.ts +0 -0
  108. package/dist/src/activity/native-capabilities.d.ts.map +0 -0
  109. package/dist/src/activity/native-capabilities.js +0 -0
  110. package/dist/src/activity/native-capabilities.js.map +0 -0
  111. package/dist/src/activity/normalize.d.ts +0 -0
  112. package/dist/src/activity/normalize.d.ts.map +1 -1
  113. package/dist/src/activity/normalize.js +64 -6
  114. package/dist/src/activity/normalize.js.map +1 -1
  115. package/dist/src/activity/opencode-message-tables.d.ts +87 -0
  116. package/dist/src/activity/opencode-message-tables.d.ts.map +1 -0
  117. package/dist/src/activity/opencode-message-tables.js +546 -0
  118. package/dist/src/activity/opencode-message-tables.js.map +1 -0
  119. package/dist/src/activity/opencode-sqlite-source.d.ts +7 -0
  120. package/dist/src/activity/opencode-sqlite-source.d.ts.map +1 -1
  121. package/dist/src/activity/opencode-sqlite-source.js +153 -63
  122. package/dist/src/activity/opencode-sqlite-source.js.map +1 -1
  123. package/dist/src/activity/policy.d.ts +0 -0
  124. package/dist/src/activity/policy.d.ts.map +1 -1
  125. package/dist/src/activity/policy.js +2 -13
  126. package/dist/src/activity/policy.js.map +1 -1
  127. package/dist/src/activity/record.d.ts +0 -0
  128. package/dist/src/activity/record.d.ts.map +0 -0
  129. package/dist/src/activity/record.js +0 -0
  130. package/dist/src/activity/record.js.map +0 -0
  131. package/dist/src/activity/source-reader.d.ts +16 -1
  132. package/dist/src/activity/source-reader.d.ts.map +1 -1
  133. package/dist/src/activity/source-reader.js +308 -29
  134. package/dist/src/activity/source-reader.js.map +1 -1
  135. package/dist/src/activity/sqlite-connections.d.ts +77 -0
  136. package/dist/src/activity/sqlite-connections.d.ts.map +1 -0
  137. package/dist/src/activity/sqlite-connections.js +220 -0
  138. package/dist/src/activity/sqlite-connections.js.map +1 -0
  139. package/dist/src/activity/types.d.ts +0 -0
  140. package/dist/src/activity/types.d.ts.map +0 -0
  141. package/dist/src/activity/types.js +0 -0
  142. package/dist/src/activity/types.js.map +0 -0
  143. package/dist/src/activity/zed-sqlite-source.d.ts +65 -0
  144. package/dist/src/activity/zed-sqlite-source.d.ts.map +1 -0
  145. package/dist/src/activity/zed-sqlite-source.js +547 -0
  146. package/dist/src/activity/zed-sqlite-source.js.map +1 -0
  147. package/dist/src/agent-action-executor.d.ts +14 -1
  148. package/dist/src/agent-action-executor.d.ts.map +1 -1
  149. package/dist/src/agent-action-executor.js +114 -57
  150. package/dist/src/agent-action-executor.js.map +1 -1
  151. package/dist/src/agentic-guardian.d.ts +0 -0
  152. package/dist/src/agentic-guardian.d.ts.map +1 -1
  153. package/dist/src/agentic-guardian.js +6 -5
  154. package/dist/src/agentic-guardian.js.map +1 -1
  155. package/dist/src/atomic-replace.d.ts +0 -0
  156. package/dist/src/atomic-replace.d.ts.map +0 -0
  157. package/dist/src/atomic-replace.js +0 -0
  158. package/dist/src/atomic-replace.js.map +0 -0
  159. package/dist/src/cli.d.ts +0 -0
  160. package/dist/src/cli.d.ts.map +1 -1
  161. package/dist/src/cli.js +96 -13
  162. package/dist/src/cli.js.map +1 -1
  163. package/dist/src/config.d.ts +15 -0
  164. package/dist/src/config.d.ts.map +1 -1
  165. package/dist/src/config.js +105 -4
  166. package/dist/src/config.js.map +1 -1
  167. package/dist/src/connection-config.d.ts +3 -0
  168. package/dist/src/connection-config.d.ts.map +1 -0
  169. package/dist/src/connection-config.js +29 -0
  170. package/dist/src/connection-config.js.map +1 -0
  171. package/dist/src/content-redaction.d.ts +3 -0
  172. package/dist/src/content-redaction.d.ts.map +1 -0
  173. package/dist/src/content-redaction.js +19 -0
  174. package/dist/src/content-redaction.js.map +1 -0
  175. package/dist/src/credential-store.d.ts +1 -0
  176. package/dist/src/credential-store.d.ts.map +1 -1
  177. package/dist/src/credential-store.js +13 -2
  178. package/dist/src/credential-store.js.map +1 -1
  179. package/dist/src/custom-agent-registry.d.ts +0 -0
  180. package/dist/src/custom-agent-registry.d.ts.map +1 -1
  181. package/dist/src/custom-agent-registry.js +2 -1
  182. package/dist/src/custom-agent-registry.js.map +1 -1
  183. package/dist/src/discovery/adapters/claude.d.ts +0 -0
  184. package/dist/src/discovery/adapters/claude.d.ts.map +0 -0
  185. package/dist/src/discovery/adapters/claude.js +0 -0
  186. package/dist/src/discovery/adapters/claude.js.map +0 -0
  187. package/dist/src/discovery/adapters/codex.d.ts +0 -0
  188. package/dist/src/discovery/adapters/codex.d.ts.map +0 -0
  189. package/dist/src/discovery/adapters/codex.js +0 -0
  190. package/dist/src/discovery/adapters/codex.js.map +0 -0
  191. package/dist/src/discovery/adapters/custom.d.ts +0 -0
  192. package/dist/src/discovery/adapters/custom.d.ts.map +0 -0
  193. package/dist/src/discovery/adapters/custom.js +0 -0
  194. package/dist/src/discovery/adapters/custom.js.map +0 -0
  195. package/dist/src/discovery/adapters/generic.d.ts +0 -0
  196. package/dist/src/discovery/adapters/generic.d.ts.map +1 -1
  197. package/dist/src/discovery/adapters/generic.js +160 -2
  198. package/dist/src/discovery/adapters/generic.js.map +1 -1
  199. package/dist/src/discovery/adapters/hermes.d.ts +0 -0
  200. package/dist/src/discovery/adapters/hermes.d.ts.map +0 -0
  201. package/dist/src/discovery/adapters/hermes.js +0 -0
  202. package/dist/src/discovery/adapters/hermes.js.map +0 -0
  203. package/dist/src/discovery/adapters/openclaw.d.ts +0 -0
  204. package/dist/src/discovery/adapters/openclaw.d.ts.map +0 -0
  205. package/dist/src/discovery/adapters/openclaw.js +0 -0
  206. package/dist/src/discovery/adapters/openclaw.js.map +0 -0
  207. package/dist/src/discovery/engine.d.ts +7 -1
  208. package/dist/src/discovery/engine.d.ts.map +1 -1
  209. package/dist/src/discovery/engine.js +20 -5
  210. package/dist/src/discovery/engine.js.map +1 -1
  211. package/dist/src/discovery/evidence.d.ts +0 -0
  212. package/dist/src/discovery/evidence.d.ts.map +0 -0
  213. package/dist/src/discovery/evidence.js +0 -0
  214. package/dist/src/discovery/evidence.js.map +0 -0
  215. package/dist/src/discovery/index.d.ts +0 -0
  216. package/dist/src/discovery/index.d.ts.map +0 -0
  217. package/dist/src/discovery/index.js +0 -0
  218. package/dist/src/discovery/index.js.map +0 -0
  219. package/dist/src/discovery/known-agent.d.ts +7 -0
  220. package/dist/src/discovery/known-agent.d.ts.map +1 -1
  221. package/dist/src/discovery/known-agent.js +9 -4
  222. package/dist/src/discovery/known-agent.js.map +1 -1
  223. package/dist/src/discovery/process-identity.d.ts +0 -0
  224. package/dist/src/discovery/process-identity.d.ts.map +0 -0
  225. package/dist/src/discovery/process-identity.js +0 -0
  226. package/dist/src/discovery/process-identity.js.map +0 -0
  227. package/dist/src/discovery/system-evidence.d.ts +40 -1
  228. package/dist/src/discovery/system-evidence.d.ts.map +1 -1
  229. package/dist/src/discovery/system-evidence.js +189 -16
  230. package/dist/src/discovery/system-evidence.js.map +1 -1
  231. package/dist/src/discovery/types.d.ts +0 -0
  232. package/dist/src/discovery/types.d.ts.map +0 -0
  233. package/dist/src/discovery/types.js +0 -0
  234. package/dist/src/discovery/types.js.map +0 -0
  235. package/dist/src/event-queue.d.ts +0 -0
  236. package/dist/src/event-queue.d.ts.map +1 -1
  237. package/dist/src/event-queue.js +88 -38
  238. package/dist/src/event-queue.js.map +1 -1
  239. package/dist/src/event-spool.d.ts +0 -0
  240. package/dist/src/event-spool.d.ts.map +1 -1
  241. package/dist/src/event-spool.js +58 -10
  242. package/dist/src/event-spool.js.map +1 -1
  243. package/dist/src/generated/phigon/v1/action_pb.d.ts +0 -0
  244. package/dist/src/generated/phigon/v1/action_pb.d.ts.map +1 -1
  245. package/dist/src/generated/phigon/v1/action_pb.js +1 -1
  246. package/dist/src/generated/phigon/v1/action_pb.js.map +1 -1
  247. package/dist/src/generated/phigon/v1/common_pb.d.ts +0 -0
  248. package/dist/src/generated/phigon/v1/common_pb.d.ts.map +1 -1
  249. package/dist/src/generated/phigon/v1/common_pb.js +1 -1
  250. package/dist/src/generated/phigon/v1/common_pb.js.map +1 -1
  251. package/dist/src/generated/phigon/v1/history_sync_pb.d.ts +0 -0
  252. package/dist/src/generated/phigon/v1/history_sync_pb.d.ts.map +1 -1
  253. package/dist/src/generated/phigon/v1/history_sync_pb.js +1 -1
  254. package/dist/src/generated/phigon/v1/history_sync_pb.js.map +1 -1
  255. package/dist/src/generated/phigon/v1/identity_pb.d.ts +0 -0
  256. package/dist/src/generated/phigon/v1/identity_pb.d.ts.map +1 -1
  257. package/dist/src/generated/phigon/v1/identity_pb.js +1 -1
  258. package/dist/src/generated/phigon/v1/identity_pb.js.map +1 -1
  259. package/dist/src/generated/phigon/v1/observer_service_pb.d.ts +0 -0
  260. package/dist/src/generated/phigon/v1/observer_service_pb.d.ts.map +1 -1
  261. package/dist/src/generated/phigon/v1/observer_service_pb.js +1 -1
  262. package/dist/src/generated/phigon/v1/observer_service_pb.js.map +1 -1
  263. package/dist/src/generated/phigon/v1/policy_pb.d.ts +0 -0
  264. package/dist/src/generated/phigon/v1/policy_pb.d.ts.map +1 -1
  265. package/dist/src/generated/phigon/v1/policy_pb.js +1 -1
  266. package/dist/src/generated/phigon/v1/policy_pb.js.map +1 -1
  267. package/dist/src/generated/phigon/v1/supervision_pb.d.ts +0 -0
  268. package/dist/src/generated/phigon/v1/supervision_pb.d.ts.map +1 -1
  269. package/dist/src/generated/phigon/v1/supervision_pb.js +1 -1
  270. package/dist/src/generated/phigon/v1/supervision_pb.js.map +1 -1
  271. package/dist/src/generated/phigon/v1/telemetry_pb.d.ts +0 -0
  272. package/dist/src/generated/phigon/v1/telemetry_pb.d.ts.map +1 -1
  273. package/dist/src/generated/phigon/v1/telemetry_pb.js +1 -1
  274. package/dist/src/generated/phigon/v1/telemetry_pb.js.map +1 -1
  275. package/dist/src/guardian-containment.d.ts +2 -6
  276. package/dist/src/guardian-containment.d.ts.map +1 -1
  277. package/dist/src/guardian-containment.js +12 -63
  278. package/dist/src/guardian-containment.js.map +1 -1
  279. package/dist/src/guardian-decision-journal.d.ts +0 -0
  280. package/dist/src/guardian-decision-journal.d.ts.map +1 -1
  281. package/dist/src/guardian-decision-journal.js +2 -1
  282. package/dist/src/guardian-decision-journal.js.map +1 -1
  283. package/dist/src/guardian-execution-manifest.d.ts +0 -0
  284. package/dist/src/guardian-execution-manifest.d.ts.map +0 -0
  285. package/dist/src/guardian-execution-manifest.js +0 -0
  286. package/dist/src/guardian-execution-manifest.js.map +0 -0
  287. package/dist/src/guardian-hosted-client.d.ts +0 -0
  288. package/dist/src/guardian-hosted-client.d.ts.map +0 -0
  289. package/dist/src/guardian-hosted-client.js +0 -0
  290. package/dist/src/guardian-hosted-client.js.map +0 -0
  291. package/dist/src/guardian-managed-exec.d.ts +0 -0
  292. package/dist/src/guardian-managed-exec.d.ts.map +1 -1
  293. package/dist/src/guardian-managed-exec.js +2 -1
  294. package/dist/src/guardian-managed-exec.js.map +1 -1
  295. package/dist/src/guardian-model-bridge.d.ts +0 -0
  296. package/dist/src/guardian-model-bridge.d.ts.map +1 -1
  297. package/dist/src/guardian-model-bridge.js +2 -1
  298. package/dist/src/guardian-model-bridge.js.map +1 -1
  299. package/dist/src/guardian-native.d.ts +0 -1
  300. package/dist/src/guardian-native.d.ts.map +1 -1
  301. package/dist/src/guardian-native.js +0 -6
  302. package/dist/src/guardian-native.js.map +1 -1
  303. package/dist/src/guardian-process-monitor.d.ts +6 -1
  304. package/dist/src/guardian-process-monitor.d.ts.map +1 -1
  305. package/dist/src/guardian-process-monitor.js +64 -8
  306. package/dist/src/guardian-process-monitor.js.map +1 -1
  307. package/dist/src/health.d.ts +0 -0
  308. package/dist/src/health.d.ts.map +0 -0
  309. package/dist/src/health.js +0 -0
  310. package/dist/src/health.js.map +0 -0
  311. package/dist/src/historical-identity-store.d.ts +0 -0
  312. package/dist/src/historical-identity-store.d.ts.map +1 -1
  313. package/dist/src/historical-identity-store.js +2 -1
  314. package/dist/src/historical-identity-store.js.map +1 -1
  315. package/dist/src/index.d.ts +0 -0
  316. package/dist/src/index.d.ts.map +0 -0
  317. package/dist/src/index.js +0 -0
  318. package/dist/src/index.js.map +0 -0
  319. package/dist/src/installation.d.ts +0 -0
  320. package/dist/src/installation.d.ts.map +1 -1
  321. package/dist/src/installation.js +3 -2
  322. package/dist/src/installation.js.map +1 -1
  323. package/dist/src/machine-command-executor.d.ts +26 -7
  324. package/dist/src/machine-command-executor.d.ts.map +1 -1
  325. package/dist/src/machine-command-executor.js +123 -21
  326. package/dist/src/machine-command-executor.js.map +1 -1
  327. package/dist/src/pair.d.ts +0 -0
  328. package/dist/src/pair.d.ts.map +1 -1
  329. package/dist/src/pair.js +13 -3
  330. package/dist/src/pair.js.map +1 -1
  331. package/dist/src/private-directory.d.ts +4 -0
  332. package/dist/src/private-directory.d.ts.map +1 -0
  333. package/dist/src/private-directory.js +35 -0
  334. package/dist/src/private-directory.js.map +1 -0
  335. package/dist/src/process-tree.d.ts +73 -0
  336. package/dist/src/process-tree.d.ts.map +1 -0
  337. package/dist/src/process-tree.js +256 -0
  338. package/dist/src/process-tree.js.map +1 -0
  339. package/dist/src/remove-machine.d.ts +0 -0
  340. package/dist/src/remove-machine.d.ts.map +0 -0
  341. package/dist/src/remove-machine.js +0 -0
  342. package/dist/src/remove-machine.js.map +0 -0
  343. package/dist/src/server-authority.d.ts +26 -0
  344. package/dist/src/server-authority.d.ts.map +1 -0
  345. package/dist/src/server-authority.js +102 -0
  346. package/dist/src/server-authority.js.map +1 -0
  347. package/dist/src/stream-client.d.ts +6 -2
  348. package/dist/src/stream-client.d.ts.map +1 -1
  349. package/dist/src/stream-client.js +95 -16
  350. package/dist/src/stream-client.js.map +1 -1
  351. package/dist/src/stream-state.d.ts +0 -0
  352. package/dist/src/stream-state.d.ts.map +1 -1
  353. package/dist/src/stream-state.js +2 -1
  354. package/dist/src/stream-state.js.map +1 -1
  355. package/dist/src/system-inspection.d.ts +78 -0
  356. package/dist/src/system-inspection.d.ts.map +1 -0
  357. package/dist/src/system-inspection.js +281 -0
  358. package/dist/src/system-inspection.js.map +1 -0
  359. package/dist/src/update.d.ts +15 -0
  360. package/dist/src/update.d.ts.map +1 -0
  361. package/dist/src/update.js +93 -0
  362. package/dist/src/update.js.map +1 -0
  363. package/dist/src/user-notices.d.ts +53 -0
  364. package/dist/src/user-notices.d.ts.map +1 -0
  365. package/dist/src/user-notices.js +117 -0
  366. package/dist/src/user-notices.js.map +1 -0
  367. package/package.json +83 -78
  368. package/scripts/install.mjs +306 -306
  369. package/scripts/managed-service.mjs +0 -0
  370. package/scripts/verify-guardian-release.mjs +0 -0
  371. package/scripts/windows-app-control.mjs +0 -0
  372. package/dist/src/windows-process.d.ts +0 -7
  373. package/dist/src/windows-process.d.ts.map +0 -1
  374. package/dist/src/windows-process.js +0 -18
  375. package/dist/src/windows-process.js.map +0 -1
@@ -0,0 +1,610 @@
1
+ # Third-party notices
2
+
3
+ The Guardian runner binaries in this package (`dist/bin/guardian-runner-*`)
4
+ are built from `go/` and statically link the Go modules below. Their license
5
+ terms and notices are reproduced here. npm dependencies are installed
6
+ separately by npm and carry their own licenses.
7
+
8
+ ## github.com/google/uuid v1.6.0
9
+
10
+ License: BSD-3-Clause
11
+
12
+ ```text
13
+ Copyright (c) 2009,2014 Google Inc. All rights reserved.
14
+
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are
17
+ met:
18
+
19
+ * Redistributions of source code must retain the above copyright
20
+ notice, this list of conditions and the following disclaimer.
21
+ * Redistributions in binary form must reproduce the above
22
+ copyright notice, this list of conditions and the following disclaimer
23
+ in the documentation and/or other materials provided with the
24
+ distribution.
25
+ * Neither the name of Google Inc. nor the names of its
26
+ contributors may be used to endorse or promote products derived from
27
+ this software without specific prior written permission.
28
+
29
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
+ ```
41
+
42
+ ## golang.org/x/net v0.58.0
43
+
44
+ License: BSD-3-Clause
45
+
46
+ ```text
47
+ Copyright 2009 The Go Authors.
48
+
49
+ Redistribution and use in source and binary forms, with or without
50
+ modification, are permitted provided that the following conditions are
51
+ met:
52
+
53
+ * Redistributions of source code must retain the above copyright
54
+ notice, this list of conditions and the following disclaimer.
55
+ * Redistributions in binary form must reproduce the above
56
+ copyright notice, this list of conditions and the following disclaimer
57
+ in the documentation and/or other materials provided with the
58
+ distribution.
59
+ * Neither the name of Google LLC nor the names of its
60
+ contributors may be used to endorse or promote products derived from
61
+ this software without specific prior written permission.
62
+
63
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
64
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
65
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
66
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
67
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
68
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
69
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
70
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
71
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
72
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
73
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
74
+ ```
75
+
76
+ ## golang.org/x/sys v0.47.0
77
+
78
+ License: BSD-3-Clause
79
+
80
+ ```text
81
+ Copyright 2009 The Go Authors.
82
+
83
+ Redistribution and use in source and binary forms, with or without
84
+ modification, are permitted provided that the following conditions are
85
+ met:
86
+
87
+ * Redistributions of source code must retain the above copyright
88
+ notice, this list of conditions and the following disclaimer.
89
+ * Redistributions in binary form must reproduce the above
90
+ copyright notice, this list of conditions and the following disclaimer
91
+ in the documentation and/or other materials provided with the
92
+ distribution.
93
+ * Neither the name of Google LLC nor the names of its
94
+ contributors may be used to endorse or promote products derived from
95
+ this software without specific prior written permission.
96
+
97
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
98
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
99
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
100
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
101
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
102
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
103
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
104
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
105
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
106
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
107
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
108
+ ```
109
+
110
+ ## golang.org/x/text v0.41.0
111
+
112
+ License: BSD-3-Clause
113
+
114
+ ```text
115
+ Copyright 2009 The Go Authors.
116
+
117
+ Redistribution and use in source and binary forms, with or without
118
+ modification, are permitted provided that the following conditions are
119
+ met:
120
+
121
+ * Redistributions of source code must retain the above copyright
122
+ notice, this list of conditions and the following disclaimer.
123
+ * Redistributions in binary form must reproduce the above
124
+ copyright notice, this list of conditions and the following disclaimer
125
+ in the documentation and/or other materials provided with the
126
+ distribution.
127
+ * Neither the name of Google LLC nor the names of its
128
+ contributors may be used to endorse or promote products derived from
129
+ this software without specific prior written permission.
130
+
131
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
132
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
133
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
134
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
135
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
136
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
137
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
138
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
139
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
140
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
141
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
142
+ ```
143
+
144
+ ## google.golang.org/genproto/googleapis/rpc v0.0.0-20260630182238-925bb5da69e7
145
+
146
+ License: Apache-2.0
147
+
148
+ ```text
149
+ Apache License
150
+ Version 2.0, January 2004
151
+ http://www.apache.org/licenses/
152
+
153
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
154
+
155
+ 1. Definitions.
156
+
157
+ "License" shall mean the terms and conditions for use, reproduction,
158
+ and distribution as defined by Sections 1 through 9 of this document.
159
+
160
+ "Licensor" shall mean the copyright owner or entity authorized by
161
+ the copyright owner that is granting the License.
162
+
163
+ "Legal Entity" shall mean the union of the acting entity and all
164
+ other entities that control, are controlled by, or are under common
165
+ control with that entity. For the purposes of this definition,
166
+ "control" means (i) the power, direct or indirect, to cause the
167
+ direction or management of such entity, whether by contract or
168
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
169
+ outstanding shares, or (iii) beneficial ownership of such entity.
170
+
171
+ "You" (or "Your") shall mean an individual or Legal Entity
172
+ exercising permissions granted by this License.
173
+
174
+ "Source" form shall mean the preferred form for making modifications,
175
+ including but not limited to software source code, documentation
176
+ source, and configuration files.
177
+
178
+ "Object" form shall mean any form resulting from mechanical
179
+ transformation or translation of a Source form, including but
180
+ not limited to compiled object code, generated documentation,
181
+ and conversions to other media types.
182
+
183
+ "Work" shall mean the work of authorship, whether in Source or
184
+ Object form, made available under the License, as indicated by a
185
+ copyright notice that is included in or attached to the work
186
+ (an example is provided in the Appendix below).
187
+
188
+ "Derivative Works" shall mean any work, whether in Source or Object
189
+ form, that is based on (or derived from) the Work and for which the
190
+ editorial revisions, annotations, elaborations, or other modifications
191
+ represent, as a whole, an original work of authorship. For the purposes
192
+ of this License, Derivative Works shall not include works that remain
193
+ separable from, or merely link (or bind by name) to the interfaces of,
194
+ the Work and Derivative Works thereof.
195
+
196
+ "Contribution" shall mean any work of authorship, including
197
+ the original version of the Work and any modifications or additions
198
+ to that Work or Derivative Works thereof, that is intentionally
199
+ submitted to Licensor for inclusion in the Work by the copyright owner
200
+ or by an individual or Legal Entity authorized to submit on behalf of
201
+ the copyright owner. For the purposes of this definition, "submitted"
202
+ means any form of electronic, verbal, or written communication sent
203
+ to the Licensor or its representatives, including but not limited to
204
+ communication on electronic mailing lists, source code control systems,
205
+ and issue tracking systems that are managed by, or on behalf of, the
206
+ Licensor for the purpose of discussing and improving the Work, but
207
+ excluding communication that is conspicuously marked or otherwise
208
+ designated in writing by the copyright owner as "Not a Contribution."
209
+
210
+ "Contributor" shall mean Licensor and any individual or Legal Entity
211
+ on behalf of whom a Contribution has been received by Licensor and
212
+ subsequently incorporated within the Work.
213
+
214
+ 2. Grant of Copyright License. Subject to the terms and conditions of
215
+ this License, each Contributor hereby grants to You a perpetual,
216
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
217
+ copyright license to reproduce, prepare Derivative Works of,
218
+ publicly display, publicly perform, sublicense, and distribute the
219
+ Work and such Derivative Works in Source or Object form.
220
+
221
+ 3. Grant of Patent License. Subject to the terms and conditions of
222
+ this License, each Contributor hereby grants to You a perpetual,
223
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
224
+ (except as stated in this section) patent license to make, have made,
225
+ use, offer to sell, sell, import, and otherwise transfer the Work,
226
+ where such license applies only to those patent claims licensable
227
+ by such Contributor that are necessarily infringed by their
228
+ Contribution(s) alone or by combination of their Contribution(s)
229
+ with the Work to which such Contribution(s) was submitted. If You
230
+ institute patent litigation against any entity (including a
231
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
232
+ or a Contribution incorporated within the Work constitutes direct
233
+ or contributory patent infringement, then any patent licenses
234
+ granted to You under this License for that Work shall terminate
235
+ as of the date such litigation is filed.
236
+
237
+ 4. Redistribution. You may reproduce and distribute copies of the
238
+ Work or Derivative Works thereof in any medium, with or without
239
+ modifications, and in Source or Object form, provided that You
240
+ meet the following conditions:
241
+
242
+ (a) You must give any other recipients of the Work or
243
+ Derivative Works a copy of this License; and
244
+
245
+ (b) You must cause any modified files to carry prominent notices
246
+ stating that You changed the files; and
247
+
248
+ (c) You must retain, in the Source form of any Derivative Works
249
+ that You distribute, all copyright, patent, trademark, and
250
+ attribution notices from the Source form of the Work,
251
+ excluding those notices that do not pertain to any part of
252
+ the Derivative Works; and
253
+
254
+ (d) If the Work includes a "NOTICE" text file as part of its
255
+ distribution, then any Derivative Works that You distribute must
256
+ include a readable copy of the attribution notices contained
257
+ within such NOTICE file, excluding those notices that do not
258
+ pertain to any part of the Derivative Works, in at least one
259
+ of the following places: within a NOTICE text file distributed
260
+ as part of the Derivative Works; within the Source form or
261
+ documentation, if provided along with the Derivative Works; or,
262
+ within a display generated by the Derivative Works, if and
263
+ wherever such third-party notices normally appear. The contents
264
+ of the NOTICE file are for informational purposes only and
265
+ do not modify the License. You may add Your own attribution
266
+ notices within Derivative Works that You distribute, alongside
267
+ or as an addendum to the NOTICE text from the Work, provided
268
+ that such additional attribution notices cannot be construed
269
+ as modifying the License.
270
+
271
+ You may add Your own copyright statement to Your modifications and
272
+ may provide additional or different license terms and conditions
273
+ for use, reproduction, or distribution of Your modifications, or
274
+ for any such Derivative Works as a whole, provided Your use,
275
+ reproduction, and distribution of the Work otherwise complies with
276
+ the conditions stated in this License.
277
+
278
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
279
+ any Contribution intentionally submitted for inclusion in the Work
280
+ by You to the Licensor shall be under the terms and conditions of
281
+ this License, without any additional terms or conditions.
282
+ Notwithstanding the above, nothing herein shall supersede or modify
283
+ the terms of any separate license agreement you may have executed
284
+ with Licensor regarding such Contributions.
285
+
286
+ 6. Trademarks. This License does not grant permission to use the trade
287
+ names, trademarks, service marks, or product names of the Licensor,
288
+ except as required for reasonable and customary use in describing the
289
+ origin of the Work and reproducing the content of the NOTICE file.
290
+
291
+ 7. Disclaimer of Warranty. Unless required by applicable law or
292
+ agreed to in writing, Licensor provides the Work (and each
293
+ Contributor provides its Contributions) on an "AS IS" BASIS,
294
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
295
+ implied, including, without limitation, any warranties or conditions
296
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
297
+ PARTICULAR PURPOSE. You are solely responsible for determining the
298
+ appropriateness of using or redistributing the Work and assume any
299
+ risks associated with Your exercise of permissions under this License.
300
+
301
+ 8. Limitation of Liability. In no event and under no legal theory,
302
+ whether in tort (including negligence), contract, or otherwise,
303
+ unless required by applicable law (such as deliberate and grossly
304
+ negligent acts) or agreed to in writing, shall any Contributor be
305
+ liable to You for damages, including any direct, indirect, special,
306
+ incidental, or consequential damages of any character arising as a
307
+ result of this License or out of the use or inability to use the
308
+ Work (including but not limited to damages for loss of goodwill,
309
+ work stoppage, computer failure or malfunction, or any and all
310
+ other commercial damages or losses), even if such Contributor
311
+ has been advised of the possibility of such damages.
312
+
313
+ 9. Accepting Warranty or Additional Liability. While redistributing
314
+ the Work or Derivative Works thereof, You may choose to offer,
315
+ and charge a fee for, acceptance of support, warranty, indemnity,
316
+ or other liability obligations and/or rights consistent with this
317
+ License. However, in accepting such obligations, You may act only
318
+ on Your own behalf and on Your sole responsibility, not on behalf
319
+ of any other Contributor, and only if You agree to indemnify,
320
+ defend, and hold each Contributor harmless for any liability
321
+ incurred by, or claims asserted against, such Contributor by reason
322
+ of your accepting any such warranty or additional liability.
323
+
324
+ END OF TERMS AND CONDITIONS
325
+
326
+ APPENDIX: How to apply the Apache License to your work.
327
+
328
+ To apply the Apache License to your work, attach the following
329
+ boilerplate notice, with the fields enclosed by brackets "[]"
330
+ replaced with your own identifying information. (Don't include
331
+ the brackets!) The text should be enclosed in the appropriate
332
+ comment syntax for the file format. We also recommend that a
333
+ file or class name and description of purpose be included on the
334
+ same "printed page" as the copyright notice for easier
335
+ identification within third-party archives.
336
+
337
+ Copyright [yyyy] [name of copyright owner]
338
+
339
+ Licensed under the Apache License, Version 2.0 (the "License");
340
+ you may not use this file except in compliance with the License.
341
+ You may obtain a copy of the License at
342
+
343
+ http://www.apache.org/licenses/LICENSE-2.0
344
+
345
+ Unless required by applicable law or agreed to in writing, software
346
+ distributed under the License is distributed on an "AS IS" BASIS,
347
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
348
+ See the License for the specific language governing permissions and
349
+ limitations under the License.
350
+ ```
351
+
352
+ ## google.golang.org/grpc v1.83.2
353
+
354
+ License: Apache-2.0
355
+
356
+ Notice:
357
+
358
+ ```text
359
+ Copyright 2014 gRPC authors.
360
+
361
+ Licensed under the Apache License, Version 2.0 (the "License");
362
+ you may not use this file except in compliance with the License.
363
+ You may obtain a copy of the License at
364
+
365
+ http://www.apache.org/licenses/LICENSE-2.0
366
+
367
+ Unless required by applicable law or agreed to in writing, software
368
+ distributed under the License is distributed on an "AS IS" BASIS,
369
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
370
+ See the License for the specific language governing permissions and
371
+ limitations under the License.
372
+ ```
373
+
374
+ ```text
375
+ Apache License
376
+ Version 2.0, January 2004
377
+ http://www.apache.org/licenses/
378
+
379
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
380
+
381
+ 1. Definitions.
382
+
383
+ "License" shall mean the terms and conditions for use, reproduction,
384
+ and distribution as defined by Sections 1 through 9 of this document.
385
+
386
+ "Licensor" shall mean the copyright owner or entity authorized by
387
+ the copyright owner that is granting the License.
388
+
389
+ "Legal Entity" shall mean the union of the acting entity and all
390
+ other entities that control, are controlled by, or are under common
391
+ control with that entity. For the purposes of this definition,
392
+ "control" means (i) the power, direct or indirect, to cause the
393
+ direction or management of such entity, whether by contract or
394
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
395
+ outstanding shares, or (iii) beneficial ownership of such entity.
396
+
397
+ "You" (or "Your") shall mean an individual or Legal Entity
398
+ exercising permissions granted by this License.
399
+
400
+ "Source" form shall mean the preferred form for making modifications,
401
+ including but not limited to software source code, documentation
402
+ source, and configuration files.
403
+
404
+ "Object" form shall mean any form resulting from mechanical
405
+ transformation or translation of a Source form, including but
406
+ not limited to compiled object code, generated documentation,
407
+ and conversions to other media types.
408
+
409
+ "Work" shall mean the work of authorship, whether in Source or
410
+ Object form, made available under the License, as indicated by a
411
+ copyright notice that is included in or attached to the work
412
+ (an example is provided in the Appendix below).
413
+
414
+ "Derivative Works" shall mean any work, whether in Source or Object
415
+ form, that is based on (or derived from) the Work and for which the
416
+ editorial revisions, annotations, elaborations, or other modifications
417
+ represent, as a whole, an original work of authorship. For the purposes
418
+ of this License, Derivative Works shall not include works that remain
419
+ separable from, or merely link (or bind by name) to the interfaces of,
420
+ the Work and Derivative Works thereof.
421
+
422
+ "Contribution" shall mean any work of authorship, including
423
+ the original version of the Work and any modifications or additions
424
+ to that Work or Derivative Works thereof, that is intentionally
425
+ submitted to Licensor for inclusion in the Work by the copyright owner
426
+ or by an individual or Legal Entity authorized to submit on behalf of
427
+ the copyright owner. For the purposes of this definition, "submitted"
428
+ means any form of electronic, verbal, or written communication sent
429
+ to the Licensor or its representatives, including but not limited to
430
+ communication on electronic mailing lists, source code control systems,
431
+ and issue tracking systems that are managed by, or on behalf of, the
432
+ Licensor for the purpose of discussing and improving the Work, but
433
+ excluding communication that is conspicuously marked or otherwise
434
+ designated in writing by the copyright owner as "Not a Contribution."
435
+
436
+ "Contributor" shall mean Licensor and any individual or Legal Entity
437
+ on behalf of whom a Contribution has been received by Licensor and
438
+ subsequently incorporated within the Work.
439
+
440
+ 2. Grant of Copyright License. Subject to the terms and conditions of
441
+ this License, each Contributor hereby grants to You a perpetual,
442
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
443
+ copyright license to reproduce, prepare Derivative Works of,
444
+ publicly display, publicly perform, sublicense, and distribute the
445
+ Work and such Derivative Works in Source or Object form.
446
+
447
+ 3. Grant of Patent License. Subject to the terms and conditions of
448
+ this License, each Contributor hereby grants to You a perpetual,
449
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
450
+ (except as stated in this section) patent license to make, have made,
451
+ use, offer to sell, sell, import, and otherwise transfer the Work,
452
+ where such license applies only to those patent claims licensable
453
+ by such Contributor that are necessarily infringed by their
454
+ Contribution(s) alone or by combination of their Contribution(s)
455
+ with the Work to which such Contribution(s) was submitted. If You
456
+ institute patent litigation against any entity (including a
457
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
458
+ or a Contribution incorporated within the Work constitutes direct
459
+ or contributory patent infringement, then any patent licenses
460
+ granted to You under this License for that Work shall terminate
461
+ as of the date such litigation is filed.
462
+
463
+ 4. Redistribution. You may reproduce and distribute copies of the
464
+ Work or Derivative Works thereof in any medium, with or without
465
+ modifications, and in Source or Object form, provided that You
466
+ meet the following conditions:
467
+
468
+ (a) You must give any other recipients of the Work or
469
+ Derivative Works a copy of this License; and
470
+
471
+ (b) You must cause any modified files to carry prominent notices
472
+ stating that You changed the files; and
473
+
474
+ (c) You must retain, in the Source form of any Derivative Works
475
+ that You distribute, all copyright, patent, trademark, and
476
+ attribution notices from the Source form of the Work,
477
+ excluding those notices that do not pertain to any part of
478
+ the Derivative Works; and
479
+
480
+ (d) If the Work includes a "NOTICE" text file as part of its
481
+ distribution, then any Derivative Works that You distribute must
482
+ include a readable copy of the attribution notices contained
483
+ within such NOTICE file, excluding those notices that do not
484
+ pertain to any part of the Derivative Works, in at least one
485
+ of the following places: within a NOTICE text file distributed
486
+ as part of the Derivative Works; within the Source form or
487
+ documentation, if provided along with the Derivative Works; or,
488
+ within a display generated by the Derivative Works, if and
489
+ wherever such third-party notices normally appear. The contents
490
+ of the NOTICE file are for informational purposes only and
491
+ do not modify the License. You may add Your own attribution
492
+ notices within Derivative Works that You distribute, alongside
493
+ or as an addendum to the NOTICE text from the Work, provided
494
+ that such additional attribution notices cannot be construed
495
+ as modifying the License.
496
+
497
+ You may add Your own copyright statement to Your modifications and
498
+ may provide additional or different license terms and conditions
499
+ for use, reproduction, or distribution of Your modifications, or
500
+ for any such Derivative Works as a whole, provided Your use,
501
+ reproduction, and distribution of the Work otherwise complies with
502
+ the conditions stated in this License.
503
+
504
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
505
+ any Contribution intentionally submitted for inclusion in the Work
506
+ by You to the Licensor shall be under the terms and conditions of
507
+ this License, without any additional terms or conditions.
508
+ Notwithstanding the above, nothing herein shall supersede or modify
509
+ the terms of any separate license agreement you may have executed
510
+ with Licensor regarding such Contributions.
511
+
512
+ 6. Trademarks. This License does not grant permission to use the trade
513
+ names, trademarks, service marks, or product names of the Licensor,
514
+ except as required for reasonable and customary use in describing the
515
+ origin of the Work and reproducing the content of the NOTICE file.
516
+
517
+ 7. Disclaimer of Warranty. Unless required by applicable law or
518
+ agreed to in writing, Licensor provides the Work (and each
519
+ Contributor provides its Contributions) on an "AS IS" BASIS,
520
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
521
+ implied, including, without limitation, any warranties or conditions
522
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
523
+ PARTICULAR PURPOSE. You are solely responsible for determining the
524
+ appropriateness of using or redistributing the Work and assume any
525
+ risks associated with Your exercise of permissions under this License.
526
+
527
+ 8. Limitation of Liability. In no event and under no legal theory,
528
+ whether in tort (including negligence), contract, or otherwise,
529
+ unless required by applicable law (such as deliberate and grossly
530
+ negligent acts) or agreed to in writing, shall any Contributor be
531
+ liable to You for damages, including any direct, indirect, special,
532
+ incidental, or consequential damages of any character arising as a
533
+ result of this License or out of the use or inability to use the
534
+ Work (including but not limited to damages for loss of goodwill,
535
+ work stoppage, computer failure or malfunction, or any and all
536
+ other commercial damages or losses), even if such Contributor
537
+ has been advised of the possibility of such damages.
538
+
539
+ 9. Accepting Warranty or Additional Liability. While redistributing
540
+ the Work or Derivative Works thereof, You may choose to offer,
541
+ and charge a fee for, acceptance of support, warranty, indemnity,
542
+ or other liability obligations and/or rights consistent with this
543
+ License. However, in accepting such obligations, You may act only
544
+ on Your own behalf and on Your sole responsibility, not on behalf
545
+ of any other Contributor, and only if You agree to indemnify,
546
+ defend, and hold each Contributor harmless for any liability
547
+ incurred by, or claims asserted against, such Contributor by reason
548
+ of your accepting any such warranty or additional liability.
549
+
550
+ END OF TERMS AND CONDITIONS
551
+
552
+ APPENDIX: How to apply the Apache License to your work.
553
+
554
+ To apply the Apache License to your work, attach the following
555
+ boilerplate notice, with the fields enclosed by brackets "[]"
556
+ replaced with your own identifying information. (Don't include
557
+ the brackets!) The text should be enclosed in the appropriate
558
+ comment syntax for the file format. We also recommend that a
559
+ file or class name and description of purpose be included on the
560
+ same "printed page" as the copyright notice for easier
561
+ identification within third-party archives.
562
+
563
+ Copyright [yyyy] [name of copyright owner]
564
+
565
+ Licensed under the Apache License, Version 2.0 (the "License");
566
+ you may not use this file except in compliance with the License.
567
+ You may obtain a copy of the License at
568
+
569
+ http://www.apache.org/licenses/LICENSE-2.0
570
+
571
+ Unless required by applicable law or agreed to in writing, software
572
+ distributed under the License is distributed on an "AS IS" BASIS,
573
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
574
+ See the License for the specific language governing permissions and
575
+ limitations under the License.
576
+ ```
577
+
578
+ ## google.golang.org/protobuf v1.36.11
579
+
580
+ License: BSD-3-Clause
581
+
582
+ ```text
583
+ Copyright (c) 2018 The Go Authors. All rights reserved.
584
+
585
+ Redistribution and use in source and binary forms, with or without
586
+ modification, are permitted provided that the following conditions are
587
+ met:
588
+
589
+ * Redistributions of source code must retain the above copyright
590
+ notice, this list of conditions and the following disclaimer.
591
+ * Redistributions in binary form must reproduce the above
592
+ copyright notice, this list of conditions and the following disclaimer
593
+ in the documentation and/or other materials provided with the
594
+ distribution.
595
+ * Neither the name of Google Inc. nor the names of its
596
+ contributors may be used to endorse or promote products derived from
597
+ this software without specific prior written permission.
598
+
599
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
600
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
601
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
602
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
603
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
604
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
605
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
606
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
607
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
608
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
609
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
610
+ ```
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"action-policy.d.ts","sourceRoot":"","sources":["../../src/action-policy.ts"],"names":[],"mappings":"AAWA,OAAO,EAGL,aAAa,EACb,KAAK,qBAAqB,EAC3B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,kBAAkB,kLAWpB,CAAC;AAIZ,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAAC;IACpC,YAAY,EAAE,oBAAoB,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,2BAA4B,SAAQ,KAAK;CAAG;AAEzD,qBAAa,qBAAsB,YAAW,uBAAuB;;gBAKvD,aAAa,EAAE,MAAM;IAK3B,IAAI,CACR,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,UAAU,SAAmB,GAC5B,OAAO,CAAC,kBAAkB,CAAC;IA6B9B,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAW/B,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAqBlE;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,GAC5B,kBAAkB,CAoDpB;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,iBAAiB,CAgBnE"}
1
+ {"version":3,"file":"action-policy.d.ts","sourceRoot":"","sources":["../../src/action-policy.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,aAAa,EACb,KAAK,qBAAqB,EAC3B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,kBAAkB,kLAWpB,CAAC;AAIZ,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAAC;IACpC,YAAY,EAAE,oBAAoB,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,2BAA4B,SAAQ,KAAK;CAAG;AAEzD,qBAAa,qBAAsB,YAAW,uBAAuB;;gBAKvD,aAAa,EAAE,MAAM;IAK3B,IAAI,CACR,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,UAAU,SAAmB,GAC5B,OAAO,CAAC,kBAAkB,CAAC;IA6B9B,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAW/B,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAqBlE;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,GAC5B,kBAAkB,CAoDpB;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,iBAAiB,CAgBnE"}
@@ -1,3 +1,4 @@
1
+ import { makeDirectoryPrivate } from "./private-directory.js";
1
2
  import { randomUUID } from "node:crypto";
2
3
  import { unlinkSync } from "node:fs";
3
4
  import { chmod, mkdir, readFile, rename, unlink, writeFile, } from "node:fs/promises";
@@ -30,7 +31,7 @@ export class FileActionPolicyStore {
30
31
  const value = policyForStorage(machineId, policy);
31
32
  this.#requireCurrentGeneration(generation);
32
33
  await mkdir(this.#dataDirectory, { recursive: true, mode: 0o700 });
33
- await chmod(this.#dataDirectory, 0o700);
34
+ await makeDirectoryPrivate(this.#dataDirectory);
34
35
  const temporaryPath = `${this.#path}.${process.pid}.${randomUUID()}.tmp`;
35
36
  let promoted = false;
36
37
  try {
@@ -250,7 +251,8 @@ function compileGlob(pattern) {
250
251
  throw new Error("Character classes are not supported in action policy globs.");
251
252
  }
252
253
  else {
253
- expression += character.replace(/[\\^$+?.()|{}]/gu, "\\$&");
254
+ // "]" must be escaped too: a lone one is a syntax error in unicode mode.
255
+ expression += character.replace(/[\\^$+?.()|{}\]]/gu, "\\$&");
254
256
  }
255
257
  }
256
258
  return new RegExp(`${expression}$`, "u");