@treeseed/sdk 0.3.3 → 0.4.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.
Files changed (54) hide show
  1. package/README.md +3 -3
  2. package/dist/index.d.ts +1 -7
  3. package/dist/index.js +0 -6
  4. package/dist/operations/runtime.js +1 -1
  5. package/dist/operations/services/config-runtime.d.ts +5 -5
  6. package/dist/operations/services/config-runtime.js +1 -1
  7. package/dist/operations/services/deploy.js +1 -1
  8. package/dist/operations/services/runtime-paths.d.ts +1 -0
  9. package/dist/operations/services/runtime-paths.js +3 -1
  10. package/dist/operations/services/runtime-tools.js +1 -1
  11. package/dist/operations/services/template-registry.d.ts +3 -3
  12. package/dist/operations/services/template-registry.js +5 -4
  13. package/dist/platform/books-data.d.ts +29 -1
  14. package/dist/platform/books-data.js +82 -1
  15. package/dist/platform/deploy-config.d.ts +4 -1
  16. package/dist/platform/deploy-config.js +222 -1
  17. package/dist/platform/deploy-runtime.js +1 -1
  18. package/dist/platform/environment.d.ts +1 -1
  19. package/dist/platform/environment.js +3 -3
  20. package/dist/platform/plugin.d.ts +51 -2
  21. package/dist/platform/plugin.js +3 -1
  22. package/dist/platform/plugins/constants.d.ts +1 -1
  23. package/dist/platform/plugins/constants.js +1 -1
  24. package/dist/platform/plugins/runtime.d.ts +1 -1
  25. package/dist/platform/plugins/runtime.js +5 -5
  26. package/dist/platform/plugins.d.ts +2 -2
  27. package/dist/platform/plugins.js +1 -1
  28. package/dist/platform/tenant/runtime-config.js +1 -1
  29. package/dist/platform/tenant-config.d.ts +7 -1
  30. package/dist/platform/tenant-config.js +153 -1
  31. package/dist/plugin-default.d.ts +25 -0
  32. package/dist/plugin-default.js +37 -0
  33. package/dist/scripts/aggregate-book.js +1 -1
  34. package/dist/scripts/build-tenant-worker.js +2 -2
  35. package/dist/scripts/tenant-destroy.js +1 -1
  36. package/dist/scripts/tenant-dev.js +1 -1
  37. package/dist/treeseed/template-catalog/templates/starter-basic/template/package.json +1 -0
  38. package/dist/treeseed/template-catalog/templates/starter-basic/template/treeseed.site.yaml +1 -1
  39. package/dist/treeseed/template-catalog/templates/starter-basic/template.config.json +6 -0
  40. package/package.json +5 -25
  41. package/dist/platform/deploy/config.d.ts +0 -4
  42. package/dist/platform/deploy/config.js +0 -222
  43. package/dist/platform/plugins/plugin.d.ts +0 -51
  44. package/dist/platform/plugins/plugin.js +0 -6
  45. package/dist/platform/tenant/config.d.ts +0 -9
  46. package/dist/platform/tenant/config.js +0 -154
  47. package/dist/platform/utils/books-data.d.ts +0 -29
  48. package/dist/platform/utils/books-data.js +0 -82
  49. package/dist/utils/agents/contracts/messages.d.ts +0 -88
  50. package/dist/utils/agents/contracts/messages.js +0 -139
  51. package/dist/utils/agents/contracts/run.d.ts +0 -20
  52. package/dist/utils/agents/contracts/run.js +0 -0
  53. package/dist/utils/agents/runtime-types.d.ts +0 -117
  54. package/dist/utils/agents/runtime-types.js +0 -4
@@ -1,4 +1,4 @@
1
- const TREESEED_DEFAULT_PLUGIN_PACKAGE = "@treeseed/core/plugin-default";
1
+ const TREESEED_DEFAULT_PLUGIN_PACKAGE = "@treeseed/sdk/plugin-default";
2
2
  const TREESEED_DEFAULT_PROVIDER_SELECTIONS = {
3
3
  forms: "store_only",
4
4
  operations: "default",
@@ -1,5 +1,5 @@
1
1
  import type { TreeseedDeployConfig } from '../contracts.ts';
2
- import type { TreeseedPluginEnvironmentContext } from './plugin.ts';
2
+ import type { TreeseedPluginEnvironmentContext } from '../plugin.ts';
3
3
  import type { SdkGraphRankingProvider } from '../../sdk-types.ts';
4
4
  type LoadedPluginEntry = {
5
5
  package: string;
@@ -2,7 +2,7 @@ import { existsSync } from "node:fs";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- import { loadTreeseedDeployConfig } from "../deploy/config.js";
5
+ import { loadTreeseedDeployConfig } from "../deploy-config.js";
6
6
  import { TREESEED_DEFAULT_PLUGIN_PACKAGE } from "./constants.js";
7
7
  const require2 = createRequire(import.meta.url);
8
8
  const runtimeDir = path.dirname(fileURLToPath(import.meta.url));
@@ -18,18 +18,18 @@ function isPathLikePluginReference(packageName) {
18
18
  }
19
19
  function resolveLocalDefaultPluginPath() {
20
20
  const candidates = [
21
- path.resolve(runtimeDir, "../../../../core/dist/plugin-default.js"),
22
- path.resolve(runtimeDir, "../../../../dist/plugin-default.js")
21
+ path.resolve(runtimeDir, "../../../dist/plugin-default.js"),
22
+ path.resolve(runtimeDir, "../../../../sdk/dist/plugin-default.js")
23
23
  ];
24
24
  let current = runtimeDir;
25
25
  while (true) {
26
+ candidates.push(path.resolve(current, "..", "sdk", "dist", "plugin-default.js"));
26
27
  const packageJsonPath = path.resolve(current, "package.json");
27
28
  if (existsSync(packageJsonPath)) {
28
29
  try {
29
30
  const packageJson = require2(packageJsonPath);
30
- if (packageJson?.name === "@treeseed/core") {
31
+ if (packageJson?.name === "@treeseed/sdk") {
31
32
  candidates.push(path.resolve(current, "dist/plugin-default.js"));
32
- break;
33
33
  }
34
34
  } catch {
35
35
  }
@@ -1,6 +1,6 @@
1
1
  export { TREESEED_DEFAULT_PLUGIN_PACKAGE, TREESEED_DEFAULT_PLUGIN_REFERENCES, TREESEED_DEFAULT_PROVIDER_SELECTIONS, } from './plugins/constants.ts';
2
2
  export { getTreeseedAgentProviderSelections, getTreeseedDeployConfig, getTreeseedDeployProvider, getTreeseedDocsProvider, getTreeseedFormsProvider, getTreeseedOperationsProvider, getTreeseedSiteProvider, isTreeseedSmtpEnabled, isTreeseedTurnstileEnabled, resetTreeseedDeployConfigForTests, } from './deploy-runtime.ts';
3
- export { defineTreeseedPlugin } from './plugins/plugin.ts';
4
- export type * from './plugins/plugin.ts';
3
+ export { defineTreeseedPlugin } from './plugin.ts';
4
+ export type * from './plugin.ts';
5
5
  export { loadTreeseedPluginRuntime, loadTreeseedPlugins, resolveTreeseedGraphRankingProvider } from './plugins/runtime.ts';
6
6
  export type { LoadedTreeseedPluginEntry } from './plugins/runtime.ts';
@@ -15,7 +15,7 @@ import {
15
15
  isTreeseedTurnstileEnabled,
16
16
  resetTreeseedDeployConfigForTests
17
17
  } from "./deploy-runtime.js";
18
- import { defineTreeseedPlugin } from "./plugins/plugin.js";
18
+ import { defineTreeseedPlugin } from "./plugin.js";
19
19
  import { loadTreeseedPluginRuntime, loadTreeseedPlugins, resolveTreeseedGraphRankingProvider } from "./plugins/runtime.js";
20
20
  export {
21
21
  TREESEED_DEFAULT_PLUGIN_PACKAGE,
@@ -1,5 +1,5 @@
1
1
  import { readFileSync } from "node:fs";
2
- import { loadTreeseedManifest } from "./config.js";
2
+ import { loadTreeseedManifest } from "../tenant-config.js";
3
3
  import { parseSiteConfig } from "../utils/site-config-schema.js";
4
4
  const injectedTenantConfig = typeof __TREESEED_TENANT_CONFIG__ !== "undefined" ? __TREESEED_TENANT_CONFIG__ : null;
5
5
  const injectedProjectRoot = typeof __TREESEED_PROJECT_ROOT__ !== "undefined" ? __TREESEED_PROJECT_ROOT__ : null;
@@ -1 +1,7 @@
1
- export * from './tenant/config.ts';
1
+ import type { TreeseedTenantConfig } from './contracts.ts';
2
+ export declare function resolveTreeseedTenantRoot(): 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 function getTenantContentRoot(tenantConfig: Pick<TreeseedTenantConfig, 'content'>, collectionName: string): string;
7
+ export declare function tenantFeatureEnabled(tenantConfig: Pick<TreeseedTenantConfig, 'features'>, featureName: string): boolean;
@@ -1 +1,153 @@
1
- export * from "./tenant/config.js";
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { dirname, resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { parse as parseYaml } from "yaml";
5
+ import { normalizeAliasedRecord } from "../field-aliases.js";
6
+ function resolvePackageRoot() {
7
+ const moduleUrl = typeof import.meta?.url === "string" ? import.meta.url : null;
8
+ if (!moduleUrl) {
9
+ return process.cwd();
10
+ }
11
+ return resolve(dirname(fileURLToPath(moduleUrl)), "../..");
12
+ }
13
+ const packageRoot = resolvePackageRoot();
14
+ const packageFixtureRoot = resolve(packageRoot, ".fixtures", "treeseed-fixtures", "sites", "working-site");
15
+ const explicitTenantRoot = process.env.TREESEED_TENANT_ROOT ? resolve(process.env.TREESEED_TENANT_ROOT) : null;
16
+ const manifestFieldAliases = {
17
+ siteConfigPath: { key: "siteConfigPath", aliases: ["site_config_path"] }
18
+ };
19
+ const manifestContentFieldAliases = {
20
+ pages: { key: "pages", aliases: ["page_root", "pages_root"] },
21
+ notes: { key: "notes", aliases: ["notes_root"] },
22
+ questions: { key: "questions", aliases: ["questions_root"] },
23
+ objectives: { key: "objectives", aliases: ["objectives_root"] },
24
+ people: { key: "people", aliases: ["people_root"] },
25
+ agents: { key: "agents", aliases: ["agents_root"] },
26
+ books: { key: "books", aliases: ["books_root"] },
27
+ docs: { key: "docs", aliases: ["knowledge", "knowledge_root", "docs_root"] }
28
+ };
29
+ const manifestOverrideFieldAliases = {
30
+ pagesRoot: { key: "pagesRoot", aliases: ["pages_root"] },
31
+ stylesRoot: { key: "stylesRoot", aliases: ["styles_root"] },
32
+ componentsRoot: { key: "componentsRoot", aliases: ["components_root"] }
33
+ };
34
+ function pathWithin(parent, candidate) {
35
+ const normalizedParent = resolve(parent);
36
+ const normalizedCandidate = resolve(candidate);
37
+ return normalizedCandidate === normalizedParent || normalizedCandidate.startsWith(`${normalizedParent}/`);
38
+ }
39
+ function collectTenantRootCandidates(start) {
40
+ const candidates = [];
41
+ let current = resolve(start);
42
+ while (true) {
43
+ candidates.push(
44
+ current,
45
+ resolve(current, ".fixtures", "treeseed-fixtures", "sites", "working-site"),
46
+ resolve(current, "fixture")
47
+ );
48
+ const parent = resolve(current, "..");
49
+ if (parent === current) {
50
+ break;
51
+ }
52
+ current = parent;
53
+ }
54
+ return candidates;
55
+ }
56
+ function uniqueCandidates(entries) {
57
+ return [...new Set(entries.map((entry) => resolve(entry)))];
58
+ }
59
+ function tenantRootCandidates() {
60
+ const cwd = resolve(process.cwd());
61
+ const cwdCandidates = collectTenantRootCandidates(cwd);
62
+ const packageCandidates = collectTenantRootCandidates(packageRoot);
63
+ if (explicitTenantRoot) {
64
+ return uniqueCandidates([explicitTenantRoot, ...cwdCandidates, packageFixtureRoot, ...packageCandidates]);
65
+ }
66
+ if (pathWithin(packageRoot, cwd)) {
67
+ return uniqueCandidates([packageFixtureRoot, ...cwdCandidates, ...packageCandidates]);
68
+ }
69
+ return uniqueCandidates([...cwdCandidates, packageFixtureRoot, ...packageCandidates]);
70
+ }
71
+ function resolveTenantPath(manifestPath) {
72
+ if (existsSync(manifestPath)) {
73
+ return resolve(manifestPath);
74
+ }
75
+ const candidates = tenantRootCandidates().map((root) => resolve(root, manifestPath));
76
+ for (const candidate of candidates) {
77
+ if (existsSync(candidate)) {
78
+ return candidate;
79
+ }
80
+ }
81
+ throw new Error(
82
+ `Unable to resolve Treeseed tenant manifest at "${manifestPath}" from ${process.cwd()} or ${packageFixtureRoot}.`
83
+ );
84
+ }
85
+ function resolveTreeseedTenantRoot() {
86
+ const candidates = tenantRootCandidates();
87
+ for (const candidate of candidates) {
88
+ if (existsSync(resolve(candidate, "src/manifest.yaml"))) {
89
+ return candidate;
90
+ }
91
+ }
92
+ throw new Error(
93
+ `Unable to resolve a Treeseed tenant root from ${process.cwd()} or ${packageFixtureRoot}.`
94
+ );
95
+ }
96
+ function defineTreeseedTenant(tenantConfig) {
97
+ return tenantConfig;
98
+ }
99
+ function loadTreeseedManifest(manifestPath = "./src/manifest.yaml") {
100
+ const resolvedManifestPath = resolveTenantPath(manifestPath);
101
+ const tenantRoot = resolve(dirname(resolvedManifestPath), "..");
102
+ const parsed = normalizeAliasedRecord(
103
+ manifestFieldAliases,
104
+ parseYaml(readFileSync(resolvedManifestPath, "utf8"))
105
+ );
106
+ const content = normalizeAliasedRecord(
107
+ manifestContentFieldAliases,
108
+ parsed.content ?? {}
109
+ );
110
+ const overrides = parsed.overrides ? normalizeAliasedRecord(
111
+ manifestOverrideFieldAliases,
112
+ parsed.overrides
113
+ ) : void 0;
114
+ const tenantConfig = defineTreeseedTenant({
115
+ ...parsed,
116
+ siteConfigPath: resolve(tenantRoot, parsed.siteConfigPath),
117
+ content: Object.fromEntries(
118
+ Object.entries(content ?? {}).map(([collectionName, rootPath]) => [
119
+ collectionName,
120
+ resolve(tenantRoot, String(rootPath))
121
+ ])
122
+ ),
123
+ overrides: overrides ? {
124
+ pagesRoot: overrides.pagesRoot ? resolve(tenantRoot, overrides.pagesRoot) : void 0,
125
+ stylesRoot: overrides.stylesRoot ? resolve(tenantRoot, overrides.stylesRoot) : void 0,
126
+ componentsRoot: overrides.componentsRoot ? resolve(tenantRoot, overrides.componentsRoot) : void 0
127
+ } : void 0
128
+ });
129
+ Object.defineProperty(tenantConfig, "__tenantRoot", {
130
+ value: tenantRoot,
131
+ enumerable: false
132
+ });
133
+ return tenantConfig;
134
+ }
135
+ const loadTreeseedTenantManifest = loadTreeseedManifest;
136
+ function getTenantContentRoot(tenantConfig, collectionName) {
137
+ const root = tenantConfig.content[collectionName];
138
+ if (!root) {
139
+ throw new Error(`Unknown tenant content collection: ${collectionName}`);
140
+ }
141
+ return root;
142
+ }
143
+ function tenantFeatureEnabled(tenantConfig, featureName) {
144
+ return tenantConfig.features?.[featureName] !== false;
145
+ }
146
+ export {
147
+ defineTreeseedTenant,
148
+ getTenantContentRoot,
149
+ loadTreeseedManifest,
150
+ loadTreeseedTenantManifest,
151
+ resolveTreeseedTenantRoot,
152
+ tenantFeatureEnabled
153
+ };
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ id: string;
3
+ provides: {
4
+ forms: string[];
5
+ operations: string[];
6
+ agents: {
7
+ execution: string[];
8
+ mutation: string[];
9
+ repository: string[];
10
+ verification: string[];
11
+ notification: string[];
12
+ research: string[];
13
+ handlers: string[];
14
+ };
15
+ deploy: string[];
16
+ content: {
17
+ docs: string[];
18
+ };
19
+ site: string[];
20
+ };
21
+ graphRankingProviders: {
22
+ default: import("./sdk-types.ts").SdkGraphRankingProvider;
23
+ };
24
+ };
25
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { createDefaultGraphRankingProvider } from "./graph/ranking.js";
2
+ import { defineTreeseedPlugin } from "./platform/plugin.js";
3
+ var plugin_default_default = defineTreeseedPlugin({
4
+ id: "treeseed-sdk-default",
5
+ provides: {
6
+ forms: ["store_only", "notify_admin", "full_email"],
7
+ operations: ["default"],
8
+ agents: {
9
+ execution: ["stub", "manual", "copilot"],
10
+ mutation: ["local_branch"],
11
+ repository: ["stub", "git"],
12
+ verification: ["stub", "local"],
13
+ notification: ["stub"],
14
+ research: ["stub"],
15
+ handlers: [
16
+ "planner",
17
+ "architect",
18
+ "engineer",
19
+ "notifier",
20
+ "researcher",
21
+ "reviewer",
22
+ "releaser"
23
+ ]
24
+ },
25
+ deploy: ["cloudflare"],
26
+ content: {
27
+ docs: ["default"]
28
+ },
29
+ site: ["default"]
30
+ },
31
+ graphRankingProviders: {
32
+ default: createDefaultGraphRankingProvider()
33
+ }
34
+ });
35
+ export {
36
+ plugin_default_default as default
37
+ };
@@ -1,7 +1,7 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { buildTenantBookRuntime } from '../platform/utils/books-data.js';
4
- import { loadTreeseedManifest } from '../platform/tenant/config.js';
4
+ import { loadTreeseedManifest } from '../platform/tenant-config.js';
5
5
  const PROJECT_TENANT = loadTreeseedManifest();
6
6
  const { BOOKS, TREESEED_LIBRARY_DOWNLOAD } = buildTenantBookRuntime(PROJECT_TENANT, {
7
7
  projectRoot: PROJECT_TENANT.__tenantRoot ?? process.cwd(),
@@ -1,8 +1,8 @@
1
1
  import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, resolve } from 'node:path';
3
3
  import { build } from 'esbuild';
4
- import { loadTreeseedDeployConfig } from '../platform/deploy/config.js';
5
- import { loadTreeseedManifest } from '../platform/tenant/config.js';
4
+ import { loadTreeseedDeployConfig } from '../platform/deploy-config.js';
5
+ import { loadTreeseedManifest } from '../platform/tenant-config.js';
6
6
  import { parseSiteConfig } from '../platform/utils/site-config-schema.js';
7
7
  import { corePackageRoot } from '../operations/services/runtime-tools.js';
8
8
  const tenantRoot = process.cwd();
@@ -3,7 +3,7 @@ import readline from 'node:readline/promises';
3
3
  import { stdin as input, stdout as output } from 'node:process';
4
4
  import { applyTreeseedEnvironmentToProcess, assertTreeseedCommandEnvironment } from '../operations/services/config-runtime.js';
5
5
  import { cleanupDestroyedState, createPersistentDeployTarget, destroyCloudflareResources, loadDeployState, printDestroySummary, validateDestroyPrerequisites, } from '../operations/services/deploy.js';
6
- import { deriveCloudflareWorkerName } from '../platform/deploy/config.js';
6
+ import { deriveCloudflareWorkerName } from '../platform/deploy-config.js';
7
7
  const tenantRoot = process.cwd();
8
8
  function parseArgs(argv) {
9
9
  const parsed = {
@@ -2,7 +2,7 @@ import { spawnSync } from 'node:child_process';
2
2
  import { corePackageRoot, packageScriptPath, spawnNodeBinary, resolveWranglerBin } from '../operations/services/runtime-tools.js';
3
3
  import { applyTreeseedEnvironmentToProcess, assertTreeseedCommandEnvironment } from '../operations/services/config-runtime.js';
4
4
  import { ensureGeneratedWranglerConfig } from '../operations/services/deploy.js';
5
- import { loadTreeseedDeployConfig } from '../platform/deploy/config.js';
5
+ import { loadTreeseedDeployConfig } from '../platform/deploy-config.js';
6
6
  import { createTenantWatchEntries, isEditablePackageWorkspace, startPollingWatch, stopManagedProcess, writeDevReloadStamp, workspaceSdkRoot, } from '../operations/services/watch-dev.js';
7
7
  const tenantRoot = process.cwd();
8
8
  const cliArgs = process.argv.slice(2);
@@ -23,6 +23,7 @@
23
23
  "dependencies": {
24
24
  "@treeseed/cli": "__CLI_VERSION__",
25
25
  "@treeseed/core": "__CORE_VERSION__",
26
+ "@treeseed/sdk": "__SDK_VERSION__",
26
27
  "yaml": "^2.8.1"
27
28
  },
28
29
  "devDependencies": {
@@ -6,7 +6,7 @@ cloudflare:
6
6
  accountId: replace-with-cloudflare-account-id
7
7
  workerName: __SITE_SLUG__
8
8
  plugins:
9
- - package: '@treeseed/core/plugin-default'
9
+ - package: '@treeseed/sdk/plugin-default'
10
10
  providers:
11
11
  forms: store_only
12
12
  agents:
@@ -64,6 +64,12 @@
64
64
  "token": "__CORE_VERSION__",
65
65
  "deriveFrom": "coreVersion",
66
66
  "required": true
67
+ },
68
+ {
69
+ "name": "SDK version",
70
+ "token": "__SDK_VERSION__",
71
+ "deriveFrom": "sdkVersion",
72
+ "required": true
67
73
  }
68
74
  ],
69
75
  "managedSurface": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Shared Treeseed SDK for content-backed and D1-backed object models.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -120,6 +120,10 @@
120
120
  "types": "./dist/platform/plugin.d.ts",
121
121
  "default": "./dist/platform/plugin.js"
122
122
  },
123
+ "./plugin-default": {
124
+ "types": "./dist/plugin-default.d.ts",
125
+ "default": "./dist/plugin-default.js"
126
+ },
123
127
  "./platform/books-data": {
124
128
  "types": "./dist/platform/books-data.d.ts",
125
129
  "default": "./dist/platform/books-data.js"
@@ -180,26 +184,14 @@
180
184
  "types": "./dist/types/agents.d.ts",
181
185
  "default": "./dist/types/agents.js"
182
186
  },
183
- "./types/agents.js": {
184
- "types": "./dist/types/agents.d.ts",
185
- "default": "./dist/types/agents.js"
186
- },
187
187
  "./types/cloudflare": {
188
188
  "types": "./dist/types/cloudflare.d.ts",
189
189
  "default": "./dist/types/cloudflare.js"
190
190
  },
191
- "./types/cloudflare.js": {
192
- "types": "./dist/types/cloudflare.d.ts",
193
- "default": "./dist/types/cloudflare.js"
194
- },
195
191
  "./wrangler-d1": {
196
192
  "types": "./dist/wrangler-d1.d.ts",
197
193
  "default": "./dist/wrangler-d1.js"
198
194
  },
199
- "./wrangler-d1.js": {
200
- "types": "./dist/wrangler-d1.d.ts",
201
- "default": "./dist/wrangler-d1.js"
202
- },
203
195
  "./stores/cursor-store": {
204
196
  "types": "./dist/stores/cursor-store.d.ts",
205
197
  "default": "./dist/stores/cursor-store.js"
@@ -223,18 +215,6 @@
223
215
  "./stores/subscription-store": {
224
216
  "types": "./dist/stores/subscription-store.d.ts",
225
217
  "default": "./dist/stores/subscription-store.js"
226
- },
227
- "./utils/agents/runtime-types": {
228
- "types": "./dist/utils/agents/runtime-types.d.ts",
229
- "default": "./dist/utils/agents/runtime-types.js"
230
- },
231
- "./utils/agents/contracts/messages": {
232
- "types": "./dist/utils/agents/contracts/messages.d.ts",
233
- "default": "./dist/utils/agents/contracts/messages.js"
234
- },
235
- "./utils/agents/contracts/run": {
236
- "types": "./dist/utils/agents/contracts/run.d.ts",
237
- "default": "./dist/utils/agents/contracts/run.js"
238
218
  }
239
219
  }
240
220
  }
@@ -1,4 +0,0 @@
1
- import type { TreeseedDeployConfig } from '../contracts.ts';
2
- export declare function resolveTreeseedDeployConfigPath(configPath?: string): string;
3
- export declare function deriveCloudflareWorkerName(config: TreeseedDeployConfig): string;
4
- export declare function loadTreeseedDeployConfig(configPath?: string): TreeseedDeployConfig;