@treeseed/sdk 0.4.13 → 0.5.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/dist/control-plane-client.d.ts +60 -1
- package/dist/control-plane-client.js +59 -0
- package/dist/control-plane.d.ts +1 -1
- package/dist/control-plane.js +11 -4
- package/dist/d1-store.d.ts +58 -0
- package/dist/d1-store.js +64 -0
- package/dist/dispatch.js +6 -0
- package/dist/graph/schema.js +4 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +32 -0
- package/dist/knowledge-coop.d.ts +223 -0
- package/dist/knowledge-coop.js +82 -0
- package/dist/model-registry.js +79 -0
- package/dist/operations/providers/default.js +126 -7
- package/dist/operations/services/config-runtime.d.ts +102 -24
- package/dist/operations/services/config-runtime.js +896 -160
- package/dist/operations/services/deploy.d.ts +223 -15
- package/dist/operations/services/deploy.js +626 -55
- package/dist/operations/services/github-automation.d.ts +60 -0
- package/dist/operations/services/github-automation.js +138 -0
- package/dist/operations/services/key-agent.d.ts +118 -0
- package/dist/operations/services/key-agent.js +476 -0
- package/dist/operations/services/knowledge-coop-launch.d.ts +90 -0
- package/dist/operations/services/knowledge-coop-launch.js +753 -0
- package/dist/operations/services/knowledge-coop-packaging.d.ts +59 -0
- package/dist/operations/services/knowledge-coop-packaging.js +234 -0
- package/dist/operations/services/local-dev.d.ts +0 -1
- package/dist/operations/services/local-dev.js +1 -14
- package/dist/operations/services/project-platform.d.ts +42 -182
- package/dist/operations/services/project-platform.js +162 -59
- package/dist/operations/services/railway-deploy.d.ts +1 -0
- package/dist/operations/services/railway-deploy.js +31 -13
- package/dist/operations/services/runtime-tools.d.ts +52 -5
- package/dist/operations/services/runtime-tools.js +186 -26
- package/dist/operations/services/watch-dev.js +2 -4
- package/dist/operations/services/workspace-preflight.d.ts +4 -4
- package/dist/operations/services/workspace-preflight.js +22 -20
- package/dist/operations-registry.js +7 -2
- package/dist/platform/contracts.d.ts +39 -3
- package/dist/platform/deploy-config.d.ts +12 -1
- package/dist/platform/deploy-config.js +214 -15
- package/dist/platform/deploy-runtime.d.ts +1 -0
- package/dist/platform/deploy-runtime.js +10 -2
- package/dist/platform/env.yaml +93 -61
- package/dist/platform/environment.d.ts +13 -2
- package/dist/platform/environment.js +90 -20
- package/dist/platform/plugins/constants.d.ts +1 -0
- package/dist/platform/plugins/constants.js +7 -6
- package/dist/platform/tenant/runtime-config.js +8 -1
- package/dist/platform/tenant-config.js +4 -0
- package/dist/platform/utils/site-config-schema.js +18 -0
- package/dist/plugin-default.js +2 -2
- package/dist/scripts/key-agent.js +165 -0
- package/dist/scripts/tenant-build.js +4 -1
- package/dist/scripts/tenant-check.js +4 -1
- package/dist/scripts/tenant-deploy.js +43 -4
- package/dist/scripts/tenant-dev.js +0 -1
- package/dist/sdk-types.d.ts +2 -2
- package/dist/sdk-types.js +2 -0
- package/dist/sdk.d.ts +13 -0
- package/dist/sdk.js +40 -0
- package/dist/stores/knowledge-coop-store.d.ts +56 -0
- package/dist/stores/knowledge-coop-store.js +482 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/package.json +6 -2
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/api/server.js +4 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/config.yaml +25 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/decisions/adopt-initial-proposal-loop.mdx +22 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/people/starter-steward.mdx +11 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/proposals/establish-initial-proposal-loop.mdx +17 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/manifest.yaml +17 -10
- package/dist/treeseed/template-catalog/templates/starter-basic/template/treeseed.site.yaml +69 -7
- package/dist/treeseed/template-catalog/templates/starter-basic/template.config.json +1 -0
- package/dist/workflow/operations.d.ts +98 -0
- package/dist/workflow/operations.js +229 -7
- package/dist/workflow-state.d.ts +54 -2
- package/dist/workflow-state.js +170 -24
- package/dist/workflow-support.d.ts +1 -1
- package/dist/workflow-support.js +32 -2
- package/dist/workflow.d.ts +29 -0
- package/package.json +1 -1
- package/templates/github/deploy.workflow.yml +11 -1
- package/dist/scripts/sync-dev-vars.js +0 -6
|
@@ -22,13 +22,24 @@ export declare function ensureGeneratedWranglerConfig(tenantRoot: any, options?:
|
|
|
22
22
|
contactEmail: string;
|
|
23
23
|
hosting: {
|
|
24
24
|
kind: string;
|
|
25
|
-
registration:
|
|
26
|
-
marketBaseUrl:
|
|
27
|
-
teamId:
|
|
28
|
-
projectId:
|
|
29
|
-
}
|
|
25
|
+
registration: any;
|
|
26
|
+
marketBaseUrl: any;
|
|
27
|
+
teamId: any;
|
|
28
|
+
projectId: any;
|
|
29
|
+
};
|
|
30
|
+
hub: {
|
|
31
|
+
mode: string;
|
|
32
|
+
};
|
|
33
|
+
runtime: {
|
|
34
|
+
mode: string;
|
|
35
|
+
registration: any;
|
|
36
|
+
marketBaseUrl: any;
|
|
37
|
+
teamId: any;
|
|
38
|
+
projectId: any;
|
|
39
|
+
};
|
|
30
40
|
cloudflare: {
|
|
31
41
|
accountId: string;
|
|
42
|
+
zoneId: string | undefined;
|
|
32
43
|
workerName: string | undefined;
|
|
33
44
|
queueName: string | undefined;
|
|
34
45
|
dlqName: string | undefined;
|
|
@@ -73,9 +84,45 @@ export declare function ensureGeneratedWranglerConfig(tenantRoot: any, options?:
|
|
|
73
84
|
runtime: string;
|
|
74
85
|
publish: string;
|
|
75
86
|
docs: string;
|
|
87
|
+
serving: any;
|
|
76
88
|
};
|
|
77
89
|
site: string;
|
|
78
90
|
};
|
|
91
|
+
surfaces: {
|
|
92
|
+
[k: string]: {
|
|
93
|
+
enabled: boolean | undefined;
|
|
94
|
+
provider: string | undefined;
|
|
95
|
+
rootDir: string | undefined;
|
|
96
|
+
publicBaseUrl: string | undefined;
|
|
97
|
+
localBaseUrl: string | undefined;
|
|
98
|
+
cache: {
|
|
99
|
+
sourcePages: {
|
|
100
|
+
browserTtlSeconds: number | undefined;
|
|
101
|
+
edgeTtlSeconds: number | undefined;
|
|
102
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
103
|
+
staleIfErrorSeconds: number | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
paths: any[];
|
|
106
|
+
} | undefined;
|
|
107
|
+
contentPages: {
|
|
108
|
+
browserTtlSeconds: number | undefined;
|
|
109
|
+
edgeTtlSeconds: number | undefined;
|
|
110
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
111
|
+
staleIfErrorSeconds: number | undefined;
|
|
112
|
+
} | {
|
|
113
|
+
paths: any[];
|
|
114
|
+
} | undefined;
|
|
115
|
+
r2PublishedObjects: {
|
|
116
|
+
browserTtlSeconds: number | undefined;
|
|
117
|
+
edgeTtlSeconds: number | undefined;
|
|
118
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
119
|
+
staleIfErrorSeconds: number | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
paths: any[];
|
|
122
|
+
} | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | undefined;
|
|
79
126
|
services: {
|
|
80
127
|
[k: string]: {
|
|
81
128
|
enabled: boolean | undefined;
|
|
@@ -131,6 +178,32 @@ export declare function ensureGeneratedWranglerConfig(tenantRoot: any, options?:
|
|
|
131
178
|
branchName: string;
|
|
132
179
|
};
|
|
133
180
|
};
|
|
181
|
+
export declare function purgeSourcePageCaches(tenantRoot: any, options?: {}): {
|
|
182
|
+
skipped: any;
|
|
183
|
+
urls: (string | null)[];
|
|
184
|
+
results: never[];
|
|
185
|
+
} | {
|
|
186
|
+
urls: (string | null)[];
|
|
187
|
+
results: {
|
|
188
|
+
zoneId: any;
|
|
189
|
+
count: number;
|
|
190
|
+
success: boolean;
|
|
191
|
+
}[];
|
|
192
|
+
skipped?: undefined;
|
|
193
|
+
};
|
|
194
|
+
export declare function purgePublishedContentCaches(tenantRoot: any, urls: any, options?: {}): {
|
|
195
|
+
skipped: any;
|
|
196
|
+
urls: any;
|
|
197
|
+
results: never[];
|
|
198
|
+
} | {
|
|
199
|
+
urls: any;
|
|
200
|
+
results: {
|
|
201
|
+
zoneId: any;
|
|
202
|
+
count: number;
|
|
203
|
+
success: boolean;
|
|
204
|
+
}[];
|
|
205
|
+
skipped?: undefined;
|
|
206
|
+
};
|
|
134
207
|
export declare function collectMissingDeployInputs(tenantRoot: any): {
|
|
135
208
|
key: string;
|
|
136
209
|
label: string;
|
|
@@ -149,13 +222,24 @@ export declare function validateDeployPrerequisites(tenantRoot: any, { requireRe
|
|
|
149
222
|
contactEmail: string;
|
|
150
223
|
hosting: {
|
|
151
224
|
kind: string;
|
|
152
|
-
registration:
|
|
153
|
-
marketBaseUrl:
|
|
154
|
-
teamId:
|
|
155
|
-
projectId:
|
|
156
|
-
}
|
|
225
|
+
registration: any;
|
|
226
|
+
marketBaseUrl: any;
|
|
227
|
+
teamId: any;
|
|
228
|
+
projectId: any;
|
|
229
|
+
};
|
|
230
|
+
hub: {
|
|
231
|
+
mode: string;
|
|
232
|
+
};
|
|
233
|
+
runtime: {
|
|
234
|
+
mode: string;
|
|
235
|
+
registration: any;
|
|
236
|
+
marketBaseUrl: any;
|
|
237
|
+
teamId: any;
|
|
238
|
+
projectId: any;
|
|
239
|
+
};
|
|
157
240
|
cloudflare: {
|
|
158
241
|
accountId: string;
|
|
242
|
+
zoneId: string | undefined;
|
|
159
243
|
workerName: string | undefined;
|
|
160
244
|
queueName: string | undefined;
|
|
161
245
|
dlqName: string | undefined;
|
|
@@ -200,9 +284,45 @@ export declare function validateDeployPrerequisites(tenantRoot: any, { requireRe
|
|
|
200
284
|
runtime: string;
|
|
201
285
|
publish: string;
|
|
202
286
|
docs: string;
|
|
287
|
+
serving: any;
|
|
203
288
|
};
|
|
204
289
|
site: string;
|
|
205
290
|
};
|
|
291
|
+
surfaces: {
|
|
292
|
+
[k: string]: {
|
|
293
|
+
enabled: boolean | undefined;
|
|
294
|
+
provider: string | undefined;
|
|
295
|
+
rootDir: string | undefined;
|
|
296
|
+
publicBaseUrl: string | undefined;
|
|
297
|
+
localBaseUrl: string | undefined;
|
|
298
|
+
cache: {
|
|
299
|
+
sourcePages: {
|
|
300
|
+
browserTtlSeconds: number | undefined;
|
|
301
|
+
edgeTtlSeconds: number | undefined;
|
|
302
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
303
|
+
staleIfErrorSeconds: number | undefined;
|
|
304
|
+
} | {
|
|
305
|
+
paths: any[];
|
|
306
|
+
} | undefined;
|
|
307
|
+
contentPages: {
|
|
308
|
+
browserTtlSeconds: number | undefined;
|
|
309
|
+
edgeTtlSeconds: number | undefined;
|
|
310
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
311
|
+
staleIfErrorSeconds: number | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
paths: any[];
|
|
314
|
+
} | undefined;
|
|
315
|
+
r2PublishedObjects: {
|
|
316
|
+
browserTtlSeconds: number | undefined;
|
|
317
|
+
edgeTtlSeconds: number | undefined;
|
|
318
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
319
|
+
staleIfErrorSeconds: number | undefined;
|
|
320
|
+
} | {
|
|
321
|
+
paths: any[];
|
|
322
|
+
} | undefined;
|
|
323
|
+
} | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
} | undefined;
|
|
206
326
|
services: {
|
|
207
327
|
[k: string]: {
|
|
208
328
|
enabled: boolean | undefined;
|
|
@@ -257,13 +377,24 @@ export declare function validateDestroyPrerequisites(tenantRoot: any, { requireR
|
|
|
257
377
|
contactEmail: string;
|
|
258
378
|
hosting: {
|
|
259
379
|
kind: string;
|
|
260
|
-
registration:
|
|
261
|
-
marketBaseUrl:
|
|
262
|
-
teamId:
|
|
263
|
-
projectId:
|
|
264
|
-
}
|
|
380
|
+
registration: any;
|
|
381
|
+
marketBaseUrl: any;
|
|
382
|
+
teamId: any;
|
|
383
|
+
projectId: any;
|
|
384
|
+
};
|
|
385
|
+
hub: {
|
|
386
|
+
mode: string;
|
|
387
|
+
};
|
|
388
|
+
runtime: {
|
|
389
|
+
mode: string;
|
|
390
|
+
registration: any;
|
|
391
|
+
marketBaseUrl: any;
|
|
392
|
+
teamId: any;
|
|
393
|
+
projectId: any;
|
|
394
|
+
};
|
|
265
395
|
cloudflare: {
|
|
266
396
|
accountId: string;
|
|
397
|
+
zoneId: string | undefined;
|
|
267
398
|
workerName: string | undefined;
|
|
268
399
|
queueName: string | undefined;
|
|
269
400
|
dlqName: string | undefined;
|
|
@@ -308,9 +439,45 @@ export declare function validateDestroyPrerequisites(tenantRoot: any, { requireR
|
|
|
308
439
|
runtime: string;
|
|
309
440
|
publish: string;
|
|
310
441
|
docs: string;
|
|
442
|
+
serving: any;
|
|
311
443
|
};
|
|
312
444
|
site: string;
|
|
313
445
|
};
|
|
446
|
+
surfaces: {
|
|
447
|
+
[k: string]: {
|
|
448
|
+
enabled: boolean | undefined;
|
|
449
|
+
provider: string | undefined;
|
|
450
|
+
rootDir: string | undefined;
|
|
451
|
+
publicBaseUrl: string | undefined;
|
|
452
|
+
localBaseUrl: string | undefined;
|
|
453
|
+
cache: {
|
|
454
|
+
sourcePages: {
|
|
455
|
+
browserTtlSeconds: number | undefined;
|
|
456
|
+
edgeTtlSeconds: number | undefined;
|
|
457
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
458
|
+
staleIfErrorSeconds: number | undefined;
|
|
459
|
+
} | {
|
|
460
|
+
paths: any[];
|
|
461
|
+
} | undefined;
|
|
462
|
+
contentPages: {
|
|
463
|
+
browserTtlSeconds: number | undefined;
|
|
464
|
+
edgeTtlSeconds: number | undefined;
|
|
465
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
466
|
+
staleIfErrorSeconds: number | undefined;
|
|
467
|
+
} | {
|
|
468
|
+
paths: any[];
|
|
469
|
+
} | undefined;
|
|
470
|
+
r2PublishedObjects: {
|
|
471
|
+
browserTtlSeconds: number | undefined;
|
|
472
|
+
edgeTtlSeconds: number | undefined;
|
|
473
|
+
staleWhileRevalidateSeconds: number | undefined;
|
|
474
|
+
staleIfErrorSeconds: number | undefined;
|
|
475
|
+
} | {
|
|
476
|
+
paths: any[];
|
|
477
|
+
} | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
} | undefined;
|
|
314
481
|
services: {
|
|
315
482
|
[k: string]: {
|
|
316
483
|
enabled: boolean | undefined;
|
|
@@ -375,6 +542,26 @@ export declare function destroyCloudflareResources(tenantRoot: any, options?: {}
|
|
|
375
542
|
siteDataDb: any;
|
|
376
543
|
queue: any;
|
|
377
544
|
content: any;
|
|
545
|
+
webCache: {
|
|
546
|
+
webHost: any;
|
|
547
|
+
contentHost: any;
|
|
548
|
+
rulesManaged: boolean;
|
|
549
|
+
lastSyncedAt: any;
|
|
550
|
+
lastError: any;
|
|
551
|
+
policy: {
|
|
552
|
+
sourcePages: {
|
|
553
|
+
paths: string[];
|
|
554
|
+
browserTtlSeconds: number;
|
|
555
|
+
edgeTtlSeconds: number;
|
|
556
|
+
staleWhileRevalidateSeconds: number;
|
|
557
|
+
staleIfErrorSeconds: number;
|
|
558
|
+
};
|
|
559
|
+
contentPages: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
560
|
+
r2PublishedObjects: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
561
|
+
};
|
|
562
|
+
deployPurge: any;
|
|
563
|
+
contentPurge: any;
|
|
564
|
+
};
|
|
378
565
|
};
|
|
379
566
|
operations: {
|
|
380
567
|
worker: {
|
|
@@ -435,6 +622,26 @@ export declare function provisionCloudflareResources(tenantRoot: any, options?:
|
|
|
435
622
|
siteDataDb: any;
|
|
436
623
|
queue: any;
|
|
437
624
|
content: any;
|
|
625
|
+
webCache: {
|
|
626
|
+
webHost: any;
|
|
627
|
+
contentHost: any;
|
|
628
|
+
rulesManaged: boolean;
|
|
629
|
+
lastSyncedAt: any;
|
|
630
|
+
lastError: any;
|
|
631
|
+
policy: {
|
|
632
|
+
sourcePages: {
|
|
633
|
+
paths: string[];
|
|
634
|
+
browserTtlSeconds: number;
|
|
635
|
+
edgeTtlSeconds: number;
|
|
636
|
+
staleWhileRevalidateSeconds: number;
|
|
637
|
+
staleIfErrorSeconds: number;
|
|
638
|
+
};
|
|
639
|
+
contentPages: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
640
|
+
r2PublishedObjects: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
641
|
+
};
|
|
642
|
+
deployPurge: any;
|
|
643
|
+
contentPurge: any;
|
|
644
|
+
};
|
|
438
645
|
};
|
|
439
646
|
export declare function syncCloudflareSecrets(tenantRoot: any, options?: {}): string[];
|
|
440
647
|
export declare function verifyProvisionedCloudflareResources(tenantRoot: any, options?: {}): {
|
|
@@ -448,6 +655,7 @@ export declare function verifyProvisionedCloudflareResources(tenantRoot: any, op
|
|
|
448
655
|
queue: boolean;
|
|
449
656
|
dlq: boolean;
|
|
450
657
|
r2: boolean;
|
|
658
|
+
webCache: boolean;
|
|
451
659
|
};
|
|
452
660
|
state: any;
|
|
453
661
|
};
|