@webmaster-droid/server 0.1.0-alpha.0 → 0.1.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.
@@ -3,8 +3,9 @@ export { A as AgentBatchMutationInput, a as AnyCmsDocument, C as CmsMutationInpu
3
3
  import { CmsDocument, CmsPatch, ThemeTokenPatch } from '@webmaster-droid/contracts';
4
4
  export { C as CmsService, c as createPatchFromAgentOperations, a as createThemePatchFromAgentOperations } from '../service-BYwdlvCI.js';
5
5
 
6
+ declare function readByPath(input: unknown, path: string): unknown;
6
7
  declare function validatePatch(patch: CmsPatch, source: CmsDocument, options: PatchApplicationOptions): PatchValidationResult;
7
8
  declare function applyPatch(source: CmsDocument, patch: CmsPatch, options: PatchApplicationOptions): PatchApplyResult;
8
9
  declare function applyThemeTokenPatch(source: CmsDocument, patch: ThemeTokenPatch): ThemeApplyResult;
9
10
 
10
- export { PatchApplicationOptions, PatchApplyResult, PatchValidationResult, ThemeApplyResult, applyPatch, applyThemeTokenPatch, validatePatch };
11
+ export { PatchApplicationOptions, PatchApplyResult, PatchValidationResult, ThemeApplyResult, applyPatch, applyThemeTokenPatch, readByPath, validatePatch };
@@ -4,13 +4,15 @@ import {
4
4
  applyThemeTokenPatch,
5
5
  createPatchFromAgentOperations,
6
6
  createThemePatchFromAgentOperations,
7
+ readByPath,
7
8
  validatePatch
8
- } from "../chunk-2LAI3MY2.js";
9
+ } from "../chunk-EYY23AAK.js";
9
10
  export {
10
11
  CmsService,
11
12
  applyPatch,
12
13
  applyThemeTokenPatch,
13
14
  createPatchFromAgentOperations,
14
15
  createThemePatchFromAgentOperations,
16
+ readByPath,
15
17
  validatePatch
16
18
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { A as AgentBatchMutationInput, a as AnyCmsDocument, C as CmsMutationInput, b as CmsServiceConfig, M as ModelAdapter, c as ModelAdapterInput, d as ModelAdapterOutput, e as MutationResult, P as PatchApplicationOptions, f as PatchApplyResult, g as PatchValidationResult, S as StorageAdapter, T as ThemeApplyResult, h as ThemeMutationInput, i as ThemeMutationResult, j as ToolRegistry } from './types-OKJgq7Oo.js';
2
- export { applyPatch, applyThemeTokenPatch, validatePatch } from './core/index.js';
2
+ export { applyPatch, applyThemeTokenPatch, readByPath, validatePatch } from './core/index.js';
3
3
  export { C as CmsService, c as createPatchFromAgentOperations, a as createThemePatchFromAgentOperations } from './service-BYwdlvCI.js';
4
4
  export { S3CmsStorage } from './storage-s3/index.js';
5
5
  export { AgentRunnerInput, AgentRunnerResult, StaticToolName, listStaticToolNames, runAgentTurn } from './agent/index.js';
package/dist/index.js CHANGED
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  handler,
3
3
  streamHandler
4
- } from "./chunk-5CVLHGGO.js";
4
+ } from "./chunk-6RB7H6PA.js";
5
5
  import {
6
6
  listStaticToolNames,
7
7
  runAgentTurn
8
- } from "./chunk-X6TU47KZ.js";
8
+ } from "./chunk-IK36OUJQ.js";
9
9
  import {
10
10
  CmsService,
11
11
  applyPatch,
12
12
  applyThemeTokenPatch,
13
13
  createPatchFromAgentOperations,
14
14
  createThemePatchFromAgentOperations,
15
+ readByPath,
15
16
  validatePatch
16
- } from "./chunk-2LAI3MY2.js";
17
+ } from "./chunk-EYY23AAK.js";
17
18
  import {
18
19
  S3CmsStorage
19
20
  } from "./chunk-MLID7STX.js";
@@ -26,6 +27,7 @@ export {
26
27
  createThemePatchFromAgentOperations,
27
28
  handler,
28
29
  listStaticToolNames,
30
+ readByPath,
29
31
  runAgentTurn,
30
32
  streamHandler,
31
33
  validatePatch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmaster-droid/server",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "@ai-sdk/google": "^3.0.29",
37
37
  "@ai-sdk/openai": "^3.0.29",
38
38
  "@aws-sdk/client-s3": "^3.888.0",
39
- "@webmaster-droid/contracts": "^0.1.0-alpha.2",
39
+ "@webmaster-droid/contracts": "^0.1.0",
40
40
  "ai": "^6.0.86",
41
41
  "aws-lambda": "^1.0.7",
42
42
  "jose": "^6.1.0",
@@ -44,7 +44,8 @@
44
44
  },
45
45
  "scripts": {
46
46
  "typecheck": "tsc --noEmit",
47
- "build": "tsup src/index.ts src/core/index.ts src/storage-s3/index.ts src/agent/index.ts src/api-aws/index.ts --format esm --dts --clean"
47
+ "build": "tsup src/index.ts src/core/index.ts src/storage-s3/index.ts src/agent/index.ts src/api-aws/index.ts --format esm --dts --clean && node scripts/copy-agent-assets.mjs",
48
+ "test": "node ../../scripts/run-workspace-tests.mjs"
48
49
  },
49
50
  "devDependencies": {
50
51
  "@types/aws-lambda": "^8.10.160"