@gmickel/gno 2.8.1 → 2.8.3

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 (61) hide show
  1. package/README.md +1 -1
  2. package/assets/skill/SKILL.md +4 -2
  3. package/browser-extension/artifacts/{gno-browser-clipper-v2.8.1.zip → gno-browser-clipper-v2.8.3.zip} +0 -0
  4. package/browser-extension/artifacts/gno-browser-clipper-v2.8.3.zip.sha256 +1 -0
  5. package/browser-extension/dist/manifest.json +1 -1
  6. package/package.json +9 -1
  7. package/spec/cli.md +81 -8
  8. package/spec/mcp.md +5 -6
  9. package/src/cli/commands/daemon.ts +7 -2
  10. package/src/cli/commands/doctor.ts +42 -24
  11. package/src/cli/commands/index-cmd.ts +10 -2
  12. package/src/cli/commands/links.ts +5 -22
  13. package/src/cli/commands/shared.ts +26 -1
  14. package/src/cli/commands/status.ts +60 -0
  15. package/src/cli/commands/update.ts +6 -1
  16. package/src/cli/commands/vec.ts +42 -2
  17. package/src/cli/program.ts +2 -2
  18. package/src/config/types.ts +19 -0
  19. package/src/converters/adapters/markitdownTs/adapter.ts +1 -52
  20. package/src/converters/adapters/shared/ooxml-protection.ts +58 -0
  21. package/src/converters/adapters/xlsx/adapter.ts +132 -0
  22. package/src/converters/adapters/xlsx/sheet-markdown.ts +312 -0
  23. package/src/converters/native/markdown.ts +3 -1
  24. package/src/converters/registry.ts +62 -6
  25. package/src/converters/versions.ts +2 -0
  26. package/src/core/audit-freshness.ts +1 -1
  27. package/src/core/audit-links.ts +2 -1
  28. package/src/core/audit-outside-index.ts +91 -18
  29. package/src/core/change-diff.ts +18 -6
  30. package/src/core/link-destination-parse.ts +21 -4
  31. package/src/core/link-inventory-markdown.ts +23 -3
  32. package/src/core/link-inventory-opaque.ts +3 -1
  33. package/src/core/links.ts +74 -16
  34. package/src/core/network-boundary-inventory.ts +18 -0
  35. package/src/index.ts +10 -0
  36. package/src/ingestion/document-metadata.ts +256 -0
  37. package/src/ingestion/file-child-env.ts +9 -0
  38. package/src/ingestion/file-child.ts +106 -0
  39. package/src/ingestion/file-processor.ts +546 -0
  40. package/src/ingestion/frontmatter.ts +6 -2
  41. package/src/ingestion/index.ts +1 -0
  42. package/src/ingestion/prepare-convert.ts +32 -0
  43. package/src/ingestion/prepare-file.ts +272 -0
  44. package/src/ingestion/prepare-worker.ts +43 -0
  45. package/src/ingestion/record-container.ts +7 -2
  46. package/src/ingestion/strip.ts +149 -133
  47. package/src/ingestion/sync-options.ts +7 -1
  48. package/src/ingestion/sync.ts +208 -385
  49. package/src/ingestion/types.ts +18 -0
  50. package/src/llm/native-worker/embedding-identity.ts +15 -3
  51. package/src/mcp/http-transport.ts +11 -0
  52. package/src/mcp/tools/links.ts +10 -38
  53. package/src/serve/resident-request.ts +19 -0
  54. package/src/serve/resident-runtime.ts +84 -8
  55. package/src/serve/routes/links.ts +6 -24
  56. package/src/serve/server.ts +3 -2
  57. package/src/sessions/config-refresh.ts +3 -2
  58. package/src/store/sqlite/graph-similarity.ts +5 -13
  59. package/src/store/vector/partition-index.ts +100 -0
  60. package/src/store/vector/stored-vectors.ts +20 -15
  61. package/browser-extension/artifacts/gno-browser-clipper-v2.8.1.zip.sha256 +0 -1
@@ -20,13 +20,19 @@ export function resolveContentTypeRules(
20
20
 
21
21
  export function withContentTypeRules(
22
22
  options: SyncOptions = {},
23
- config?: Pick<Config, "contentTypes" | "chunking">
23
+ config?: Pick<Config, "contentTypes" | "chunking" | "conversion">
24
24
  ): SyncOptions {
25
25
  const rules = options.contentTypeRules ?? resolveContentTypeRules(config);
26
26
  const chunking = options.chunking ?? config?.chunking;
27
+ const conversion = config?.conversion;
28
+ // Explicit per-call limits win over the configured conversion budget.
29
+ const limits = conversion
30
+ ? { ...conversion, ...options.limits }
31
+ : options.limits;
27
32
  return {
28
33
  ...options,
29
34
  ...(chunking ? { chunking } : {}),
35
+ ...(limits ? { limits } : {}),
30
36
  contentTypeRules: rules,
31
37
  contentTypeRulesFingerprint:
32
38
  options.contentTypeRulesFingerprint ??