@agent-vm/agent-portal-sdk 0.0.119 → 0.0.120

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 (100) hide show
  1. package/package.json +1 -1
  2. package/dist/adapter-boundary/index.d.ts +0 -2
  3. package/dist/adapter-boundary/index.js +0 -2
  4. package/dist/adapter-boundary-BIagsTUH.js +0 -29
  5. package/dist/adapter-boundary-BIagsTUH.js.map +0 -1
  6. package/dist/approval-surface/index.d.ts +0 -2
  7. package/dist/approval-surface/index.js +0 -2
  8. package/dist/approval-surface-en5VAY5h.js +0 -20
  9. package/dist/approval-surface-en5VAY5h.js.map +0 -1
  10. package/dist/artifact-reference-schema-CiEjxYPd.js +0 -13
  11. package/dist/artifact-reference-schema-CiEjxYPd.js.map +0 -1
  12. package/dist/artifact-surface/index.d.ts +0 -2
  13. package/dist/artifact-surface/index.js +0 -3
  14. package/dist/artifact-surface-BstQxq6b.js +0 -65
  15. package/dist/artifact-surface-BstQxq6b.js.map +0 -1
  16. package/dist/capability-description-surface/index.d.ts +0 -2
  17. package/dist/capability-description-surface/index.js +0 -3
  18. package/dist/capability-description-surface-BdzknTKT.js +0 -2
  19. package/dist/capability-descriptor-schema-zRnfGjBc.js +0 -86
  20. package/dist/capability-descriptor-schema-zRnfGjBc.js.map +0 -1
  21. package/dist/cli/tool-portal.d.ts +0 -1
  22. package/dist/cli/tool-portal.js +0 -207
  23. package/dist/cli/tool-portal.js.map +0 -1
  24. package/dist/contracts/index.d.ts +0 -2
  25. package/dist/contracts/index.js +0 -2
  26. package/dist/contracts-RgGW0RX2.js +0 -611
  27. package/dist/contracts-RgGW0RX2.js.map +0 -1
  28. package/dist/gateway-runtime-client/index.d.ts +0 -385
  29. package/dist/gateway-runtime-client/index.d.ts.map +0 -1
  30. package/dist/gateway-runtime-client/index.js +0 -1439
  31. package/dist/gateway-runtime-client/index.js.map +0 -1
  32. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.d.ts +0 -1
  33. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js +0 -125
  34. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js.map +0 -1
  35. package/dist/gateway-runtime-local-exec/index.d.ts +0 -54
  36. package/dist/gateway-runtime-local-exec/index.d.ts.map +0 -1
  37. package/dist/gateway-runtime-local-exec/index.js +0 -2
  38. package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js +0 -427
  39. package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js.map +0 -1
  40. package/dist/index-B5hgm1KH.d.ts +0 -84
  41. package/dist/index-B5hgm1KH.d.ts.map +0 -1
  42. package/dist/index-BWE2_BcN.d.ts +0 -64
  43. package/dist/index-BWE2_BcN.d.ts.map +0 -1
  44. package/dist/index-Bdnvj5j3.d.ts +0 -142
  45. package/dist/index-Bdnvj5j3.d.ts.map +0 -1
  46. package/dist/index-BmH68K78.d.ts +0 -41
  47. package/dist/index-BmH68K78.d.ts.map +0 -1
  48. package/dist/index-C-NPMMvc.d.ts +0 -2396
  49. package/dist/index-C-NPMMvc.d.ts.map +0 -1
  50. package/dist/index-DKBSYuxW.d.ts +0 -239
  51. package/dist/index-DKBSYuxW.d.ts.map +0 -1
  52. package/dist/index-Dj4galCJ.d.ts +0 -17
  53. package/dist/index-Dj4galCJ.d.ts.map +0 -1
  54. package/dist/index-Dxoz-ORl.d.ts +0 -229
  55. package/dist/index-Dxoz-ORl.d.ts.map +0 -1
  56. package/dist/index-v8suC0qe.d.ts +0 -69
  57. package/dist/index-v8suC0qe.d.ts.map +0 -1
  58. package/dist/index-yeFGRMdv.d.ts +0 -152
  59. package/dist/index-yeFGRMdv.d.ts.map +0 -1
  60. package/dist/index.d.ts +0 -12
  61. package/dist/index.js +0 -16
  62. package/dist/json-value-schema-M87sjwWL.d.ts +0 -18
  63. package/dist/json-value-schema-M87sjwWL.d.ts.map +0 -1
  64. package/dist/json-value-schema-hdPkabRZ.js +0 -29
  65. package/dist/json-value-schema-hdPkabRZ.js.map +0 -1
  66. package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js +0 -156
  67. package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js.map +0 -1
  68. package/dist/portable-contracts/index.d.ts +0 -2
  69. package/dist/portable-contracts/index.js +0 -3
  70. package/dist/portable-contracts-Bca33zVa.js +0 -326
  71. package/dist/portable-contracts-Bca33zVa.js.map +0 -1
  72. package/dist/portable-refinement-authoring-ZSmR-amG.js +0 -196
  73. package/dist/portable-refinement-authoring-ZSmR-amG.js.map +0 -1
  74. package/dist/portal-call-request-schema-Cp6CMGs9.js +0 -41
  75. package/dist/portal-call-request-schema-Cp6CMGs9.js.map +0 -1
  76. package/dist/portal-call-result-schema-ByxHRCEN.js +0 -158
  77. package/dist/portal-call-result-schema-ByxHRCEN.js.map +0 -1
  78. package/dist/portal-call-result-schema-wSCaz3mC.d.ts +0 -1485
  79. package/dist/portal-call-result-schema-wSCaz3mC.d.ts.map +0 -1
  80. package/dist/portal-call-surface/index.d.ts +0 -3
  81. package/dist/portal-call-surface/index.js +0 -5
  82. package/dist/portal-call-surface-DjZVquFt.js +0 -83
  83. package/dist/portal-call-surface-DjZVquFt.js.map +0 -1
  84. package/dist/portal-error-schema-CQHgoFq4.js +0 -71
  85. package/dist/portal-error-schema-CQHgoFq4.js.map +0 -1
  86. package/dist/portal-event-surface/index.d.ts +0 -2
  87. package/dist/portal-event-surface/index.js +0 -3
  88. package/dist/portal-event-surface-CdScrgoN.js +0 -51
  89. package/dist/portal-event-surface-CdScrgoN.js.map +0 -1
  90. package/dist/testing/index.d.ts +0 -19
  91. package/dist/testing/index.d.ts.map +0 -1
  92. package/dist/testing/index.js +0 -36
  93. package/dist/testing/index.js.map +0 -1
  94. package/dist/tool-portal-mcp-client/index.d.ts +0 -2
  95. package/dist/tool-portal-mcp-client/index.js +0 -2
  96. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +0 -17
  97. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts.map +0 -1
  98. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.js +0 -2
  99. package/dist/tool-portal-mcp-client-DwJF-48Y.js +0 -90
  100. package/dist/tool-portal-mcp-client-DwJF-48Y.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-call-result-schema-wSCaz3mC.d.ts","names":[],"sources":["../src/portal-call-surface/models/portal-call-request-schema.ts","../src/portal-call-surface/models/portal-call-result-schema.ts"],"mappings":";;;;cAOa,mBAAA;AAAA,cAEA,2BAAA,EAA2B,CAAA,CAAA,SAAA;uBAO9B,UAAA;;;;;cAEG,uBAAA,EAAuB,CAAA,CAAA,SAAA;;yBAWlC,UAAA;;;;;;;KAEU,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;;;cCjBlC,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAiGxB,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAO7B,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1C,0BAAA,EAA0B,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuD1B,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM3B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAM7B,0BAAA,EAA0B,CAAA,CAAA,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AA;AAAA,cAEjC,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACzB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,cAEnC,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAC3B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA;AAAA,cAErC,6BAAA,EAA6B,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA"}
@@ -1,3 +0,0 @@
1
- import { C as PortalCallRequestSchema, S as PortalCallRequest, _ as PortalSearchResult, a as PortalCallResultSchema, b as PortalBatchMaxItems, c as PortalDescribeResult, d as PortalListItemResultSchema, f as PortalListItemValueSchema, g as PortalSearchItemValueSchema, h as PortalSearchItemResultSchema, i as PortalCallResult, l as PortalDescribeResultSchema, m as PortalListResultSchema, n as PortalApprovalRequiredCallItemResultSchema, o as PortalDescribeItemResultSchema, p as PortalListResult, r as PortalCallItemResultSchema, s as PortalDescribeItemValueSchema, t as PortalApprovalChallengeSchema, u as PortalGenericItemResultSchema, v as PortalSearchResultSchema, x as PortalCallItemRequestSchema, y as TruncationMetadataSchema } from "../portal-call-result-schema-wSCaz3mC.js";
2
- import { a as PortalSearchRequestSchema, c as PortalListRequestSchema, d as PortalErrorCodeSchema, f as PortalErrorSchema, h as PortalDescribeRequestSchema, i as PortalSearchRequest, l as PortalError, m as PortalDescribeRequest, n as createPortalCallSurfaceJsonSchemas, o as PortalListItemRequestSchema, p as PortalDescribeItemRequestSchema, r as PortalSearchItemRequestSchema, s as PortalListRequest, t as PortalCallSurfaceJsonSchemas, u as PortalErrorCode } from "../index-yeFGRMdv.js";
3
- export { PortalApprovalChallengeSchema, PortalApprovalRequiredCallItemResultSchema, PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequest, PortalCallRequestSchema, PortalCallResult, PortalCallResultSchema, PortalCallSurfaceJsonSchemas, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequest, PortalDescribeRequestSchema, PortalDescribeResult, PortalDescribeResultSchema, PortalError, PortalErrorCode, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequest, PortalListRequestSchema, PortalListResult, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequest, PortalSearchRequestSchema, PortalSearchResult, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
@@ -1,5 +0,0 @@
1
- import { n as PortalErrorSchema, t as PortalErrorCodeSchema } from "../portal-error-schema-CQHgoFq4.js";
2
- import { a as PortalDescribeItemResultSchema, c as PortalGenericItemResultSchema, d as PortalListResultSchema, f as PortalSearchItemResultSchema, h as TruncationMetadataSchema, i as PortalCallResultSchema, l as PortalListItemResultSchema, m as PortalSearchResultSchema, n as PortalApprovalRequiredCallItemResultSchema, o as PortalDescribeItemValueSchema, p as PortalSearchItemValueSchema, r as PortalCallItemResultSchema, s as PortalDescribeResultSchema, t as PortalApprovalChallengeSchema, u as PortalListItemValueSchema } from "../portal-call-result-schema-ByxHRCEN.js";
3
- import { n as PortalCallItemRequestSchema, r as PortalCallRequestSchema, t as PortalBatchMaxItems } from "../portal-call-request-schema-Cp6CMGs9.js";
4
- import { a as PortalListRequestSchema, i as PortalListItemRequestSchema, n as PortalSearchItemRequestSchema, o as PortalDescribeItemRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema, t as createPortalCallSurfaceJsonSchemas } from "../portal-call-surface-DjZVquFt.js";
5
- export { PortalApprovalChallengeSchema, PortalApprovalRequiredCallItemResultSchema, PortalBatchMaxItems, PortalCallItemRequestSchema, PortalCallItemResultSchema, PortalCallRequestSchema, PortalCallResultSchema, PortalDescribeItemRequestSchema, PortalDescribeItemResultSchema, PortalDescribeItemValueSchema, PortalDescribeRequestSchema, PortalDescribeResultSchema, PortalErrorCodeSchema, PortalErrorSchema, PortalGenericItemResultSchema, PortalListItemRequestSchema, PortalListItemResultSchema, PortalListItemValueSchema, PortalListRequestSchema, PortalListResultSchema, PortalSearchItemRequestSchema, PortalSearchItemResultSchema, PortalSearchItemValueSchema, PortalSearchRequestSchema, PortalSearchResultSchema, TruncationMetadataSchema, createPortalCallSurfaceJsonSchemas };
@@ -1,83 +0,0 @@
1
- import { n as withPortableSuperRefinement } from "./portable-refinement-authoring-ZSmR-amG.js";
2
- import { o as RequestIdSchema } from "./portal-error-schema-CQHgoFq4.js";
3
- import { d as CapabilityReferenceSchema } from "./capability-descriptor-schema-zRnfGjBc.js";
4
- import "./portal-call-result-schema-ByxHRCEN.js";
5
- import { i as addDuplicateItemIdIssues, r as PortalCallRequestSchema } from "./portal-call-request-schema-Cp6CMGs9.js";
6
- import { z } from "zod";
7
- //#region src/portal-call-surface/models/portal-describe-request-schema.ts
8
- const PortalDescribeItemRequestSchema = z.object({
9
- id: RequestIdSchema,
10
- includeJsonSchema: z.boolean().default(true),
11
- includeRelated: z.boolean().default(true),
12
- includeTypescriptHelper: z.boolean().default(false),
13
- includeZod: z.boolean().default(false),
14
- refs: z.array(z.string().min(1)).optional(),
15
- tools: z.array(CapabilityReferenceSchema).optional()
16
- }).strict();
17
- const PortalDescribeRequestSchema = withPortableSuperRefinement({
18
- refinement: (request, context) => {
19
- addDuplicateItemIdIssues(request.requests, context);
20
- },
21
- refinementIdentity: "portal.batch.unique-item-ids",
22
- schema: z.object({
23
- requestId: RequestIdSchema.optional(),
24
- requests: z.array(PortalDescribeItemRequestSchema).min(1).max(50)
25
- }).strict()
26
- });
27
- //#endregion
28
- //#region src/portal-call-surface/models/portal-list-request-schema.ts
29
- const PortalListItemRequestSchema = z.object({
30
- cursor: z.string().regex(/^\d+$/u).optional(),
31
- id: RequestIdSchema,
32
- limit: z.number().int().positive().max(100).default(20),
33
- namespaces: z.array(z.string().min(1)).optional(),
34
- refs: z.array(z.string().min(1)).optional(),
35
- tools: z.array(CapabilityReferenceSchema).optional()
36
- }).strict();
37
- const PortalListRequestSchema = withPortableSuperRefinement({
38
- refinement: (request, context) => {
39
- addDuplicateItemIdIssues(request.requests, context);
40
- },
41
- refinementIdentity: "portal.batch.unique-item-ids",
42
- schema: z.object({
43
- requestId: RequestIdSchema.optional(),
44
- requests: z.array(PortalListItemRequestSchema).min(1).max(50)
45
- }).strict()
46
- });
47
- //#endregion
48
- //#region src/portal-call-surface/models/portal-search-request-schema.ts
49
- const PortalSearchItemRequestSchema = z.object({
50
- id: RequestIdSchema,
51
- limit: z.number().int().positive().max(50).default(10),
52
- namespaces: z.array(z.string().min(1)).optional(),
53
- query: z.string().optional(),
54
- schemaDetail: z.enum([
55
- "none",
56
- "summary",
57
- "full"
58
- ]).default("summary")
59
- }).strict();
60
- const PortalSearchRequestSchema = withPortableSuperRefinement({
61
- refinement: (request, context) => {
62
- addDuplicateItemIdIssues(request.requests, context);
63
- },
64
- refinementIdentity: "portal.batch.unique-item-ids",
65
- schema: z.object({
66
- requestId: RequestIdSchema.optional(),
67
- requests: z.array(PortalSearchItemRequestSchema).min(1).max(50)
68
- }).strict()
69
- });
70
- //#endregion
71
- //#region src/portal-call-surface/portal-call-json-schema-exporter.ts
72
- function createPortalCallSurfaceJsonSchemas() {
73
- return {
74
- call: z.toJSONSchema(PortalCallRequestSchema, { io: "input" }),
75
- describe: z.toJSONSchema(PortalDescribeRequestSchema, { io: "input" }),
76
- list: z.toJSONSchema(PortalListRequestSchema, { io: "input" }),
77
- search: z.toJSONSchema(PortalSearchRequestSchema, { io: "input" })
78
- };
79
- }
80
- //#endregion
81
- export { PortalListRequestSchema as a, PortalListItemRequestSchema as i, PortalSearchItemRequestSchema as n, PortalDescribeItemRequestSchema as o, PortalSearchRequestSchema as r, PortalDescribeRequestSchema as s, createPortalCallSurfaceJsonSchemas as t };
82
-
83
- //# sourceMappingURL=portal-call-surface-DjZVquFt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-call-surface-DjZVquFt.js","names":[],"sources":["../src/portal-call-surface/models/portal-describe-request-schema.ts","../src/portal-call-surface/models/portal-list-request-schema.ts","../src/portal-call-surface/models/portal-search-request-schema.ts","../src/portal-call-surface/portal-call-json-schema-exporter.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { CapabilityReferenceSchema } from '../../contract-primitives/models/capability-reference-schema.js';\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalDescribeItemRequestSchema = z\n\t.object({\n\t\tid: RequestIdSchema,\n\t\tincludeJsonSchema: z.boolean().default(true),\n\t\tincludeRelated: z.boolean().default(true),\n\t\tincludeTypescriptHelper: z.boolean().default(false),\n\t\tincludeZod: z.boolean().default(false),\n\t\trefs: z.array(z.string().min(1)).optional(),\n\t\ttools: z.array(CapabilityReferenceSchema).optional(),\n\t})\n\t.strict();\n\nexport const PortalDescribeRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalDescribeItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalDescribeRequest = z.infer<typeof PortalDescribeRequestSchema>;\n","import { z } from 'zod';\n\nimport { CapabilityReferenceSchema } from '../../contract-primitives/models/capability-reference-schema.js';\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalListItemRequestSchema = z\n\t.object({\n\t\tcursor: z.string().regex(/^\\d+$/u).optional(),\n\t\tid: RequestIdSchema,\n\t\tlimit: z.number().int().positive().max(100).default(20),\n\t\tnamespaces: z.array(z.string().min(1)).optional(),\n\t\trefs: z.array(z.string().min(1)).optional(),\n\t\ttools: z.array(CapabilityReferenceSchema).optional(),\n\t})\n\t.strict();\n\nexport const PortalListRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalListItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalListRequest = z.infer<typeof PortalListRequestSchema>;\n","import { z } from 'zod';\n\nimport { RequestIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\nimport { addDuplicateItemIdIssues } from './portal-batch-id-refinement.js';\nimport { PortalBatchMaxItems } from './portal-call-request-schema.js';\n\nexport const PortalSearchItemRequestSchema = z\n\t.object({\n\t\tid: RequestIdSchema,\n\t\tlimit: z.number().int().positive().max(50).default(10),\n\t\tnamespaces: z.array(z.string().min(1)).optional(),\n\t\tquery: z.string().optional(),\n\t\tschemaDetail: z.enum(['none', 'summary', 'full']).default('summary'),\n\t})\n\t.strict();\n\nexport const PortalSearchRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\taddDuplicateItemIdIssues(request.requests, context);\n\t},\n\trefinementIdentity: 'portal.batch.unique-item-ids',\n\tschema: z\n\t\t.object({\n\t\t\trequestId: RequestIdSchema.optional(),\n\t\t\trequests: z.array(PortalSearchItemRequestSchema).min(1).max(PortalBatchMaxItems),\n\t\t})\n\t\t.strict(),\n});\n\nexport type PortalSearchRequest = z.infer<typeof PortalSearchRequestSchema>;\n","import { z } from 'zod';\n\nimport { PortalCallRequestSchema } from './models/portal-call-request-schema.js';\nimport { PortalDescribeRequestSchema } from './models/portal-describe-request-schema.js';\nimport { PortalListRequestSchema } from './models/portal-list-request-schema.js';\nimport { PortalSearchRequestSchema } from './models/portal-search-request-schema.js';\n\nexport interface PortalCallSurfaceJsonSchemas {\n\treadonly call: Record<string, unknown>;\n\treadonly describe: Record<string, unknown>;\n\treadonly list: Record<string, unknown>;\n\treadonly search: Record<string, unknown>;\n}\n\nexport function createPortalCallSurfaceJsonSchemas(): PortalCallSurfaceJsonSchemas {\n\treturn {\n\t\tcall: z.toJSONSchema(PortalCallRequestSchema, { io: 'input' }),\n\t\tdescribe: z.toJSONSchema(PortalDescribeRequestSchema, { io: 'input' }),\n\t\tlist: z.toJSONSchema(PortalListRequestSchema, { io: 'input' }),\n\t\tsearch: z.toJSONSchema(PortalSearchRequestSchema, { io: 'input' }),\n\t};\n}\n"],"mappings":";;;;;;;AAQA,MAAa,kCAAkC,EAC7C,OAAO;CACP,IAAI;CACJ,mBAAmB,EAAE,SAAS,CAAC,QAAQ,KAAK;CAC5C,gBAAgB,EAAE,SAAS,CAAC,QAAQ,KAAK;CACzC,yBAAyB,EAAE,SAAS,CAAC,QAAQ,MAAM;CACnD,YAAY,EAAE,SAAS,CAAC,QAAQ,MAAM;CACtC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EA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OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,cAAc,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAO,CAAC,CAAC,QAAQ,UAAU;CACpE,CAAC,CACD,QAAQ;AAEV,MAAa,4BAA4B,4BAA4B;CACpE,aAAa,SAAS,YAAY;EACjC,yBAAyB,QAAQ,UAAU,QAAQ;;CAEpD,oBAAoB;CACpB,QAAQ,EACN,OAAO;EACP,WAAW,gBAAgB,UAAU;EACrC,UAAU,EAAE,MAAM,8BAA8B,CAAC,IAAI,EAAE,CAAC,IAAA,GAAwB;EAChF,CAAC,CACD,QAAQ;CACV,CAAC;;;ACdF,SAAgB,qCAAmE;CAClF,OAAO;EACN,MAAM,EAAE,aAAa,yBAAyB,EAAE,IAAI,SAAS,CAAC;EAC9D,UAAU,EAAE,aAAa,6BAA6B,EAAE,IAAI,SAAS,CAAC;EACtE,MAAM,EAAE,aAAa,yBAAyB,EAAE,IAAI,SAAS,CAAC;EAC9D,QAAQ,EAAE,aAAa,2BAA2B,EAAE,IAAI,SAAS,CAAC;EAClE"}
@@ -1,71 +0,0 @@
1
- import { n as withPortableSuperRefinement } from "./portable-refinement-authoring-ZSmR-amG.js";
2
- import { z } from "zod";
3
- //#region src/contract-primitives/models/request-id-schema.ts
4
- const reservedRequestIds = new Set([
5
- "__proto__",
6
- "constructor",
7
- "prototype"
8
- ]);
9
- const RequestIdSchema = withPortableSuperRefinement({
10
- refinement: (id, context) => {
11
- if (reservedRequestIds.has(id)) context.addIssue({
12
- code: "custom",
13
- message: "Portal request id uses a reserved object property name."
14
- });
15
- },
16
- refinementIdentity: "portal.request-id.not-reserved",
17
- schema: z.string().min(1)
18
- });
19
- const ItemIdSchema = RequestIdSchema;
20
- //#endregion
21
- //#region src/portal-event-surface/models/safe-diagnostic-schema.ts
22
- const SafeDiagnosticCodeSchema = z.enum([
23
- "provider_unavailable",
24
- "capability_denied",
25
- "approval_required",
26
- "validation_failed",
27
- "execution_failed",
28
- "output_truncated",
29
- "timeout",
30
- "cancelled",
31
- "artifact_unavailable"
32
- ]);
33
- const SafeDiagnosticSchema = z.object({
34
- code: SafeDiagnosticCodeSchema,
35
- level: z.enum([
36
- "debug",
37
- "info",
38
- "warn",
39
- "error"
40
- ]),
41
- safeMessage: z.string().max(500),
42
- safeParams: z.record(z.string(), z.union([
43
- z.string(),
44
- z.number(),
45
- z.boolean()
46
- ])).optional()
47
- }).strict();
48
- //#endregion
49
- //#region src/portal-call-surface/models/portal-error-schema.ts
50
- const PortalErrorCodeSchema = z.enum([
51
- "invalid_request",
52
- "not_found",
53
- "not_authorized",
54
- "approval_required",
55
- "capability_denied",
56
- "validation_failed",
57
- "provider_unavailable",
58
- "execution_failed",
59
- "cancelled",
60
- "timeout"
61
- ]);
62
- const PortalErrorSchema = z.object({
63
- code: PortalErrorCodeSchema,
64
- message: z.string().min(1).max(500),
65
- retryable: z.boolean().optional(),
66
- safeDiagnostic: SafeDiagnosticSchema.optional()
67
- }).strict();
68
- //#endregion
69
- export { ItemIdSchema as a, SafeDiagnosticSchema as i, PortalErrorSchema as n, RequestIdSchema as o, SafeDiagnosticCodeSchema as r, PortalErrorCodeSchema as t };
70
-
71
- //# sourceMappingURL=portal-error-schema-CQHgoFq4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-error-schema-CQHgoFq4.js","names":[],"sources":["../src/contract-primitives/models/request-id-schema.ts","../src/portal-event-surface/models/safe-diagnostic-schema.ts","../src/portal-call-surface/models/portal-error-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { withPortableSuperRefinement } from '../../portable-contracts/portable-refinement-authoring.js';\n\nconst reservedRequestIds = new Set(['__proto__', 'constructor', 'prototype']);\n\nexport const RequestIdSchema = withPortableSuperRefinement({\n\trefinement: (id, context) => {\n\t\tif (reservedRequestIds.has(id)) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Portal request id uses a reserved object property name.',\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'portal.request-id.not-reserved',\n\tschema: z.string().min(1),\n});\n\nexport const ItemIdSchema = RequestIdSchema;\n","import { z } from 'zod';\n\nexport const SafeDiagnosticCodeSchema = z.enum([\n\t'provider_unavailable',\n\t'capability_denied',\n\t'approval_required',\n\t'validation_failed',\n\t'execution_failed',\n\t'output_truncated',\n\t'timeout',\n\t'cancelled',\n\t'artifact_unavailable',\n]);\n\nexport const SafeDiagnosticSchema = z\n\t.object({\n\t\tcode: SafeDiagnosticCodeSchema,\n\t\tlevel: z.enum(['debug', 'info', 'warn', 'error']),\n\t\tsafeMessage: z.string().max(500),\n\t\tsafeParams: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).optional(),\n\t})\n\t.strict();\n\nexport type SafeDiagnostic = z.infer<typeof SafeDiagnosticSchema>;\n","import { z } from 'zod';\n\nimport { SafeDiagnosticSchema } from '../../portal-event-surface/models/safe-diagnostic-schema.js';\n\nexport const PortalErrorCodeSchema = z.enum([\n\t'invalid_request',\n\t'not_found',\n\t'not_authorized',\n\t'approval_required',\n\t'capability_denied',\n\t'validation_failed',\n\t'provider_unavailable',\n\t'execution_failed',\n\t'cancelled',\n\t'timeout',\n]);\n\nexport type PortalErrorCode = z.infer<typeof PortalErrorCodeSchema>;\n\nexport const PortalErrorSchema = z\n\t.object({\n\t\tcode: PortalErrorCodeSchema,\n\t\tmessage: z.string().min(1).max(500),\n\t\tretryable: z.boolean().optional(),\n\t\tsafeDiagnostic: SafeDiagnosticSchema.optional(),\n\t})\n\t.strict();\n\nexport type PortalError = z.infer<typeof PortalErrorSchema>;\n"],"mappings":";;;AAIA,MAAM,qBAAqB,IAAI,IAAI;CAAC;CAAa;CAAe;CAAY,CAAC;AAE7E,MAAa,kBAAkB,4BAA4B;CAC1D,aAAa,IAAI,YAAY;EAC5B,IAAI,mBAAmB,IAAI,GAAG,EAC7B,QAAQ,SAAS;GAChB,MAAM;GACN,SAAS;GACT,CAAC;;CAGJ,oBAAoB;CACpB,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE;CACzB,CAAC;AAEF,MAAa,eAAe;;;ACjB5B,MAAa,2BAA2B,EAAE,KAAK;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,uBAAuB,EAClC,OAAO;CACP,MAAM;CACN,OAAO,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAQ;EAAQ,CAAC;CACjD,aAAa,EAAE,QAAQ,CAAC,IAAI,IAAI;CAChC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,SAAS;EAAC,CAAC,CAAC,CAAC,UAAU;CAC3F,CAAC,CACD,QAAQ;;;ACjBV,MAAa,wBAAwB,EAAE,KAAK;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAIF,MAAa,oBAAoB,EAC/B,OAAO;CACP,MAAM;CACN,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI;CACnC,WAAW,EAAE,SAAS,CAAC,UAAU;CACjC,gBAAgB,qBAAqB,UAAU;CAC/C,CAAC,CACD,QAAQ"}
@@ -1,2 +0,0 @@
1
- import { a as PortalCancellationRequestEventSchema, c as PortalDiagnosticEvent, d as PortalEventSchema, f as PortalPartialOutputEvent, h as PortalProgressEventSchema, i as PortalCancellationRequestEvent, l as PortalDiagnosticEventSchema, m as PortalProgressEvent, n as SafeDiagnosticCodeSchema, o as PortalCancellationResultEvent, p as PortalPartialOutputEventSchema, r as SafeDiagnosticSchema, s as PortalCancellationResultEventSchema, t as SafeDiagnostic, u as PortalEvent } from "../index-Dxoz-ORl.js";
2
- export { PortalCancellationRequestEvent, PortalCancellationRequestEventSchema, PortalCancellationResultEvent, PortalCancellationResultEventSchema, PortalDiagnosticEvent, PortalDiagnosticEventSchema, PortalEvent, PortalEventSchema, PortalPartialOutputEvent, PortalPartialOutputEventSchema, PortalProgressEvent, PortalProgressEventSchema, SafeDiagnostic, SafeDiagnosticCodeSchema, SafeDiagnosticSchema };
@@ -1,3 +0,0 @@
1
- import { i as SafeDiagnosticSchema, r as SafeDiagnosticCodeSchema } from "../portal-error-schema-CQHgoFq4.js";
2
- import { a as PortalPartialOutputEventSchema, i as PortalEventSchema, n as PortalCancellationResultEventSchema, o as PortalProgressEventSchema, r as PortalDiagnosticEventSchema, t as PortalCancellationRequestEventSchema } from "../portal-event-surface-CdScrgoN.js";
3
- export { PortalCancellationRequestEventSchema, PortalCancellationResultEventSchema, PortalDiagnosticEventSchema, PortalEventSchema, PortalPartialOutputEventSchema, PortalProgressEventSchema, SafeDiagnosticCodeSchema, SafeDiagnosticSchema };
@@ -1,51 +0,0 @@
1
- import { a as ItemIdSchema, i as SafeDiagnosticSchema, n as PortalErrorSchema } from "./portal-error-schema-CQHgoFq4.js";
2
- import { z } from "zod";
3
- //#region src/portal-event-surface/models/portal-event-schema.ts
4
- const PortalProgressEventSchema = z.object({
5
- id: ItemIdSchema,
6
- kind: z.literal("progress"),
7
- message: z.string().max(500),
8
- percent: z.number().min(0).max(100).optional()
9
- }).strict();
10
- const PortalPartialOutputEventSchema = z.object({
11
- id: ItemIdSchema,
12
- kind: z.literal("partial_output"),
13
- stream: z.enum([
14
- "stdout",
15
- "stderr",
16
- "result"
17
- ]),
18
- text: z.string().max(16384),
19
- truncated: z.boolean().default(false)
20
- }).strict();
21
- const PortalDiagnosticEventSchema = z.object({
22
- diagnostic: SafeDiagnosticSchema,
23
- id: ItemIdSchema,
24
- kind: z.literal("diagnostic")
25
- }).strict();
26
- const PortalCancellationRequestEventSchema = z.object({
27
- id: ItemIdSchema,
28
- kind: z.literal("cancellation_requested"),
29
- reason: z.string().max(500).optional()
30
- }).strict();
31
- const PortalCancellationResultEventSchema = z.object({
32
- error: PortalErrorSchema.optional(),
33
- id: ItemIdSchema,
34
- kind: z.literal("cancellation_result"),
35
- status: z.enum([
36
- "cancelled",
37
- "not_found",
38
- "already_finished"
39
- ])
40
- }).strict();
41
- const PortalEventSchema = z.discriminatedUnion("kind", [
42
- PortalProgressEventSchema,
43
- PortalPartialOutputEventSchema,
44
- PortalDiagnosticEventSchema,
45
- PortalCancellationRequestEventSchema,
46
- PortalCancellationResultEventSchema
47
- ]);
48
- //#endregion
49
- export { PortalPartialOutputEventSchema as a, PortalEventSchema as i, PortalCancellationResultEventSchema as n, PortalProgressEventSchema as o, PortalDiagnosticEventSchema as r, PortalCancellationRequestEventSchema as t };
50
-
51
- //# sourceMappingURL=portal-event-surface-CdScrgoN.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-event-surface-CdScrgoN.js","names":[],"sources":["../src/portal-event-surface/models/portal-event-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport { PortalErrorSchema } from '../../portal-call-surface/models/portal-error-schema.js';\nimport { SafeDiagnosticSchema } from './safe-diagnostic-schema.js';\n\nexport const PortalProgressEventSchema = z\n\t.object({\n\t\tid: ItemIdSchema,\n\t\tkind: z.literal('progress'),\n\t\tmessage: z.string().max(500),\n\t\tpercent: z.number().min(0).max(100).optional(),\n\t})\n\t.strict();\n\nexport type PortalProgressEvent = z.infer<typeof PortalProgressEventSchema>;\n\nexport const PortalPartialOutputEventSchema = z\n\t.object({\n\t\tid: ItemIdSchema,\n\t\tkind: z.literal('partial_output'),\n\t\tstream: z.enum(['stdout', 'stderr', 'result']),\n\t\ttext: z.string().max(16_384),\n\t\ttruncated: z.boolean().default(false),\n\t})\n\t.strict();\n\nexport type PortalPartialOutputEvent = z.infer<typeof PortalPartialOutputEventSchema>;\n\nexport const PortalDiagnosticEventSchema = z\n\t.object({\n\t\tdiagnostic: SafeDiagnosticSchema,\n\t\tid: ItemIdSchema,\n\t\tkind: z.literal('diagnostic'),\n\t})\n\t.strict();\n\nexport type PortalDiagnosticEvent = z.infer<typeof PortalDiagnosticEventSchema>;\n\nexport const PortalCancellationRequestEventSchema = z\n\t.object({\n\t\tid: ItemIdSchema,\n\t\tkind: z.literal('cancellation_requested'),\n\t\treason: z.string().max(500).optional(),\n\t})\n\t.strict();\n\nexport type PortalCancellationRequestEvent = z.infer<typeof PortalCancellationRequestEventSchema>;\n\nexport const PortalCancellationResultEventSchema = z\n\t.object({\n\t\terror: PortalErrorSchema.optional(),\n\t\tid: ItemIdSchema,\n\t\tkind: z.literal('cancellation_result'),\n\t\tstatus: z.enum(['cancelled', 'not_found', 'already_finished']),\n\t})\n\t.strict();\n\nexport type PortalCancellationResultEvent = z.infer<typeof PortalCancellationResultEventSchema>;\n\nexport const PortalEventSchema = z.discriminatedUnion('kind', [\n\tPortalProgressEventSchema,\n\tPortalPartialOutputEventSchema,\n\tPortalDiagnosticEventSchema,\n\tPortalCancellationRequestEventSchema,\n\tPortalCancellationResultEventSchema,\n]);\n\nexport type PortalEvent = z.infer<typeof PortalEventSchema>;\n"],"mappings":";;;AAMA,MAAa,4BAA4B,EACvC,OAAO;CACP,IAAI;CACJ,MAAM,EAAE,QAAQ,WAAW;CAC3B,SAAS,EAAE,QAAQ,CAAC,IAAI,IAAI;CAC5B,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,UAAU;CAC9C,CAAC,CACD,QAAQ;AAIV,MAAa,iCAAiC,EAC5C,OAAO;CACP,IAAI;CACJ,MAAM,EAAE,QAAQ,iBAAiB;CACjC,QAAQ,EAAE,KAAK;EAAC;EAAU;EAAU;EAAS,CAAC;CAC9C,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAO;CAC5B,WAAW,EAAE,SAAS,CAAC,QAAQ,MAAM;CACrC,CAAC,CACD,QAAQ;AAIV,MAAa,8BAA8B,EACzC,OAAO;CACP,YAAY;CACZ,IAAI;CACJ,MAAM,EAAE,QAAQ,aAAa;CAC7B,CAAC,CACD,QAAQ;AAIV,MAAa,uCAAuC,EAClD,OAAO;CACP,IAAI;CACJ,MAAM,EAAE,QAAQ,yBAAyB;CACzC,QAAQ,EAAE,QAAQ,CAAC,IAAI,IAAI,CAAC,UAAU;CACtC,CAAC,CACD,QAAQ;AAIV,MAAa,sCAAsC,EACjD,OAAO;CACP,OAAO,kBAAkB,UAAU;CACnC,IAAI;CACJ,MAAM,EAAE,QAAQ,sBAAsB;CACtC,QAAQ,EAAE,KAAK;EAAC;EAAa;EAAa;EAAmB,CAAC;CAC9D,CAAC,CACD,QAAQ;AAIV,MAAa,oBAAoB,EAAE,mBAAmB,QAAQ;CAC7D;CACA;CACA;CACA;CACA;CACA,CAAC"}
@@ -1,19 +0,0 @@
1
- import { l as JsonValue, r as JsonObject } from "../json-value-schema-M87sjwWL.js";
2
- import { S as PortalCallRequest, i as PortalCallResult } from "../portal-call-result-schema-wSCaz3mC.js";
3
- //#region src/testing/index.d.ts
4
- interface CreatePortalCallRequestFixtureProps {
5
- readonly arguments?: JsonObject;
6
- readonly id?: string;
7
- readonly namespace?: string;
8
- readonly requestId?: string;
9
- readonly name?: string;
10
- }
11
- interface CreatePortalCallResultFixtureProps {
12
- readonly id?: string;
13
- readonly value?: JsonValue;
14
- }
15
- declare function createPortalCallRequestFixture(props?: CreatePortalCallRequestFixtureProps): PortalCallRequest;
16
- declare function createPortalCallResultFixture(props?: CreatePortalCallResultFixtureProps): PortalCallResult;
17
- //#endregion
18
- export { CreatePortalCallRequestFixtureProps, CreatePortalCallResultFixtureProps, createPortalCallRequestFixture, createPortalCallResultFixture };
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/testing/index.ts"],"mappings":";;;UAUiB,mCAAA;EAAA,SACP,SAAA,GAAY,UAAA;EAAA,SACZ,EAAA;EAAA,SACA,SAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;AAAA;AAAA,UAGO,kCAAA;EAAA,SACP,EAAA;EAAA,SACA,KAAA,GAAQ,SAAA;AAAA;AAAA,iBAGF,8BAAA,CACf,KAAA,GAAO,mCAAA,GACL,iBAAA;AAAA,iBAca,6BAAA,CACf,KAAA,GAAO,kCAAA,GACL,gBAAA"}
@@ -1,36 +0,0 @@
1
- import { i as PortalCallResultSchema } from "../portal-call-result-schema-ByxHRCEN.js";
2
- import { r as PortalCallRequestSchema } from "../portal-call-request-schema-Cp6CMGs9.js";
3
- //#region src/testing/index.ts
4
- function createPortalCallRequestFixture(props = {}) {
5
- return PortalCallRequestSchema.parse({
6
- calls: [{
7
- arguments: props.arguments ?? {},
8
- id: props.id ?? "call-1",
9
- namespace: props.namespace ?? "github",
10
- name: props.name ?? "get_issue"
11
- }],
12
- requestId: props.requestId
13
- });
14
- }
15
- function createPortalCallResultFixture(props = {}) {
16
- return PortalCallResultSchema.parse({
17
- items: [{
18
- id: props.id ?? "call-1",
19
- operationId: "operation-1",
20
- outcome: {
21
- certainty: "proven",
22
- completion: "succeeded",
23
- kind: "completed",
24
- retryClass: "forbidden"
25
- },
26
- owningGeneration: "tool-vm-generation-1",
27
- status: "ok",
28
- value: props.value ?? {}
29
- }],
30
- ok: true
31
- });
32
- }
33
- //#endregion
34
- export { createPortalCallRequestFixture, createPortalCallResultFixture };
35
-
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/testing/index.ts"],"sourcesContent":["import type { JsonObject, JsonValue } from '../contract-primitives/index.js';\nimport {\n\tPortalCallRequestSchema,\n\ttype PortalCallRequest,\n} from '../portal-call-surface/models/portal-call-request-schema.js';\nimport {\n\tPortalCallResultSchema,\n\ttype PortalCallResult,\n} from '../portal-call-surface/models/portal-call-result-schema.js';\n\nexport interface CreatePortalCallRequestFixtureProps {\n\treadonly arguments?: JsonObject;\n\treadonly id?: string;\n\treadonly namespace?: string;\n\treadonly requestId?: string;\n\treadonly name?: string;\n}\n\nexport interface CreatePortalCallResultFixtureProps {\n\treadonly id?: string;\n\treadonly value?: JsonValue;\n}\n\nexport function createPortalCallRequestFixture(\n\tprops: CreatePortalCallRequestFixtureProps = {},\n): PortalCallRequest {\n\treturn PortalCallRequestSchema.parse({\n\t\tcalls: [\n\t\t\t{\n\t\t\t\targuments: props.arguments ?? {},\n\t\t\t\tid: props.id ?? 'call-1',\n\t\t\t\tnamespace: props.namespace ?? 'github',\n\t\t\t\tname: props.name ?? 'get_issue',\n\t\t\t},\n\t\t],\n\t\trequestId: props.requestId,\n\t});\n}\n\nexport function createPortalCallResultFixture(\n\tprops: CreatePortalCallResultFixtureProps = {},\n): PortalCallResult {\n\treturn PortalCallResultSchema.parse({\n\t\titems: [\n\t\t\t{\n\t\t\t\tid: props.id ?? 'call-1',\n\t\t\t\toperationId: 'operation-1',\n\t\t\t\toutcome: {\n\t\t\t\t\tcertainty: 'proven',\n\t\t\t\t\tcompletion: 'succeeded',\n\t\t\t\t\tkind: 'completed',\n\t\t\t\t\tretryClass: 'forbidden',\n\t\t\t\t},\n\t\t\t\towningGeneration: 'tool-vm-generation-1',\n\t\t\t\tstatus: 'ok',\n\t\t\t\tvalue: props.value ?? {},\n\t\t\t},\n\t\t],\n\t\tok: true,\n\t});\n}\n"],"mappings":";;;AAuBA,SAAgB,+BACf,QAA6C,EAAE,EAC3B;CACpB,OAAO,wBAAwB,MAAM;EACpC,OAAO,CACN;GACC,WAAW,MAAM,aAAa,EAAE;GAChC,IAAI,MAAM,MAAM;GAChB,WAAW,MAAM,aAAa;GAC9B,MAAM,MAAM,QAAQ;GACpB,CACD;EACD,WAAW,MAAM;EACjB,CAAC;;AAGH,SAAgB,8BACf,QAA4C,EAAE,EAC3B;CACnB,OAAO,uBAAuB,MAAM;EACnC,OAAO,CACN;GACC,IAAI,MAAM,MAAM;GAChB,aAAa;GACb,SAAS;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,YAAY;IACZ;GACD,kBAAkB;GAClB,QAAQ;GACR,OAAO,MAAM,SAAS,EAAE;GACxB,CACD;EACD,IAAI;EACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import { a as ToolPortalMcpTransport, i as ToolPortalMcpResourceContent, n as ToolPortalMcpClient, r as ToolPortalMcpClientOptions, t as ToolPortalClientRequestOptions } from "../index-v8suC0qe.js";
2
- export { ToolPortalClientRequestOptions, ToolPortalMcpClient, ToolPortalMcpClientOptions, ToolPortalMcpResourceContent, ToolPortalMcpTransport };
@@ -1,2 +0,0 @@
1
- import { t as ToolPortalMcpClient } from "../tool-portal-mcp-client-DwJF-48Y.js";
2
- export { ToolPortalMcpClient };
@@ -1,17 +0,0 @@
1
- import { a as ToolPortalMcpTransport } from "../index-v8suC0qe.js";
2
-
3
- //#region src/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts
4
- type CreateNodeToolPortalMcpTransportProps = {
5
- readonly authorization: string;
6
- readonly endpoint: URL;
7
- readonly kind: 'http';
8
- } | {
9
- readonly argv: readonly string[];
10
- readonly executable: string;
11
- readonly kind: 'scoped-stdio';
12
- };
13
- /** Standard MCP transport adapter for the portable Tool Portal client. */
14
- declare function createNodeToolPortalMcpTransport(props: CreateNodeToolPortalMcpTransportProps): ToolPortalMcpTransport;
15
- //#endregion
16
- export { CreateNodeToolPortalMcpTransportProps, createNodeToolPortalMcpTransport };
17
- //# sourceMappingURL=node-tool-portal-mcp-transport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-tool-portal-mcp-transport.d.ts","names":[],"sources":["../../src/tool-portal-mcp-client/node-tool-portal-mcp-transport.ts"],"mappings":";;;KASY,qCAAA;EAAA,SAEA,aAAA;EAAA,SACA,QAAA,EAAU,GAAA;EAAA,SACV,IAAA;AAAA;EAAA,SAGA,IAAA;EAAA,SACA,UAAA;EAAA,SACA,IAAA;AAAA;;iBA8FI,gCAAA,CACf,KAAA,EAAO,qCAAA,GACL,sBAAA"}
@@ -1,2 +0,0 @@
1
- import { t as createNodeToolPortalMcpTransport } from "../node-tool-portal-mcp-transport-Cl2VKbLY.js";
2
- export { createNodeToolPortalMcpTransport };
@@ -1,90 +0,0 @@
1
- import { d as PortalListResultSchema, i as PortalCallResultSchema, m as PortalSearchResultSchema, s as PortalDescribeResultSchema } from "./portal-call-result-schema-ByxHRCEN.js";
2
- import { a as PortalArtifactReadRequestSchema, o as PortalArtifactReadResultSchema, r as createPortalArtifactReadResourceRequest } from "./artifact-surface-BstQxq6b.js";
3
- import { r as PortalCallRequestSchema } from "./portal-call-request-schema-Cp6CMGs9.js";
4
- import { a as PortalListRequestSchema, r as PortalSearchRequestSchema, s as PortalDescribeRequestSchema } from "./portal-call-surface-DjZVquFt.js";
5
- //#region src/tool-portal-mcp-client/index.ts
6
- const canonicalBase64Pattern = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;
7
- function decodedBase64ByteLength(contentBase64) {
8
- if (!canonicalBase64Pattern.test(contentBase64)) throw new TypeError("Tool Portal MCP artifact content is not canonical base64.");
9
- const paddingBytes = contentBase64.endsWith("==") ? 2 : contentBase64.endsWith("=") ? 1 : 0;
10
- return contentBase64.length / 4 * 3 - paddingBytes;
11
- }
12
- var ToolPortalMcpArtifactOperations = class {
13
- #transport;
14
- constructor(transport) {
15
- this.#transport = transport;
16
- }
17
- async read(request, options = {}) {
18
- const validatedRequest = PortalArtifactReadRequestSchema.parse(request);
19
- const resourceRequest = createPortalArtifactReadResourceRequest(validatedRequest);
20
- const response = await this.#transport.readResource(resourceRequest, options);
21
- const content = response.contents.length === 1 ? response.contents[0] : void 0;
22
- if (content === void 0 || content.kind !== "blob" || content.uri !== resourceRequest.uri || content.mediaType === void 0) throw new TypeError("Tool Portal MCP artifact read returned an invalid resource.");
23
- const returnedBytes = decodedBase64ByteLength(content.blob);
24
- if (returnedBytes > validatedRequest.maxBytes) throw new TypeError("Tool Portal MCP artifact read exceeded the requested byte range.");
25
- return PortalArtifactReadResultSchema.parse({
26
- contentBase64: content.blob,
27
- mediaType: content.mediaType,
28
- offsetBytes: validatedRequest.offsetBytes,
29
- reference: validatedRequest.reference,
30
- truncated: validatedRequest.offsetBytes + returnedBytes < validatedRequest.reference.byteLength
31
- });
32
- }
33
- };
34
- /**
35
- * Standard-MCP projection of the bounded Tool Portal surface.
36
- *
37
- * The transport is injected so this subpath remains independent from the
38
- * Gateway-runtime UDS client and its Node-specific dependencies.
39
- */
40
- var ToolPortalMcpClient = class {
41
- #transport;
42
- artifacts;
43
- constructor(options) {
44
- this.#transport = options.transport;
45
- this.artifacts = new ToolPortalMcpArtifactOperations(this.#transport);
46
- }
47
- async connect() {
48
- await this.#transport.connect();
49
- }
50
- async close() {
51
- await this.#transport.close();
52
- }
53
- async list(request, options = {}) {
54
- const validatedRequest = PortalListRequestSchema.parse(request);
55
- const response = await this.#transport.callTool({
56
- arguments: validatedRequest,
57
- name: "tool_portal_list"
58
- }, options);
59
- return PortalListResultSchema.parse(response.structuredContent);
60
- }
61
- async search(request, options = {}) {
62
- const validatedRequest = PortalSearchRequestSchema.parse(request);
63
- const response = await this.#transport.callTool({
64
- arguments: validatedRequest,
65
- name: "tool_portal_search"
66
- }, options);
67
- return PortalSearchResultSchema.parse(response.structuredContent);
68
- }
69
- async describe(request, options = {}) {
70
- const validatedRequest = PortalDescribeRequestSchema.parse(request);
71
- const response = await this.#transport.callTool({
72
- arguments: validatedRequest,
73
- name: "tool_portal_describe"
74
- }, options);
75
- return PortalDescribeResultSchema.parse(response.structuredContent);
76
- }
77
- async call(request, options = {}) {
78
- const validatedRequest = PortalCallRequestSchema.parse(request);
79
- const response = await this.#transport.callTool({
80
- ...options.approvalToken === void 0 ? {} : { approvalToken: options.approvalToken },
81
- arguments: validatedRequest,
82
- name: "tool_portal_call"
83
- }, options);
84
- return PortalCallResultSchema.parse(response.structuredContent);
85
- }
86
- };
87
- //#endregion
88
- export { ToolPortalMcpClient as t };
89
-
90
- //# sourceMappingURL=tool-portal-mcp-client-DwJF-48Y.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-portal-mcp-client-DwJF-48Y.js","names":["#transport"],"sources":["../src/tool-portal-mcp-client/index.ts"],"sourcesContent":["import {\n\tcreatePortalArtifactReadResourceRequest,\n\tPortalArtifactReadRequestSchema,\n\tPortalArtifactReadResultSchema,\n\ttype PortalArtifactReadRequest,\n\ttype PortalArtifactReadResourceRequest,\n\ttype PortalArtifactReadResult,\n} from '../artifact-surface/index.js';\nimport {\n\tPortalCallRequestSchema,\n\tPortalCallResultSchema,\n\tPortalDescribeRequestSchema,\n\tPortalDescribeResultSchema,\n\tPortalListRequestSchema,\n\tPortalListResultSchema,\n\tPortalSearchRequestSchema,\n\tPortalSearchResultSchema,\n\ttype PortalCallRequest,\n\ttype PortalCallResult,\n\ttype PortalDescribeRequest,\n\ttype PortalDescribeResult,\n\ttype PortalListRequest,\n\ttype PortalListResult,\n\ttype PortalSearchRequest,\n\ttype PortalSearchResult,\n} from '../portal-call-surface/index.js';\n\nexport type ToolPortalMcpResourceContent =\n\t| {\n\t\t\treadonly blob: string;\n\t\t\treadonly kind: 'blob';\n\t\t\treadonly mediaType?: string;\n\t\t\treadonly uri: string;\n\t }\n\t| {\n\t\t\treadonly kind: 'text';\n\t\t\treadonly mediaType?: string;\n\t\t\treadonly text: string;\n\t\t\treadonly uri: string;\n\t };\n\nexport interface ToolPortalMcpTransport {\n\treadonly callTool: (\n\t\tcall: {\n\t\t\treadonly approvalToken?: string;\n\t\t\treadonly arguments: unknown;\n\t\t\treadonly name: string;\n\t\t},\n\t\toptions?: {\n\t\t\treadonly resultGraceAfterAbortMs?: number;\n\t\t\treadonly signal?: AbortSignal;\n\t\t},\n\t) => Promise<{ readonly structuredContent?: unknown }>;\n\treadonly close: () => Promise<void>;\n\treadonly connect: () => Promise<void>;\n\treadonly readResource: (\n\t\trequest: PortalArtifactReadResourceRequest,\n\t\toptions?: {\n\t\t\treadonly resultGraceAfterAbortMs?: number;\n\t\t\treadonly signal?: AbortSignal;\n\t\t},\n\t) => Promise<{ readonly contents: readonly ToolPortalMcpResourceContent[] }>;\n}\n\nexport interface ToolPortalMcpClientOptions {\n\treadonly transport: ToolPortalMcpTransport;\n}\n\nexport interface ToolPortalClientRequestOptions {\n\treadonly approvalToken?: string;\n\treadonly resultGraceAfterAbortMs?: number;\n\treadonly signal?: AbortSignal;\n}\n\nconst canonicalBase64Pattern = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;\n\nfunction decodedBase64ByteLength(contentBase64: string): number {\n\tif (!canonicalBase64Pattern.test(contentBase64)) {\n\t\tthrow new TypeError('Tool Portal MCP artifact content is not canonical base64.');\n\t}\n\tconst paddingBytes = contentBase64.endsWith('==') ? 2 : contentBase64.endsWith('=') ? 1 : 0;\n\treturn (contentBase64.length / 4) * 3 - paddingBytes;\n}\n\nclass ToolPortalMcpArtifactOperations {\n\treadonly #transport: ToolPortalMcpTransport;\n\n\tconstructor(transport: ToolPortalMcpTransport) {\n\t\tthis.#transport = transport;\n\t}\n\n\tasync read(\n\t\trequest: PortalArtifactReadRequest,\n\t\toptions: ToolPortalClientRequestOptions = {},\n\t): Promise<PortalArtifactReadResult> {\n\t\tconst validatedRequest = PortalArtifactReadRequestSchema.parse(request);\n\t\tconst resourceRequest = createPortalArtifactReadResourceRequest(validatedRequest);\n\t\tconst response = await this.#transport.readResource(resourceRequest, options);\n\t\tconst content = response.contents.length === 1 ? response.contents[0] : undefined;\n\t\tif (\n\t\t\tcontent === undefined ||\n\t\t\tcontent.kind !== 'blob' ||\n\t\t\tcontent.uri !== resourceRequest.uri ||\n\t\t\tcontent.mediaType === undefined\n\t\t) {\n\t\t\tthrow new TypeError('Tool Portal MCP artifact read returned an invalid resource.');\n\t\t}\n\t\tconst returnedBytes = decodedBase64ByteLength(content.blob);\n\t\tif (returnedBytes > validatedRequest.maxBytes) {\n\t\t\tthrow new TypeError('Tool Portal MCP artifact read exceeded the requested byte range.');\n\t\t}\n\t\treturn PortalArtifactReadResultSchema.parse({\n\t\t\tcontentBase64: content.blob,\n\t\t\tmediaType: content.mediaType,\n\t\t\toffsetBytes: validatedRequest.offsetBytes,\n\t\t\treference: validatedRequest.reference,\n\t\t\ttruncated:\n\t\t\t\tvalidatedRequest.offsetBytes + returnedBytes < validatedRequest.reference.byteLength,\n\t\t});\n\t}\n}\n\n/**\n * Standard-MCP projection of the bounded Tool Portal surface.\n *\n * The transport is injected so this subpath remains independent from the\n * Gateway-runtime UDS client and its Node-specific dependencies.\n */\nexport class ToolPortalMcpClient {\n\treadonly #transport: ToolPortalMcpTransport;\n\treadonly artifacts: ToolPortalMcpArtifactOperations;\n\n\tconstructor(options: ToolPortalMcpClientOptions) {\n\t\tthis.#transport = options.transport;\n\t\tthis.artifacts = new ToolPortalMcpArtifactOperations(this.#transport);\n\t}\n\n\tasync connect(): Promise<void> {\n\t\tawait this.#transport.connect();\n\t}\n\n\tasync close(): Promise<void> {\n\t\tawait this.#transport.close();\n\t}\n\n\tasync list(\n\t\trequest: PortalListRequest,\n\t\toptions: ToolPortalClientRequestOptions = {},\n\t): Promise<PortalListResult> {\n\t\tconst validatedRequest = PortalListRequestSchema.parse(request);\n\t\tconst response = await this.#transport.callTool(\n\t\t\t{\n\t\t\t\targuments: validatedRequest,\n\t\t\t\tname: 'tool_portal_list',\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\t\treturn PortalListResultSchema.parse(response.structuredContent);\n\t}\n\n\tasync search(\n\t\trequest: PortalSearchRequest,\n\t\toptions: ToolPortalClientRequestOptions = {},\n\t): Promise<PortalSearchResult> {\n\t\tconst validatedRequest = PortalSearchRequestSchema.parse(request);\n\t\tconst response = await this.#transport.callTool(\n\t\t\t{\n\t\t\t\targuments: validatedRequest,\n\t\t\t\tname: 'tool_portal_search',\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\t\treturn PortalSearchResultSchema.parse(response.structuredContent);\n\t}\n\n\tasync describe(\n\t\trequest: PortalDescribeRequest,\n\t\toptions: ToolPortalClientRequestOptions = {},\n\t): Promise<PortalDescribeResult> {\n\t\tconst validatedRequest = PortalDescribeRequestSchema.parse(request);\n\t\tconst response = await this.#transport.callTool(\n\t\t\t{\n\t\t\t\targuments: validatedRequest,\n\t\t\t\tname: 'tool_portal_describe',\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\t\treturn PortalDescribeResultSchema.parse(response.structuredContent);\n\t}\n\n\tasync call(\n\t\trequest: PortalCallRequest,\n\t\toptions: ToolPortalClientRequestOptions = {},\n\t): Promise<PortalCallResult> {\n\t\tconst validatedRequest = PortalCallRequestSchema.parse(request);\n\t\tconst response = await this.#transport.callTool(\n\t\t\t{\n\t\t\t\t...(options.approvalToken === undefined ? {} : { approvalToken: options.approvalToken }),\n\t\t\t\targuments: validatedRequest,\n\t\t\t\tname: 'tool_portal_call',\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\t\treturn PortalCallResultSchema.parse(response.structuredContent);\n\t}\n}\n"],"mappings":";;;;;AA0EA,MAAM,yBAAyB;AAE/B,SAAS,wBAAwB,eAA+B;CAC/D,IAAI,CAAC,uBAAuB,KAAK,cAAc,EAC9C,MAAM,IAAI,UAAU,4DAA4D;CAEjF,MAAM,eAAe,cAAc,SAAS,KAAK,GAAG,IAAI,cAAc,SAAS,IAAI,GAAG,IAAI;CAC1F,OAAQ,cAAc,SAAS,IAAK,IAAI;;AAGzC,IAAM,kCAAN,MAAsC;CACrC;CAEA,YAAY,WAAmC;EAC9C,KAAKA,aAAa;;CAGnB,MAAM,KACL,SACA,UAA0C,EAAE,EACR;EACpC,MAAM,mBAAmB,gCAAgC,MAAM,QAAQ;EACvE,MAAM,kBAAkB,wCAAwC,iBAAiB;EACjF,MAAM,WAAW,MAAM,KAAKA,WAAW,aAAa,iBAAiB,QAAQ;EAC7E,MAAM,UAAU,SAAS,SAAS,WAAW,IAAI,SAAS,SAAS,KAAK,KAAA;EACxE,IACC,YAAY,KAAA,KACZ,QAAQ,SAAS,UACjB,QAAQ,QAAQ,gBAAgB,OAChC,QAAQ,cAAc,KAAA,GAEtB,MAAM,IAAI,UA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