@curless/hotel-storefront 0.92.0 → 0.94.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/README.md +5 -2
- package/dist/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/cidr.d.ts +3 -21
- package/dist/cidr.d.ts.map +1 -1
- package/dist/cidr.js +9 -56
- package/dist/cidr.js.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/openai-conversation.d.ts +50 -0
- package/dist/openai-conversation.d.ts.map +1 -0
- package/dist/openai-conversation.js +83 -0
- package/dist/openai-conversation.js.map +1 -0
- package/dist/out-of-list.d.ts +74 -0
- package/dist/out-of-list.d.ts.map +1 -0
- package/dist/out-of-list.js +150 -0
- package/dist/out-of-list.js.map +1 -0
- package/dist/ranges-check-cli.js +19 -7
- package/dist/ranges-check-cli.js.map +1 -1
- package/dist/ranges-check.d.ts +19 -15
- package/dist/ranges-check.d.ts.map +1 -1
- package/dist/ranges-check.js +57 -109
- package/dist/ranges-check.js.map +1 -1
- package/dist/server.d.ts +14 -18
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +100 -148
- package/dist/server.js.map +1 -1
- package/dist/source-allowlist.d.ts +4 -10
- package/dist/source-allowlist.d.ts.map +1 -1
- package/dist/source-allowlist.js +28 -45
- package/dist/source-allowlist.js.map +1 -1
- package/dist/source-ranges.d.ts.map +1 -1
- package/dist/source-ranges.js +23 -418
- package/dist/source-ranges.js.map +1 -1
- package/dist/source-refusal-log.d.ts +13 -0
- package/dist/source-refusal-log.d.ts.map +1 -0
- package/dist/source-refusal-log.js +50 -0
- package/dist/source-refusal-log.js.map +1 -0
- package/dist/tools/compare.d.ts.map +1 -1
- package/dist/tools/compare.js +5 -0
- package/dist/tools/compare.js.map +1 -1
- package/dist/tools/hotel-bookable.d.ts +13 -0
- package/dist/tools/hotel-bookable.d.ts.map +1 -1
- package/dist/tools/hotel-bookable.js +22 -0
- package/dist/tools/hotel-bookable.js.map +1 -1
- package/dist/usage/boot.d.ts +3 -0
- package/dist/usage/boot.d.ts.map +1 -1
- package/dist/usage/boot.js +2 -1
- package/dist/usage/boot.js.map +1 -1
- package/dist/usage/platform.d.ts +7 -1
- package/dist/usage/platform.d.ts.map +1 -1
- package/dist/usage/platform.js +6 -2
- package/dist/usage/platform.js.map +1 -1
- package/dist/usage/recorder.d.ts +2 -0
- package/dist/usage/recorder.d.ts.map +1 -1
- package/dist/usage/recorder.js +1 -0
- package/dist/usage/recorder.js.map +1 -1
- package/package.json +2 -1
package/dist/ranges-check.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ListStatus, MAX_REDIRECTS, MAX_SOURCE_BYTES, type PlatformRanges as PlatformLists } from '@curless/platform-ranges';
|
|
1
2
|
import { type PlatformRanges, type RangeSource } from './source-ranges.js';
|
|
2
3
|
/** One source, compared. */
|
|
3
4
|
export type SourceDiff = {
|
|
@@ -13,6 +14,8 @@ export type SourceDiff = {
|
|
|
13
14
|
theirs: number;
|
|
14
15
|
/** Why it could not be compared. */
|
|
15
16
|
error?: string;
|
|
17
|
+
/** Where the list in use came from and how old it is (OpenAI's and Anthropic's). */
|
|
18
|
+
list?: ListStatus;
|
|
16
19
|
};
|
|
17
20
|
/** The URL `ranges-check` reads - the Markdown of a docs page, where it has one. */
|
|
18
21
|
export declare const fetchUrlOf: (s: RangeSource) => string;
|
|
@@ -30,24 +33,25 @@ export declare const fetchUrlOf: (s: RangeSource) => string;
|
|
|
30
33
|
export declare const parsePublished: (s: RangeSource, body: string) => string[];
|
|
31
34
|
/** One source compared with what it publishes now. */
|
|
32
35
|
export declare const compareSource: (platform: string, s: RangeSource, published: string[], version?: string) => SourceDiff;
|
|
33
|
-
/**
|
|
34
|
-
export declare const
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
/** What a source's URL answers - the package's one reader (same origin only, size-capped). */
|
|
37
|
+
export declare const readSource: (doFetch: typeof fetch, url: string, signal?: AbortSignal) => Promise<string>;
|
|
38
|
+
export { MAX_REDIRECTS, MAX_SOURCE_BYTES };
|
|
39
|
+
/** Every source of every platform, read again and compared. `lists`: how old each list in use is. */
|
|
40
|
+
export declare const checkRanges: (doFetch?: typeof fetch, platforms?: readonly PlatformRanges[], lists?: Readonly<Record<string, ListStatus>>) => Promise<SourceDiff[]>;
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* The lists the server has in use (the package's registry: the kept file, else the
|
|
43
|
+
* built-in snapshot), as `checkRanges` takes them: each platform's `cidrs` and `version`
|
|
44
|
+
* replaced by what is in use, and how old each is.
|
|
39
45
|
*
|
|
40
|
-
* ⚠️
|
|
41
|
-
*
|
|
42
|
-
* platform's own host; a page that sends us elsewhere is not read.
|
|
43
|
-
* ⚠️ AT MOST `MAX_SOURCE_BYTES`, by the declared length and by what arrives:
|
|
44
|
-
* a source many times its usual size is not the list.
|
|
46
|
+
* ⚠️ THE BUILT-IN SNAPSHOT IS STALE BY ITS OWN DATE HERE: `status().stale` counts it from
|
|
47
|
+
* the process's start, which for this command is now.
|
|
45
48
|
*/
|
|
46
|
-
export declare const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
export declare const inUse: (registry: Pick<PlatformLists, "status" | "ranges">, now?: number, platforms?: readonly PlatformRanges[]) => {
|
|
50
|
+
platforms: PlatformRanges[];
|
|
51
|
+
lists: Record<string, ListStatus>;
|
|
52
|
+
};
|
|
53
|
+
/** The exit code for a comparison: 0 the same, 1 something differs, 2 something unread, 3 a list stale. */
|
|
54
|
+
export declare const exitCodeOf: (diffs: SourceDiff[]) => 0 | 1 | 2 | 3;
|
|
51
55
|
/** The report a person reads. */
|
|
52
56
|
export declare const reportOf: (diffs: SourceDiff[], platforms?: readonly PlatformRanges[]) => string;
|
|
53
57
|
//# sourceMappingURL=ranges-check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ranges-check.d.ts","sourceRoot":"","sources":["../src/ranges-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ranges-check.d.ts","sourceRoot":"","sources":["../src/ranges-check.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,aAAa,EACb,gBAAgB,EAChB,KAAK,cAAc,IAAI,aAAa,EAMrC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAsB5F,4BAA4B;AAC5B,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,sCAAsC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAQF,oFAAoF;AACpF,eAAO,MAAM,UAAU,GAAI,GAAG,WAAW,KAAG,MACc,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,WAAW,EAAE,MAAM,MAAM,KAAG,MAAM,EACqB,CAAC;AAE1F,sDAAsD;AACtD,eAAO,MAAM,aAAa,GACxB,UAAU,MAAM,EAChB,GAAG,WAAW,EACd,WAAW,MAAM,EAAE,EACnB,UAAU,MAAM,KACf,UAuBF,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,UAAU,+EAAW,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC;AAE3C,qGAAqG;AACrG,eAAO,MAAM,WAAW,GACtB,UAAS,OAAO,KAAa,EAC7B,YAAW,SAAS,cAAc,EAAoB,EACtD,QAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAM,KAC/C,OAAO,CAAC,UAAU,EAAE,CAyBtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAChB,UAAU,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAAC,EAClD,MAAK,MAAmB,EACxB,YAAW,SAAS,cAAc,EAAoB,KACrD;IAAE,SAAS,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAoBlE,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,EAAE,KAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAOlD,CAAC;AAEZ,iCAAiC;AACjC,eAAO,MAAM,QAAQ,GACnB,OAAO,UAAU,EAAE,EACnB,YAAW,SAAS,cAAc,EAAoB,KACrD,MA4BF,CAAC"}
|
package/dist/ranges-check.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseCidr } from '
|
|
1
|
+
import { MAX_REDIRECTS, MAX_SOURCE_BYTES, STALE_AFTER_MS, parseAnthropic, parseCidr, parseOpenAi, readBody, } from '@curless/platform-ranges';
|
|
2
2
|
import { PLATFORM_RANGES } from './source-ranges.js';
|
|
3
3
|
/** A range written the one way it compares: its network and prefix, read by cidr.ts. */
|
|
4
4
|
const canonical = (raw) => {
|
|
@@ -18,32 +18,7 @@ export const fetchUrlOf = (s) => s.format === 'anthropic-ip-page' ? `${s.url}.md
|
|
|
18
18
|
* ⚠️ A SOURCE THAT LISTS NOTHING WAS NOT READ: an empty list is an error (exit
|
|
19
19
|
* 2), not every range removed (audit P3-11).
|
|
20
20
|
*/
|
|
21
|
-
export const parsePublished = (s, body) =>
|
|
22
|
-
if (s.format === 'openai-prefixes-json') {
|
|
23
|
-
const json = JSON.parse(body);
|
|
24
|
-
if (!Array.isArray(json.prefixes))
|
|
25
|
-
throw new Error('no "prefixes" in the file');
|
|
26
|
-
const listed = json.prefixes
|
|
27
|
-
.map((p) => p.ipv4Prefix ?? p.ipv6Prefix)
|
|
28
|
-
.filter((x) => typeof x === 'string');
|
|
29
|
-
if (!listed.length)
|
|
30
|
-
throw new Error('"prefixes" lists no range');
|
|
31
|
-
return listed;
|
|
32
|
-
}
|
|
33
|
-
const start = body.search(/^##\s+Outbound IP addresses\s*$/m);
|
|
34
|
-
if (start < 0)
|
|
35
|
-
throw new Error('no "## Outbound IP addresses" heading on the page');
|
|
36
|
-
const rest = body.slice(start).replace(/^##\s+Outbound[^\n]*\n/, '');
|
|
37
|
-
const next = rest.search(/^##\s/m);
|
|
38
|
-
const section = next < 0 ? rest : rest.slice(0, next);
|
|
39
|
-
// Each `### IPv4` / `### IPv6` list, to the next heading of any level.
|
|
40
|
-
const found = [
|
|
41
|
-
...section.matchAll(/^###\s+IPv[46]\s*$([\s\S]*?)(?=^#{1,6}\s|(?![\s\S]))/gm),
|
|
42
|
-
].flatMap((m) => [...(m[1] ?? '').matchAll(/`([0-9a-fA-F:.]+\/\d{1,3})`/g)].map((r) => r[1]));
|
|
43
|
-
if (!found.length)
|
|
44
|
-
throw new Error('no ranges under "Outbound IP addresses" / "### IPv4" or "### IPv6"');
|
|
45
|
-
return found;
|
|
46
|
-
};
|
|
21
|
+
export const parsePublished = (s, body) => (s.format === 'openai-prefixes-json' ? parseOpenAi(body) : parseAnthropic(body)).ranges;
|
|
47
22
|
/** One source compared with what it publishes now. */
|
|
48
23
|
export const compareSource = (platform, s, published, version) => {
|
|
49
24
|
const theirs = new Map();
|
|
@@ -71,86 +46,20 @@ export const compareSource = (platform, s, published, version) => {
|
|
|
71
46
|
: {}),
|
|
72
47
|
};
|
|
73
48
|
};
|
|
74
|
-
/**
|
|
75
|
-
export const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* What a source's URL answers - read with care (0.69.1, 总线程's review P3-4):
|
|
80
|
-
*
|
|
81
|
-
* ⚠️ A REDIRECT IS FOLLOWED ONLY WITHIN THE SAME ORIGIN, and at most
|
|
82
|
-
* `MAX_REDIRECTS` times. The ranges are the platform's word only on the
|
|
83
|
-
* platform's own host; a page that sends us elsewhere is not read.
|
|
84
|
-
* ⚠️ AT MOST `MAX_SOURCE_BYTES`, by the declared length and by what arrives:
|
|
85
|
-
* a source many times its usual size is not the list.
|
|
86
|
-
*/
|
|
87
|
-
export const readSource = async (doFetch, url, signal = AbortSignal.timeout(20_000)) => {
|
|
88
|
-
let at = new URL(url);
|
|
89
|
-
for (let hop = 0;; hop += 1) {
|
|
90
|
-
const res = await doFetch(at.href, {
|
|
91
|
-
redirect: 'manual',
|
|
92
|
-
headers: { 'user-agent': 'hotel-storefront-ranges-check' },
|
|
93
|
-
signal,
|
|
94
|
-
});
|
|
95
|
-
if (res.status >= 300 && res.status < 400) {
|
|
96
|
-
await res.body?.cancel();
|
|
97
|
-
const to = res.headers.get('location');
|
|
98
|
-
if (!to)
|
|
99
|
-
throw new Error(`HTTP ${res.status} with no location`);
|
|
100
|
-
const next = new URL(to, at);
|
|
101
|
-
if (next.origin !== at.origin) {
|
|
102
|
-
throw new Error(`HTTP ${res.status} to ${next.origin} - not followed: only the same origin is`);
|
|
103
|
-
}
|
|
104
|
-
if (hop >= MAX_REDIRECTS)
|
|
105
|
-
throw new Error(`more than ${MAX_REDIRECTS} redirects`);
|
|
106
|
-
at = next;
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
if (!res.ok) {
|
|
110
|
-
await res.body?.cancel();
|
|
111
|
-
throw new Error(`HTTP ${res.status}`);
|
|
112
|
-
}
|
|
113
|
-
const tooBig = `larger than ${MAX_SOURCE_BYTES} bytes - not read`;
|
|
114
|
-
if (Number(res.headers.get('content-length') ?? 0) > MAX_SOURCE_BYTES) {
|
|
115
|
-
await res.body?.cancel();
|
|
116
|
-
throw new Error(tooBig);
|
|
117
|
-
}
|
|
118
|
-
const reader = res.body?.getReader();
|
|
119
|
-
if (!reader)
|
|
120
|
-
return '';
|
|
121
|
-
const chunks = [];
|
|
122
|
-
let total = 0;
|
|
123
|
-
for (;;) {
|
|
124
|
-
const { done, value } = await reader.read();
|
|
125
|
-
if (done)
|
|
126
|
-
break;
|
|
127
|
-
total += value.byteLength;
|
|
128
|
-
if (total > MAX_SOURCE_BYTES) {
|
|
129
|
-
await reader.cancel();
|
|
130
|
-
throw new Error(tooBig);
|
|
131
|
-
}
|
|
132
|
-
chunks.push(value);
|
|
133
|
-
}
|
|
134
|
-
const all = new Uint8Array(total);
|
|
135
|
-
let o = 0;
|
|
136
|
-
for (const c of chunks) {
|
|
137
|
-
all.set(c, o);
|
|
138
|
-
o += c.byteLength;
|
|
139
|
-
}
|
|
140
|
-
return new TextDecoder().decode(all);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
/** Every source of every platform, read again and compared. */
|
|
144
|
-
export const checkRanges = async (doFetch = fetch, platforms = PLATFORM_RANGES) => {
|
|
49
|
+
/** What a source's URL answers - the package's one reader (same origin only, size-capped). */
|
|
50
|
+
export const readSource = readBody;
|
|
51
|
+
export { MAX_REDIRECTS, MAX_SOURCE_BYTES };
|
|
52
|
+
/** Every source of every platform, read again and compared. `lists`: how old each list in use is. */
|
|
53
|
+
export const checkRanges = async (doFetch = fetch, platforms = PLATFORM_RANGES, lists = {}) => {
|
|
145
54
|
const out = [];
|
|
146
55
|
for (const p of platforms) {
|
|
56
|
+
const list = lists[p.id];
|
|
147
57
|
for (const s of p.sources) {
|
|
58
|
+
const aged = list ? { list } : {};
|
|
148
59
|
try {
|
|
149
60
|
const body = await readSource(doFetch, fetchUrlOf(s));
|
|
150
|
-
const version = s.format === 'openai-prefixes-json'
|
|
151
|
-
|
|
152
|
-
: undefined;
|
|
153
|
-
out.push(compareSource(p.id, s, parsePublished(s, body), version));
|
|
61
|
+
const version = s.format === 'openai-prefixes-json' ? parseOpenAi(body).version : undefined;
|
|
62
|
+
out.push({ ...compareSource(p.id, s, parsePublished(s, body), version), ...aged });
|
|
154
63
|
}
|
|
155
64
|
catch (e) {
|
|
156
65
|
out.push({
|
|
@@ -161,26 +70,65 @@ export const checkRanges = async (doFetch = fetch, platforms = PLATFORM_RANGES)
|
|
|
161
70
|
ours: s.cidrs.length,
|
|
162
71
|
theirs: 0,
|
|
163
72
|
error: e instanceof Error ? e.message : String(e),
|
|
73
|
+
...aged,
|
|
164
74
|
});
|
|
165
75
|
}
|
|
166
76
|
}
|
|
167
77
|
}
|
|
168
78
|
return out;
|
|
169
79
|
};
|
|
170
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* The lists the server has in use (the package's registry: the kept file, else the
|
|
82
|
+
* built-in snapshot), as `checkRanges` takes them: each platform's `cidrs` and `version`
|
|
83
|
+
* replaced by what is in use, and how old each is.
|
|
84
|
+
*
|
|
85
|
+
* ⚠️ THE BUILT-IN SNAPSHOT IS STALE BY ITS OWN DATE HERE: `status().stale` counts it from
|
|
86
|
+
* the process's start, which for this command is now.
|
|
87
|
+
*/
|
|
88
|
+
export const inUse = (registry, now = Date.now(), platforms = PLATFORM_RANGES) => {
|
|
89
|
+
const status = registry.status();
|
|
90
|
+
const lists = {};
|
|
91
|
+
const used = platforms.map((p) => {
|
|
92
|
+
const st = status[p.id];
|
|
93
|
+
if (!st)
|
|
94
|
+
return p;
|
|
95
|
+
lists[p.id] = {
|
|
96
|
+
...st,
|
|
97
|
+
stale: st.from === 'built-in' ? now - Date.parse(st.fetchedAt) > STALE_AFTER_MS : st.stale,
|
|
98
|
+
};
|
|
99
|
+
const cidrs = [...registry.ranges(st.platform)];
|
|
100
|
+
return {
|
|
101
|
+
...p,
|
|
102
|
+
sources: p.sources.map((s) => {
|
|
103
|
+
const { version: _old, ...rest } = s;
|
|
104
|
+
return { ...rest, cidrs, ...(st.version ? { version: st.version } : {}) };
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
});
|
|
108
|
+
return { platforms: used, lists };
|
|
109
|
+
};
|
|
110
|
+
/** The exit code for a comparison: 0 the same, 1 something differs, 2 something unread, 3 a list stale. */
|
|
171
111
|
export const exitCodeOf = (diffs) => diffs.some((d) => d.error && d.theirs === 0)
|
|
172
112
|
? 2
|
|
173
|
-
: diffs.some((d) => d.
|
|
174
|
-
?
|
|
175
|
-
:
|
|
113
|
+
: diffs.some((d) => d.list?.stale)
|
|
114
|
+
? 3
|
|
115
|
+
: diffs.some((d) => d.added.length || d.removed.length || d.error)
|
|
116
|
+
? 1
|
|
117
|
+
: 0;
|
|
176
118
|
/** The report a person reads. */
|
|
177
119
|
export const reportOf = (diffs, platforms = PLATFORM_RANGES) => {
|
|
178
120
|
const lines = [];
|
|
179
121
|
for (const d of diffs) {
|
|
180
122
|
const s = platforms.find((p) => p.id === d.platform)?.sources.find((x) => x.url === d.url);
|
|
181
123
|
lines.push(`${d.platform} ${d.url}`);
|
|
124
|
+
if (d.list) {
|
|
125
|
+
const l = d.list;
|
|
126
|
+
lines.push(` in use: ${l.from}, read ${l.fetchedAt}${l.version ? `, version ${l.version}` : ''}, ${l.count} ranges${l.stale ? ' ⚠️ STALE: nothing newer than 3 days has been read' : ''}`);
|
|
127
|
+
if (l.lastError)
|
|
128
|
+
lines.push(` last read not used (${l.lastError.at}): ${l.lastError.why}`);
|
|
129
|
+
}
|
|
182
130
|
if (d.version || s?.version) {
|
|
183
|
-
lines.push(` version: published ${d.version ?? '?'},
|
|
131
|
+
lines.push(` version: published ${d.version ?? '?'}, in use ${s?.version ?? '-'}`);
|
|
184
132
|
}
|
|
185
133
|
if (d.error)
|
|
186
134
|
lines.push(` ⚠️ ${d.error}`);
|
|
@@ -188,9 +136,9 @@ export const reportOf = (diffs, platforms = PLATFORM_RANGES) => {
|
|
|
188
136
|
lines.push(` same (${d.ours} ranges)`);
|
|
189
137
|
}
|
|
190
138
|
for (const a of d.added)
|
|
191
|
-
lines.push(` + ${a} published now, not in
|
|
139
|
+
lines.push(` + ${a} published now, not in the list in use`);
|
|
192
140
|
for (const r of d.removed)
|
|
193
|
-
lines.push(` - ${r} in
|
|
141
|
+
lines.push(` - ${r} in the list in use, no longer published`);
|
|
194
142
|
}
|
|
195
143
|
for (const p of platforms.filter((x) => x.unpublished)) {
|
|
196
144
|
lines.push(`${p.id} no published ranges (looked ${p.unpublished?.checked}) - nothing to compare; look again by hand: ${p.unpublished?.looked.join(' ')}`);
|
package/dist/ranges-check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ranges-check.js","sourceRoot":"","sources":["../src/ranges-check.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ranges-check.js","sourceRoot":"","sources":["../src/ranges-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,gBAAgB,EAEhB,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAyC,MAAM,oBAAoB,CAAC;AAwC5F,wFAAwF;AACxF,MAAM,SAAS,GAAG,CAAC,GAAW,EAAsB,EAAE;IACpD,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;IACzB,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAClE,CAAC,CAAC;AAEF,oFAAoF;AACpF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAc,EAAU,EAAE,CACnD,CAAC,CAAC,MAAM,KAAK,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAE3D;;;;;;;;;;GAUG;AACH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
2
|
import { Hono } from 'hono';
|
|
2
3
|
import type { HotelConfig } from './config.js';
|
|
3
4
|
import { MemberStore } from './members.js';
|
|
@@ -31,7 +32,7 @@ export declare const INITIALIZE_PER_MINUTE = 300;
|
|
|
31
32
|
* number. Found by reading the boot banner of a container that had just been
|
|
32
33
|
* deployed (2026-09-22): seventeen tools listed, and "0.7.0" above them.
|
|
33
34
|
*/
|
|
34
|
-
export declare const VERSION = "0.
|
|
35
|
+
export declare const VERSION = "0.94.0";
|
|
35
36
|
/**
|
|
36
37
|
* The card's resource URI.
|
|
37
38
|
*
|
|
@@ -210,6 +211,8 @@ export type BuiltServer = {
|
|
|
210
211
|
sessions: Sessions;
|
|
211
212
|
/** Who may reach /mcp, where the deployment limits it - see source-allowlist.ts. */
|
|
212
213
|
sources?: SourceAllowlist;
|
|
214
|
+
/** OpenAI's and Anthropic's ranges, as they are now - see out-of-list.ts, and index.ts which starts it. */
|
|
215
|
+
platformRanges: PlatformRanges;
|
|
213
216
|
/** The usage statistics, where the config turns them on - see usage/boot.ts. */
|
|
214
217
|
usage?: UsageBoot;
|
|
215
218
|
/** Whatever the stores have not written yet, written now - on a clean stop. */
|
|
@@ -235,6 +238,14 @@ export type ServerOptions = {
|
|
|
235
238
|
env?: Record<string, string | undefined>;
|
|
236
239
|
/** How the allowlist's shadow looks an address up (PTR, then forward) - a test's fake. Default the system's DNS. */
|
|
237
240
|
hostOf?: HostOf;
|
|
241
|
+
/**
|
|
242
|
+
* OpenAI's and Anthropic's ranges as they are now - a test's, with its own fetch and clock.
|
|
243
|
+
* Default: the package's, kept in `<state dir>/platform-ranges`; started by index.ts, never
|
|
244
|
+
* by `buildServer` (a test must not reach the network).
|
|
245
|
+
*/
|
|
246
|
+
platformRanges?: PlatformRanges;
|
|
247
|
+
/** Where the lines about calls from outside the lists go (a test's). Default the console. */
|
|
248
|
+
rangesLog?: (line: string) => void;
|
|
238
249
|
/**
|
|
239
250
|
* The work an API backend does on its own clock: keeping the hotel list
|
|
240
251
|
* current, and following up bookings whose outcome is not known yet. Off in
|
|
@@ -259,23 +270,8 @@ export declare const EXPIRED_SAID = "The trip id passed names a conversation not
|
|
|
259
270
|
export declare const HEADER_LOGS_PER_APP = 5;
|
|
260
271
|
/** Apps whose header names are logged at all, by where - past it, a new name is not (0.67.0). */
|
|
261
272
|
export declare const HEADER_APPS = 200;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
* printable ASCII other than the space (0x21-0x7E). ChatGPT sends 79 opaque ones, one
|
|
265
|
-
* per conversation (moody's access log, docs/shopify-connectors.md). Anything else -
|
|
266
|
-
* shorter, longer, a space, a control character or a non-ASCII one, or two headers
|
|
267
|
-
* joined with ", " - is not taken, and the call is keyed by its connection as before.
|
|
268
|
-
*/
|
|
269
|
-
export declare const OPENAI_SESSION_SHAPE: RegExp;
|
|
270
|
-
/** What a ChatGPT conversation's key starts with - a session id we issue (a UUID) never does. */
|
|
271
|
-
export declare const OPENAI_KEY_PREFIX = "oai:";
|
|
272
|
-
/**
|
|
273
|
-
* Where a card's call came from (0.75.1, risk A), by `sourceOf` alone: 'platform' - OpenAI's or
|
|
274
|
-
* Anthropic's published ranges; 'local' - our own side of the proxy: no address, a private or a
|
|
275
|
-
* loopback one (a test, a local preview - a request from outside comes through Caddy, which
|
|
276
|
-
* writes its public address); undefined - anywhere else.
|
|
277
|
-
*/
|
|
278
|
-
export declare const cardSourceOf: (address: string | undefined) => "platform" | "local" | undefined;
|
|
273
|
+
export { OPENAI_KEY_PREFIX, OPENAI_SESSION_SHAPE } from './openai-conversation.js';
|
|
274
|
+
export { cardSourceOf, cardSourcesMode } from './out-of-list.js';
|
|
279
275
|
/** Sign-ins, and sign-outs, one conversation may make in ten minutes (0.75.1, risk A) - each. */
|
|
280
276
|
export declare const SIGN_STEPS_PER_TEN_MINUTES = 6;
|
|
281
277
|
export declare const clientIp: (header: string | undefined) => string | undefined;
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAaA,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAW1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAW/C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAW1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAW/C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQ3C,OAAO,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AACtD,OAAO,EACL,KAAK,MAAM,EAGX,KAAK,eAAe,EAMrB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACL,KAAK,UAAU,EAGf,KAAK,QAAQ,EAed,MAAM,YAAY,CAAC;AACpB,OAAO,EAML,OAAO,EAGR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAW,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,iBAAiB,CAAC;AAE7D,OAAO,EACL,KAAK,aAAa,EAMnB,MAAM,YAAY,CAAC;AASpB,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAc,CAAC;AAC1C;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,yCAAyC,CAAC;AAE/D;;;;;;;;;;;G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