@sudobility/sider_types 0.0.8 → 0.0.11

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.
package/dist/observe.d.ts CHANGED
@@ -23,12 +23,27 @@ export interface SnapshotLink {
23
23
  toUrlPath: string;
24
24
  label?: string;
25
25
  }
26
+ /**
27
+ * An anchor on the page pointing at a DIFFERENT origin.
28
+ *
29
+ * Kept apart from `SnapshotLink` on purpose: `links` feeds view identity and the
30
+ * graph's declared transitions, and a cross-origin entry there would churn every
31
+ * view signature. This is evidence of one thing only — that this site offers a
32
+ * way to reach that one.
33
+ */
34
+ export interface SnapshotExternalLink {
35
+ origin: string;
36
+ /** Visible text of the link, e.g. "Careers at USF". */
37
+ label?: string;
38
+ }
26
39
  export interface PageSnapshot {
27
40
  /** Path with query VALUES dropped and keys kept: /search?q={q} */
28
41
  urlPath: string;
29
42
  title?: string;
30
43
  regions: SnapshotRegion[];
31
44
  links: SnapshotLink[];
45
+ /** Off-site origins this page links to. Absent from older extension builds. */
46
+ externalLinks?: SnapshotExternalLink[];
32
47
  /** Structural text only — headings, control names, link labels, item titles. */
33
48
  contentMd?: string;
34
49
  /** How the agent arrived here, when known. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/sider_types",
3
- "version": "0.0.8",
3
+ "version": "0.0.11",
4
4
  "description": "Shared domain types for Sider — AI assistance for generic web apps.",
5
5
  "license": "BUSL-1.1",
6
6
  "publishConfig": {
package/src/observe.ts CHANGED
@@ -35,12 +35,28 @@ export interface SnapshotLink {
35
35
  label?: string;
36
36
  }
37
37
 
38
+ /**
39
+ * An anchor on the page pointing at a DIFFERENT origin.
40
+ *
41
+ * Kept apart from `SnapshotLink` on purpose: `links` feeds view identity and the
42
+ * graph's declared transitions, and a cross-origin entry there would churn every
43
+ * view signature. This is evidence of one thing only — that this site offers a
44
+ * way to reach that one.
45
+ */
46
+ export interface SnapshotExternalLink {
47
+ origin: string;
48
+ /** Visible text of the link, e.g. "Careers at USF". */
49
+ label?: string;
50
+ }
51
+
38
52
  export interface PageSnapshot {
39
53
  /** Path with query VALUES dropped and keys kept: /search?q={q} */
40
54
  urlPath: string;
41
55
  title?: string;
42
56
  regions: SnapshotRegion[];
43
57
  links: SnapshotLink[];
58
+ /** Off-site origins this page links to. Absent from older extension builds. */
59
+ externalLinks?: SnapshotExternalLink[];
44
60
  /** Structural text only — headings, control names, link labels, item titles. */
45
61
  contentMd?: string;
46
62
  /** How the agent arrived here, when known. */