@amodalai/core 0.1.10 → 0.1.12

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 (96) hide show
  1. package/dist/src/admin/admin-agent.d.ts +34 -0
  2. package/dist/src/admin/admin-agent.js +160 -0
  3. package/dist/src/admin/admin-agent.js.map +1 -0
  4. package/dist/src/admin/admin-loader.d.ts +22 -0
  5. package/dist/src/admin/admin-loader.js +70 -0
  6. package/dist/src/admin/admin-loader.js.map +1 -0
  7. package/dist/src/admin/index.d.ts +8 -0
  8. package/dist/src/admin/index.js +8 -0
  9. package/dist/src/admin/index.js.map +1 -0
  10. package/dist/src/amodal-config.d.ts +1 -5
  11. package/dist/src/amodal-config.js +3 -5
  12. package/dist/src/amodal-config.js.map +1 -1
  13. package/dist/src/eval/eval-runner.d.ts +1 -1
  14. package/dist/src/eval/eval-runner.js +1 -1
  15. package/dist/src/eval/eval-runner.js.map +1 -1
  16. package/dist/src/eval/eval-session-provider.d.ts +1 -1
  17. package/dist/src/eval/eval-session-provider.js +1 -1
  18. package/dist/src/eval/eval-session-provider.js.map +1 -1
  19. package/dist/src/index.d.ts +1 -0
  20. package/dist/src/index.js +2 -0
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/knowledge/kb-formatter.d.ts +1 -1
  23. package/dist/src/knowledge/kb-formatter.js +2 -11
  24. package/dist/src/knowledge/kb-formatter.js.map +1 -1
  25. package/dist/src/knowledge/kb-index.d.ts +2 -2
  26. package/dist/src/knowledge/kb-index.js +2 -5
  27. package/dist/src/knowledge/kb-index.js.map +1 -1
  28. package/dist/src/knowledge/kb-types.d.ts +5 -7
  29. package/dist/src/knowledge/knowledge-store.d.ts +1 -4
  30. package/dist/src/knowledge/knowledge-store.js +6 -16
  31. package/dist/src/knowledge/knowledge-store.js.map +1 -1
  32. package/dist/src/knowledge/propose-kb-update.d.ts +1 -1
  33. package/dist/src/knowledge/propose-kb-update.js +3 -7
  34. package/dist/src/knowledge/propose-kb-update.js.map +1 -1
  35. package/dist/src/knowledge/propose-knowledge.d.ts +1 -1
  36. package/dist/src/knowledge/propose-knowledge.js +3 -7
  37. package/dist/src/knowledge/propose-knowledge.js.map +1 -1
  38. package/dist/src/packages/config-deps.d.ts +4 -4
  39. package/dist/src/packages/config-deps.js +6 -8
  40. package/dist/src/packages/config-deps.js.map +1 -1
  41. package/dist/src/packages/lock-file.d.ts +19 -13
  42. package/dist/src/packages/lock-file.js +27 -26
  43. package/dist/src/packages/lock-file.js.map +1 -1
  44. package/dist/src/packages/npm-context.d.ts +12 -11
  45. package/dist/src/packages/npm-context.js +36 -73
  46. package/dist/src/packages/npm-context.js.map +1 -1
  47. package/dist/src/packages/package-types.d.ts +85 -293
  48. package/dist/src/packages/package-types.js +63 -103
  49. package/dist/src/packages/package-types.js.map +1 -1
  50. package/dist/src/packages/resolver.d.ts +8 -19
  51. package/dist/src/packages/resolver.js +182 -284
  52. package/dist/src/packages/resolver.js.map +1 -1
  53. package/dist/src/platform/config-builder.js +1 -4
  54. package/dist/src/platform/config-builder.js.map +1 -1
  55. package/dist/src/platform/platform-client.d.ts +8 -8
  56. package/dist/src/platform/platform-client.js +13 -16
  57. package/dist/src/platform/platform-client.js.map +1 -1
  58. package/dist/src/platform/platform-types.d.ts +0 -2
  59. package/dist/src/repo/config-schema.d.ts +31 -31
  60. package/dist/src/repo/connection-schemas.d.ts +31 -6
  61. package/dist/src/repo/connection-schemas.js +13 -2
  62. package/dist/src/repo/connection-schemas.js.map +1 -1
  63. package/dist/src/repo/local-reader.js +12 -121
  64. package/dist/src/repo/local-reader.js.map +1 -1
  65. package/dist/src/repo/parsers.js +2 -2
  66. package/dist/src/repo/parsers.js.map +1 -1
  67. package/dist/src/repo/repo-types.d.ts +1 -1
  68. package/dist/src/repo/tool-types.d.ts +2 -2
  69. package/dist/src/runtime/connection-bridge.js +4 -1
  70. package/dist/src/runtime/connection-bridge.js.map +1 -1
  71. package/dist/src/runtime/explore-tool.js +1 -1
  72. package/dist/src/runtime/explore-tool.js.map +1 -1
  73. package/dist/src/sdk.js +6 -17
  74. package/dist/src/sdk.js.map +1 -1
  75. package/dist/src/snapshot/snapshot-types.d.ts +186 -90
  76. package/dist/src/stores/store-backend.d.ts +8 -8
  77. package/dist/src/tool-context.d.ts +2 -2
  78. package/dist/src/tool-registration.js +3 -3
  79. package/dist/src/tool-registration.js.map +1 -1
  80. package/dist/src/tools/definitions/amodal-tools.js +5 -5
  81. package/dist/src/tools/definitions/amodal-tools.js.map +1 -1
  82. package/dist/src/tools/request-tool.js +1 -1
  83. package/dist/src/tools/store-query-tool.d.ts +2 -2
  84. package/dist/src/tools/store-query-tool.js +9 -9
  85. package/dist/src/tools/store-query-tool.js.map +1 -1
  86. package/dist/src/tools/store-write-tool.d.ts +2 -2
  87. package/dist/src/tools/store-write-tool.js +8 -8
  88. package/dist/src/tools/store-write-tool.js.map +1 -1
  89. package/dist/src/versions/version-bundle-types.d.ts +18 -18
  90. package/dist/src/versions/version-bundle-types.js +2 -2
  91. package/dist/src/versions/version-bundle-types.js.map +1 -1
  92. package/dist/src/widgets/present-tool.js +2 -2
  93. package/dist/src/widgets/present-tool.js.map +1 -1
  94. package/dist/src/widgets/widget-types.d.ts +1 -1
  95. package/dist/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +1 -1
@@ -10,10 +10,11 @@ import { z } from 'zod';
10
10
  */
11
11
  export declare const SnapshotConnectionSchema: z.ZodObject<{
12
12
  spec: z.ZodObject<{
13
- baseUrl: z.ZodString;
13
+ protocol: z.ZodDefault<z.ZodEnum<["rest", "mcp"]>>;
14
+ baseUrl: z.ZodOptional<z.ZodString>;
14
15
  specUrl: z.ZodOptional<z.ZodString>;
15
16
  testPath: z.ZodOptional<z.ZodString>;
16
- format: z.ZodEnum<["openapi", "graphql", "grpc", "rest", "aws-api"]>;
17
+ format: z.ZodOptional<z.ZodEnum<["openapi", "graphql", "grpc", "rest", "aws-api"]>>;
17
18
  auth: z.ZodOptional<z.ZodObject<{
18
19
  type: z.ZodString;
19
20
  token: z.ZodOptional<z.ZodString>;
@@ -56,16 +57,25 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
56
57
  include_paths?: string[] | undefined;
57
58
  exclude_paths?: string[] | undefined;
58
59
  }>>;
60
+ transport: z.ZodOptional<z.ZodEnum<["stdio", "sse", "http"]>>;
61
+ command: z.ZodOptional<z.ZodString>;
62
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
64
+ url: z.ZodOptional<z.ZodString>;
65
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
66
+ trust: z.ZodOptional<z.ZodBoolean>;
59
67
  }, "strip", z.ZodTypeAny, {
60
- baseUrl: string;
61
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
68
+ protocol: "rest" | "mcp";
62
69
  filter?: {
63
70
  tags?: string[] | undefined;
64
71
  include_paths?: string[] | undefined;
65
72
  exclude_paths?: string[] | undefined;
66
73
  } | undefined;
74
+ headers?: Record<string, string> | undefined;
75
+ baseUrl?: string | undefined;
67
76
  specUrl?: string | undefined;
68
77
  testPath?: string | undefined;
78
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
69
79
  auth?: {
70
80
  type: string;
71
81
  token?: string | undefined;
@@ -77,16 +87,24 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
77
87
  frequency: "on_push" | "manual" | "daily" | "weekly" | "hourly";
78
88
  notify_drift: boolean;
79
89
  } | undefined;
90
+ transport?: "stdio" | "sse" | "http" | undefined;
91
+ command?: string | undefined;
92
+ args?: string[] | undefined;
93
+ env?: Record<string, string> | undefined;
94
+ url?: string | undefined;
95
+ trust?: boolean | undefined;
80
96
  }, {
81
- baseUrl: string;
82
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
83
97
  filter?: {
84
98
  tags?: string[] | undefined;
85
99
  include_paths?: string[] | undefined;
86
100
  exclude_paths?: string[] | undefined;
87
101
  } | undefined;
102
+ headers?: Record<string, string> | undefined;
103
+ protocol?: "rest" | "mcp" | undefined;
104
+ baseUrl?: string | undefined;
88
105
  specUrl?: string | undefined;
89
106
  testPath?: string | undefined;
107
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
90
108
  auth?: {
91
109
  type: string;
92
110
  token?: string | undefined;
@@ -98,6 +116,12 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
98
116
  frequency?: "on_push" | "manual" | "daily" | "weekly" | "hourly" | undefined;
99
117
  notify_drift?: boolean | undefined;
100
118
  } | undefined;
119
+ transport?: "stdio" | "sse" | "http" | undefined;
120
+ command?: string | undefined;
121
+ args?: string[] | undefined;
122
+ env?: Record<string, string> | undefined;
123
+ url?: string | undefined;
124
+ trust?: boolean | undefined;
101
125
  }>;
102
126
  surface: z.ZodString;
103
127
  access: z.ZodObject<{
@@ -311,15 +335,17 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
311
335
  rules: z.ZodOptional<z.ZodString>;
312
336
  }, "strip", z.ZodTypeAny, {
313
337
  spec: {
314
- baseUrl: string;
315
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
338
+ protocol: "rest" | "mcp";
316
339
  filter?: {
317
340
  tags?: string[] | undefined;
318
341
  include_paths?: string[] | undefined;
319
342
  exclude_paths?: string[] | undefined;
320
343
  } | undefined;
344
+ headers?: Record<string, string> | undefined;
345
+ baseUrl?: string | undefined;
321
346
  specUrl?: string | undefined;
322
347
  testPath?: string | undefined;
348
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
323
349
  auth?: {
324
350
  type: string;
325
351
  token?: string | undefined;
@@ -331,6 +357,12 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
331
357
  frequency: "on_push" | "manual" | "daily" | "weekly" | "hourly";
332
358
  notify_drift: boolean;
333
359
  } | undefined;
360
+ transport?: "stdio" | "sse" | "http" | undefined;
361
+ command?: string | undefined;
362
+ args?: string[] | undefined;
363
+ env?: Record<string, string> | undefined;
364
+ url?: string | undefined;
365
+ trust?: boolean | undefined;
334
366
  };
335
367
  surface: string;
336
368
  access: {
@@ -380,15 +412,17 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
380
412
  rules?: string | undefined;
381
413
  }, {
382
414
  spec: {
383
- baseUrl: string;
384
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
385
415
  filter?: {
386
416
  tags?: string[] | undefined;
387
417
  include_paths?: string[] | undefined;
388
418
  exclude_paths?: string[] | undefined;
389
419
  } | undefined;
420
+ headers?: Record<string, string> | undefined;
421
+ protocol?: "rest" | "mcp" | undefined;
422
+ baseUrl?: string | undefined;
390
423
  specUrl?: string | undefined;
391
424
  testPath?: string | undefined;
425
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
392
426
  auth?: {
393
427
  type: string;
394
428
  token?: string | undefined;
@@ -400,6 +434,12 @@ export declare const SnapshotConnectionSchema: z.ZodObject<{
400
434
  frequency?: "on_push" | "manual" | "daily" | "weekly" | "hourly" | undefined;
401
435
  notify_drift?: boolean | undefined;
402
436
  } | undefined;
437
+ transport?: "stdio" | "sse" | "http" | undefined;
438
+ command?: string | undefined;
439
+ args?: string[] | undefined;
440
+ env?: Record<string, string> | undefined;
441
+ url?: string | undefined;
442
+ trust?: boolean | undefined;
403
443
  };
404
444
  surface: string;
405
445
  access: {
@@ -525,15 +565,15 @@ export declare const SnapshotToolSchema: z.ZodObject<{
525
565
  description: string;
526
566
  parameters: Record<string, unknown>;
527
567
  timeout: number;
528
- confirm: boolean | "never" | "review";
529
568
  env: string[];
569
+ confirm: boolean | "never" | "review";
530
570
  }, {
531
571
  name: string;
532
572
  description: string;
533
573
  parameters?: Record<string, unknown> | undefined;
534
574
  timeout?: number | undefined;
535
- confirm?: boolean | "never" | "review" | undefined;
536
575
  env?: string[] | undefined;
576
+ confirm?: boolean | "never" | "review" | undefined;
537
577
  }>;
538
578
  export type SnapshotTool = z.infer<typeof SnapshotToolSchema>;
539
579
  /**
@@ -774,38 +814,38 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
774
814
  }, "strip", z.ZodTypeAny, {
775
815
  transport: "stdio" | "sse" | "http";
776
816
  headers?: Record<string, string> | undefined;
777
- env?: Record<string, string> | undefined;
778
- url?: string | undefined;
779
817
  command?: string | undefined;
780
818
  args?: string[] | undefined;
819
+ env?: Record<string, string> | undefined;
820
+ url?: string | undefined;
781
821
  trust?: boolean | undefined;
782
822
  }, {
783
823
  transport: "stdio" | "sse" | "http";
784
824
  headers?: Record<string, string> | undefined;
785
- env?: Record<string, string> | undefined;
786
- url?: string | undefined;
787
825
  command?: string | undefined;
788
826
  args?: string[] | undefined;
827
+ env?: Record<string, string> | undefined;
828
+ url?: string | undefined;
789
829
  trust?: boolean | undefined;
790
830
  }>>;
791
831
  }, "strip", z.ZodTypeAny, {
792
832
  servers: Record<string, {
793
833
  transport: "stdio" | "sse" | "http";
794
834
  headers?: Record<string, string> | undefined;
795
- env?: Record<string, string> | undefined;
796
- url?: string | undefined;
797
835
  command?: string | undefined;
798
836
  args?: string[] | undefined;
837
+ env?: Record<string, string> | undefined;
838
+ url?: string | undefined;
799
839
  trust?: boolean | undefined;
800
840
  }>;
801
841
  }, {
802
842
  servers: Record<string, {
803
843
  transport: "stdio" | "sse" | "http";
804
844
  headers?: Record<string, string> | undefined;
805
- env?: Record<string, string> | undefined;
806
- url?: string | undefined;
807
845
  command?: string | undefined;
808
846
  args?: string[] | undefined;
847
+ env?: Record<string, string> | undefined;
848
+ url?: string | undefined;
809
849
  trust?: boolean | undefined;
810
850
  }>;
811
851
  }>>;
@@ -818,6 +858,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
818
858
  advanced?: import("../repo/config-schema.js").ModelConfig | undefined;
819
859
  };
820
860
  description?: string | undefined;
861
+ mcp?: {
862
+ servers: Record<string, {
863
+ transport: "stdio" | "sse" | "http";
864
+ headers?: Record<string, string> | undefined;
865
+ command?: string | undefined;
866
+ args?: string[] | undefined;
867
+ env?: Record<string, string> | undefined;
868
+ url?: string | undefined;
869
+ trust?: boolean | undefined;
870
+ }>;
871
+ } | undefined;
821
872
  sandbox?: {
822
873
  shellExec: boolean;
823
874
  maxTimeout: number;
@@ -839,17 +890,6 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
839
890
  postgresUrl?: string | undefined;
840
891
  } | undefined;
841
892
  dependencies?: Record<string, string> | undefined;
842
- mcp?: {
843
- servers: Record<string, {
844
- transport: "stdio" | "sse" | "http";
845
- headers?: Record<string, string> | undefined;
846
- env?: Record<string, string> | undefined;
847
- url?: string | undefined;
848
- command?: string | undefined;
849
- args?: string[] | undefined;
850
- trust?: boolean | undefined;
851
- }>;
852
- } | undefined;
853
893
  }, {
854
894
  version: string;
855
895
  name: string;
@@ -859,6 +899,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
859
899
  advanced?: import("../repo/config-schema.js").ModelConfig | undefined;
860
900
  };
861
901
  description?: string | undefined;
902
+ mcp?: {
903
+ servers: Record<string, {
904
+ transport: "stdio" | "sse" | "http";
905
+ headers?: Record<string, string> | undefined;
906
+ command?: string | undefined;
907
+ args?: string[] | undefined;
908
+ env?: Record<string, string> | undefined;
909
+ url?: string | undefined;
910
+ trust?: boolean | undefined;
911
+ }>;
912
+ } | undefined;
862
913
  sandbox?: {
863
914
  shellExec?: boolean | undefined;
864
915
  template?: string | undefined;
@@ -880,24 +931,14 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
880
931
  postgresUrl?: string | undefined;
881
932
  } | undefined;
882
933
  dependencies?: Record<string, string> | undefined;
883
- mcp?: {
884
- servers: Record<string, {
885
- transport: "stdio" | "sse" | "http";
886
- headers?: Record<string, string> | undefined;
887
- env?: Record<string, string> | undefined;
888
- url?: string | undefined;
889
- command?: string | undefined;
890
- args?: string[] | undefined;
891
- trust?: boolean | undefined;
892
- }>;
893
- } | undefined;
894
934
  }>;
895
935
  connections: z.ZodRecord<z.ZodString, z.ZodObject<{
896
936
  spec: z.ZodObject<{
897
- baseUrl: z.ZodString;
937
+ protocol: z.ZodDefault<z.ZodEnum<["rest", "mcp"]>>;
938
+ baseUrl: z.ZodOptional<z.ZodString>;
898
939
  specUrl: z.ZodOptional<z.ZodString>;
899
940
  testPath: z.ZodOptional<z.ZodString>;
900
- format: z.ZodEnum<["openapi", "graphql", "grpc", "rest", "aws-api"]>;
941
+ format: z.ZodOptional<z.ZodEnum<["openapi", "graphql", "grpc", "rest", "aws-api"]>>;
901
942
  auth: z.ZodOptional<z.ZodObject<{
902
943
  type: z.ZodString;
903
944
  token: z.ZodOptional<z.ZodString>;
@@ -940,16 +981,25 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
940
981
  include_paths?: string[] | undefined;
941
982
  exclude_paths?: string[] | undefined;
942
983
  }>>;
984
+ transport: z.ZodOptional<z.ZodEnum<["stdio", "sse", "http"]>>;
985
+ command: z.ZodOptional<z.ZodString>;
986
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
987
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
988
+ url: z.ZodOptional<z.ZodString>;
989
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
990
+ trust: z.ZodOptional<z.ZodBoolean>;
943
991
  }, "strip", z.ZodTypeAny, {
944
- baseUrl: string;
945
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
992
+ protocol: "rest" | "mcp";
946
993
  filter?: {
947
994
  tags?: string[] | undefined;
948
995
  include_paths?: string[] | undefined;
949
996
  exclude_paths?: string[] | undefined;
950
997
  } | undefined;
998
+ headers?: Record<string, string> | undefined;
999
+ baseUrl?: string | undefined;
951
1000
  specUrl?: string | undefined;
952
1001
  testPath?: string | undefined;
1002
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
953
1003
  auth?: {
954
1004
  type: string;
955
1005
  token?: string | undefined;
@@ -961,16 +1011,24 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
961
1011
  frequency: "on_push" | "manual" | "daily" | "weekly" | "hourly";
962
1012
  notify_drift: boolean;
963
1013
  } | undefined;
1014
+ transport?: "stdio" | "sse" | "http" | undefined;
1015
+ command?: string | undefined;
1016
+ args?: string[] | undefined;
1017
+ env?: Record<string, string> | undefined;
1018
+ url?: string | undefined;
1019
+ trust?: boolean | undefined;
964
1020
  }, {
965
- baseUrl: string;
966
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
967
1021
  filter?: {
968
1022
  tags?: string[] | undefined;
969
1023
  include_paths?: string[] | undefined;
970
1024
  exclude_paths?: string[] | undefined;
971
1025
  } | undefined;
1026
+ headers?: Record<string, string> | undefined;
1027
+ protocol?: "rest" | "mcp" | undefined;
1028
+ baseUrl?: string | undefined;
972
1029
  specUrl?: string | undefined;
973
1030
  testPath?: string | undefined;
1031
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
974
1032
  auth?: {
975
1033
  type: string;
976
1034
  token?: string | undefined;
@@ -982,6 +1040,12 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
982
1040
  frequency?: "on_push" | "manual" | "daily" | "weekly" | "hourly" | undefined;
983
1041
  notify_drift?: boolean | undefined;
984
1042
  } | undefined;
1043
+ transport?: "stdio" | "sse" | "http" | undefined;
1044
+ command?: string | undefined;
1045
+ args?: string[] | undefined;
1046
+ env?: Record<string, string> | undefined;
1047
+ url?: string | undefined;
1048
+ trust?: boolean | undefined;
985
1049
  }>;
986
1050
  surface: z.ZodString;
987
1051
  access: z.ZodObject<{
@@ -1195,15 +1259,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1195
1259
  rules: z.ZodOptional<z.ZodString>;
1196
1260
  }, "strip", z.ZodTypeAny, {
1197
1261
  spec: {
1198
- baseUrl: string;
1199
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
1262
+ protocol: "rest" | "mcp";
1200
1263
  filter?: {
1201
1264
  tags?: string[] | undefined;
1202
1265
  include_paths?: string[] | undefined;
1203
1266
  exclude_paths?: string[] | undefined;
1204
1267
  } | undefined;
1268
+ headers?: Record<string, string> | undefined;
1269
+ baseUrl?: string | undefined;
1205
1270
  specUrl?: string | undefined;
1206
1271
  testPath?: string | undefined;
1272
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
1207
1273
  auth?: {
1208
1274
  type: string;
1209
1275
  token?: string | undefined;
@@ -1215,6 +1281,12 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1215
1281
  frequency: "on_push" | "manual" | "daily" | "weekly" | "hourly";
1216
1282
  notify_drift: boolean;
1217
1283
  } | undefined;
1284
+ transport?: "stdio" | "sse" | "http" | undefined;
1285
+ command?: string | undefined;
1286
+ args?: string[] | undefined;
1287
+ env?: Record<string, string> | undefined;
1288
+ url?: string | undefined;
1289
+ trust?: boolean | undefined;
1218
1290
  };
1219
1291
  surface: string;
1220
1292
  access: {
@@ -1264,15 +1336,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1264
1336
  rules?: string | undefined;
1265
1337
  }, {
1266
1338
  spec: {
1267
- baseUrl: string;
1268
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
1269
1339
  filter?: {
1270
1340
  tags?: string[] | undefined;
1271
1341
  include_paths?: string[] | undefined;
1272
1342
  exclude_paths?: string[] | undefined;
1273
1343
  } | undefined;
1344
+ headers?: Record<string, string> | undefined;
1345
+ protocol?: "rest" | "mcp" | undefined;
1346
+ baseUrl?: string | undefined;
1274
1347
  specUrl?: string | undefined;
1275
1348
  testPath?: string | undefined;
1349
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
1276
1350
  auth?: {
1277
1351
  type: string;
1278
1352
  token?: string | undefined;
@@ -1284,6 +1358,12 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1284
1358
  frequency?: "on_push" | "manual" | "daily" | "weekly" | "hourly" | undefined;
1285
1359
  notify_drift?: boolean | undefined;
1286
1360
  } | undefined;
1361
+ transport?: "stdio" | "sse" | "http" | undefined;
1362
+ command?: string | undefined;
1363
+ args?: string[] | undefined;
1364
+ env?: Record<string, string> | undefined;
1365
+ url?: string | undefined;
1366
+ trust?: boolean | undefined;
1287
1367
  };
1288
1368
  surface: string;
1289
1369
  access: {
@@ -1451,15 +1531,15 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1451
1531
  description: string;
1452
1532
  parameters: Record<string, unknown>;
1453
1533
  timeout: number;
1454
- confirm: boolean | "never" | "review";
1455
1534
  env: string[];
1535
+ confirm: boolean | "never" | "review";
1456
1536
  }, {
1457
1537
  name: string;
1458
1538
  description: string;
1459
1539
  parameters?: Record<string, unknown> | undefined;
1460
1540
  timeout?: number | undefined;
1461
- confirm?: boolean | "never" | "review" | undefined;
1462
1541
  env?: string[] | undefined;
1542
+ confirm?: boolean | "never" | "review" | undefined;
1463
1543
  }>, "many">>;
1464
1544
  /** Store definitions */
1465
1545
  stores: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
@@ -1552,32 +1632,34 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1552
1632
  trust: z.ZodOptional<z.ZodBoolean>;
1553
1633
  }, "strip", z.ZodTypeAny, {
1554
1634
  transport: "stdio" | "sse" | "http";
1555
- env?: Record<string, string> | undefined;
1556
- url?: string | undefined;
1557
1635
  command?: string | undefined;
1558
1636
  args?: string[] | undefined;
1637
+ env?: Record<string, string> | undefined;
1638
+ url?: string | undefined;
1559
1639
  trust?: boolean | undefined;
1560
1640
  }, {
1561
1641
  transport: "stdio" | "sse" | "http";
1562
- env?: Record<string, string> | undefined;
1563
- url?: string | undefined;
1564
1642
  command?: string | undefined;
1565
1643
  args?: string[] | undefined;
1644
+ env?: Record<string, string> | undefined;
1645
+ url?: string | undefined;
1566
1646
  trust?: boolean | undefined;
1567
1647
  }>>>;
1568
1648
  }, "strip", z.ZodTypeAny, {
1569
1649
  source: "cli" | "github" | "admin-ui";
1570
1650
  connections: Record<string, {
1571
1651
  spec: {
1572
- baseUrl: string;
1573
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
1652
+ protocol: "rest" | "mcp";
1574
1653
  filter?: {
1575
1654
  tags?: string[] | undefined;
1576
1655
  include_paths?: string[] | undefined;
1577
1656
  exclude_paths?: string[] | undefined;
1578
1657
  } | undefined;
1658
+ headers?: Record<string, string> | undefined;
1659
+ baseUrl?: string | undefined;
1579
1660
  specUrl?: string | undefined;
1580
1661
  testPath?: string | undefined;
1662
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
1581
1663
  auth?: {
1582
1664
  type: string;
1583
1665
  token?: string | undefined;
@@ -1589,6 +1671,12 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1589
1671
  frequency: "on_push" | "manual" | "daily" | "weekly" | "hourly";
1590
1672
  notify_drift: boolean;
1591
1673
  } | undefined;
1674
+ transport?: "stdio" | "sse" | "http" | undefined;
1675
+ command?: string | undefined;
1676
+ args?: string[] | undefined;
1677
+ env?: Record<string, string> | undefined;
1678
+ url?: string | undefined;
1679
+ trust?: boolean | undefined;
1592
1680
  };
1593
1681
  surface: string;
1594
1682
  access: {
@@ -1665,6 +1753,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1665
1753
  advanced?: import("../repo/config-schema.js").ModelConfig | undefined;
1666
1754
  };
1667
1755
  description?: string | undefined;
1756
+ mcp?: {
1757
+ servers: Record<string, {
1758
+ transport: "stdio" | "sse" | "http";
1759
+ headers?: Record<string, string> | undefined;
1760
+ command?: string | undefined;
1761
+ args?: string[] | undefined;
1762
+ env?: Record<string, string> | undefined;
1763
+ url?: string | undefined;
1764
+ trust?: boolean | undefined;
1765
+ }>;
1766
+ } | undefined;
1668
1767
  sandbox?: {
1669
1768
  shellExec: boolean;
1670
1769
  maxTimeout: number;
@@ -1686,17 +1785,6 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1686
1785
  postgresUrl?: string | undefined;
1687
1786
  } | undefined;
1688
1787
  dependencies?: Record<string, string> | undefined;
1689
- mcp?: {
1690
- servers: Record<string, {
1691
- transport: "stdio" | "sse" | "http";
1692
- headers?: Record<string, string> | undefined;
1693
- env?: Record<string, string> | undefined;
1694
- url?: string | undefined;
1695
- command?: string | undefined;
1696
- args?: string[] | undefined;
1697
- trust?: boolean | undefined;
1698
- }>;
1699
- } | undefined;
1700
1788
  };
1701
1789
  createdAt: string;
1702
1790
  createdBy: string;
@@ -1707,15 +1795,15 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1707
1795
  description: string;
1708
1796
  parameters: Record<string, unknown>;
1709
1797
  timeout: number;
1710
- confirm: boolean | "never" | "review";
1711
1798
  env: string[];
1799
+ confirm: boolean | "never" | "review";
1712
1800
  }[] | undefined;
1713
1801
  mcpServers?: Record<string, {
1714
1802
  transport: "stdio" | "sse" | "http";
1715
- env?: Record<string, string> | undefined;
1716
- url?: string | undefined;
1717
1803
  command?: string | undefined;
1718
1804
  args?: string[] | undefined;
1805
+ env?: Record<string, string> | undefined;
1806
+ url?: string | undefined;
1719
1807
  trust?: boolean | undefined;
1720
1808
  }> | undefined;
1721
1809
  agents?: {
@@ -1759,15 +1847,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1759
1847
  source: "cli" | "github" | "admin-ui";
1760
1848
  connections: Record<string, {
1761
1849
  spec: {
1762
- baseUrl: string;
1763
- format: "openapi" | "graphql" | "grpc" | "rest" | "aws-api";
1764
1850
  filter?: {
1765
1851
  tags?: string[] | undefined;
1766
1852
  include_paths?: string[] | undefined;
1767
1853
  exclude_paths?: string[] | undefined;
1768
1854
  } | undefined;
1855
+ headers?: Record<string, string> | undefined;
1856
+ protocol?: "rest" | "mcp" | undefined;
1857
+ baseUrl?: string | undefined;
1769
1858
  specUrl?: string | undefined;
1770
1859
  testPath?: string | undefined;
1860
+ format?: "rest" | "openapi" | "graphql" | "grpc" | "aws-api" | undefined;
1771
1861
  auth?: {
1772
1862
  type: string;
1773
1863
  token?: string | undefined;
@@ -1779,6 +1869,12 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1779
1869
  frequency?: "on_push" | "manual" | "daily" | "weekly" | "hourly" | undefined;
1780
1870
  notify_drift?: boolean | undefined;
1781
1871
  } | undefined;
1872
+ transport?: "stdio" | "sse" | "http" | undefined;
1873
+ command?: string | undefined;
1874
+ args?: string[] | undefined;
1875
+ env?: Record<string, string> | undefined;
1876
+ url?: string | undefined;
1877
+ trust?: boolean | undefined;
1782
1878
  };
1783
1879
  surface: string;
1784
1880
  access: {
@@ -1855,6 +1951,17 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1855
1951
  advanced?: import("../repo/config-schema.js").ModelConfig | undefined;
1856
1952
  };
1857
1953
  description?: string | undefined;
1954
+ mcp?: {
1955
+ servers: Record<string, {
1956
+ transport: "stdio" | "sse" | "http";
1957
+ headers?: Record<string, string> | undefined;
1958
+ command?: string | undefined;
1959
+ args?: string[] | undefined;
1960
+ env?: Record<string, string> | undefined;
1961
+ url?: string | undefined;
1962
+ trust?: boolean | undefined;
1963
+ }>;
1964
+ } | undefined;
1858
1965
  sandbox?: {
1859
1966
  shellExec?: boolean | undefined;
1860
1967
  template?: string | undefined;
@@ -1876,17 +1983,6 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1876
1983
  postgresUrl?: string | undefined;
1877
1984
  } | undefined;
1878
1985
  dependencies?: Record<string, string> | undefined;
1879
- mcp?: {
1880
- servers: Record<string, {
1881
- transport: "stdio" | "sse" | "http";
1882
- headers?: Record<string, string> | undefined;
1883
- env?: Record<string, string> | undefined;
1884
- url?: string | undefined;
1885
- command?: string | undefined;
1886
- args?: string[] | undefined;
1887
- trust?: boolean | undefined;
1888
- }>;
1889
- } | undefined;
1890
1986
  };
1891
1987
  createdAt: string;
1892
1988
  createdBy: string;
@@ -1897,15 +1993,15 @@ export declare const DeploySnapshotSchema: z.ZodObject<{
1897
1993
  description: string;
1898
1994
  parameters?: Record<string, unknown> | undefined;
1899
1995
  timeout?: number | undefined;
1900
- confirm?: boolean | "never" | "review" | undefined;
1901
1996
  env?: string[] | undefined;
1997
+ confirm?: boolean | "never" | "review" | undefined;
1902
1998
  }[] | undefined;
1903
1999
  mcpServers?: Record<string, {
1904
2000
  transport: "stdio" | "sse" | "http";
1905
- env?: Record<string, string> | undefined;
1906
- url?: string | undefined;
1907
2001
  command?: string | undefined;
1908
2002
  args?: string[] | undefined;
2003
+ env?: Record<string, string> | undefined;
2004
+ url?: string | undefined;
1909
2005
  trust?: boolean | undefined;
1910
2006
  }> | undefined;
1911
2007
  agents?: {
@@ -35,8 +35,8 @@ export interface StoreDocumentMeta {
35
35
  export interface StoreDocument {
36
36
  /** Document key (resolved from key template) */
37
37
  key: string;
38
- /** Tenant that owns this document */
39
- tenantId: string;
38
+ /** Application that owns this document */
39
+ appId: string;
40
40
  /** Store name this document belongs to */
41
41
  store: string;
42
42
  /** Version number (increments on each update) */
@@ -103,31 +103,31 @@ export interface StoreBackend {
103
103
  * Get a single document by key.
104
104
  * Returns null if the document doesn't exist.
105
105
  */
106
- get(tenantId: string, store: string, key: string): Promise<StoreDocument | null>;
106
+ get(appId: string, store: string, key: string): Promise<StoreDocument | null>;
107
107
  /**
108
108
  * Upsert a document. If it exists, increments version and optionally
109
109
  * saves the previous version to history.
110
110
  */
111
- put(tenantId: string, store: string, key: string, payload: Record<string, unknown>, meta: Partial<StoreDocumentMeta>): Promise<StorePutResult>;
111
+ put(appId: string, store: string, key: string, payload: Record<string, unknown>, meta: Partial<StoreDocumentMeta>): Promise<StorePutResult>;
112
112
  /**
113
113
  * List documents from a store with optional filtering, sorting, and pagination.
114
114
  */
115
- list(tenantId: string, store: string, options?: StoreListOptions): Promise<StoreListResult>;
115
+ list(appId: string, store: string, options?: StoreListOptions): Promise<StoreListResult>;
116
116
  /**
117
117
  * Delete a document by key.
118
118
  * Returns true if the document existed and was deleted.
119
119
  */
120
- delete(tenantId: string, store: string, key: string): Promise<boolean>;
120
+ delete(appId: string, store: string, key: string): Promise<boolean>;
121
121
  /**
122
122
  * Get version history for a document (most recent first).
123
123
  * Returns empty array if no history exists.
124
124
  */
125
- history(tenantId: string, store: string, key: string): Promise<StoreDocument[]>;
125
+ history(appId: string, store: string, key: string): Promise<StoreDocument[]>;
126
126
  /**
127
127
  * Delete all documents past their TTL.
128
128
  * Returns the number of documents purged.
129
129
  */
130
- purgeExpired(tenantId: string, store?: string): Promise<number>;
130
+ purgeExpired(appId: string, store?: string): Promise<number>;
131
131
  /**
132
132
  * Shut down the backend (close connections, release resources).
133
133
  */