@autohq/cli 0.1.554 → 0.1.555
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 +52 -7
- package/dist/index.js +61 -6
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -30870,7 +30870,7 @@ Object.assign(lookup, {
|
|
|
30870
30870
|
// package.json
|
|
30871
30871
|
var package_default = {
|
|
30872
30872
|
name: "@autohq/cli",
|
|
30873
|
-
version: "0.1.
|
|
30873
|
+
version: "0.1.555",
|
|
30874
30874
|
license: "SEE LICENSE IN README.md",
|
|
30875
30875
|
publishConfig: {
|
|
30876
30876
|
access: "public"
|
|
@@ -31818,6 +31818,8 @@ var AuthScopeSchema = external_exports.enum([
|
|
|
31818
31818
|
"provider_grants:use",
|
|
31819
31819
|
"members:read",
|
|
31820
31820
|
"project_members:read",
|
|
31821
|
+
"tasks:read",
|
|
31822
|
+
"tasks:write",
|
|
31821
31823
|
"billing:read",
|
|
31822
31824
|
"billing:write",
|
|
31823
31825
|
"secrets:read",
|
|
@@ -34765,7 +34767,8 @@ var BINDING_TARGET_TYPES = [
|
|
|
34765
34767
|
"linear.issue",
|
|
34766
34768
|
"webhook.key",
|
|
34767
34769
|
"auto.connection.authorization_attempt",
|
|
34768
|
-
"auto.session"
|
|
34770
|
+
"auto.session",
|
|
34771
|
+
"auto.task"
|
|
34769
34772
|
];
|
|
34770
34773
|
var TRIGGER_BINDING_TARGET_TYPES = [
|
|
34771
34774
|
"github.pull_request",
|
|
@@ -34774,7 +34777,8 @@ var TRIGGER_BINDING_TARGET_TYPES = [
|
|
|
34774
34777
|
"agent.singleton",
|
|
34775
34778
|
"linear.issue",
|
|
34776
34779
|
"webhook.key",
|
|
34777
|
-
"auto.session"
|
|
34780
|
+
"auto.session",
|
|
34781
|
+
"auto.task"
|
|
34778
34782
|
];
|
|
34779
34783
|
var OWNER_RELEASABLE_HELD_BINDING_TARGET_TYPES = [
|
|
34780
34784
|
"auto.connection.authorization_attempt"
|
|
@@ -34799,7 +34803,8 @@ var SESSION_BINDING_RELEASED_BY = [
|
|
|
34799
34803
|
"complete",
|
|
34800
34804
|
"trigger_release",
|
|
34801
34805
|
"operator",
|
|
34802
|
-
"takeover"
|
|
34806
|
+
"takeover",
|
|
34807
|
+
"task_terminal"
|
|
34803
34808
|
];
|
|
34804
34809
|
var BINDING_TRANSITION_CAUSES = [
|
|
34805
34810
|
"manual_bind",
|
|
@@ -34816,6 +34821,7 @@ var BINDING_TRANSITION_CAUSES = [
|
|
|
34816
34821
|
"complete",
|
|
34817
34822
|
"takeover",
|
|
34818
34823
|
"rollover",
|
|
34824
|
+
"task_terminal",
|
|
34819
34825
|
"system"
|
|
34820
34826
|
];
|
|
34821
34827
|
var BindingTargetTypeSchema = external_exports.enum(BINDING_TARGET_TYPES);
|
|
@@ -35087,6 +35093,8 @@ var PROJECT_MEMBER_CAPABILITY_LEVELS = ["none", "read"];
|
|
|
35087
35093
|
var ProjectMemberCapabilityLevelSchema = external_exports.enum(
|
|
35088
35094
|
PROJECT_MEMBER_CAPABILITY_LEVELS
|
|
35089
35095
|
);
|
|
35096
|
+
var TASK_CAPABILITY_LEVELS = ["none", "read", "write"];
|
|
35097
|
+
var TaskCapabilityLevelSchema = external_exports.enum(TASK_CAPABILITY_LEVELS);
|
|
35090
35098
|
var CONNECTION_CAPABILITY_LEVELS = ["none", "read", "write"];
|
|
35091
35099
|
var ConnectionCapabilityLevelSchema = external_exports.enum(
|
|
35092
35100
|
CONNECTION_CAPABILITY_LEVELS
|
|
@@ -35124,6 +35132,10 @@ var ProjectMemberCapabilitySchema = attenuatedCapabilitySchema({
|
|
|
35124
35132
|
levelSchema: ProjectMemberCapabilityLevelSchema,
|
|
35125
35133
|
levels: PROJECT_MEMBER_CAPABILITY_LEVELS
|
|
35126
35134
|
});
|
|
35135
|
+
var TaskCapabilitySchema = attenuatedCapabilitySchema({
|
|
35136
|
+
levelSchema: TaskCapabilityLevelSchema,
|
|
35137
|
+
levels: TASK_CAPABILITY_LEVELS
|
|
35138
|
+
});
|
|
35127
35139
|
var ConnectionCapabilitySchema = attenuatedCapabilitySchema({
|
|
35128
35140
|
levelSchema: ConnectionCapabilityLevelSchema,
|
|
35129
35141
|
levels: CONNECTION_CAPABILITY_LEVELS
|
|
@@ -35139,10 +35151,11 @@ var WebhookCapabilitySchema = attenuatedCapabilitySchema({
|
|
|
35139
35151
|
var LocalAutoToolCapabilitiesSchema = external_exports.object({
|
|
35140
35152
|
billing: BillingCapabilitySchema.default("none"),
|
|
35141
35153
|
projectMembers: ProjectMemberCapabilitySchema.default("none"),
|
|
35154
|
+
tasks: TaskCapabilitySchema.default("none"),
|
|
35142
35155
|
connections: ConnectionCapabilitySchema.optional(),
|
|
35143
35156
|
secrets: SecretCapabilitySchema.optional(),
|
|
35144
35157
|
webhooks: WebhookCapabilitySchema.optional()
|
|
35145
|
-
}).strict().default({ billing: "none", projectMembers: "none" });
|
|
35158
|
+
}).strict().default({ billing: "none", projectMembers: "none", tasks: "none" });
|
|
35146
35159
|
var SecretReferenceSchema = external_exports.object({
|
|
35147
35160
|
$secret: ResourceNameSchema
|
|
35148
35161
|
});
|
|
@@ -39130,6 +39143,38 @@ var ProjectTemplateSubscriptionSchema = external_exports.object({
|
|
|
39130
39143
|
// ../../packages/schemas/src/templates/catalog.ts
|
|
39131
39144
|
var import_yaml2 = __toESM(require_dist(), 1);
|
|
39132
39145
|
|
|
39146
|
+
// ../../packages/schemas/src/tasks.ts
|
|
39147
|
+
var TASK_STATUSES = [
|
|
39148
|
+
"open",
|
|
39149
|
+
"in_progress",
|
|
39150
|
+
"done",
|
|
39151
|
+
"dropped"
|
|
39152
|
+
];
|
|
39153
|
+
var TaskStatusSchema = external_exports.enum(TASK_STATUSES);
|
|
39154
|
+
var TASK_COMPLETION_KINDS = [
|
|
39155
|
+
"manual",
|
|
39156
|
+
"implementation_merged",
|
|
39157
|
+
"all_subtasks_done"
|
|
39158
|
+
];
|
|
39159
|
+
var TaskCompletionKindSchema = external_exports.enum(TASK_COMPLETION_KINDS);
|
|
39160
|
+
var TASK_LINK_ROLES = ["implements", "tracks", "relates"];
|
|
39161
|
+
var TaskLinkRoleSchema = external_exports.enum(TASK_LINK_ROLES);
|
|
39162
|
+
var TASK_LINK_STATUSES = ["attached", "detached"];
|
|
39163
|
+
var TaskLinkStatusSchema = external_exports.enum(TASK_LINK_STATUSES);
|
|
39164
|
+
var TASK_LINK_TARGET_TYPES = [
|
|
39165
|
+
"github.pull_request",
|
|
39166
|
+
"github.issue",
|
|
39167
|
+
"linear.issue",
|
|
39168
|
+
"slack.thread",
|
|
39169
|
+
"auto.session",
|
|
39170
|
+
"auto.task"
|
|
39171
|
+
];
|
|
39172
|
+
var TaskLinkTargetTypeSchema = external_exports.enum(TASK_LINK_TARGET_TYPES);
|
|
39173
|
+
var TaskLinkTargetSchema = BindingTargetSchema.refine(
|
|
39174
|
+
(target) => TASK_LINK_TARGET_TYPES.includes(target.type),
|
|
39175
|
+
"Target type cannot be linked to a task"
|
|
39176
|
+
);
|
|
39177
|
+
|
|
39133
39178
|
// ../../packages/schemas/src/temporal.ts
|
|
39134
39179
|
var RUNTIME_ESCALATION_LEASE_STATES = [
|
|
39135
39180
|
"fenced",
|
|
@@ -61468,10 +61513,10 @@ var PaginatedResultSchema = ResultSchema.extend({
|
|
|
61468
61513
|
*/
|
|
61469
61514
|
nextCursor: CursorSchema.optional()
|
|
61470
61515
|
});
|
|
61471
|
-
var
|
|
61516
|
+
var TaskStatusSchema2 = _enum2(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
61472
61517
|
var TaskSchema = object({
|
|
61473
61518
|
taskId: string2(),
|
|
61474
|
-
status:
|
|
61519
|
+
status: TaskStatusSchema2,
|
|
61475
61520
|
/**
|
|
61476
61521
|
* Time in milliseconds to keep task results available after completion.
|
|
61477
61522
|
* If null, the task has unlimited lifetime until manually cleaned up.
|
package/dist/index.js
CHANGED
|
@@ -15484,6 +15484,8 @@ var init_auth = __esm({
|
|
|
15484
15484
|
"provider_grants:use",
|
|
15485
15485
|
"members:read",
|
|
15486
15486
|
"project_members:read",
|
|
15487
|
+
"tasks:read",
|
|
15488
|
+
"tasks:write",
|
|
15487
15489
|
"billing:read",
|
|
15488
15490
|
"billing:write",
|
|
15489
15491
|
"secrets:read",
|
|
@@ -18661,7 +18663,8 @@ var init_session_bindings = __esm({
|
|
|
18661
18663
|
"linear.issue",
|
|
18662
18664
|
"webhook.key",
|
|
18663
18665
|
"auto.connection.authorization_attempt",
|
|
18664
|
-
"auto.session"
|
|
18666
|
+
"auto.session",
|
|
18667
|
+
"auto.task"
|
|
18665
18668
|
];
|
|
18666
18669
|
TRIGGER_BINDING_TARGET_TYPES = [
|
|
18667
18670
|
"github.pull_request",
|
|
@@ -18670,7 +18673,8 @@ var init_session_bindings = __esm({
|
|
|
18670
18673
|
"agent.singleton",
|
|
18671
18674
|
"linear.issue",
|
|
18672
18675
|
"webhook.key",
|
|
18673
|
-
"auto.session"
|
|
18676
|
+
"auto.session",
|
|
18677
|
+
"auto.task"
|
|
18674
18678
|
];
|
|
18675
18679
|
OWNER_RELEASABLE_HELD_BINDING_TARGET_TYPES = [
|
|
18676
18680
|
"auto.connection.authorization_attempt"
|
|
@@ -18695,7 +18699,8 @@ var init_session_bindings = __esm({
|
|
|
18695
18699
|
"complete",
|
|
18696
18700
|
"trigger_release",
|
|
18697
18701
|
"operator",
|
|
18698
|
-
"takeover"
|
|
18702
|
+
"takeover",
|
|
18703
|
+
"task_terminal"
|
|
18699
18704
|
];
|
|
18700
18705
|
BINDING_TRANSITION_CAUSES = [
|
|
18701
18706
|
"manual_bind",
|
|
@@ -18712,6 +18717,7 @@ var init_session_bindings = __esm({
|
|
|
18712
18717
|
"complete",
|
|
18713
18718
|
"takeover",
|
|
18714
18719
|
"rollover",
|
|
18720
|
+
"task_terminal",
|
|
18715
18721
|
"system"
|
|
18716
18722
|
];
|
|
18717
18723
|
BindingTargetTypeSchema = external_exports.enum(BINDING_TARGET_TYPES);
|
|
@@ -19060,7 +19066,7 @@ function remoteMcpToolSchema(input) {
|
|
|
19060
19066
|
]).default({ kind: "none" })
|
|
19061
19067
|
});
|
|
19062
19068
|
}
|
|
19063
|
-
var REMOTE_MCP_TRANSPORTS, LOCAL_TOOL_IMPLEMENTATIONS, BILLING_CAPABILITY_LEVELS, BillingCapabilityLevelSchema, PROJECT_MEMBER_CAPABILITY_LEVELS, ProjectMemberCapabilityLevelSchema, CONNECTION_CAPABILITY_LEVELS, ConnectionCapabilityLevelSchema, SECRET_CAPABILITY_LEVELS, SecretCapabilityLevelSchema, WEBHOOK_CAPABILITY_LEVELS, WebhookCapabilityLevelSchema, BillingCapabilitySchema, ProjectMemberCapabilitySchema, ConnectionCapabilitySchema, SecretCapabilitySchema, WebhookCapabilitySchema, LocalAutoToolCapabilitiesSchema, SecretReferenceSchema, NoToolAuthSchema, OptionalConnectionField, McpOAuthToolAuthSchema, ConnectionToolAuthSchema, ConnectionsToolAuthSchema, ConnectionBackedToolSchema, ToolAliasSchema, RemoteMcpToolSchema, LocalAutoToolSchema, LocalPingToolSchema, LocalChatToolSchema, LocalToolSchema, GithubToolSchema, ToolSpecSchema, AgentToolConnectRequestSchema, AgentToolConnectResponseSchema, AgentToolConnectCompleteResponseSchema, InlineAgentToolSchema, AgentToolRefSchema, AgentToolsSchema;
|
|
19069
|
+
var REMOTE_MCP_TRANSPORTS, LOCAL_TOOL_IMPLEMENTATIONS, BILLING_CAPABILITY_LEVELS, BillingCapabilityLevelSchema, PROJECT_MEMBER_CAPABILITY_LEVELS, ProjectMemberCapabilityLevelSchema, TASK_CAPABILITY_LEVELS, TaskCapabilityLevelSchema, CONNECTION_CAPABILITY_LEVELS, ConnectionCapabilityLevelSchema, SECRET_CAPABILITY_LEVELS, SecretCapabilityLevelSchema, WEBHOOK_CAPABILITY_LEVELS, WebhookCapabilityLevelSchema, BillingCapabilitySchema, ProjectMemberCapabilitySchema, TaskCapabilitySchema, ConnectionCapabilitySchema, SecretCapabilitySchema, WebhookCapabilitySchema, LocalAutoToolCapabilitiesSchema, SecretReferenceSchema, NoToolAuthSchema, OptionalConnectionField, McpOAuthToolAuthSchema, ConnectionToolAuthSchema, ConnectionsToolAuthSchema, ConnectionBackedToolSchema, ToolAliasSchema, RemoteMcpToolSchema, LocalAutoToolSchema, LocalPingToolSchema, LocalChatToolSchema, LocalToolSchema, GithubToolSchema, ToolSpecSchema, AgentToolConnectRequestSchema, AgentToolConnectResponseSchema, AgentToolConnectCompleteResponseSchema, InlineAgentToolSchema, AgentToolRefSchema, AgentToolsSchema;
|
|
19064
19070
|
var init_tools = __esm({
|
|
19065
19071
|
"../../packages/schemas/src/tools.ts"() {
|
|
19066
19072
|
"use strict";
|
|
@@ -19078,6 +19084,8 @@ var init_tools = __esm({
|
|
|
19078
19084
|
ProjectMemberCapabilityLevelSchema = external_exports.enum(
|
|
19079
19085
|
PROJECT_MEMBER_CAPABILITY_LEVELS
|
|
19080
19086
|
);
|
|
19087
|
+
TASK_CAPABILITY_LEVELS = ["none", "read", "write"];
|
|
19088
|
+
TaskCapabilityLevelSchema = external_exports.enum(TASK_CAPABILITY_LEVELS);
|
|
19081
19089
|
CONNECTION_CAPABILITY_LEVELS = ["none", "read", "write"];
|
|
19082
19090
|
ConnectionCapabilityLevelSchema = external_exports.enum(
|
|
19083
19091
|
CONNECTION_CAPABILITY_LEVELS
|
|
@@ -19094,6 +19102,10 @@ var init_tools = __esm({
|
|
|
19094
19102
|
levelSchema: ProjectMemberCapabilityLevelSchema,
|
|
19095
19103
|
levels: PROJECT_MEMBER_CAPABILITY_LEVELS
|
|
19096
19104
|
});
|
|
19105
|
+
TaskCapabilitySchema = attenuatedCapabilitySchema({
|
|
19106
|
+
levelSchema: TaskCapabilityLevelSchema,
|
|
19107
|
+
levels: TASK_CAPABILITY_LEVELS
|
|
19108
|
+
});
|
|
19097
19109
|
ConnectionCapabilitySchema = attenuatedCapabilitySchema({
|
|
19098
19110
|
levelSchema: ConnectionCapabilityLevelSchema,
|
|
19099
19111
|
levels: CONNECTION_CAPABILITY_LEVELS
|
|
@@ -19109,10 +19121,11 @@ var init_tools = __esm({
|
|
|
19109
19121
|
LocalAutoToolCapabilitiesSchema = external_exports.object({
|
|
19110
19122
|
billing: BillingCapabilitySchema.default("none"),
|
|
19111
19123
|
projectMembers: ProjectMemberCapabilitySchema.default("none"),
|
|
19124
|
+
tasks: TaskCapabilitySchema.default("none"),
|
|
19112
19125
|
connections: ConnectionCapabilitySchema.optional(),
|
|
19113
19126
|
secrets: SecretCapabilitySchema.optional(),
|
|
19114
19127
|
webhooks: WebhookCapabilitySchema.optional()
|
|
19115
|
-
}).strict().default({ billing: "none", projectMembers: "none" });
|
|
19128
|
+
}).strict().default({ billing: "none", projectMembers: "none", tasks: "none" });
|
|
19116
19129
|
SecretReferenceSchema = external_exports.object({
|
|
19117
19130
|
$secret: ResourceNameSchema
|
|
19118
19131
|
});
|
|
@@ -79944,6 +79957,47 @@ var init_templates = __esm({
|
|
|
79944
79957
|
}
|
|
79945
79958
|
});
|
|
79946
79959
|
|
|
79960
|
+
// ../../packages/schemas/src/tasks.ts
|
|
79961
|
+
var TASK_STATUSES, TaskStatusSchema, TASK_COMPLETION_KINDS, TaskCompletionKindSchema, TASK_LINK_ROLES, TaskLinkRoleSchema, TASK_LINK_STATUSES, TaskLinkStatusSchema, TASK_LINK_TARGET_TYPES, TaskLinkTargetTypeSchema, TaskLinkTargetSchema;
|
|
79962
|
+
var init_tasks = __esm({
|
|
79963
|
+
"../../packages/schemas/src/tasks.ts"() {
|
|
79964
|
+
"use strict";
|
|
79965
|
+
init_zod();
|
|
79966
|
+
init_primitives();
|
|
79967
|
+
init_session_bindings();
|
|
79968
|
+
TASK_STATUSES = [
|
|
79969
|
+
"open",
|
|
79970
|
+
"in_progress",
|
|
79971
|
+
"done",
|
|
79972
|
+
"dropped"
|
|
79973
|
+
];
|
|
79974
|
+
TaskStatusSchema = external_exports.enum(TASK_STATUSES);
|
|
79975
|
+
TASK_COMPLETION_KINDS = [
|
|
79976
|
+
"manual",
|
|
79977
|
+
"implementation_merged",
|
|
79978
|
+
"all_subtasks_done"
|
|
79979
|
+
];
|
|
79980
|
+
TaskCompletionKindSchema = external_exports.enum(TASK_COMPLETION_KINDS);
|
|
79981
|
+
TASK_LINK_ROLES = ["implements", "tracks", "relates"];
|
|
79982
|
+
TaskLinkRoleSchema = external_exports.enum(TASK_LINK_ROLES);
|
|
79983
|
+
TASK_LINK_STATUSES = ["attached", "detached"];
|
|
79984
|
+
TaskLinkStatusSchema = external_exports.enum(TASK_LINK_STATUSES);
|
|
79985
|
+
TASK_LINK_TARGET_TYPES = [
|
|
79986
|
+
"github.pull_request",
|
|
79987
|
+
"github.issue",
|
|
79988
|
+
"linear.issue",
|
|
79989
|
+
"slack.thread",
|
|
79990
|
+
"auto.session",
|
|
79991
|
+
"auto.task"
|
|
79992
|
+
];
|
|
79993
|
+
TaskLinkTargetTypeSchema = external_exports.enum(TASK_LINK_TARGET_TYPES);
|
|
79994
|
+
TaskLinkTargetSchema = BindingTargetSchema.refine(
|
|
79995
|
+
(target) => TASK_LINK_TARGET_TYPES.includes(target.type),
|
|
79996
|
+
"Target type cannot be linked to a task"
|
|
79997
|
+
);
|
|
79998
|
+
}
|
|
79999
|
+
});
|
|
80000
|
+
|
|
79947
80001
|
// ../../packages/schemas/src/temporal.ts
|
|
79948
80002
|
var RUNTIME_ESCALATION_LEASE_STATES, RuntimeEscalationLeaseStateSchema, RuntimeEscalationEvidenceSchema, SessionRuntimeEscalationWorkflowInputSchema, SessionCheckTimeoutWorkflowInputSchema, ResourceReconciliationScopeSchema;
|
|
79949
80003
|
var init_temporal = __esm({
|
|
@@ -80393,6 +80447,7 @@ var init_src = __esm({
|
|
|
80393
80447
|
init_spend_cap_runtime();
|
|
80394
80448
|
init_agents();
|
|
80395
80449
|
init_templates();
|
|
80450
|
+
init_tasks();
|
|
80396
80451
|
init_temporal();
|
|
80397
80452
|
init_tools();
|
|
80398
80453
|
init_tool_errors();
|
|
@@ -83160,7 +83215,7 @@ var init_package = __esm({
|
|
|
83160
83215
|
"package.json"() {
|
|
83161
83216
|
package_default = {
|
|
83162
83217
|
name: "@autohq/cli",
|
|
83163
|
-
version: "0.1.
|
|
83218
|
+
version: "0.1.555",
|
|
83164
83219
|
license: "SEE LICENSE IN README.md",
|
|
83165
83220
|
publishConfig: {
|
|
83166
83221
|
access: "public"
|