@framers/agentos-ext-citation-check 0.2.1 → 0.3.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.
@@ -17,10 +17,20 @@ import type { RobotsRule } from './robots.js';
17
17
  import type { CitationLogger } from './types.js';
18
18
  /** robots.txt as the provider reads it when the host names no rule: the `*` group, 2,000 ms, 512,000 bytes, ten minutes kept. */
19
19
  export declare const DEFAULT_ROBOTS: Readonly<RobotsRule>;
20
+ /**
21
+ * One page a host's search found: its address, or its address with the provider words that found it, in the order the
22
+ * search named its providers, as `foundThrough`, or as `providers` (the field a web-search `multiSearch` result names
23
+ * them in, so its results can be answered as they come). `foundThrough` is read when both are given.
24
+ */
25
+ export type WebSearchAnswer = string | {
26
+ url: string;
27
+ foundThrough?: readonly string[];
28
+ providers?: readonly string[];
29
+ };
20
30
  /** How the provider searches and reads. */
21
31
  export interface WebPageSourceOptions {
22
- /** The host's search: a short phrase in, page addresses out, best first. A throw answers the search as failed. */
23
- search: (phrase: string, signal?: AbortSignal) => Promise<readonly string[]>;
32
+ /** The host's search: a short phrase in, the pages it found out, best first. A throw answers the search as failed. */
33
+ search: (phrase: string, signal?: AbortSignal) => Promise<readonly WebSearchAnswer[]>;
24
34
  /** The request pages go through; AgentOS's checked egress with `egress` when left out. */
25
35
  transport?: Transport;
26
36
  /** The checked egress policy when no transport is given: `hosted` (the default), public https addresses alone, or `local`. */
@@ -47,6 +57,15 @@ export interface WebPageSourceOptions {
47
57
  now?: () => number;
48
58
  /** Where the reader writes its events. */
49
59
  logger?: CitationLogger;
60
+ /**
61
+ * Whether each page's icon is read, as `readPage`'s `icon` reads it: one more request, to the page's own origin. Not
62
+ * read when left out.
63
+ */
64
+ icon?: boolean;
65
+ /** The most bytes of an icon read; 65,536 when left out. */
66
+ iconMaxBytes?: number;
67
+ /** The host's own reading of a page's kind by its host, which `kindOfHost` puts before its table. */
68
+ kindOverrides?: Readonly<Record<string, string>>;
50
69
  }
51
70
  /**
52
71
  * A `PublicSourceProvider` over the open web: `search` asks the host's search for addresses, `read` reads a page. It
@@ -64,9 +83,15 @@ export declare class WebPageSourceProvider implements PublicSourceProvider {
64
83
  private transport;
65
84
  /** The phrase each hit this provider's search answered was found by, held as long as the hit is. */
66
85
  private readonly phrases;
86
+ /** The provider words that found each hit this provider's search answered, where the search named them. */
87
+ private readonly finders;
88
+ private readonly iconMaxBytes;
89
+ /** The host's kind overrides, copied and checked when the provider was made. */
90
+ private readonly kindOverrides;
67
91
  /**
68
92
  * @param options - The host's search and how pages are read.
69
93
  * @throws {TypeError} For a search that is not a function, or a bound that is not a whole number of at least 1.
94
+ * @throws {RangeError} For a kind override that is not a source word.
70
95
  */
71
96
  constructor(options: WebPageSourceOptions);
72
97
  /** The transport, built once: the host's, or AgentOS's checked egress. */
@@ -75,17 +100,20 @@ export declare class WebPageSourceProvider implements PublicSourceProvider {
75
100
  * Searches for a short phrase: a cancellation that came first is thrown before anything runs, then `onSend` is
76
101
  * awaited once and the host's search runs, and its addresses answer
77
102
  * as hits (`key` the address without its fragment, `title` the address), each page once, at most `limit` (3 when
78
- * left out), an address that is not http or https passed over. `limited` when `onSend` throws a limiter's refusal
79
- * (nothing was sent), `failed` when it throws anything else or the search throws. The caller's own cancellation is
80
- * thrown.
103
+ * left out), an address that is not http or https passed over. A page found at two forms of its address that share a
104
+ * key keeps the providers of both that found it, each once, in the order they came, those that are not source words
105
+ * left out. `limited` when `onSend` throws a limiter's refusal (nothing was sent), `failed` when it throws anything
106
+ * else or the search throws. The caller's own cancellation is thrown.
81
107
  */
82
108
  search(phrase: string, options?: CallOptions & {
83
109
  limit?: number;
84
110
  }): Promise<SearchOutcome>;
85
111
  /**
86
- * Reads a hit's page: `document` with `site` the host without "www.", `revision` null, `readAt` the clock's, and the
87
- * page's title, licence, publisher and date as read, or `skipped` with the status when one came. The caller's own
88
- * cancellation is thrown.
112
+ * Reads a hit's page: `document` with `site` the host without "www.", `revision` null, `readAt` the clock's, the
113
+ * page's title, licence, publisher and date as read, its `kind` by `kindOfHost` (the host's overrides first), for a
114
+ * hit this provider's search found with providers named `foundThrough` and `provider` (the first of them), and its
115
+ * `icon` when the host asks for one; or `skipped` with the status when one came. The caller's own cancellation is
116
+ * thrown.
89
117
  *
90
118
  * @throws The caller's cancellation reason; an `Error` when no transport is given and the installed AgentOS has no
91
119
  * checked egress.
@@ -1 +1 @@
1
- {"version":3,"file":"web-source.d.ts","sourceRoot":"","sources":["../src/web-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAsC,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,iIAAiI;AACjI,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,UAAU,CAAwF,CAAC;AAEzI,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC,kHAAkH;IAClH,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC7E,0FAA0F;IAC1F,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8HAA8H;IAC9H,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,qGAAqG;IACrG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IACpD,oGAAoG;IACpG,MAAM,CAAC,EAA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S,OAAO,EAAE,oBAAoB;IAiBzC,0EAA0E;IAC1E,OAAO,CAAC,WAAW;IAMnB;;;;;;;;OAQG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,WAAW,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,aAAa,CAAC;IAgDpG;;;;;;;;;OASG;IACG,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAmC5F"}
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module agentos/extensions/research/citation-check/web-source
13
13
  */
14
- import { LimiterRefused, } from '@framers/agentos-ext-public-sources';
14
+ import { isSourceWord, kindOfHost, LimiterRefused, } from '@framers/agentos-ext-public-sources';
15
15
  import { egressTransport, pageKey, readPage } from './page.js';
16
16
  /** robots.txt as the provider reads it when the host names no rule: the `*` group, 2,000 ms, 512,000 bytes, ten minutes kept. */
17
17
  export const DEFAULT_ROBOTS = Object.freeze({ token: '*', timeoutMs: 2_000, maxBytes: 512_000, cacheMs: 600_000 });
@@ -42,6 +42,19 @@ function keyOf(address) {
42
42
  return null;
43
43
  }
44
44
  }
45
+ /** A search answer as an address and the source words of the providers that found it, each once, in order. */
46
+ function answerOf(answer) {
47
+ if (typeof answer === 'string' || answer === null || typeof answer !== 'object')
48
+ return { address: answer, foundThrough: [] };
49
+ const { url, foundThrough, providers } = answer;
50
+ // `foundThrough` first; else a web-search `multiSearch` result's `providers`.
51
+ const finders = Array.isArray(foundThrough) ? foundThrough : Array.isArray(providers) ? providers : [];
52
+ const words = [];
53
+ for (const word of finders)
54
+ if (typeof word === 'string' && isSourceWord(word) && !words.includes(word))
55
+ words.push(word);
56
+ return { address: url, foundThrough: words };
57
+ }
45
58
  /** A page's host without a leading "www.", in lower case. */
46
59
  function siteOf(url) {
47
60
  try {
@@ -67,9 +80,15 @@ export class WebPageSourceProvider {
67
80
  transport = null;
68
81
  /** The phrase each hit this provider's search answered was found by, held as long as the hit is. */
69
82
  phrases = new WeakMap();
83
+ /** The provider words that found each hit this provider's search answered, where the search named them. */
84
+ finders = new WeakMap();
85
+ iconMaxBytes;
86
+ /** The host's kind overrides, copied and checked when the provider was made. */
87
+ kindOverrides;
70
88
  /**
71
89
  * @param options - The host's search and how pages are read.
72
90
  * @throws {TypeError} For a search that is not a function, or a bound that is not a whole number of at least 1.
91
+ * @throws {RangeError} For a kind override that is not a source word.
73
92
  */
74
93
  constructor(options) {
75
94
  if (typeof options.search !== 'function')
@@ -82,6 +101,12 @@ export class WebPageSourceProvider {
82
101
  this.textBudget = whole('textBudget', options.textBudget, 300_000);
83
102
  this.robots = options.robots === undefined ? DEFAULT_ROBOTS : options.robots;
84
103
  this.now = options.now ?? Date.now;
104
+ this.iconMaxBytes = whole('iconMaxBytes', options.iconMaxBytes, 65_536);
105
+ // The overrides as given now, checked once: a host that changes its record later changes no read. An override that
106
+ // is not a source word is refused here rather than at the first read.
107
+ this.kindOverrides = options.kindOverrides === undefined ? undefined : Object.freeze({ ...options.kindOverrides });
108
+ if (this.kindOverrides !== undefined)
109
+ kindOfHost('', this.kindOverrides);
85
110
  }
86
111
  /** The transport, built once: the host's, or AgentOS's checked egress. */
87
112
  transportOf() {
@@ -94,9 +119,10 @@ export class WebPageSourceProvider {
94
119
  * Searches for a short phrase: a cancellation that came first is thrown before anything runs, then `onSend` is
95
120
  * awaited once and the host's search runs, and its addresses answer
96
121
  * as hits (`key` the address without its fragment, `title` the address), each page once, at most `limit` (3 when
97
- * left out), an address that is not http or https passed over. `limited` when `onSend` throws a limiter's refusal
98
- * (nothing was sent), `failed` when it throws anything else or the search throws. The caller's own cancellation is
99
- * thrown.
122
+ * left out), an address that is not http or https passed over. A page found at two forms of its address that share a
123
+ * key keeps the providers of both that found it, each once, in the order they came, those that are not source words
124
+ * left out. `limited` when `onSend` throws a limiter's refusal (nothing was sent), `failed` when it throws anything
125
+ * else or the search throws. The caller's own cancellation is thrown.
100
126
  */
101
127
  async search(phrase, options = {}) {
102
128
  const limit = options.limit ?? DEFAULT_LIMIT;
@@ -113,9 +139,9 @@ export class WebPageSourceProvider {
113
139
  }
114
140
  }
115
141
  options.signal?.throwIfAborted();
116
- let addresses;
142
+ let answers;
117
143
  try {
118
- addresses = await this.searchFn(phrase, options.signal);
144
+ answers = await this.searchFn(phrase, options.signal);
119
145
  }
120
146
  catch {
121
147
  if (options.signal?.aborted)
@@ -125,24 +151,44 @@ export class WebPageSourceProvider {
125
151
  if (options.signal?.aborted)
126
152
  throw options.signal.reason;
127
153
  const hits = [];
128
- const seen = new Set();
129
- for (const address of Array.isArray(addresses) ? addresses : []) {
130
- if (hits.length >= limit)
131
- break;
154
+ const byKey = new Map();
155
+ for (const answer of Array.isArray(answers) ? answers : []) {
156
+ const { address, foundThrough } = answerOf(answer);
132
157
  const key = keyOf(address);
133
- if (key === null || seen.has(key))
158
+ if (key === null)
159
+ continue;
160
+ const known = byKey.get(key);
161
+ if (known !== undefined) {
162
+ // The same page found again: its finders join the first's.
163
+ const finders = this.finders.get(known);
164
+ if (finders === undefined) {
165
+ if (foundThrough.length > 0)
166
+ this.finders.set(known, [...foundThrough]);
167
+ }
168
+ else {
169
+ for (const word of foundThrough)
170
+ if (!finders.includes(word))
171
+ finders.push(word);
172
+ }
173
+ continue;
174
+ }
175
+ if (hits.length >= limit)
134
176
  continue;
135
- seen.add(key);
136
177
  const hit = { key, title: address.trim() };
178
+ byKey.set(key, hit);
137
179
  this.phrases.set(hit, phrase);
180
+ if (foundThrough.length > 0)
181
+ this.finders.set(hit, [...foundThrough]);
138
182
  hits.push(hit);
139
183
  }
140
184
  return { kind: 'hits', hits };
141
185
  }
142
186
  /**
143
- * Reads a hit's page: `document` with `site` the host without "www.", `revision` null, `readAt` the clock's, and the
144
- * page's title, licence, publisher and date as read, or `skipped` with the status when one came. The caller's own
145
- * cancellation is thrown.
187
+ * Reads a hit's page: `document` with `site` the host without "www.", `revision` null, `readAt` the clock's, the
188
+ * page's title, licence, publisher and date as read, its `kind` by `kindOfHost` (the host's overrides first), for a
189
+ * hit this provider's search found with providers named `foundThrough` and `provider` (the first of them), and its
190
+ * `icon` when the host asks for one; or `skipped` with the status when one came. The caller's own cancellation is
191
+ * thrown.
146
192
  *
147
193
  * @throws The caller's cancellation reason; an `Error` when no transport is given and the installed AgentOS has no
148
194
  * checked egress.
@@ -167,10 +213,22 @@ export class WebPageSourceProvider {
167
213
  ...(allowUrl !== undefined ? { allowUrl: (address) => allowUrl(address, phrase) } : {}),
168
214
  ...(this.robots !== null ? { robots: this.robots } : {}),
169
215
  ...(fallback !== undefined ? { fallback } : {}),
216
+ ...(this.options.icon === true ? { icon: true, iconMaxBytes: this.iconMaxBytes } : {}),
170
217
  });
171
218
  if (page.document === null)
172
219
  return { kind: 'skipped', status: page.status.status };
173
- return { kind: 'document', document: { ...page.document, site: siteOf(page.document.url), revision: null } };
220
+ const site = siteOf(page.document.url);
221
+ const finders = this.finders.get(hit);
222
+ return {
223
+ kind: 'document',
224
+ document: {
225
+ ...page.document,
226
+ site,
227
+ revision: null,
228
+ ...(finders !== undefined && finders.length > 0 ? { provider: finders[0], foundThrough: [...finders] } : {}),
229
+ kind: kindOfHost(site, this.kindOverrides),
230
+ },
231
+ };
174
232
  }
175
233
  }
176
234
  //# sourceMappingURL=web-source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-source.js","sourceRoot":"","sources":["../src/web-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,cAAc,GAMf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAA+D,MAAM,WAAW,CAAC;AAI5H,iIAAiI;AACjI,MAAM,CAAC,MAAM,cAAc,GAAyB,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAA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,CAAC;CACF"}
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://agentos.sh/schemas/extension-manifest-v1.json",
3
3
  "id": "com.framers.research.citation-check",
4
4
  "name": "Citation Check",
5
- "version": "0.2.1",
5
+ "version": "0.3.0",
6
6
  "description": "Checks the quoted claims of a document against the pages they cite, with AgentOS's citation tooling: word for word first, then by embeddings when a model is configured. Reads public pages under robots.txt and a host's rules, and serves the open web as a public source",
7
7
  "author": {
8
8
  "name": "Frame",
@@ -17,7 +17,7 @@
17
17
  "research",
18
18
  "robots-txt"
19
19
  ],
20
- "agentosVersion": ">=0.13.120",
20
+ "agentosVersion": ">=0.13.158",
21
21
  "categories": ["research"],
22
22
  "repository": {
23
23
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framers/agentos-ext-citation-check",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Checks the quoted claims of a document against the pages they cite, with AgentOS's citation tooling: word for word first, then by embeddings when a model is configured. Reads public pages under robots.txt and a host's rules, and serves the open web as a public source",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,20 +50,21 @@
50
50
  "node": ">=22"
51
51
  },
52
52
  "peerDependencies": {
53
- "@framers/agentos": ">=0.13.120"
53
+ "@framers/agentos": ">=0.13.158"
54
54
  },
55
55
  "dependencies": {
56
- "@framers/agentos-ext-grounding-guard": "^0.11.0",
57
- "@framers/agentos-ext-public-sources": "^0.2.3",
56
+ "@framers/agentos-ext-grounding-guard": "^0.12.0",
57
+ "@framers/agentos-ext-public-sources": "^0.3.0",
58
58
  "@framers/agentos-ext-web-scraper": "^0.1.4",
59
- "entities": "^8.1.0"
59
+ "entities": "^8.1.0",
60
+ "zod": "^4.6.7"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@types/node": "^20.12.12",
63
64
  "rimraf": "^6.1.3",
64
65
  "typescript": "^6.0.3",
65
66
  "vitest": "^5.1.0",
66
- "@framers/agentos": "^0.17.0"
67
+ "@framers/agentos": "^0.19.3"
67
68
  },
68
69
  "homepage": "https://github.com/framerslab/agentos-extensions/tree/master/registry/curated/research/citation-check#readme",
69
70
  "bugs": {
@@ -74,7 +75,7 @@
74
75
  "manifest.json",
75
76
  "README.md"
76
77
  ],
77
- "gitHead": "de5818a684eaff8563d424923b4120d877f703fa",
78
+ "gitHead": "a2c922287f1e54d61efef7bafad95c43eede1328",
78
79
  "scripts": {
79
80
  "build": "tsc",
80
81
  "test": "vitest run",