@aeptus/aexeo-emdash 0.8.19 → 0.9.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.
- package/CHANGELOG.md +96 -2
- package/INSTALL.md +113 -4
- package/README.md +12 -5
- package/dist/adapter.d.ts +30 -2
- package/dist/adapter.d.ts.map +1 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +2 -2
- package/dist/configured.d.ts +6 -0
- package/dist/configured.d.ts.map +1 -1
- package/dist/configured.js +505 -70
- package/dist/content-evaluator.d.ts +14 -0
- package/dist/content-evaluator.d.ts.map +1 -0
- package/dist/content.d.ts +51 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/content.js +365 -0
- package/dist/data-route.d.ts +3 -0
- package/dist/data-route.d.ts.map +1 -1
- package/dist/evaluator-sandbox.d.ts +1 -1
- package/dist/evaluator-sandbox.d.ts.map +1 -1
- package/dist/evaluator.d.ts +1 -1
- package/dist/evaluator.d.ts.map +1 -1
- package/dist/findings-view.d.ts +7 -2
- package/dist/findings-view.d.ts.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -4
- package/dist/inventory.d.ts +51 -0
- package/dist/inventory.d.ts.map +1 -0
- package/dist/plugin.d.ts +30 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/presence-check.d.ts +1 -0
- package/dist/presence-check.d.ts.map +1 -1
- package/dist/sandbox-entry.d.ts +2 -1
- package/dist/sandbox-entry.d.ts.map +1 -1
- package/dist/sandbox-entry.js +366 -81
- package/dist/sandbox.d.ts +2 -2
- package/dist/sidecar-url.d.ts.map +1 -1
- package/dist/sidecar.d.ts +7 -1
- package/dist/sidecar.d.ts.map +1 -1
- package/dist/types.d.ts +11 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/wasm-init.d.ts +4 -0
- package/dist/wasm-init.d.ts.map +1 -1
- package/package.json +18 -7
- package/wasm/aexeo_emdash_bridge.d.ts +11 -0
- package/wasm/aexeo_emdash_bridge.js +1 -1
- package/wasm/aexeo_emdash_bridge_bg.d.ts +11 -0
- package/wasm/aexeo_emdash_bridge_bg.js +68 -0
- package/wasm/aexeo_emdash_bridge_bg.wasm +0 -0
- package/wasm/aexeo_emdash_bridge_bg.wasm.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var PACKAGE_VERSION = "0.9.0";
|
|
3
|
+
|
|
1
4
|
// src/plugin.ts
|
|
2
5
|
var baseCapabilities = ["content:read"];
|
|
3
6
|
function buildCapabilities(evaluatorHost) {
|
|
@@ -16,7 +19,21 @@ function normalizeHost(evaluatorHost) {
|
|
|
16
19
|
return host.length === 0 ? null : host;
|
|
17
20
|
}
|
|
18
21
|
var SETTINGS_TOKEN_KEY = "eval_token";
|
|
22
|
+
var SETTINGS_BLOCK_MAPPINGS_KEY = "block_mappings";
|
|
23
|
+
var SETTINGS_CONTENT_FIELDS_KEY = "content_fields_by_collection";
|
|
19
24
|
var PLUGIN_SETTINGS_SCHEMA = {
|
|
25
|
+
[SETTINGS_CONTENT_FIELDS_KEY]: {
|
|
26
|
+
type: "string",
|
|
27
|
+
label: "Content fields by collection (JSON)",
|
|
28
|
+
description: "Ordered rendered body fields per collection.",
|
|
29
|
+
multiline: true
|
|
30
|
+
},
|
|
31
|
+
[SETTINGS_BLOCK_MAPPINGS_KEY]: {
|
|
32
|
+
type: "string",
|
|
33
|
+
label: "Custom block mappings (JSON)",
|
|
34
|
+
description: "Ordered mappings for the rendered fields of each custom block type.",
|
|
35
|
+
multiline: true
|
|
36
|
+
},
|
|
20
37
|
[SETTINGS_TOKEN_KEY]: {
|
|
21
38
|
type: "secret",
|
|
22
39
|
label: "EVAL_TOKEN",
|
|
@@ -24,9 +41,6 @@ var PLUGIN_SETTINGS_SCHEMA = {
|
|
|
24
41
|
}
|
|
25
42
|
};
|
|
26
43
|
|
|
27
|
-
// src/version.ts
|
|
28
|
-
var PACKAGE_VERSION = "0.8.19";
|
|
29
|
-
|
|
30
44
|
// src/sandbox.ts
|
|
31
45
|
function aexeoPluginSandboxed(options = {}) {
|
|
32
46
|
const evaluatorHost = options.evaluatorHost ?? process.env.AEXEO_EVALUATOR_HOST ?? null;
|
|
@@ -56,6 +70,76 @@ function aexeoPluginSandboxed(options = {}) {
|
|
|
56
70
|
};
|
|
57
71
|
}
|
|
58
72
|
|
|
73
|
+
// src/inventory.ts
|
|
74
|
+
async function exportLinkInventory(content, options) {
|
|
75
|
+
const started = options.onTelemetry ? Date.now() : 0;
|
|
76
|
+
const collections = [...new Set(options.collections)];
|
|
77
|
+
if (collections.length === 0 || collections.some((name) => name.trim() === "")) {
|
|
78
|
+
throw new Error("at least one explicit collection is required");
|
|
79
|
+
}
|
|
80
|
+
const limit = options.maxPagesPerCollection ?? 100;
|
|
81
|
+
if (!Number.isSafeInteger(limit) || limit < 1) {
|
|
82
|
+
throw new Error("maxPagesPerCollection must be a positive integer");
|
|
83
|
+
}
|
|
84
|
+
const pages = [];
|
|
85
|
+
const issues = /* @__PURE__ */ new Set(["transactional_snapshot_unavailable"]);
|
|
86
|
+
let scanned = 0;
|
|
87
|
+
let omitted = 0;
|
|
88
|
+
for (const collection of collections) {
|
|
89
|
+
let cursor;
|
|
90
|
+
const seen = /* @__PURE__ */ new Set();
|
|
91
|
+
for (let count = 0; count < limit; count += 1) {
|
|
92
|
+
let batch;
|
|
93
|
+
try {
|
|
94
|
+
batch = await content.list(collection, { limit: 100, ...cursor === void 0 ? {} : { cursor } });
|
|
95
|
+
} catch {
|
|
96
|
+
issues.add("collection_read_failed");
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
for (const item of batch.items) {
|
|
100
|
+
scanned += 1;
|
|
101
|
+
let url;
|
|
102
|
+
try {
|
|
103
|
+
url = await content.getPublicUrl(collection, item.id);
|
|
104
|
+
} catch {
|
|
105
|
+
issues.add("url_resolution_failed");
|
|
106
|
+
omitted += 1;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (!url) {
|
|
110
|
+
issues.add("entry_without_public_url");
|
|
111
|
+
omitted += 1;
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
const classification = options.classify?.(item, url);
|
|
115
|
+
pages.push({
|
|
116
|
+
url,
|
|
117
|
+
disposition: classification?.disposition ?? "unknown",
|
|
118
|
+
target: classification?.target ?? null,
|
|
119
|
+
locale: item.locale
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
if (!batch.hasMore) break;
|
|
123
|
+
if (!batch.cursor || seen.has(batch.cursor)) {
|
|
124
|
+
issues.add("invalid_or_repeated_cursor");
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
seen.add(batch.cursor);
|
|
128
|
+
cursor = batch.cursor;
|
|
129
|
+
if (count + 1 === limit) issues.add("collection_page_limit_reached");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
pages.sort((left, right) => left.url < right.url ? -1 : left.url > right.url ? 1 : 0);
|
|
133
|
+
const result = { inventory: { identity: options.identity, complete: false, pages }, issues: [...issues].sort(), scanned, omitted };
|
|
134
|
+
if (options.onTelemetry) {
|
|
135
|
+
try {
|
|
136
|
+
options.onTelemetry({ event: "link_inventory_export", elapsed_ms: Math.max(0, Date.now() - started), scanned, omitted, page_count: pages.length, issue_count: issues.size });
|
|
137
|
+
} catch {
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
142
|
+
|
|
59
143
|
// src/index.ts
|
|
60
144
|
function aexeoPlugin(options = {}) {
|
|
61
145
|
return {
|
|
@@ -80,6 +164,16 @@ function aexeoPlugin(options = {}) {
|
|
|
80
164
|
// receives. Spread to a plain object so readonly arrays survive
|
|
81
165
|
// the structured-clone semantics of that codegen.
|
|
82
166
|
options: {
|
|
167
|
+
...options.blockMappings === void 0 ? {} : { blockMappings: options.blockMappings },
|
|
168
|
+
...options.contentFieldsByCollection === void 0 ? {} : { contentFieldsByCollection: options.contentFieldsByCollection },
|
|
169
|
+
...options.contentPreset === void 0 ? {} : {
|
|
170
|
+
contentPreset: {
|
|
171
|
+
...options.contentPreset,
|
|
172
|
+
...options.contentPreset.collections === void 0 ? {} : { collections: [...options.contentPreset.collections] },
|
|
173
|
+
...options.contentPreset.sources === void 0 ? {} : { sources: { ...options.contentPreset.sources } },
|
|
174
|
+
...options.contentPreset.byCollection === void 0 ? {} : { byCollection: { ...options.contentPreset.byCollection } }
|
|
175
|
+
}
|
|
176
|
+
},
|
|
83
177
|
...options.collections === void 0 ? {} : { collections: [...options.collections] },
|
|
84
178
|
...options.includeCollections === void 0 ? {} : { includeCollections: [...options.includeCollections] },
|
|
85
179
|
...options.excludeCollections === void 0 ? {} : { excludeCollections: [...options.excludeCollections] },
|
|
@@ -111,5 +205,6 @@ function aexeoPlugin(options = {}) {
|
|
|
111
205
|
}
|
|
112
206
|
export {
|
|
113
207
|
aexeoPlugin,
|
|
114
|
-
aexeoPluginSandboxed
|
|
208
|
+
aexeoPluginSandboxed,
|
|
209
|
+
exportLinkInventory
|
|
115
210
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { EmdashContentItem } from "./adapter.js";
|
|
2
|
+
import type { SandboxContentApi } from "./plugin.js";
|
|
3
|
+
/** Explicit surface identity supplied by the inventory producer. */
|
|
4
|
+
export interface LinkInventoryIdentity {
|
|
5
|
+
origin: string;
|
|
6
|
+
release: string;
|
|
7
|
+
surface: string;
|
|
8
|
+
snapshot: string;
|
|
9
|
+
}
|
|
10
|
+
export type LinkInventoryDisposition = "published" | "draft" | "noindex" | "redirect" | "canonical_alias" | "locale_fallback" | "unknown";
|
|
11
|
+
export interface LinkInventoryPage {
|
|
12
|
+
url: string;
|
|
13
|
+
disposition: LinkInventoryDisposition;
|
|
14
|
+
target: string | null;
|
|
15
|
+
locale: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface LinkInventoryExport {
|
|
18
|
+
inventory: {
|
|
19
|
+
identity: LinkInventoryIdentity | null;
|
|
20
|
+
/** EmDash pagination does not establish a transactional site snapshot. */
|
|
21
|
+
complete: false;
|
|
22
|
+
pages: LinkInventoryPage[];
|
|
23
|
+
};
|
|
24
|
+
issues: string[];
|
|
25
|
+
scanned: number;
|
|
26
|
+
omitted: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Enumerate explicitly selected collections using EmDash's actual URL resolver.
|
|
30
|
+
* An application may supply its own indexability and alias classification.
|
|
31
|
+
* Missing metadata is unknown; no route or snapshot guarantees are inferred.
|
|
32
|
+
*/
|
|
33
|
+
export declare function exportLinkInventory(content: Pick<SandboxContentApi, "list" | "getPublicUrl">, options: {
|
|
34
|
+
collections: readonly string[];
|
|
35
|
+
identity: LinkInventoryIdentity | null;
|
|
36
|
+
maxPagesPerCollection?: number;
|
|
37
|
+
/** Optional aggregate-only local telemetry; no URLs or content are included. */
|
|
38
|
+
onTelemetry?: (event: {
|
|
39
|
+
event: "link_inventory_export";
|
|
40
|
+
elapsed_ms: number;
|
|
41
|
+
scanned: number;
|
|
42
|
+
omitted: number;
|
|
43
|
+
page_count: number;
|
|
44
|
+
issue_count: number;
|
|
45
|
+
}) => void;
|
|
46
|
+
classify?: (item: EmdashContentItem, url: string) => {
|
|
47
|
+
disposition: LinkInventoryDisposition;
|
|
48
|
+
target?: string | null;
|
|
49
|
+
};
|
|
50
|
+
}): Promise<LinkInventoryExport>;
|
|
51
|
+
//# sourceMappingURL=inventory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../src/inventory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,oEAAoE;AACpE,MAAM,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AI,CAAC;IACjK,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,KAAK;QACnD,WAAW,EAAE,wBAAwB,CAAC;QACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB,CAAC;CACH,GACA,OAAO,CAAC,mBAAmB,CAAC,CAoE9B"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CustomBlockMappings } from "./adapter.js";
|
|
1
2
|
import type { SuppressionFilter } from "./suppressions.js";
|
|
2
3
|
import type { EmdashDocument, Finding } from "./types.js";
|
|
3
4
|
import { type EmdashContentItem, type EmdashContentMeta } from "./adapter.js";
|
|
@@ -22,12 +23,20 @@ export interface KvNamespace {
|
|
|
22
23
|
export declare const CONFIG_URL_KEY = "config:evaluator_url";
|
|
23
24
|
export declare const CONFIG_TOKEN_KEY = "config:eval_token";
|
|
24
25
|
export declare const SETTINGS_TOKEN_KEY = "eval_token";
|
|
26
|
+
export declare const SETTINGS_BLOCK_MAPPINGS_KEY = "block_mappings";
|
|
27
|
+
export declare const SETTINGS_CONTENT_FIELDS_KEY = "content_fields_by_collection";
|
|
25
28
|
export interface SecretSettingField {
|
|
26
29
|
type: "secret";
|
|
27
30
|
label: string;
|
|
28
31
|
description?: string;
|
|
29
32
|
}
|
|
30
|
-
export
|
|
33
|
+
export type PluginSettingField = SecretSettingField | {
|
|
34
|
+
type: "string";
|
|
35
|
+
label: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
multiline?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const PLUGIN_SETTINGS_SCHEMA: Record<string, PluginSettingField>;
|
|
31
40
|
export interface PluginSettingsAccess {
|
|
32
41
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
33
42
|
set(key: string, value: unknown): Promise<void>;
|
|
@@ -46,6 +55,9 @@ export interface SidecarRuntimeConfig {
|
|
|
46
55
|
}
|
|
47
56
|
export declare function readSidecarConfig(store: SidecarConfigStore): Promise<SidecarRuntimeConfig | null>;
|
|
48
57
|
export declare function writeSidecarConfig(store: SidecarConfigStore, config: SidecarRuntimeConfig): Promise<void>;
|
|
58
|
+
export declare function isTokenStoredInPlaintext(store: SidecarConfigStore): Promise<boolean>;
|
|
59
|
+
export declare class TokenStorageError extends Error {
|
|
60
|
+
}
|
|
49
61
|
export interface ContentList {
|
|
50
62
|
items: EmdashContentItem[];
|
|
51
63
|
cursor?: string;
|
|
@@ -80,8 +92,19 @@ export interface ContentAfterSaveEvent {
|
|
|
80
92
|
collection: string;
|
|
81
93
|
isNew: boolean;
|
|
82
94
|
}
|
|
95
|
+
export interface ContentAfterDeleteEvent {
|
|
96
|
+
id: string;
|
|
97
|
+
collection: string;
|
|
98
|
+
permanent: boolean;
|
|
99
|
+
}
|
|
100
|
+
export declare function handleAfterDelete(event: ContentAfterDeleteEvent, ctx: SandboxCtx): Promise<void>;
|
|
101
|
+
/** Read optional sandbox mappings without logging their potentially sensitive contents. */
|
|
102
|
+
export declare function readSandboxBlockMappings(ctx: SandboxCtx): Promise<CustomBlockMappings | undefined>;
|
|
103
|
+
/** Read an optional JSON mapping from collection names to ordered field names. */
|
|
104
|
+
export declare function readSandboxContentFields(ctx: SandboxCtx): Promise<Record<string, readonly string[]> | undefined>;
|
|
83
105
|
export declare function handleAfterSave(event: ContentAfterSaveEvent, ctx: SandboxCtx): Promise<void>;
|
|
84
|
-
export declare
|
|
106
|
+
export declare const SITE_GRAPH_RULE_IDS: ReadonlySet<string>;
|
|
107
|
+
export declare function handleAfterSaveConfigured(event: ContentAfterSaveEvent, ctx: SandboxCtx, evaluator: EvaluatorFn, suppressionFilter?: SuppressionFilter, blockMappings?: CustomBlockMappings, contentFields?: readonly string[]): Promise<void>;
|
|
85
108
|
export declare const DEFAULT_COLLECTIONS: readonly ["posts", "pages"];
|
|
86
109
|
export interface RefreshSummary {
|
|
87
110
|
documentsScanned: number;
|
|
@@ -97,11 +120,15 @@ export type EvaluationOutcome = {
|
|
|
97
120
|
reason: string;
|
|
98
121
|
detail: string;
|
|
99
122
|
};
|
|
100
|
-
export type EvaluatorFn = (documents: readonly EmdashDocument[]
|
|
123
|
+
export type EvaluatorFn = (documents: readonly EmdashDocument[], context?: {
|
|
124
|
+
collections: readonly string[];
|
|
125
|
+
}) => Promise<EvaluationOutcome>;
|
|
101
126
|
export declare function evaluateAndPersistAll(ctx: SandboxCtx, options: {
|
|
102
127
|
collections?: readonly string[];
|
|
103
128
|
evaluator: EvaluatorFn;
|
|
104
129
|
suppressionFilter?: SuppressionFilter;
|
|
130
|
+
blockMappings?: CustomBlockMappings | undefined;
|
|
131
|
+
contentFieldsByCollection?: Record<string, readonly string[]> | undefined;
|
|
105
132
|
}): Promise<RefreshSummary>;
|
|
106
133
|
export declare function findingsKey(route: string): string;
|
|
107
134
|
export declare function documentKey(route: string): string;
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAEvB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAuBD,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,SAAS,MAAM,EAAE,CAMnB;AAID,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,SAAS,MAAM,EAAE,CAGnB;AAUD,eAAO,MAAM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c,EAAE,EACpC,OAAO,CAAC,EAAE;IAAE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,KACzC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAWhC,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,WAAW,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;CAC3E,GACA,OAAO,CAAC,cAAc,CAAC,CAyIzB;AAkID,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD;AAOD,eAAO,MAAM,SAAS,kBAAkB,CAAC;AAMzC,wBAAsB,eAAe,CACnC,EAAE,EAAE,WAAW,GACd,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAGzB;AAED,wBAAsB,gBAAgB,CACpC,EAAE,EAAE,WAAW,GACd,OAAO,CAAC,cAAc,EAAE,CAAC,CAE3B;AAED,wBAAsB,sBAAsB,CAC1C,EAAE,EAAE,WAAW,GACd,OAAO,CAAC,cAAc,EAAE,CAAC,CAW3B;AAED,wBAAsB,YAAY,CAChC,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,EAAE,CAAC,CAMpB"}
|
package/dist/presence-check.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TruthManifest } from "./types.js";
|
|
2
|
+
export declare const PRESENCE_HOSTS: readonly ["en.wikipedia.org", "www.wikidata.org", "api.github.com", "rdap.org", "index.commoncrawl.org"];
|
|
2
3
|
export type SourceStatus = "found" | "not_found" | "unreachable" | "skipped";
|
|
3
4
|
export interface SourceResult {
|
|
4
5
|
source: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence-check.d.ts","sourceRoot":"","sources":["../src/presence-check.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"presence-check.d.ts","sourceRoot":"","sources":["../src/presence-check.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQhD,eAAO,MAAM,cAAc,YACzB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,uBAAuB,CACf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;AAE7E,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAED,QAAA,MAAM,YAAY,YAChB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,MAAM,EACN,cAAc,CACN,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAKvD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,aAAa,GAAG,IAAI,GAC7B,WAAW,GAAG,IAAI,CAUpB;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,YAAY,EAAE,CAAC,CAoBzB"}
|
package/dist/sandbox-entry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { KvNamespace, SandboxCtx } from "./plugin.js";
|
|
2
|
-
import { handleAfterSave } from "./plugin.js";
|
|
2
|
+
import { handleAfterDelete, handleAfterSave } from "./plugin.js";
|
|
3
3
|
import type { BlockInteraction, BlockResponse } from "./findings-view.js";
|
|
4
4
|
export type { BlockInteraction, BlockResponse } from "./findings-view.js";
|
|
5
5
|
export interface RouteInput {
|
|
@@ -16,6 +16,7 @@ declare function handleAdminRoute(input: RouteInput, ctx: SandboxCtx): Promise<B
|
|
|
16
16
|
declare const _default: {
|
|
17
17
|
hooks: {
|
|
18
18
|
"content:afterSave": typeof handleAfterSave;
|
|
19
|
+
"content:afterDelete": typeof handleAfterDelete;
|
|
19
20
|
};
|
|
20
21
|
routes: {
|
|
21
22
|
admin: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-entry.d.ts","sourceRoot":"","sources":["../src/sandbox-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,UAAU,EAEX,MAAM,aAAa,CAAC;AACrB,OAAO,
|
|
1
|
+
{"version":3,"file":"sandbox-entry.d.ts","sourceRoot":"","sources":["../src/sandbox-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,UAAU,EAEX,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,iBAAiB,EACjB,eAAe,EAMhB,MAAM,aAAa,CAAC;AAIrB,OAAO,KAAK,EAEV,gBAAgB,EAChB,aAAa,EACd,MAAM,oBAAoB,CAAC;AAuB5B,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAa1E,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAID,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,WAAW,CAAC;IAChB,GAAG,EAAE,UAAU,CAAC;CACjB;AA6BD,iBAAe,gBAAgB,CAC7B,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,aAAa,CAAC,CAwBxB;;;QAqQG,mBAAmB;QACnB,qBAAqB;;;QAGrB,KAAK;YAAI,OAAO"}
|