@principal-ai/subsystems-core 0.53.0 → 0.53.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,SAAS,CAAC;AAExB,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAIxH,cAAc,SAAS,CAAC;AAKxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAI/D,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,SAAS,CAAC;AAExB,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAKxH,cAAc,SAAS,CAAC;AAKxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAI/D,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -33,8 +33,9 @@ Object.defineProperty(exports, "formatTopicReferenceLink", { enumerable: true, g
33
33
  Object.defineProperty(exports, "parseTopicReferenceLink", { enumerable: true, get: function () { return topic_reference_links_1.parseTopicReferenceLink; } });
34
34
  var topic_share_1 = require("./storage/topic-share");
35
35
  Object.defineProperty(exports, "toSharedTopic", { enumerable: true, get: function () { return topic_share_1.toSharedTopic; } });
36
- // Infrastructure-as-code read side: what wrangler / terraform declare, and the
37
- // shape a live-deployment observation takes. Pure — text and JSON in.
36
+ // Infrastructure-as-code read side: what wrangler / terraform declare, the
37
+ // shape a live-deployment observation takes, and the checks that produce one
38
+ // from a credential the caller supplies. Browser-safe — no Node built-ins.
38
39
  __exportStar(require("./infra"), exports);
39
40
  // Cross-field validation (the rules the JSON Schema can't express). Structural
40
41
  // (schema) validation is enforced per surface against
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;AAEH,0CAAwB;AASxB,yEAAoG;AAA3F,iIAAA,wBAAwB,OAAA;AAAE,gIAAA,uBAAuB,OAAA;AAC1D,qDAAsD;AAA7C,4GAAA,aAAa,OAAA;AAGtB,+EAA+E;AAC/E,sEAAsE;AACtE,0CAAwB;AAExB,+EAA+E;AAC/E,sDAAsD;AACtD,yCAAyC;AACzC,2CAAgE;AAAvD,8HAAA,gCAAgC,OAAA;AAGzC,gFAAgF;AAChF,uEAAuE;AACvE,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;AAEH,0CAAwB;AASxB,yEAAoG;AAA3F,iIAAA,wBAAwB,OAAA;AAAE,gIAAA,uBAAuB,OAAA;AAC1D,qDAAsD;AAA7C,4GAAA,aAAa,OAAA;AAGtB,2EAA2E;AAC3E,6EAA6E;AAC7E,2EAA2E;AAC3E,0CAAwB;AAExB,+EAA+E;AAC/E,sDAAsD;AACtD,yCAAyC;AACzC,2CAAgE;AAAvD,8HAAA,gCAAgC,OAAA;AAGzC,gFAAgF;AAChF,uEAAuE;AACvE,+CAA6B"}
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Infrastructure-as-code read side. Pure and browser-safe.
2
+ * Infrastructure-as-code read side. Browser-safe. Everything is pure except
3
+ * `./observe`, which asks a provider's API what is running, with a credential
4
+ * the caller supplies.
3
5
  */
4
6
  export { infraResourceKey, mergeInfraManifests } from './types';
5
7
  export type { InfraBinding, InfraDeploymentObservation, InfraDeploymentStatus, InfraManifest, InfraResource, InfraResourceSource, InfraTool, } from './types';
@@ -10,4 +12,6 @@ export { extractTerraformManifest, terraformStateObservations } from './terrafor
10
12
  export type { ExtractTerraformOptions } from './terraform';
11
13
  export { infraContainerId, infraDeploymentRef, infraToC4 } from './c4';
12
14
  export type { InfraC4Container, InfraC4Deployment, InfraC4Edge } from './c4';
15
+ export { CLOUDFLARE_OBSERVED_TYPES, NEON_OBSERVED_TYPES, observeCloudflare, observeNeon, parseWranglerAuthToken, resolveCloudflareAccount, resolveNeonAccount, withoutUnknownOverwrites, } from './observe';
16
+ export type { CloudflareAccess, CloudflareAccountResult, InfraObserveDeps, InfraObserveResult, NeonAccess, NeonAccountResult, } from './observe';
13
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAChE,YAAY,EACV,YAAY,EACZ,0BAA0B,EAC1B,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB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ACxB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,iBAAiB,GAClB,MAAM,WAAW,CAAC"}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  /**
3
- * Infrastructure-as-code read side. Pure and browser-safe.
3
+ * Infrastructure-as-code read side. Browser-safe. Everything is pure except
4
+ * `./observe`, which asks a provider's API what is running, with a credential
5
+ * the caller supplies.
4
6
  */
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.infraToC4 = exports.infraDeploymentRef = exports.infraContainerId = exports.terraformStateObservations = exports.extractTerraformManifest = exports.extractWranglerManifest = exports.stripJsonc = exports.parseJsonc = exports.mergeInfraManifests = exports.infraResourceKey = void 0;
8
+ exports.withoutUnknownOverwrites = exports.resolveNeonAccount = exports.resolveCloudflareAccount = exports.parseWranglerAuthToken = exports.observeNeon = exports.observeCloudflare = exports.NEON_OBSERVED_TYPES = exports.CLOUDFLARE_OBSERVED_TYPES = exports.infraToC4 = exports.infraDeploymentRef = exports.infraContainerId = exports.terraformStateObservations = exports.extractTerraformManifest = exports.extractWranglerManifest = exports.stripJsonc = exports.parseJsonc = exports.mergeInfraManifests = exports.infraResourceKey = void 0;
7
9
  var types_1 = require("./types");
8
10
  Object.defineProperty(exports, "infraResourceKey", { enumerable: true, get: function () { return types_1.infraResourceKey; } });
9
11
  Object.defineProperty(exports, "mergeInfraManifests", { enumerable: true, get: function () { return types_1.mergeInfraManifests; } });
@@ -19,4 +21,13 @@ var c4_1 = require("./c4");
19
21
  Object.defineProperty(exports, "infraContainerId", { enumerable: true, get: function () { return c4_1.infraContainerId; } });
20
22
  Object.defineProperty(exports, "infraDeploymentRef", { enumerable: true, get: function () { return c4_1.infraDeploymentRef; } });
21
23
  Object.defineProperty(exports, "infraToC4", { enumerable: true, get: function () { return c4_1.infraToC4; } });
24
+ var observe_1 = require("./observe");
25
+ Object.defineProperty(exports, "CLOUDFLARE_OBSERVED_TYPES", { enumerable: true, get: function () { return observe_1.CLOUDFLARE_OBSERVED_TYPES; } });
26
+ Object.defineProperty(exports, "NEON_OBSERVED_TYPES", { enumerable: true, get: function () { return observe_1.NEON_OBSERVED_TYPES; } });
27
+ Object.defineProperty(exports, "observeCloudflare", { enumerable: true, get: function () { return observe_1.observeCloudflare; } });
28
+ Object.defineProperty(exports, "observeNeon", { enumerable: true, get: function () { return observe_1.observeNeon; } });
29
+ Object.defineProperty(exports, "parseWranglerAuthToken", { enumerable: true, get: function () { return observe_1.parseWranglerAuthToken; } });
30
+ Object.defineProperty(exports, "resolveCloudflareAccount", { enumerable: true, get: function () { return observe_1.resolveCloudflareAccount; } });
31
+ Object.defineProperty(exports, "resolveNeonAccount", { enumerable: true, get: function () { return observe_1.resolveNeonAccount; } });
32
+ Object.defineProperty(exports, "withoutUnknownOverwrites", { enumerable: true, get: function () { return observe_1.withoutUnknownOverwrites; } });
22
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,iCAAgE;AAAvD,yGAAA,gBAAgB,OAAA;AAAE,4GAAA,mBAAmB,OAAA;AAU9C,iCAAiD;AAAxC,mGAAA,UAAU,OAAA;AAAE,mGAAA,UAAU,OAAA;AAC/B,uCAAqD;AAA5C,mHAAA,uBAAuB,OAAA;AAEhC,yCAAmF;AAA1E,qHAAA,wBAAwB,OAAA;AAAE,uHAAA,0BAA0B,OAAA;AAE7D,2BAAuE;AAA9D,sGAAA,gBAAgB,OAAA;AAAE,wGAAA,kBAAkB,OAAA;AAAE,+FAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgE;AAAvD,yGAAA,gBAAgB,OAAA;AAAE,4GAAA,mBAAmB,OAAA;AAU9C,iCAAiD;AAAxC,mGAAA,UAAU,OAAA;AAAE,mGAAA,UAAU,OAAA;AAC/B,uCAAqD;AAA5C,mHAAA,uBAAuB,OAAA;AAEhC,yCAAmF;AAA1E,qHAAA,wBAAwB,OAAA;AAAE,uHAAA,0BAA0B,OAAA;AAE7D,2BAAuE;AAA9D,sGAAA,gBAAgB,OAAA;AAAE,wGAAA,kBAAkB,OAAA;AAAE,+FAAA,SAAS,OAAA;AAExD,qCASmB;AARjB,oHAAA,yBAAyB,OAAA;AACzB,8GAAA,mBAAmB,OAAA;AACnB,4GAAA,iBAAiB,OAAA;AACjB,sGAAA,WAAW,OAAA;AACX,iHAAA,sBAAsB,OAAA;AACtB,mHAAA,wBAAwB,OAAA;AACxB,6GAAA,kBAAkB,OAAA;AAClB,mHAAA,wBAAwB,OAAA"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Looking at a live account — the checks that turn declared resource keys into
3
+ * {@link InfraDeploymentObservation}s.
4
+ *
5
+ * This is the one place that knows how to ask a provider whether a declared
6
+ * resource exists. It is given a credential and returns observations; it does
7
+ * not know where the credential came from (a pasted token, a CLI login, a
8
+ * server-held token) and it stores nothing. Hosts own both ends: Studio and
9
+ * the desktop app run it in their main process, a hosted service can run it in
10
+ * a Worker.
11
+ *
12
+ * Fetch-only and browser-safe. The token travels only in the Authorization
13
+ * header of requests to the provider's API, and never appears in a result.
14
+ *
15
+ * Cloudflare (Workers, R2, D1, KV, Queues and Containers) and Neon (projects
16
+ * and their databases). A resource type with no lookup is reported as skipped
17
+ * rather than guessed at.
18
+ */
19
+ import type { InfraDeploymentObservation } from './types';
20
+ /** What a check needs to run, besides the credential. */
21
+ export interface InfraObserveDeps {
22
+ fetch?: typeof fetch;
23
+ now?: () => Date;
24
+ }
25
+ /** A credential for one Cloudflare account. */
26
+ export interface CloudflareAccess {
27
+ /** An API token or an OAuth access token; sent as a Bearer token. */
28
+ token: string;
29
+ accountId: string;
30
+ }
31
+ export type CloudflareAccountResult = {
32
+ ok: true;
33
+ accountId: string;
34
+ account?: string;
35
+ } | {
36
+ ok: false;
37
+ error: string;
38
+ /** Set when the token sees several accounts and one must be chosen. */
39
+ accounts?: Array<{
40
+ id: string;
41
+ name: string;
42
+ }>;
43
+ };
44
+ /**
45
+ * Work out which account a Cloudflare token is for, and prove it can do the
46
+ * job: it must resolve to one account and be able to read that account's
47
+ * Workers. A token that cannot is refused with the reason, so a person finds
48
+ * out when connecting rather than from cards that never light up.
49
+ */
50
+ export declare function resolveCloudflareAccount(input: {
51
+ token: string;
52
+ accountId?: string;
53
+ }, deps?: InfraObserveDeps): Promise<CloudflareAccountResult>;
54
+ /** Cloudflare resource types a check can look at. */
55
+ export declare const CLOUDFLARE_OBSERVED_TYPES: readonly string[];
56
+ /** What one run of checks learned. Nothing here has been stored. */
57
+ export interface InfraObserveResult {
58
+ /**
59
+ * One observation per resource that was looked at, `unknown` ones included.
60
+ * A host that already holds an observation for a key should pass these
61
+ * through {@link withoutUnknownOverwrites} before storing them.
62
+ */
63
+ observations: InfraDeploymentObservation[];
64
+ /** Keys that were not looked at, with the reason. */
65
+ skipped: Array<{
66
+ resourceKey: string;
67
+ reason: string;
68
+ }>;
69
+ /** Why some lookups could not be made, when any could not. */
70
+ failure?: string;
71
+ }
72
+ /**
73
+ * Look at the named Cloudflare resources and say what was seen.
74
+ *
75
+ * Three outcomes per resource, kept apart on purpose:
76
+ * - it is there → `deployed`, with whatever address and dashboard page it has;
77
+ * - Cloudflare says it does not exist → `not-found`;
78
+ * - the question could not be asked (auth, network) → `unknown`.
79
+ *
80
+ * Failures are per resource: a token that cannot read R2 still gets the
81
+ * Workers checked, and the R2 failure is reported in `failure`. Keys for other
82
+ * providers are ignored.
83
+ */
84
+ export declare function observeCloudflare(resourceKeys: readonly string[], access: CloudflareAccess, deps?: InfraObserveDeps): Promise<InfraObserveResult>;
85
+ /**
86
+ * Drop `unknown` observations for resources something is already known about.
87
+ * A failed check must not erase what was known: `unknown` is only worth
88
+ * keeping when it is the first thing said about a resource.
89
+ */
90
+ export declare function withoutUnknownOverwrites(observations: readonly InfraDeploymentObservation[], alreadyKnown: ReadonlySet<string>): InfraDeploymentObservation[];
91
+ /**
92
+ * Read the answer of `wrangler auth token --json` — the credential of whoever
93
+ * is logged in to wrangler on this machine, refreshed by wrangler itself.
94
+ *
95
+ * Only a Bearer credential is usable here: an OAuth login or an API token. A
96
+ * global API key (key + email) is not, and reads as null, as does anything
97
+ * that is not wrangler's JSON.
98
+ */
99
+ export declare function parseWranglerAuthToken(stdout: string): {
100
+ token: string;
101
+ type: 'oauth' | 'api_token';
102
+ } | null;
103
+ /** A credential for Neon: an API key, and the organization it is used in. */
104
+ export interface NeonAccess {
105
+ /** A personal, organization or project-scoped API key; sent as a Bearer token. */
106
+ token: string;
107
+ /** Needed with a personal key whose owner belongs to an organization. */
108
+ orgId?: string;
109
+ }
110
+ export type NeonAccountResult = {
111
+ ok: true;
112
+ orgId?: string;
113
+ account?: string;
114
+ } | {
115
+ ok: false;
116
+ error: string;
117
+ /** Set when the key's owner is in several organizations and one must be chosen. */
118
+ accounts?: Array<{
119
+ id: string;
120
+ name: string;
121
+ }>;
122
+ };
123
+ /**
124
+ * Prove a Neon API key can do the job — list projects — and work out which
125
+ * organization it is used in. A personal key whose owner belongs to
126
+ * organizations has to name one; an organization or project key carries its
127
+ * own.
128
+ */
129
+ export declare function resolveNeonAccount(input: {
130
+ token: string;
131
+ orgId?: string;
132
+ }, deps?: InfraObserveDeps): Promise<NeonAccountResult>;
133
+ /** Neon resource types a check can look at. */
134
+ export declare const NEON_OBSERVED_TYPES: readonly string[];
135
+ /**
136
+ * Look at the named Neon resources and say what was seen, with the same three
137
+ * outcomes as {@link observeCloudflare}. Keys for other providers are ignored.
138
+ */
139
+ export declare function observeNeon(resourceKeys: readonly string[], access: NeonAccess, deps?: InfraObserveDeps): Promise<InfraObserveResult>;
140
+ //# sourceMappingURL=observe.d.ts.map
@@ -0,0 +1 @@
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