@dexto/core 1.6.27 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/agent/DextoAgent.d.ts +3 -3
  2. package/dist/agent/DextoAgent.d.ts.map +1 -1
  3. package/dist/agent/schemas.cjs +5 -5
  4. package/dist/agent/schemas.d.ts +69 -980
  5. package/dist/agent/schemas.d.ts.map +1 -1
  6. package/dist/agent/schemas.js +5 -5
  7. package/dist/approval/schemas.cjs +6 -6
  8. package/dist/approval/schemas.d.ts +316 -1292
  9. package/dist/approval/schemas.d.ts.map +1 -1
  10. package/dist/approval/schemas.js +6 -6
  11. package/dist/approval/session-approval-store.cjs +1 -1
  12. package/dist/approval/session-approval-store.d.ts +12 -30
  13. package/dist/approval/session-approval-store.d.ts.map +1 -1
  14. package/dist/approval/session-approval-store.js +1 -1
  15. package/dist/llm/providers/local/schemas.d.ts +102 -262
  16. package/dist/llm/providers/local/schemas.d.ts.map +1 -1
  17. package/dist/llm/registry/index.d.ts +5 -3
  18. package/dist/llm/registry/index.d.ts.map +1 -1
  19. package/dist/llm/resolver.cjs +0 -1
  20. package/dist/llm/resolver.d.ts.map +1 -1
  21. package/dist/llm/resolver.js +0 -1
  22. package/dist/llm/schemas.d.ts +95 -199
  23. package/dist/llm/schemas.d.ts.map +1 -1
  24. package/dist/logger/default-logger-factory.d.ts +28 -256
  25. package/dist/logger/default-logger-factory.d.ts.map +1 -1
  26. package/dist/logger/v2/schemas.d.ts +18 -120
  27. package/dist/logger/v2/schemas.d.ts.map +1 -1
  28. package/dist/mcp/schemas.cjs +4 -4
  29. package/dist/mcp/schemas.d.ts +77 -270
  30. package/dist/mcp/schemas.d.ts.map +1 -1
  31. package/dist/mcp/schemas.js +4 -4
  32. package/dist/memory/schemas.d.ts +37 -117
  33. package/dist/memory/schemas.d.ts.map +1 -1
  34. package/dist/prompts/schemas.d.ts +46 -190
  35. package/dist/prompts/schemas.d.ts.map +1 -1
  36. package/dist/resources/schemas.d.ts +14 -68
  37. package/dist/resources/schemas.d.ts.map +1 -1
  38. package/dist/runtime/host-runtime.d.ts +1 -5
  39. package/dist/runtime/host-runtime.d.ts.map +1 -1
  40. package/dist/session/schemas.d.ts +1 -7
  41. package/dist/session/schemas.d.ts.map +1 -1
  42. package/dist/systemPrompt/schemas.cjs +2 -10
  43. package/dist/systemPrompt/schemas.d.ts +53 -343
  44. package/dist/systemPrompt/schemas.d.ts.map +1 -1
  45. package/dist/systemPrompt/schemas.js +2 -10
  46. package/dist/telemetry/schemas.cjs +1 -1
  47. package/dist/telemetry/schemas.d.ts +9 -44
  48. package/dist/telemetry/schemas.d.ts.map +1 -1
  49. package/dist/telemetry/schemas.js +1 -1
  50. package/dist/tools/schemas.cjs +1 -1
  51. package/dist/tools/schemas.d.ts +19 -62
  52. package/dist/tools/schemas.d.ts.map +1 -1
  53. package/dist/tools/schemas.js +1 -1
  54. package/dist/tools/session-tool-preferences-store.d.ts +3 -9
  55. package/dist/tools/session-tool-preferences-store.d.ts.map +1 -1
  56. package/dist/utils/result.cjs +11 -8
  57. package/dist/utils/result.d.ts +6 -6
  58. package/dist/utils/result.d.ts.map +1 -1
  59. package/dist/utils/result.js +12 -9
  60. package/dist/utils/schema.cjs +6 -2
  61. package/dist/utils/schema.d.ts +2 -7
  62. package/dist/utils/schema.d.ts.map +1 -1
  63. package/dist/utils/schema.js +6 -2
  64. package/dist/utils/zod-schema-converter.cjs +66 -66
  65. package/dist/utils/zod-schema-converter.d.ts +3 -2
  66. package/dist/utils/zod-schema-converter.d.ts.map +1 -1
  67. package/dist/utils/zod-schema-converter.js +66 -66
  68. package/package.json +4 -5
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,eAAO,MAAM,oBAAoB;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsJf,CAAC;AAGd,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAM/B,CAAC;AAkEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsJf,CAAC;AAGd,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -16,7 +16,7 @@ const OAuth2FlowSchema = z.object({
16
16
  authorizationUrl: z.string().url().optional().describe("Authorization URL for the flow"),
17
17
  tokenUrl: z.string().url().optional().describe("Token URL for the flow"),
18
18
  refreshUrl: z.string().url().optional().describe("Refresh URL for the flow"),
19
- scopes: z.record(z.string()).describe("Available scopes for the OAuth2 flow")
19
+ scopes: z.record(z.string(), z.string()).describe("Available scopes for the OAuth2 flow")
20
20
  }).strict();
21
21
  const OAuth2SecurityScheme = z.object({
22
22
  type: z.literal("oauth2").describe("Security scheme type"),
@@ -89,7 +89,7 @@ const AgentCardSchema = z.object({
89
89
  inputModes: z.array(z.string()).optional().default(["text/plain"]).describe("Skill-specific input MIME types"),
90
90
  outputModes: z.array(z.string()).optional().default(["text/plain"]).describe("Skill-specific output MIME types")
91
91
  }).strict()
92
- ).default([
92
+ ).prefault([
93
93
  {
94
94
  id: "chat_with_agent",
95
95
  name: "chat_with_agent",
@@ -120,9 +120,9 @@ const AgentCardSchema = z.object({
120
120
  streaming: z.boolean().optional().default(true).describe("Supports streaming responses"),
121
121
  pushNotifications: z.boolean().optional().describe("Supports push notifications"),
122
122
  stateTransitionHistory: z.boolean().optional().default(false).describe("Provides state transition history")
123
- }).strict().default({}).describe("Agent capabilities and features"),
124
- securitySchemes: z.record(SecuritySchemeSchema).optional().describe("Map of security scheme definitions (A2A format)"),
125
- security: z.array(z.record(z.array(z.string()))).optional().describe(
123
+ }).strict().prefault({}).describe("Agent capabilities and features"),
124
+ securitySchemes: z.record(z.string(), SecuritySchemeSchema).optional().describe("Map of security scheme definitions (A2A format)"),
125
+ security: z.array(z.record(z.string(), z.array(z.string()))).optional().describe(
126
126
  "Security requirements (array of security scheme references with required scopes)"
127
127
  ),
128
128
  supportsAuthenticatedExtendedCard: z.boolean().optional().describe("Whether extended card is available with authentication"),
@@ -52,7 +52,7 @@ var import_zod = require("zod");
52
52
  var import_types = require("./types.js");
53
53
  var import_display_types = require("../tools/display-types.js");
54
54
  var import_runtime = require("../runtime/index.js");
55
- const JsonSchema7Schema = import_zod.z.record(import_zod.z.unknown());
55
+ const JsonSchema7Schema = import_zod.z.record(import_zod.z.string(), import_zod.z.unknown());
56
56
  const ApprovalTypeSchema = import_zod.z.enum(import_types.APPROVAL_TYPES);
57
57
  const ApprovalStatusSchema = import_zod.z.enum(import_types.APPROVAL_STATUSES);
58
58
  const DenialReasonSchema = import_zod.z.enum(import_types.DENIAL_REASONS);
@@ -77,7 +77,7 @@ const ToolApprovalMetadataSchema = import_zod.z.object({
77
77
  "Optional UI-agnostic presentation snapshot for the tool call. Clients MUST ignore unknown fields."
78
78
  ),
79
79
  toolCallId: import_zod.z.string().describe("Unique tool call ID for tracking parallel tool calls"),
80
- args: import_zod.z.record(import_zod.z.unknown()).describe("Arguments for the tool"),
80
+ args: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Arguments for the tool"),
81
81
  description: import_zod.z.string().optional().describe("Description of the tool"),
82
82
  displayPreview: ToolDisplayDataSchema.optional().describe(
83
83
  "Preview display data for approval UI (e.g., diff preview)"
@@ -98,9 +98,9 @@ const ElicitationMetadataSchema = import_zod.z.object({
98
98
  schema: JsonSchema7Schema.describe("JSON Schema for the form"),
99
99
  prompt: import_zod.z.string().describe("High-level prompt/context for the form (clients may show it)"),
100
100
  serverName: import_zod.z.string().describe("MCP server requesting input"),
101
- context: import_zod.z.record(import_zod.z.unknown()).optional().describe("Additional context")
101
+ context: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().describe("Additional context")
102
102
  }).strict().describe("Elicitation metadata");
103
- const CustomApprovalMetadataSchema = import_zod.z.record(import_zod.z.unknown()).describe("Custom metadata");
103
+ const CustomApprovalMetadataSchema = import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Custom metadata");
104
104
  const BaseApprovalRequestSchema = import_zod.z.object({
105
105
  approvalId: import_zod.z.string().uuid().describe("Unique approval identifier"),
106
106
  type: ApprovalTypeSchema.describe("Type of approval"),
@@ -152,9 +152,9 @@ const CommandConfirmationResponseDataSchema = import_zod.z.object({
152
152
  // Could add command pattern remembering in future (e.g., "remember git push *")
153
153
  }).strict().describe("Command confirmation response data");
154
154
  const ElicitationResponseDataSchema = import_zod.z.object({
155
- formData: import_zod.z.record(import_zod.z.unknown()).describe("Form data matching schema")
155
+ formData: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Form data matching schema")
156
156
  }).strict().describe("Elicitation response data");
157
- const CustomApprovalResponseDataSchema = import_zod.z.record(import_zod.z.unknown()).describe("Custom response data");
157
+ const CustomApprovalResponseDataSchema = import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Custom response data");
158
158
  const DirectoryAccessResponseDataSchema = import_zod.z.object({
159
159
  rememberDirectory: import_zod.z.boolean().optional().describe("Remember this directory for the session (allows all file access within it)")
160
160
  }).strict().describe("Directory access response data");