@hraness/wordcell 0.20.0-bootstrap.1

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 (215) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +749 -0
  3. package/dist/agent-context.js +35 -0
  4. package/dist/agent-guide-audit.js +18 -0
  5. package/dist/attachments.js +19 -0
  6. package/dist/authoring.js +33 -0
  7. package/dist/benchmark.js +19 -0
  8. package/dist/capture.js +49 -0
  9. package/dist/cli.js +57 -0
  10. package/dist/clip/acquire.js +57 -0
  11. package/dist/clip/args.js +21 -0
  12. package/dist/clip/bounded-byte-buffer.js +9 -0
  13. package/dist/clip/browser-profiles.js +17 -0
  14. package/dist/clip/bundle-reader.js +11 -0
  15. package/dist/clip/cli.js +27 -0
  16. package/dist/clip/cookies.js +21 -0
  17. package/dist/clip/defuddle-worker.js +84 -0
  18. package/dist/clip/doctor.js +32 -0
  19. package/dist/clip/jobs.js +784 -0
  20. package/dist/clip/network-proxy.js +9 -0
  21. package/dist/clip/network.js +28 -0
  22. package/dist/clip/persist.js +30 -0
  23. package/dist/clip/refresh.js +11 -0
  24. package/dist/clip/terminal.js +11 -0
  25. package/dist/evaluation-builder.js +12238 -0
  26. package/dist/evaluation-kb.js +26 -0
  27. package/dist/evaluation.js +35 -0
  28. package/dist/git.js +39 -0
  29. package/dist/graph.js +41 -0
  30. package/dist/index-054mb7d3.js +1974 -0
  31. package/dist/index-06c9ctr6.js +738 -0
  32. package/dist/index-180zbkkt.js +2480 -0
  33. package/dist/index-1gwbassd.js +743 -0
  34. package/dist/index-1xxnjn0d.js +171 -0
  35. package/dist/index-23z4zxgg.js +119 -0
  36. package/dist/index-2gv8y733.js +432 -0
  37. package/dist/index-3ehtt59c.js +199 -0
  38. package/dist/index-3rm7cz6h.js +373 -0
  39. package/dist/index-48pz4jpc.js +392 -0
  40. package/dist/index-4j3tt0c3.js +234 -0
  41. package/dist/index-5n05se68.js +307 -0
  42. package/dist/index-5vwpzb5a.js +764 -0
  43. package/dist/index-6jcz0m1c.js +712 -0
  44. package/dist/index-6sw24nvv.js +1189 -0
  45. package/dist/index-8a08v6x8.js +56 -0
  46. package/dist/index-adx6khj5.js +488 -0
  47. package/dist/index-b88v3vtm.js +805 -0
  48. package/dist/index-bcknqxrq.js +1943 -0
  49. package/dist/index-bs0yf4pp.js +711 -0
  50. package/dist/index-by0pbant.js +827 -0
  51. package/dist/index-d13v9ckt.js +150 -0
  52. package/dist/index-dfag79p7.js +370 -0
  53. package/dist/index-e4fagfjz.js +44 -0
  54. package/dist/index-e5fbsywq.js +658 -0
  55. package/dist/index-ekpwvbra.js +1070 -0
  56. package/dist/index-f984hw45.js +927 -0
  57. package/dist/index-gh719d91.js +63 -0
  58. package/dist/index-h170byqw.js +371 -0
  59. package/dist/index-hgve9rh2.js +2046 -0
  60. package/dist/index-hya40gb2.js +474 -0
  61. package/dist/index-j4zgmzjr.js +152 -0
  62. package/dist/index-m7et4rz4.js +966 -0
  63. package/dist/index-mxxxytys.js +1254 -0
  64. package/dist/index-n05s3wsb.js +2728 -0
  65. package/dist/index-nd6nynv2.js +1162 -0
  66. package/dist/index-npg9z1a4.js +431 -0
  67. package/dist/index-pj501bh1.js +140 -0
  68. package/dist/index-rdd5f7jj.js +70 -0
  69. package/dist/index-sy0zety7.js +3630 -0
  70. package/dist/index-tkpxp48t.js +1166 -0
  71. package/dist/index-w2zc0vwa.js +571 -0
  72. package/dist/index-why54q5p.js +462 -0
  73. package/dist/index-x3fthpsc.js +585 -0
  74. package/dist/index-x6m57nfc.js +1041 -0
  75. package/dist/index.js +784 -0
  76. package/dist/kb-alias.js +55 -0
  77. package/dist/navigation.js +13 -0
  78. package/dist/pdf.js +85 -0
  79. package/dist/percolate.js +44 -0
  80. package/dist/portfolio.js +77 -0
  81. package/dist/query.js +29 -0
  82. package/dist/repository-memory.js +60 -0
  83. package/dist/sdk.js +36 -0
  84. package/dist/search-rules.js +34 -0
  85. package/dist/search.js +22 -0
  86. package/dist/semantic.js +39 -0
  87. package/dist/source-inbox.js +17 -0
  88. package/dist/untrusted-content.js +32 -0
  89. package/dist/url-intelligence.js +74 -0
  90. package/dist/workflow.js +23 -0
  91. package/dist/workflows/decision-context.js +20 -0
  92. package/dist/workflows/explain-change.js +8 -0
  93. package/dist/workflows/index.js +28 -0
  94. package/dist/workflows/plan-radar.js +10 -0
  95. package/package.json +421 -0
  96. package/skills/wordcell/AGENTS.md +22 -0
  97. package/skills/wordcell/SKILL.md +91 -0
  98. package/skills/wordcell/agents/openai.yaml +4 -0
  99. package/skills/wordcell/references/companion-skills.md +96 -0
  100. package/skills/wordcell/references/customize.md +123 -0
  101. package/skills/wordcell/references/pdf-review.md +51 -0
  102. package/skills/wordcell/references/percolate.md +176 -0
  103. package/skills/wordcell/references/plan-structure.md +105 -0
  104. package/skills/wordcell/references/plan.md +115 -0
  105. package/skills/wordcell/references/query.md +252 -0
  106. package/skills/wordcell/references/refresh.md +133 -0
  107. package/skills/wordcell/references/save-pdf.md +125 -0
  108. package/skills/wordcell/references/save-url.md +178 -0
  109. package/skills/wordcell/references/url-authentication.md +75 -0
  110. package/skills/wordcell/references/url-platforms.md +25 -0
  111. package/skills/wordcell/templates/companion-skill.template.md +57 -0
  112. package/src/agent-context.ts +1241 -0
  113. package/src/agent-guide-audit.ts +750 -0
  114. package/src/attachments.ts +723 -0
  115. package/src/authoring-model.ts +798 -0
  116. package/src/authoring-platform.ts +549 -0
  117. package/src/authoring-program.ts +278 -0
  118. package/src/authoring-runtime.ts +54 -0
  119. package/src/authoring.ts +75 -0
  120. package/src/benchmark.ts +362 -0
  121. package/src/capture.ts +68 -0
  122. package/src/cli-program.ts +3662 -0
  123. package/src/cli.ts +6 -0
  124. package/src/clip/acquire.ts +1273 -0
  125. package/src/clip/archive-today.ts +402 -0
  126. package/src/clip/args.ts +423 -0
  127. package/src/clip/assets.ts +262 -0
  128. package/src/clip/bounded-byte-buffer.ts +75 -0
  129. package/src/clip/browser-profiles.ts +372 -0
  130. package/src/clip/bundle-reader.ts +608 -0
  131. package/src/clip/capture.ts +1054 -0
  132. package/src/clip/cli.ts +181 -0
  133. package/src/clip/cookies.ts +512 -0
  134. package/src/clip/doctor.ts +1110 -0
  135. package/src/clip/extract.ts +868 -0
  136. package/src/clip/jobs.ts +959 -0
  137. package/src/clip/lib.ts +861 -0
  138. package/src/clip/media.ts +1474 -0
  139. package/src/clip/metadata-search-tool/Cargo.lock +2498 -0
  140. package/src/clip/metadata-search-tool/Cargo.toml +18 -0
  141. package/src/clip/metadata-search-tool/runner.ts +685 -0
  142. package/src/clip/metadata-search-tool/src/main.rs +389 -0
  143. package/src/clip/metadata-search.ts +687 -0
  144. package/src/clip/network-proxy.ts +627 -0
  145. package/src/clip/network.ts +950 -0
  146. package/src/clip/package-root.ts +54 -0
  147. package/src/clip/persist.ts +1472 -0
  148. package/src/clip/platforms.ts +1824 -0
  149. package/src/clip/refresh.ts +197 -0
  150. package/src/clip/structured.ts +432 -0
  151. package/src/clip/terminal.ts +197 -0
  152. package/src/clip/url-intelligence.ts +581 -0
  153. package/src/clip/url-metadata-backfill.ts +616 -0
  154. package/src/clip/url-metadata-cli.ts +251 -0
  155. package/src/clip/url-metadata.ts +1397 -0
  156. package/src/evaluation-analysis-v2.ts +1440 -0
  157. package/src/evaluation-builder.ts +2539 -0
  158. package/src/evaluation-corpus-authoring.ts +2052 -0
  159. package/src/evaluation-evidence.ts +1147 -0
  160. package/src/evaluation-execution-v2.ts +426 -0
  161. package/src/evaluation-implementation.ts +131 -0
  162. package/src/evaluation-kb-closure.ts +1430 -0
  163. package/src/evaluation-kb-runner-v2.ts +735 -0
  164. package/src/evaluation-kb-v2.ts +2567 -0
  165. package/src/evaluation-kb.ts +1018 -0
  166. package/src/evaluation-measurement-v2.ts +1462 -0
  167. package/src/evaluation-packing-v2.ts +452 -0
  168. package/src/evaluation-redaction.ts +28 -0
  169. package/src/evaluation-v2.ts +3857 -0
  170. package/src/evaluation.ts +1220 -0
  171. package/src/git.ts +1276 -0
  172. package/src/graph.ts +1494 -0
  173. package/src/index.ts +21 -0
  174. package/src/init.ts +123 -0
  175. package/src/kb-alias.ts +14 -0
  176. package/src/navigation.ts +277 -0
  177. package/src/note-lock.ts +529 -0
  178. package/src/oh-adoption.ts +444 -0
  179. package/src/pdf/args.ts +202 -0
  180. package/src/pdf/capture.ts +298 -0
  181. package/src/pdf/cli.ts +159 -0
  182. package/src/pdf/extract.ts +303 -0
  183. package/src/pdf/layout.ts +618 -0
  184. package/src/pdf/markdown.ts +154 -0
  185. package/src/pdf/model.ts +234 -0
  186. package/src/pdf/ocr.ts +190 -0
  187. package/src/pdf/persist.ts +314 -0
  188. package/src/pdf/source.ts +135 -0
  189. package/src/pdf/tools.ts +146 -0
  190. package/src/pdf.ts +92 -0
  191. package/src/percolate.ts +1948 -0
  192. package/src/portfolio-audit.ts +574 -0
  193. package/src/portfolio-identity.ts +162 -0
  194. package/src/portfolio-registry.ts +473 -0
  195. package/src/portfolio.ts +765 -0
  196. package/src/query.ts +646 -0
  197. package/src/repository-memory.ts +1150 -0
  198. package/src/sdk.ts +1452 -0
  199. package/src/search-rules.ts +712 -0
  200. package/src/search.ts +710 -0
  201. package/src/semantic-runtime.ts +1139 -0
  202. package/src/semantic.ts +2480 -0
  203. package/src/source-inbox.ts +232 -0
  204. package/src/untrusted-content.ts +401 -0
  205. package/src/url-intelligence.ts +104 -0
  206. package/src/vault.ts +636 -0
  207. package/src/workflow-model.ts +444 -0
  208. package/src/workflow-platform.ts +74 -0
  209. package/src/workflow-program.ts +183 -0
  210. package/src/workflow-runtime.ts +51 -0
  211. package/src/workflow.ts +23 -0
  212. package/src/workflows/decision-context.ts +81 -0
  213. package/src/workflows/explain-change.ts +73 -0
  214. package/src/workflows/index.ts +3 -0
  215. package/src/workflows/plan-radar.ts +101 -0
@@ -0,0 +1,35 @@
1
+ // @bun
2
+ import {
3
+ AgentContextRepositoryPathError,
4
+ RepositoryScopeError,
5
+ agentContextDirectory,
6
+ agentContextGuidePath,
7
+ agentContextHashLength,
8
+ agentContextMarkerForScope,
9
+ agentContextNoteId,
10
+ agentContextNotePath,
11
+ agentContextSlugMaximumLength,
12
+ agentContextType,
13
+ analyzeAgentContexts,
14
+ formatAgentContextMarker,
15
+ inspectAgentContextRepository,
16
+ normalizeRepositoryScope,
17
+ parseAgentContextMarker
18
+ } from "./index-5vwpzb5a.js";
19
+ export {
20
+ parseAgentContextMarker,
21
+ normalizeRepositoryScope,
22
+ inspectAgentContextRepository,
23
+ formatAgentContextMarker,
24
+ analyzeAgentContexts,
25
+ agentContextType,
26
+ agentContextSlugMaximumLength,
27
+ agentContextNotePath,
28
+ agentContextNoteId,
29
+ agentContextMarkerForScope,
30
+ agentContextHashLength,
31
+ agentContextGuidePath,
32
+ agentContextDirectory,
33
+ RepositoryScopeError,
34
+ AgentContextRepositoryPathError
35
+ };
@@ -0,0 +1,18 @@
1
+ // @bun
2
+ import {
3
+ auditAgentGuideRepository,
4
+ auditAgentGuideSource,
5
+ auditAgentGuides,
6
+ compareAgentGuideAudits,
7
+ defaultAgentGuideIgnoredDirectories,
8
+ discoverAgentGuides
9
+ } from "./index-hya40gb2.js";
10
+ import"./index-5vwpzb5a.js";
11
+ export {
12
+ discoverAgentGuides,
13
+ defaultAgentGuideIgnoredDirectories,
14
+ compareAgentGuideAudits,
15
+ auditAgentGuides,
16
+ auditAgentGuideSource,
17
+ auditAgentGuideRepository
18
+ };
@@ -0,0 +1,19 @@
1
+ // @bun
2
+ import {
3
+ MAX_ATTACHMENT_PATH_BYTES,
4
+ MAX_ATTACHMENT_REFERENCES,
5
+ MAX_ATTACHMENT_SCAN_ENTRIES,
6
+ MAX_ATTACHMENT_SOURCE_BYTES,
7
+ parseLocalAttachmentReferences,
8
+ validateAttachmentReferences,
9
+ validateMarkdownAttachments
10
+ } from "./index-x3fthpsc.js";
11
+ export {
12
+ validateMarkdownAttachments,
13
+ validateAttachmentReferences,
14
+ parseLocalAttachmentReferences,
15
+ MAX_ATTACHMENT_SOURCE_BYTES,
16
+ MAX_ATTACHMENT_SCAN_ENTRIES,
17
+ MAX_ATTACHMENT_REFERENCES,
18
+ MAX_ATTACHMENT_PATH_BYTES
19
+ };
@@ -0,0 +1,33 @@
1
+ // @bun
2
+ import {
3
+ InvalidCanonicalNoteIdError,
4
+ NoteAlreadyExistsError,
5
+ NoteRecoveryRequiredError,
6
+ NoteRevisionConflictError,
7
+ addNoteRelation,
8
+ canonicalNoteId,
9
+ canonicalRelationTarget,
10
+ createConceptNote,
11
+ createNote,
12
+ listNoteRelations,
13
+ normalizeRelationPredicate,
14
+ noteRevision,
15
+ removeNoteRelation
16
+ } from "./index-6sw24nvv.js";
17
+ import"./index-3rm7cz6h.js";
18
+ import"./index-ekpwvbra.js";
19
+ export {
20
+ removeNoteRelation,
21
+ noteRevision,
22
+ normalizeRelationPredicate,
23
+ listNoteRelations,
24
+ createNote,
25
+ createConceptNote,
26
+ canonicalRelationTarget,
27
+ canonicalNoteId,
28
+ addNoteRelation,
29
+ NoteRevisionConflictError,
30
+ NoteRecoveryRequiredError,
31
+ NoteAlreadyExistsError,
32
+ InvalidCanonicalNoteIdError
33
+ };
@@ -0,0 +1,19 @@
1
+ // @bun
2
+ import {
3
+ createRepresentativeRetrievalFixture,
4
+ createSyntheticRankFusionFixture,
5
+ evaluateRanking,
6
+ evaluateRetrievalBenchmark
7
+ } from "./index-3ehtt59c.js";
8
+ import"./index-why54q5p.js";
9
+ import"./index-48pz4jpc.js";
10
+ import"./index-06c9ctr6.js";
11
+ import"./index-d13v9ckt.js";
12
+ import"./index-5vwpzb5a.js";
13
+ import"./index-ekpwvbra.js";
14
+ export {
15
+ evaluateRetrievalBenchmark,
16
+ evaluateRanking,
17
+ createSyntheticRankFusionFixture,
18
+ createRepresentativeRetrievalFixture
19
+ };
@@ -0,0 +1,49 @@
1
+ // @bun
2
+ import {
3
+ captureExitCode,
4
+ captureSucceeded,
5
+ captureSummary,
6
+ main,
7
+ runCapture
8
+ } from "./index-180zbkkt.js";
9
+ import"./index-6jcz0m1c.js";
10
+ import"./index-f984hw45.js";
11
+ import {
12
+ adapterCapabilities,
13
+ inspectClipEnvironment,
14
+ renderDoctorReport
15
+ } from "./index-by0pbant.js";
16
+ import"./index-x6m57nfc.js";
17
+ import"./index-hgve9rh2.js";
18
+ import"./index-w2zc0vwa.js";
19
+ import"./index-e5fbsywq.js";
20
+ import {
21
+ parseArguments
22
+ } from "./index-dfag79p7.js";
23
+ import"./index-gh719d91.js";
24
+ import"./index-mxxxytys.js";
25
+ import"./index-2gv8y733.js";
26
+ import"./index-1xxnjn0d.js";
27
+ import"./index-5n05se68.js";
28
+
29
+ // src/capture.ts
30
+ var adapterCapabilities2 = adapterCapabilities;
31
+ var captureExitCode2 = (...arguments_) => captureExitCode(...arguments_);
32
+ var captureSucceeded2 = (...arguments_) => captureSucceeded(...arguments_);
33
+ var captureSummary2 = (...arguments_) => captureSummary(...arguments_);
34
+ var clipMain = (...arguments_) => main(...arguments_);
35
+ var inspectClipEnvironment2 = (...arguments_) => inspectClipEnvironment(...arguments_);
36
+ var parseCaptureArguments = (...arguments_) => parseArguments(...arguments_);
37
+ var renderDoctorReport2 = (...arguments_) => renderDoctorReport(...arguments_);
38
+ var runCapture2 = (...arguments_) => runCapture(...arguments_);
39
+ export {
40
+ runCapture2 as runCapture,
41
+ renderDoctorReport2 as renderDoctorReport,
42
+ parseCaptureArguments,
43
+ inspectClipEnvironment2 as inspectClipEnvironment,
44
+ clipMain,
45
+ captureSummary2 as captureSummary,
46
+ captureSucceeded2 as captureSucceeded,
47
+ captureExitCode2 as captureExitCode,
48
+ adapterCapabilities2 as adapterCapabilities
49
+ };
package/dist/cli.js ADDED
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env bun
2
+ // @bun
3
+ import {
4
+ main,
5
+ parseArguments,
6
+ runExecutable,
7
+ usage
8
+ } from "./index-sy0zety7.js";
9
+ import"./index-bcknqxrq.js";
10
+ import"./index-054mb7d3.js";
11
+ import"./index-tkpxp48t.js";
12
+ import"./index-j4zgmzjr.js";
13
+ import"./index-npg9z1a4.js";
14
+ import"./index-23z4zxgg.js";
15
+ import"./index-pj501bh1.js";
16
+ import"./index-bs0yf4pp.js";
17
+ import"./index-nd6nynv2.js";
18
+ import"./index-m7et4rz4.js";
19
+ import"./index-adx6khj5.js";
20
+ import"./index-n05s3wsb.js";
21
+ import"./index-4j3tt0c3.js";
22
+ import"./index-1gwbassd.js";
23
+ import"./index-b88v3vtm.js";
24
+ import"./index-hya40gb2.js";
25
+ import"./index-x3fthpsc.js";
26
+ import"./index-6sw24nvv.js";
27
+ import"./index-3rm7cz6h.js";
28
+ import"./index-why54q5p.js";
29
+ import"./index-48pz4jpc.js";
30
+ import"./index-06c9ctr6.js";
31
+ import"./index-d13v9ckt.js";
32
+ import"./index-5vwpzb5a.js";
33
+ import"./index-ekpwvbra.js";
34
+ import"./index-180zbkkt.js";
35
+ import"./index-6jcz0m1c.js";
36
+ import"./index-f984hw45.js";
37
+ import"./index-by0pbant.js";
38
+ import"./index-x6m57nfc.js";
39
+ import"./index-hgve9rh2.js";
40
+ import"./index-w2zc0vwa.js";
41
+ import"./index-e5fbsywq.js";
42
+ import"./index-dfag79p7.js";
43
+ import"./index-gh719d91.js";
44
+ import"./index-mxxxytys.js";
45
+ import"./index-2gv8y733.js";
46
+ import"./index-1xxnjn0d.js";
47
+ import"./index-5n05se68.js";
48
+
49
+ // src/cli.ts
50
+ if (import.meta.main)
51
+ process.exitCode = await runExecutable();
52
+ export {
53
+ usage,
54
+ runExecutable,
55
+ parseArguments,
56
+ main
57
+ };
@@ -0,0 +1,57 @@
1
+ // @bun
2
+ import {
3
+ acquireBrowser,
4
+ acquireCookieHeader,
5
+ acquireCookieHttp,
6
+ acquireCookieRecords,
7
+ acquireFile,
8
+ acquireHttp,
9
+ agentBrowserCommand,
10
+ assertSafePersistentProfile,
11
+ browserCookieCommands,
12
+ browserExpansionLimits,
13
+ browserExpansionScript,
14
+ browserExpansionStayedOnPage,
15
+ browserExpansionWarnings,
16
+ browserNavigationReachedTarget,
17
+ browserProxyArguments,
18
+ createCookieHeaderReader,
19
+ createCookieRecordReader,
20
+ discoverChromeProfiles,
21
+ isolatedAgentBrowserEnvironment,
22
+ mergeRenderedTextSnapshots,
23
+ readBrowserExpansionTelemetry,
24
+ seedOwnedBrowserCookies
25
+ } from "../index-x6m57nfc.js";
26
+ import"../index-hgve9rh2.js";
27
+ import"../index-w2zc0vwa.js";
28
+ import"../index-e5fbsywq.js";
29
+ import"../index-dfag79p7.js";
30
+ import"../index-gh719d91.js";
31
+ import"../index-mxxxytys.js";
32
+ import"../index-2gv8y733.js";
33
+ import"../index-1xxnjn0d.js";
34
+ export {
35
+ seedOwnedBrowserCookies,
36
+ readBrowserExpansionTelemetry,
37
+ mergeRenderedTextSnapshots,
38
+ isolatedAgentBrowserEnvironment,
39
+ discoverChromeProfiles,
40
+ createCookieRecordReader,
41
+ createCookieHeaderReader,
42
+ browserProxyArguments,
43
+ browserNavigationReachedTarget,
44
+ browserExpansionWarnings,
45
+ browserExpansionStayedOnPage,
46
+ browserExpansionScript,
47
+ browserExpansionLimits,
48
+ browserCookieCommands,
49
+ assertSafePersistentProfile,
50
+ agentBrowserCommand,
51
+ acquireHttp,
52
+ acquireFile,
53
+ acquireCookieRecords,
54
+ acquireCookieHttp,
55
+ acquireCookieHeader,
56
+ acquireBrowser
57
+ };
@@ -0,0 +1,21 @@
1
+ // @bun
2
+ import {
3
+ captureModes,
4
+ captureScopes,
5
+ captureUrl,
6
+ cookieSources,
7
+ evidenceModes,
8
+ mediaModes,
9
+ parseArguments,
10
+ usage
11
+ } from "../index-dfag79p7.js";
12
+ export {
13
+ usage,
14
+ parseArguments,
15
+ mediaModes,
16
+ evidenceModes,
17
+ cookieSources,
18
+ captureUrl,
19
+ captureScopes,
20
+ captureModes
21
+ };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ BoundedByteBuffer,
4
+ readBoundedByteStream
5
+ } from "../index-gh719d91.js";
6
+ export {
7
+ readBoundedByteStream,
8
+ BoundedByteBuffer
9
+ };
@@ -0,0 +1,17 @@
1
+ // @bun
2
+ import {
3
+ BrowserProfileSnapshotError,
4
+ cloneBrowserProfile,
5
+ cloneProfile,
6
+ copyBoundedLocalState,
7
+ isSafeNamedProfile,
8
+ profilePath
9
+ } from "../index-5n05se68.js";
10
+ export {
11
+ profilePath,
12
+ isSafeNamedProfile,
13
+ copyBoundedLocalState,
14
+ cloneProfile,
15
+ cloneBrowserProfile,
16
+ BrowserProfileSnapshotError
17
+ };
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ readCaptureBundle,
4
+ verifyCaptureBundle
5
+ } from "../index-npg9z1a4.js";
6
+ import"../index-mxxxytys.js";
7
+ import"../index-1xxnjn0d.js";
8
+ export {
9
+ verifyCaptureBundle,
10
+ readCaptureBundle
11
+ };
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env bun
2
+ // @bun
3
+ import {
4
+ captureExitCode,
5
+ captureSucceeded,
6
+ captureSummary,
7
+ main
8
+ } from "../index-180zbkkt.js";
9
+ import"../index-6jcz0m1c.js";
10
+ import"../index-f984hw45.js";
11
+ import"../index-by0pbant.js";
12
+ import"../index-x6m57nfc.js";
13
+ import"../index-hgve9rh2.js";
14
+ import"../index-w2zc0vwa.js";
15
+ import"../index-e5fbsywq.js";
16
+ import"../index-dfag79p7.js";
17
+ import"../index-gh719d91.js";
18
+ import"../index-mxxxytys.js";
19
+ import"../index-2gv8y733.js";
20
+ import"../index-1xxnjn0d.js";
21
+ import"../index-5n05se68.js";
22
+ export {
23
+ main,
24
+ captureSummary,
25
+ captureSucceeded,
26
+ captureExitCode
27
+ };
@@ -0,0 +1,21 @@
1
+ // @bun
2
+ import {
3
+ MAX_COOKIE_BYTES,
4
+ MAX_COOKIE_RECORDS,
5
+ filterCookieProviderResult,
6
+ filterCookies,
7
+ parseCookiePayload,
8
+ readCookieFile,
9
+ renderCookieHeader,
10
+ renderNetscapeCookieJar
11
+ } from "../index-2gv8y733.js";
12
+ export {
13
+ renderNetscapeCookieJar,
14
+ renderCookieHeader,
15
+ readCookieFile,
16
+ parseCookiePayload,
17
+ filterCookies,
18
+ filterCookieProviderResult,
19
+ MAX_COOKIE_RECORDS,
20
+ MAX_COOKIE_BYTES
21
+ };
@@ -0,0 +1,84 @@
1
+ // @bun
2
+ // src/clip/defuddle-worker.ts
3
+ import { Defuddle } from "defuddle/node";
4
+ var workerGlobal = globalThis;
5
+ function asciiCaseEqualAt(value, offset, expected, end = value.length) {
6
+ if (offset < 0 || offset + expected.length > end)
7
+ return false;
8
+ for (let index = 0;index < expected.length; index += 1) {
9
+ const actual = value.charCodeAt(offset + index);
10
+ const folded = actual >= 65 && actual <= 90 ? actual + 32 : actual;
11
+ if (folded !== expected.charCodeAt(index))
12
+ return false;
13
+ }
14
+ return true;
15
+ }
16
+ function isTagBoundary(code) {
17
+ return code === 62 || code === 47 || code === 32 || code === 9 || code === 10 || code === 12 || code === 13;
18
+ }
19
+ function decodeHtmlAttribute(value) {
20
+ return value.replace(/&amp;/gi, "&").replace(/&quot;/gi, '"').replace(/&#39;|&apos;/gi, "'").replace(/&#(?:x([0-9a-f]{1,6})|(\d{1,7}));/gi, (_match, hexadecimal, decimal) => {
21
+ const codePoint = Number.parseInt(hexadecimal ?? decimal ?? "", hexadecimal === undefined ? 10 : 16);
22
+ return Number.isSafeInteger(codePoint) && codePoint > 0 && codePoint <= 1114111 && !(codePoint >= 55296 && codePoint <= 57343) ? String.fromCodePoint(codePoint) : "";
23
+ });
24
+ }
25
+ function collectVideoPosters(html) {
26
+ const posters = [];
27
+ let cursor = 0;
28
+ while (cursor < html.length && posters.length < 64) {
29
+ const start = html.indexOf("<", cursor);
30
+ if (start < 0)
31
+ break;
32
+ cursor = start + 1;
33
+ if (!asciiCaseEqualAt(html, start + 1, "video"))
34
+ continue;
35
+ const afterName = start + 6;
36
+ if (afterName >= html.length || !isTagBoundary(html.charCodeAt(afterName)))
37
+ continue;
38
+ const unboundedEnd = html.indexOf(">", afterName);
39
+ if (unboundedEnd < 0)
40
+ break;
41
+ cursor = unboundedEnd + 1;
42
+ if (unboundedEnd - afterName > 16384)
43
+ continue;
44
+ const tag = html.slice(afterName, unboundedEnd);
45
+ const match = /(?:^|\s)poster\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/i.exec(tag);
46
+ const candidate = match?.[1] ?? match?.[2] ?? match?.[3];
47
+ if (candidate === undefined || candidate.trim() === "")
48
+ continue;
49
+ const decoded = decodeHtmlAttribute(candidate.trim());
50
+ if (decoded.length <= 8192 && !posters.includes(decoded))
51
+ posters.push(decoded);
52
+ }
53
+ return posters;
54
+ }
55
+ var domGlobal = globalThis;
56
+ domGlobal.Node ??= Object.freeze({
57
+ DOCUMENT_POSITION_DISCONNECTED: 1,
58
+ DOCUMENT_POSITION_PRECEDING: 2,
59
+ DOCUMENT_POSITION_FOLLOWING: 4,
60
+ DOCUMENT_POSITION_CONTAINS: 8,
61
+ DOCUMENT_POSITION_CONTAINED_BY: 16,
62
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
63
+ });
64
+ workerGlobal.onmessage = async (event) => {
65
+ const request = event.data;
66
+ if (typeof request !== "object" || request === null || Array.isArray(request) || !("html" in request) || typeof request.html !== "string" || !("url" in request) || typeof request.url !== "string" || !("includeReplies" in request) || request.includeReplies !== true && request.includeReplies !== false && request.includeReplies !== "extractors") {
67
+ workerGlobal.postMessage({ ok: false, message: "Defuddle worker received an invalid request." });
68
+ return;
69
+ }
70
+ try {
71
+ const videoPosters = collectVideoPosters(request.html);
72
+ const value = await Defuddle(request.html, request.url, {
73
+ markdown: false,
74
+ separateMarkdown: true,
75
+ includeReplies: request.includeReplies,
76
+ useAsync: false,
77
+ removeImages: false
78
+ });
79
+ const enriched = typeof value === "object" && value !== null && !Array.isArray(value) ? { ...value, captureVideoPosters: videoPosters } : value;
80
+ workerGlobal.postMessage({ ok: true, value: enriched });
81
+ } catch {
82
+ workerGlobal.postMessage({ ok: false, message: "Defuddle could not parse this acquisition." });
83
+ }
84
+ };
@@ -0,0 +1,32 @@
1
+ // @bun
2
+ import {
3
+ adapterCapabilities,
4
+ expectedBunVersion,
5
+ expectedNodeLlamaCppVersion,
6
+ expectedQmdVersion,
7
+ expectedSqliteVecVersion,
8
+ inspectClipEnvironment,
9
+ renderAdapterCapabilities,
10
+ renderDoctorReport,
11
+ runDiagnosticCommand
12
+ } from "../index-by0pbant.js";
13
+ import"../index-x6m57nfc.js";
14
+ import"../index-hgve9rh2.js";
15
+ import"../index-w2zc0vwa.js";
16
+ import"../index-e5fbsywq.js";
17
+ import"../index-dfag79p7.js";
18
+ import"../index-gh719d91.js";
19
+ import"../index-mxxxytys.js";
20
+ import"../index-2gv8y733.js";
21
+ import"../index-1xxnjn0d.js";
22
+ export {
23
+ runDiagnosticCommand,
24
+ renderDoctorReport,
25
+ renderAdapterCapabilities,
26
+ inspectClipEnvironment,
27
+ expectedSqliteVecVersion,
28
+ expectedQmdVersion,
29
+ expectedNodeLlamaCppVersion,
30
+ expectedBunVersion,
31
+ adapterCapabilities
32
+ };