@treeseed/core 0.1.2 → 0.3.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.
- package/README.md +11 -2
- package/dist/config.d.ts +1 -0
- package/dist/content-config.d.ts +10 -0
- package/dist/content.js +44 -10
- package/dist/contracts.d.ts +1 -130
- package/dist/deploy/config.js +4 -148
- package/dist/deploy/runtime.js +12 -65
- package/dist/env.yaml +86 -14
- package/dist/environment.d.ts +2 -130
- package/dist/environment.js +13 -311
- package/dist/index.js +2 -0
- package/dist/plugins/builtin/default-plugin.js +5 -0
- package/dist/plugins/constants.js +5 -23
- package/dist/plugins/plugin.d.ts +2 -42
- package/dist/plugins/plugin.js +1 -3
- package/dist/plugins/runtime.d.ts +2 -31
- package/dist/plugins/runtime.js +7 -117
- package/dist/scripts/build-dist.js +5 -1
- package/dist/scripts/release-verify.js +1 -2
- package/dist/scripts/run-fixture-astro-command.js +16 -0
- package/dist/scripts/test-smoke.js +14 -3
- package/dist/scripts/workspace-bootstrap.js +153 -0
- package/dist/tenant/config.js +8 -116
- package/dist/utils/agents/contracts/messages.d.ts +1 -88
- package/dist/utils/agents/contracts/messages.js +1 -138
- package/dist/utils/agents/contracts/run.d.ts +1 -20
- package/dist/utils/agents/contracts/run.js +1 -0
- package/dist/utils/agents/runtime-types.d.ts +1 -117
- package/dist/utils/agents/runtime-types.js +1 -4
- package/dist/utils/books-data.js +7 -75
- package/dist/utils/site-config-schema.js +1 -282
- package/package.json +12 -5
- package/templates/github/deploy.workflow.yml +1 -1
- package/dist/deploy/config.d.ts +0 -4
- package/dist/plugins/builtin/default-plugin.d.ts +0 -21
- package/dist/plugins/constants.d.ts +0 -21
- package/dist/tenant/config.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeseed/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Treeseed platform runtime package for Astro, Starlight, forms, books, plugins, and shared platform behavior.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=22"
|
|
18
18
|
},
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"files": [
|
|
@@ -27,12 +27,14 @@
|
|
|
27
27
|
],
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"treeseed-workspace-bootstrap": "./dist/scripts/workspace-bootstrap.js"
|
|
30
33
|
},
|
|
31
34
|
"scripts": {
|
|
32
35
|
"setup": "npm install",
|
|
33
36
|
"setup:ci": "npm ci",
|
|
34
37
|
"build:dist": "node ./scripts/run-ts.mjs ./scripts/build-dist.ts",
|
|
35
|
-
"prepare": "npm run build:dist",
|
|
36
38
|
"prepack": "npm run build:dist",
|
|
37
39
|
"starlight:patch": "node ./scripts/run-ts.mjs ./scripts/patch-starlight-content-path.ts",
|
|
38
40
|
"precheck": "npm run starlight:patch",
|
|
@@ -42,7 +44,11 @@
|
|
|
42
44
|
"preview": "node ./scripts/run-ts.mjs ./scripts/run-fixture-astro-command.ts preview",
|
|
43
45
|
"test:unit": "vitest run --config ./vitest.config.ts",
|
|
44
46
|
"test": "npm run test:unit",
|
|
45
|
-
"
|
|
47
|
+
"lint": "npm run fixtures:check && npm run starlight:patch && npm run build:dist",
|
|
48
|
+
"verify:direct": "npm run release:verify",
|
|
49
|
+
"verify:local": "node --input-type=module -e \"process.env.TREESEED_VERIFY_DRIVER='direct'; await import('@treeseed/sdk/scripts/verify-driver')\"",
|
|
50
|
+
"verify:action": "node --input-type=module -e \"process.env.TREESEED_VERIFY_DRIVER='act'; await import('@treeseed/sdk/scripts/verify-driver')\"",
|
|
51
|
+
"verify": "node --input-type=module -e \"await import('@treeseed/sdk/scripts/verify-driver')\"",
|
|
46
52
|
"test:smoke": "node ./scripts/run-ts.mjs ./scripts/test-smoke.ts",
|
|
47
53
|
"fixtures:resolve": "node ./scripts/run-ts.mjs ./scripts/fixture-tools.ts resolve",
|
|
48
54
|
"fixtures:check": "node ./scripts/run-ts.mjs ./scripts/fixture-tools.ts check",
|
|
@@ -52,7 +58,7 @@
|
|
|
52
58
|
"release:publish": "node ./scripts/run-ts.mjs ./scripts/publish-package.ts"
|
|
53
59
|
},
|
|
54
60
|
"dependencies": {
|
|
55
|
-
"@treeseed/sdk": "^0.
|
|
61
|
+
"@treeseed/sdk": "^0.3.4",
|
|
56
62
|
"@astrojs/check": "^0.9.8",
|
|
57
63
|
"@astrojs/cloudflare": "^12.6.13",
|
|
58
64
|
"@astrojs/sitemap": "3.7.0",
|
|
@@ -129,6 +135,7 @@
|
|
|
129
135
|
"types": "./dist/environment.d.ts",
|
|
130
136
|
"default": "./dist/environment.js"
|
|
131
137
|
},
|
|
138
|
+
"./scripts/workspace-bootstrap": "./dist/scripts/workspace-bootstrap.js",
|
|
132
139
|
"./site-resources": {
|
|
133
140
|
"types": "./dist/site-resources.d.ts",
|
|
134
141
|
"default": "./dist/site-resources.js"
|
package/dist/deploy/config.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TreeseedDeployConfig } from '../contracts';
|
|
2
|
-
export declare function resolveTreeseedDeployConfigPath(configPath?: string): string;
|
|
3
|
-
export declare function deriveCloudflareWorkerName(config: TreeseedDeployConfig): string;
|
|
4
|
-
export declare function loadTreeseedDeployConfig(configPath?: string): TreeseedDeployConfig;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
id: string;
|
|
3
|
-
provides: {
|
|
4
|
-
forms: string[];
|
|
5
|
-
agents: {
|
|
6
|
-
execution: string[];
|
|
7
|
-
mutation: string[];
|
|
8
|
-
repository: string[];
|
|
9
|
-
verification: string[];
|
|
10
|
-
notification: string[];
|
|
11
|
-
research: string[];
|
|
12
|
-
handlers: string[];
|
|
13
|
-
};
|
|
14
|
-
deploy: string[];
|
|
15
|
-
content: {
|
|
16
|
-
docs: string[];
|
|
17
|
-
};
|
|
18
|
-
site: string[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const TREESEED_DEFAULT_PLUGIN_PACKAGE = "@treeseed/core/plugin-default";
|
|
2
|
-
export declare const TREESEED_DEFAULT_PROVIDER_SELECTIONS: {
|
|
3
|
-
forms: string;
|
|
4
|
-
agents: {
|
|
5
|
-
execution: string;
|
|
6
|
-
mutation: string;
|
|
7
|
-
repository: string;
|
|
8
|
-
verification: string;
|
|
9
|
-
notification: string;
|
|
10
|
-
research: string;
|
|
11
|
-
};
|
|
12
|
-
deploy: string;
|
|
13
|
-
content: {
|
|
14
|
-
docs: string;
|
|
15
|
-
};
|
|
16
|
-
site: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const TREESEED_DEFAULT_PLUGIN_REFERENCES: {
|
|
19
|
-
package: string;
|
|
20
|
-
enabled: boolean;
|
|
21
|
-
}[];
|
package/dist/tenant/config.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TreeseedTenantConfig } from '../contracts';
|
|
2
|
-
declare function resolveTenantRoot(): string;
|
|
3
|
-
export declare function defineTreeseedTenant<T>(tenantConfig: T): T;
|
|
4
|
-
export declare function loadTreeseedManifest(manifestPath?: string): TreeseedTenantConfig;
|
|
5
|
-
export declare const loadTreeseedTenantManifest: typeof loadTreeseedManifest;
|
|
6
|
-
export declare const resolveTreeseedTenantRoot: typeof resolveTenantRoot;
|
|
7
|
-
export declare function getTenantContentRoot(tenantConfig: Pick<TreeseedTenantConfig, 'content'>, collectionName: string): string;
|
|
8
|
-
export declare function tenantFeatureEnabled(tenantConfig: Pick<TreeseedTenantConfig, 'features'>, featureName: string): boolean;
|
|
9
|
-
export {};
|