@abubakarsiddiik/sources 0.0.0-stage → 0.2.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.
package/dist/draft.js ADDED
@@ -0,0 +1,99 @@
1
+ import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ export const DRAFT_FILE = "draft.json";
4
+ export const TASKS_FILE = "tasks.json";
5
+ export function createDraft(input) {
6
+ return {
7
+ schema: 1,
8
+ site: input.site,
9
+ origins: input.origins,
10
+ created_at: input.now ?? new Date().toISOString(),
11
+ sources: [],
12
+ states: [],
13
+ proposals: [],
14
+ tasks: [],
15
+ entities: {},
16
+ build: {
17
+ ...(input.url !== undefined ? { url: input.url } : {}),
18
+ ...(input.baseUrl !== undefined ? { base_url: input.baseUrl } : {}),
19
+ verify: false,
20
+ verified: [],
21
+ },
22
+ };
23
+ }
24
+ export function addProposal(draft, proposal) {
25
+ draft.proposals.push(proposal);
26
+ if (!draft.sources.includes(proposal.source))
27
+ draft.sources.push(proposal.source);
28
+ }
29
+ export function addTask(draft, task) {
30
+ draft.tasks.push({ id: `task_${draft.tasks.length + 1}`, ...task });
31
+ if (!draft.sources.includes(task.source))
32
+ draft.sources.push(task.source);
33
+ }
34
+ export function addState(draft, state) {
35
+ if (draft.states.some((candidate) => candidate.id === state.id))
36
+ return;
37
+ draft.states.push(state);
38
+ }
39
+ /** Write the draft and its task list next to the map versions. */
40
+ export function writeDraft(dir, draft) {
41
+ mkdirSync(dir, { recursive: true });
42
+ const draftPath = join(dir, DRAFT_FILE);
43
+ const tasksPath = join(dir, TASKS_FILE);
44
+ writeFileSync(draftPath, `${JSON.stringify(draft, null, 2)}\n`, "utf8");
45
+ writeFileSync(tasksPath, `${JSON.stringify({
46
+ site: draft.site,
47
+ created_at: draft.created_at,
48
+ tasks: draft.tasks,
49
+ }, null, 2)}\n`, "utf8");
50
+ return { draft: draftPath, tasks: tasksPath };
51
+ }
52
+ export function readDraft(path) {
53
+ return JSON.parse(readFileSync(path, "utf8"));
54
+ }
55
+ /** Build a candidate map from the draft. It is not validated until publish. */
56
+ export function candidateMap(draft, options = {}) {
57
+ return {
58
+ site: draft.site,
59
+ origins: draft.origins,
60
+ version: options.version ?? 1,
61
+ states: draft.states,
62
+ ops: options.ops ?? draft.proposals.map((proposal) => proposal.op),
63
+ entities: draft.entities,
64
+ compiled_from: draft.sources,
65
+ verified_at: options.now ?? new Date().toISOString(),
66
+ };
67
+ }
68
+ export function upgradeVerified(draft, names) {
69
+ const verified = new Set(names);
70
+ for (const proposal of draft.proposals) {
71
+ if (verified.has(proposal.op.name))
72
+ proposal.op.status = "verified";
73
+ }
74
+ }
75
+ /**
76
+ * A slug that is valid as a map op or state id: lowercase, starts with a
77
+ * letter, underscores between words.
78
+ */
79
+ export function slug(value, fallback = "op") {
80
+ const normalized = value
81
+ .toLowerCase()
82
+ .replace(/[^a-z0-9]+/g, "_")
83
+ .replace(/^_+|_+$/g, "");
84
+ if (normalized.length === 0)
85
+ return fallback;
86
+ return /^[a-z]/.test(normalized) ? normalized.slice(0, 64) : `op_${normalized}`.slice(0, 64);
87
+ }
88
+ export function uniqueName(name, used) {
89
+ let candidate = name.slice(0, 64);
90
+ let suffix = 2;
91
+ while (used.has(candidate)) {
92
+ const tail = `_${suffix}`;
93
+ candidate = `${name.slice(0, 64 - tail.length)}${tail}`;
94
+ suffix += 1;
95
+ }
96
+ used.add(candidate);
97
+ return candidate;
98
+ }
99
+ //# sourceMappingURL=draft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draft.js","sourceRoot":"","sources":["../src/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAMjC,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG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C,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,IAAiB;IACxD,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,IAAI,MAAM,EAAE,CAAC;QAC1B,SAAS,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QACxD,MAAM,IAAI,CAAC,CAAC;IACd,CAAC;IAED,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACpB,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./capabilities.js";
2
+ export * from "./dom.js";
3
+ export * from "./draft.js";
4
+ export * from "./types.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./capabilities.js";
2
+ export * from "./dom.js";
3
+ export * from "./draft.js";
4
+ export * from "./types.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,98 @@
1
+ import type { JsonSchema, OpDef, StateDef } from "@abubakarsiddiik/protocol";
2
+ /** Where a candidate op came from. Every proposal carries its provenance. */
3
+ export type MapSourceKind = "dom" | "codebase" | "openapi" | "har" | "traces";
4
+ export type MapTriggerKind = "link" | "form" | "button";
5
+ /** The UI element a proposal came from, used to reconcile a capability ledger. */
6
+ export type MapTrigger = {
7
+ kind: MapTriggerKind;
8
+ name: string;
9
+ /** State id of the page the element is on. */
10
+ page: string;
11
+ };
12
+ export type OpProposal = {
13
+ /** A draft op. It is not callable until verification promotes it. */
14
+ op: OpDef;
15
+ source: MapSourceKind;
16
+ /** File, URL, or spec locator a reviewer can follow. */
17
+ provenance: string;
18
+ confidence: "high" | "medium" | "low";
19
+ /** Observed parameter sets, when the source had them. */
20
+ sample_params?: Array<Record<string, unknown>>;
21
+ trigger?: MapTrigger;
22
+ notes?: string[];
23
+ };
24
+ export type SurfaceActionKind = MapTriggerKind;
25
+ /** One interactive element observed on one page. */
26
+ export type SurfaceAction = {
27
+ page: string;
28
+ kind: SurfaceActionKind;
29
+ name: string;
30
+ /** Target state for a link. */
31
+ target?: string;
32
+ href?: string;
33
+ };
34
+ export type CapabilityStatus = "mapped" | "missing" | "excluded" | "stale";
35
+ export type CapabilitySource = "live" | "code" | "manual";
36
+ export type Capability = {
37
+ id: string;
38
+ page: string;
39
+ trigger: {
40
+ kind: SurfaceActionKind;
41
+ name: string;
42
+ target?: string;
43
+ };
44
+ status: CapabilityStatus;
45
+ source: CapabilitySource;
46
+ /** The map op that covers this capability, when mapped. */
47
+ op?: string;
48
+ /** Why it is excluded or stale. */
49
+ reason?: string;
50
+ };
51
+ export type CapabilityLedger = {
52
+ schema: 1;
53
+ site: string;
54
+ generated_at: string;
55
+ capabilities: Capability[];
56
+ };
57
+ export type CapabilityCoverage = {
58
+ total: number;
59
+ mapped: number;
60
+ missing: number;
61
+ excluded: number;
62
+ stale: number;
63
+ /** Mapped / (mapped + missing), 0 when everything is excluded. */
64
+ ratio: number;
65
+ };
66
+ export type DraftTaskKind = "name_op" | "add_params" | "add_outcome_check" | "confirm_effect" | "add_locators" | "resolve_route" | "restore_op";
67
+ export type DraftTask = {
68
+ id: string;
69
+ kind: DraftTaskKind;
70
+ source: MapSourceKind;
71
+ op?: string;
72
+ message: string;
73
+ };
74
+ /**
75
+ * The reviewable artifact between discovery and a published map.
76
+ *
77
+ * A draft may hold invalid or unverifiable ops on purpose: it is evidence, not
78
+ * a contract. Only `publishMap` writes a version the runtime will load.
79
+ */
80
+ export type MapDraft = {
81
+ schema: 1;
82
+ site: string;
83
+ origins: string[];
84
+ created_at: string;
85
+ sources: MapSourceKind[];
86
+ states: StateDef[];
87
+ proposals: OpProposal[];
88
+ tasks: DraftTask[];
89
+ entities: Record<string, JsonSchema>;
90
+ build: {
91
+ url?: string;
92
+ base_url?: string;
93
+ verify: boolean;
94
+ verified: string[];
95
+ published?: number;
96
+ };
97
+ };
98
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE7E,6EAA6E;AAC7E,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE9E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExD,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,qEAAqE;IACrE,EAAE,EAAE,KAAK,CAAC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"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "@abubakarsiddiik/sources",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.1",
4
+ "description": "Map source adapters: discover a site from its live DOM, traces, or specs.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "engines": {
19
+ "node": ">=22.12.0"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/abubakarsiddik31/portolan.git",
24
+ "directory": "packages/sources"
25
+ },
26
+ "homepage": "https://github.com/abubakarsiddik31/portolan#readme",
27
+ "bugs": {
28
+ "url": "https://github.com/abubakarsiddik31/portolan/issues"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "provenance": true
33
+ },
34
+ "dependencies": {
35
+ "@abubakarsiddiik/protocol": "0.2.0",
36
+ "@abubakarsiddiik/substrate": "0.1.1"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc -b"
40
+ }
6
41
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.