@autohq/cli 0.1.681 → 0.1.682

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.
@@ -33218,7 +33218,7 @@ function bootstrapAdditionalData(input) {
33218
33218
  // package.json
33219
33219
  var package_default = {
33220
33220
  name: "@autohq/cli",
33221
- version: "0.1.681",
33221
+ version: "0.1.682",
33222
33222
  license: "SEE LICENSE IN README.md",
33223
33223
  publishConfig: {
33224
33224
  access: "public"
package/dist/index.js CHANGED
@@ -20358,7 +20358,7 @@ function normalizePersistedTaskEraLocalAutoTool(value) {
20358
20358
  } = tool.capabilities;
20359
20359
  return { ...tool, capabilities };
20360
20360
  }
20361
- var REMOTE_MCP_TRANSPORTS, LOCAL_TOOL_IMPLEMENTATIONS, BILLING_CAPABILITY_LEVELS, BillingCapabilityLevelSchema, PROJECT_MEMBER_CAPABILITY_LEVELS, ProjectMemberCapabilityLevelSchema, WAITLIST_REPORTING_CAPABILITY_LEVELS, WaitlistReportingCapabilityLevelSchema, RUNTIME_CAPABILITY_LEVELS, RuntimeCapabilityLevelSchema, CONNECTION_CAPABILITY_LEVELS, ConnectionCapabilityLevelSchema, SECRET_CAPABILITY_LEVELS, SecretCapabilityLevelSchema, WEBHOOK_CAPABILITY_LEVELS, WebhookCapabilityLevelSchema, BillingCapabilitySchema, ProjectMemberCapabilitySchema, WaitlistReportingCapabilitySchema, RuntimeCapabilitySchema, ConnectionCapabilitySchema, SecretCapabilitySchema, WebhookCapabilitySchema, LocalAutoToolCapabilitiesSchema, SecretReferenceSchema, NoToolAuthSchema, OptionalConnectionField, McpOAuthToolAuthSchema, ConnectionToolAuthSchema, ConnectionsToolAuthSchema, ConnectionBackedToolSchema, ToolAliasSchema, RemoteMcpToolSchema, LocalAutoToolSchema, LocalPingToolSchema, LocalChatToolSchema, LocalToolSchema, PersistedLocalToolSchema, GithubToolSchema, ToolSpecSchema, AgentToolConnectRequestSchema, AgentToolConnectResponseSchema, AgentToolConnectCompleteResponseSchema, InlineAgentToolSchema, AgentToolRefSchema, AgentToolsSchema;
20361
+ var REMOTE_MCP_TRANSPORTS, LOCAL_TOOL_IMPLEMENTATIONS, BILLING_CAPABILITY_LEVELS, BillingCapabilityLevelSchema, PROJECT_MEMBER_CAPABILITY_LEVELS, ProjectMemberCapabilityLevelSchema, WAITLIST_REPORTING_CAPABILITY_LEVELS, WaitlistReportingCapabilityLevelSchema, RUNTIME_CAPABILITY_LEVELS, RuntimeCapabilityLevelSchema, CONNECTION_CAPABILITY_LEVELS, ConnectionCapabilityLevelSchema, SECRET_CAPABILITY_LEVELS, SecretCapabilityLevelSchema, WEBHOOK_CAPABILITY_LEVELS, WebhookCapabilityLevelSchema, BillingCapabilitySchema, ProjectMemberCapabilitySchema, WaitlistReportingCapabilitySchema, RuntimeCapabilitySchema, ConnectionCapabilitySchema, SecretCapabilitySchema, WebhookCapabilitySchema, LocalAutoToolCapabilitiesSchema, SecretReferenceSchema, NoToolAuthSchema, OptionalConnectionField, McpOAuthToolAuthSchema, ConnectionToolAuthSchema, ConnectionsToolAuthSchema, ConnectionMcpToolNameSchema, ConnectionMcpToolAllowlistSchema, ConnectionBackedToolSchema, ToolAliasSchema, RemoteMcpToolSchema, LocalAutoToolSchema, LocalPingToolSchema, LocalChatToolSchema, LocalToolSchema, PersistedLocalToolSchema, GithubToolSchema, ToolSpecSchema, AgentToolConnectRequestSchema, AgentToolConnectResponseSchema, AgentToolConnectCompleteResponseSchema, InlineAgentToolSchema, AgentToolRefSchema, AgentToolsSchema;
20362
20362
  var init_tools = __esm({
20363
20363
  "../../packages/schemas/src/tools.ts"() {
20364
20364
  "use strict";
@@ -20453,9 +20453,24 @@ var init_tools = __esm({
20453
20453
  connections: external_exports.array(ProviderConnectionReferenceSchema).min(1),
20454
20454
  ...OptionalConnectionField
20455
20455
  });
20456
+ ConnectionMcpToolNameSchema = external_exports.string().trim().min(1, "Connection-backed MCP tool names must not be empty");
20457
+ ConnectionMcpToolAllowlistSchema = external_exports.array(ConnectionMcpToolNameSchema).min(1, "Connection-backed MCP tool allowlists must name at least one tool").superRefine((tools, context) => {
20458
+ const seen = /* @__PURE__ */ new Set();
20459
+ for (const [index, tool] of tools.entries()) {
20460
+ if (seen.has(tool)) {
20461
+ context.addIssue({
20462
+ code: external_exports.ZodIssueCode.custom,
20463
+ message: "Connection-backed MCP tool names must be unique after trimming",
20464
+ path: [index]
20465
+ });
20466
+ }
20467
+ seen.add(tool);
20468
+ }
20469
+ });
20456
20470
  ConnectionBackedToolSchema = ProviderConnectionReferenceSchema.extend({
20457
20471
  kind: external_exports.literal("connection"),
20458
20472
  description: external_exports.string().trim().min(1).optional(),
20473
+ tools: ConnectionMcpToolAllowlistSchema.optional(),
20459
20474
  ...OptionalConnectionField
20460
20475
  });
20461
20476
  ToolAliasSchema = ResourceNameSchema.refine(
@@ -105302,7 +105317,7 @@ var init_package = __esm({
105302
105317
  "package.json"() {
105303
105318
  package_default = {
105304
105319
  name: "@autohq/cli",
105305
- version: "0.1.681",
105320
+ version: "0.1.682",
105306
105321
  license: "SEE LICENSE IN README.md",
105307
105322
  publishConfig: {
105308
105323
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.681",
3
+ "version": "0.1.682",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"