@autohq/cli 0.1.680 → 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.
- package/dist/agent-bridge.js +1 -1
- package/dist/index.js +87 -2
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -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.
|
|
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
|
@@ -19918,6 +19918,7 @@ var init_session_bindings = __esm({
|
|
|
19918
19918
|
"chat.thread",
|
|
19919
19919
|
"linear.issue",
|
|
19920
19920
|
"webhook.key",
|
|
19921
|
+
"provider.entity",
|
|
19921
19922
|
"auto.connection.authorization_attempt",
|
|
19922
19923
|
"auto.session"
|
|
19923
19924
|
];
|
|
@@ -19930,6 +19931,7 @@ var init_session_bindings = __esm({
|
|
|
19930
19931
|
"agent.singleton",
|
|
19931
19932
|
"linear.issue",
|
|
19932
19933
|
"webhook.key",
|
|
19934
|
+
"provider.entity",
|
|
19933
19935
|
"auto.connection.authorization_attempt",
|
|
19934
19936
|
"auto.session",
|
|
19935
19937
|
"auto.task"
|
|
@@ -20356,7 +20358,7 @@ function normalizePersistedTaskEraLocalAutoTool(value) {
|
|
|
20356
20358
|
} = tool.capabilities;
|
|
20357
20359
|
return { ...tool, capabilities };
|
|
20358
20360
|
}
|
|
20359
|
-
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;
|
|
20360
20362
|
var init_tools = __esm({
|
|
20361
20363
|
"../../packages/schemas/src/tools.ts"() {
|
|
20362
20364
|
"use strict";
|
|
@@ -20451,9 +20453,24 @@ var init_tools = __esm({
|
|
|
20451
20453
|
connections: external_exports.array(ProviderConnectionReferenceSchema).min(1),
|
|
20452
20454
|
...OptionalConnectionField
|
|
20453
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
|
+
});
|
|
20454
20470
|
ConnectionBackedToolSchema = ProviderConnectionReferenceSchema.extend({
|
|
20455
20471
|
kind: external_exports.literal("connection"),
|
|
20456
20472
|
description: external_exports.string().trim().min(1).optional(),
|
|
20473
|
+
tools: ConnectionMcpToolAllowlistSchema.optional(),
|
|
20457
20474
|
...OptionalConnectionField
|
|
20458
20475
|
});
|
|
20459
20476
|
ToolAliasSchema = ResourceNameSchema.refine(
|
|
@@ -23132,6 +23149,73 @@ var init_provider_resource_ownership = __esm({
|
|
|
23132
23149
|
}
|
|
23133
23150
|
});
|
|
23134
23151
|
|
|
23152
|
+
// ../../packages/schemas/src/provider-triggers.ts
|
|
23153
|
+
var PROVIDER_TRIGGER_LIFECYCLES, ProviderTriggerLifecycleSchema, ProviderTriggerEntitySchema, ProviderTriggerDeliveryIdentitySchema, NormalizedProviderTriggerEventSchema, ProviderTriggerEventRecordMetadataSchema, ProviderTriggerTestFireRequestSchema, ProviderTriggerTestFireResponseSchema;
|
|
23154
|
+
var init_provider_triggers = __esm({
|
|
23155
|
+
"../../packages/schemas/src/provider-triggers.ts"() {
|
|
23156
|
+
"use strict";
|
|
23157
|
+
init_zod();
|
|
23158
|
+
init_primitives();
|
|
23159
|
+
PROVIDER_TRIGGER_LIFECYCLES = [
|
|
23160
|
+
"active",
|
|
23161
|
+
"terminal",
|
|
23162
|
+
"recovery"
|
|
23163
|
+
];
|
|
23164
|
+
ProviderTriggerLifecycleSchema = external_exports.enum(
|
|
23165
|
+
PROVIDER_TRIGGER_LIFECYCLES
|
|
23166
|
+
);
|
|
23167
|
+
ProviderTriggerEntitySchema = external_exports.object({
|
|
23168
|
+
kind: external_exports.string().trim().min(1).max(128),
|
|
23169
|
+
key: external_exports.string().trim().min(1).max(2048)
|
|
23170
|
+
}).strict();
|
|
23171
|
+
ProviderTriggerDeliveryIdentitySchema = external_exports.object({
|
|
23172
|
+
/** Provider delivery attempt; changes when the provider replays an event. */
|
|
23173
|
+
deliveryId: external_exports.string().trim().min(1).max(1024),
|
|
23174
|
+
/** Stable provider event identity; remains fixed across retries/replays. */
|
|
23175
|
+
eventId: external_exports.string().trim().min(1).max(1024)
|
|
23176
|
+
}).strict();
|
|
23177
|
+
NormalizedProviderTriggerEventSchema = external_exports.object({
|
|
23178
|
+
event: external_exports.string().trim().min(1).max(256),
|
|
23179
|
+
externalInstallationId: external_exports.string().trim().min(1).max(1024),
|
|
23180
|
+
resource: external_exports.object({
|
|
23181
|
+
kind: external_exports.string().trim().min(1).max(128),
|
|
23182
|
+
externalId: external_exports.string().trim().min(1).max(2048)
|
|
23183
|
+
}).strict().nullable(),
|
|
23184
|
+
entity: ProviderTriggerEntitySchema.nullable(),
|
|
23185
|
+
lifecycle: ProviderTriggerLifecycleSchema,
|
|
23186
|
+
identity: ProviderTriggerDeliveryIdentitySchema,
|
|
23187
|
+
occurredAt: external_exports.string().datetime(),
|
|
23188
|
+
payload: JsonObjectSchema
|
|
23189
|
+
}).strict().superRefine((event, context) => {
|
|
23190
|
+
if (event.lifecycle !== "active" && !event.entity) {
|
|
23191
|
+
context.addIssue({
|
|
23192
|
+
code: "custom",
|
|
23193
|
+
path: ["entity"],
|
|
23194
|
+
message: `${event.lifecycle} provider trigger events require an entity`
|
|
23195
|
+
});
|
|
23196
|
+
}
|
|
23197
|
+
});
|
|
23198
|
+
ProviderTriggerEventRecordMetadataSchema = external_exports.object({
|
|
23199
|
+
contractVersion: external_exports.literal(1),
|
|
23200
|
+
adapterVersion: external_exports.string().trim().min(1).max(128),
|
|
23201
|
+
provider: external_exports.string().trim().min(1).max(64),
|
|
23202
|
+
deliveryId: external_exports.string().trim().min(1).max(1024),
|
|
23203
|
+
eventId: external_exports.string().trim().min(1).max(1024),
|
|
23204
|
+
lifecycle: ProviderTriggerLifecycleSchema,
|
|
23205
|
+
test: external_exports.boolean()
|
|
23206
|
+
}).strict();
|
|
23207
|
+
ProviderTriggerTestFireRequestSchema = external_exports.object({
|
|
23208
|
+
event: external_exports.string().trim().min(1).max(256)
|
|
23209
|
+
}).strict();
|
|
23210
|
+
ProviderTriggerTestFireResponseSchema = external_exports.object({
|
|
23211
|
+
eventRecordId: external_exports.string().trim().min(1),
|
|
23212
|
+
created: external_exports.boolean(),
|
|
23213
|
+
dispatch: external_exports.enum(["started", "deferred", "skipped_duplicate"]),
|
|
23214
|
+
workflowId: external_exports.string().trim().min(1).nullable()
|
|
23215
|
+
}).strict();
|
|
23216
|
+
}
|
|
23217
|
+
});
|
|
23218
|
+
|
|
23135
23219
|
// ../../packages/schemas/src/project-automation-pause.ts
|
|
23136
23220
|
var PROJECT_AUTOMATION_PAUSE_PRESET_SECONDS, DEFAULT_PROJECT_AUTOMATION_PAUSE_AFTER_SECONDS, ProjectAutomationPausePolicySchema;
|
|
23137
23221
|
var init_project_automation_pause = __esm({
|
|
@@ -102341,6 +102425,7 @@ var init_src = __esm({
|
|
|
102341
102425
|
init_platform_usage_feed();
|
|
102342
102426
|
init_provider_grants();
|
|
102343
102427
|
init_provider_resource_ownership();
|
|
102428
|
+
init_provider_triggers();
|
|
102344
102429
|
init_project_config();
|
|
102345
102430
|
init_project_automation_pause();
|
|
102346
102431
|
init_project_service_accounts();
|
|
@@ -105232,7 +105317,7 @@ var init_package = __esm({
|
|
|
105232
105317
|
"package.json"() {
|
|
105233
105318
|
package_default = {
|
|
105234
105319
|
name: "@autohq/cli",
|
|
105235
|
-
version: "0.1.
|
|
105320
|
+
version: "0.1.682",
|
|
105236
105321
|
license: "SEE LICENSE IN README.md",
|
|
105237
105322
|
publishConfig: {
|
|
105238
105323
|
access: "public"
|