@autohq/cli 0.1.554 → 0.1.556

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.
@@ -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.554",
30873
+ version: "0.1.556",
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
  });
@@ -35893,6 +35906,9 @@ var BindingLifecycleSpecSchema = external_exports.object({
35893
35906
  bound: JsonObjectSchema.optional(),
35894
35907
  updated: JsonObjectSchema.optional(),
35895
35908
  unbound: JsonObjectSchema.optional()
35909
+ }).strict().optional(),
35910
+ autoLink: external_exports.object({
35911
+ "github.pull_request": external_exports.literal("implements").optional()
35896
35912
  }).strict().optional()
35897
35913
  }).strict();
35898
35914
  var AgentBindingsSchema = external_exports.record(external_exports.string(), BindingLifecycleSpecSchema).superRefine((bindings, context) => {
@@ -35913,6 +35929,13 @@ var AgentBindingsSchema = external_exports.record(external_exports.string(), Bin
35913
35929
  message: "`agent.singleton` is excluded from `bindings` constraints; the pool slot has its own release lifecycle"
35914
35930
  });
35915
35931
  }
35932
+ if (bindings[key]?.autoLink && parsed.data !== "auto.task") {
35933
+ context.addIssue({
35934
+ code: external_exports.ZodIssueCode.custom,
35935
+ path: [key, "autoLink"],
35936
+ message: "`autoLink` is legal only on `bindings.auto.task`"
35937
+ });
35938
+ }
35916
35939
  }
35917
35940
  });
35918
35941
  var AgentSpecFieldsSchema = external_exports.object({
@@ -39130,6 +39153,38 @@ var ProjectTemplateSubscriptionSchema = external_exports.object({
39130
39153
  // ../../packages/schemas/src/templates/catalog.ts
39131
39154
  var import_yaml2 = __toESM(require_dist(), 1);
39132
39155
 
39156
+ // ../../packages/schemas/src/tasks.ts
39157
+ var TASK_STATUSES = [
39158
+ "open",
39159
+ "in_progress",
39160
+ "done",
39161
+ "dropped"
39162
+ ];
39163
+ var TaskStatusSchema = external_exports.enum(TASK_STATUSES);
39164
+ var TASK_COMPLETION_KINDS = [
39165
+ "manual",
39166
+ "implementation_merged",
39167
+ "all_subtasks_done"
39168
+ ];
39169
+ var TaskCompletionKindSchema = external_exports.enum(TASK_COMPLETION_KINDS);
39170
+ var TASK_LINK_ROLES = ["implements", "tracks", "relates"];
39171
+ var TaskLinkRoleSchema = external_exports.enum(TASK_LINK_ROLES);
39172
+ var TASK_LINK_STATUSES = ["attached", "detached"];
39173
+ var TaskLinkStatusSchema = external_exports.enum(TASK_LINK_STATUSES);
39174
+ var TASK_LINK_TARGET_TYPES = [
39175
+ "github.pull_request",
39176
+ "github.issue",
39177
+ "linear.issue",
39178
+ "slack.thread",
39179
+ "auto.session",
39180
+ "auto.task"
39181
+ ];
39182
+ var TaskLinkTargetTypeSchema = external_exports.enum(TASK_LINK_TARGET_TYPES);
39183
+ var TaskLinkTargetSchema = BindingTargetSchema.refine(
39184
+ (target) => TASK_LINK_TARGET_TYPES.includes(target.type),
39185
+ "Target type cannot be linked to a task"
39186
+ );
39187
+
39133
39188
  // ../../packages/schemas/src/temporal.ts
39134
39189
  var RUNTIME_ESCALATION_LEASE_STATES = [
39135
39190
  "fenced",
@@ -61468,10 +61523,10 @@ var PaginatedResultSchema = ResultSchema.extend({
61468
61523
  */
61469
61524
  nextCursor: CursorSchema.optional()
61470
61525
  });
61471
- var TaskStatusSchema = _enum2(["working", "input_required", "completed", "failed", "cancelled"]);
61526
+ var TaskStatusSchema2 = _enum2(["working", "input_required", "completed", "failed", "cancelled"]);
61472
61527
  var TaskSchema = object({
61473
61528
  taskId: string2(),
61474
- status: TaskStatusSchema,
61529
+ status: TaskStatusSchema2,
61475
61530
  /**
61476
61531
  * Time in milliseconds to keep task results available after completion.
61477
61532
  * 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
  });
@@ -20206,6 +20219,9 @@ var init_agents = __esm({
20206
20219
  bound: JsonObjectSchema.optional(),
20207
20220
  updated: JsonObjectSchema.optional(),
20208
20221
  unbound: JsonObjectSchema.optional()
20222
+ }).strict().optional(),
20223
+ autoLink: external_exports.object({
20224
+ "github.pull_request": external_exports.literal("implements").optional()
20209
20225
  }).strict().optional()
20210
20226
  }).strict();
20211
20227
  AgentBindingsSchema = external_exports.record(external_exports.string(), BindingLifecycleSpecSchema).superRefine((bindings, context) => {
@@ -20226,6 +20242,13 @@ var init_agents = __esm({
20226
20242
  message: "`agent.singleton` is excluded from `bindings` constraints; the pool slot has its own release lifecycle"
20227
20243
  });
20228
20244
  }
20245
+ if (bindings[key]?.autoLink && parsed.data !== "auto.task") {
20246
+ context.addIssue({
20247
+ code: external_exports.ZodIssueCode.custom,
20248
+ path: [key, "autoLink"],
20249
+ message: "`autoLink` is legal only on `bindings.auto.task`"
20250
+ });
20251
+ }
20229
20252
  }
20230
20253
  });
20231
20254
  AgentSpecFieldsSchema = external_exports.object({
@@ -79944,6 +79967,47 @@ var init_templates = __esm({
79944
79967
  }
79945
79968
  });
79946
79969
 
79970
+ // ../../packages/schemas/src/tasks.ts
79971
+ var TASK_STATUSES, TaskStatusSchema, TASK_COMPLETION_KINDS, TaskCompletionKindSchema, TASK_LINK_ROLES, TaskLinkRoleSchema, TASK_LINK_STATUSES, TaskLinkStatusSchema, TASK_LINK_TARGET_TYPES, TaskLinkTargetTypeSchema, TaskLinkTargetSchema;
79972
+ var init_tasks = __esm({
79973
+ "../../packages/schemas/src/tasks.ts"() {
79974
+ "use strict";
79975
+ init_zod();
79976
+ init_primitives();
79977
+ init_session_bindings();
79978
+ TASK_STATUSES = [
79979
+ "open",
79980
+ "in_progress",
79981
+ "done",
79982
+ "dropped"
79983
+ ];
79984
+ TaskStatusSchema = external_exports.enum(TASK_STATUSES);
79985
+ TASK_COMPLETION_KINDS = [
79986
+ "manual",
79987
+ "implementation_merged",
79988
+ "all_subtasks_done"
79989
+ ];
79990
+ TaskCompletionKindSchema = external_exports.enum(TASK_COMPLETION_KINDS);
79991
+ TASK_LINK_ROLES = ["implements", "tracks", "relates"];
79992
+ TaskLinkRoleSchema = external_exports.enum(TASK_LINK_ROLES);
79993
+ TASK_LINK_STATUSES = ["attached", "detached"];
79994
+ TaskLinkStatusSchema = external_exports.enum(TASK_LINK_STATUSES);
79995
+ TASK_LINK_TARGET_TYPES = [
79996
+ "github.pull_request",
79997
+ "github.issue",
79998
+ "linear.issue",
79999
+ "slack.thread",
80000
+ "auto.session",
80001
+ "auto.task"
80002
+ ];
80003
+ TaskLinkTargetTypeSchema = external_exports.enum(TASK_LINK_TARGET_TYPES);
80004
+ TaskLinkTargetSchema = BindingTargetSchema.refine(
80005
+ (target) => TASK_LINK_TARGET_TYPES.includes(target.type),
80006
+ "Target type cannot be linked to a task"
80007
+ );
80008
+ }
80009
+ });
80010
+
79947
80011
  // ../../packages/schemas/src/temporal.ts
79948
80012
  var RUNTIME_ESCALATION_LEASE_STATES, RuntimeEscalationLeaseStateSchema, RuntimeEscalationEvidenceSchema, SessionRuntimeEscalationWorkflowInputSchema, SessionCheckTimeoutWorkflowInputSchema, ResourceReconciliationScopeSchema;
79949
80013
  var init_temporal = __esm({
@@ -80393,6 +80457,7 @@ var init_src = __esm({
80393
80457
  init_spend_cap_runtime();
80394
80458
  init_agents();
80395
80459
  init_templates();
80460
+ init_tasks();
80396
80461
  init_temporal();
80397
80462
  init_tools();
80398
80463
  init_tool_errors();
@@ -83160,7 +83225,7 @@ var init_package = __esm({
83160
83225
  "package.json"() {
83161
83226
  package_default = {
83162
83227
  name: "@autohq/cli",
83163
- version: "0.1.554",
83228
+ version: "0.1.556",
83164
83229
  license: "SEE LICENSE IN README.md",
83165
83230
  publishConfig: {
83166
83231
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.554",
3
+ "version": "0.1.556",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"