@autohq/cli 0.1.398 → 0.1.399

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.
@@ -30819,7 +30819,7 @@ Object.assign(lookup, {
30819
30819
  // package.json
30820
30820
  var package_default = {
30821
30821
  name: "@autohq/cli",
30822
- version: "0.1.398",
30822
+ version: "0.1.399",
30823
30823
  license: "SEE LICENSE IN README.md",
30824
30824
  publishConfig: {
30825
30825
  access: "public"
@@ -31832,6 +31832,12 @@ var ChatAttachmentSchema = external_exports.object({
31832
31832
  name: external_exports.string().trim().min(1).optional(),
31833
31833
  mimeType: external_exports.string().trim().min(1).optional(),
31834
31834
  size: external_exports.number().int().nonnegative().optional(),
31835
+ /**
31836
+ * Provider-internal file id (Slack file `id`). Stable across re-reads; used as
31837
+ * the canonical reference for `chat.attachment_download` when present, since
31838
+ * `url_private` can rotate on Slack-initiated file revisions.
31839
+ */
31840
+ fileId: external_exports.string().trim().min(1).optional(),
31835
31841
  /**
31836
31842
  * Provider file URL. May require provider credentials to fetch (Slack
31837
31843
  * `url_private` needs the installation bot token as a bearer header), so
@@ -31849,6 +31855,71 @@ var ChatHistoryMessageSchema = external_exports.object({
31849
31855
  var ChatHistoryToolOutputSchema = external_exports.object({
31850
31856
  messages: external_exports.array(ChatHistoryMessageSchema)
31851
31857
  });
31858
+ var ChatAttachmentDownloadAllowedMimeTypes = [
31859
+ // Images
31860
+ "image/png",
31861
+ "image/jpeg",
31862
+ "image/gif",
31863
+ "image/webp",
31864
+ // Documents
31865
+ "application/pdf",
31866
+ "text/markdown",
31867
+ "text/plain",
31868
+ // Archives
31869
+ "application/zip",
31870
+ "application/gzip",
31871
+ "application/x-gzip",
31872
+ "application/x-tar",
31873
+ "application/x-compressed-tar",
31874
+ // Video
31875
+ "video/mp4",
31876
+ "video/quicktime",
31877
+ "video/webm"
31878
+ ];
31879
+ var ChatAttachmentDownloadAllowedMimeTypeSchema = external_exports.enum(
31880
+ ChatAttachmentDownloadAllowedMimeTypes
31881
+ );
31882
+ var ChatAttachmentDownloadMaxSizeBytesByType = {
31883
+ // Images and small documents: 20 MB.
31884
+ "image/png": 20 * 1024 * 1024,
31885
+ "image/jpeg": 20 * 1024 * 1024,
31886
+ "image/gif": 20 * 1024 * 1024,
31887
+ "image/webp": 20 * 1024 * 1024,
31888
+ "application/pdf": 20 * 1024 * 1024,
31889
+ "text/markdown": 20 * 1024 * 1024,
31890
+ "text/plain": 20 * 1024 * 1024,
31891
+ // Archives: 100 MB.
31892
+ "application/zip": 100 * 1024 * 1024,
31893
+ "application/gzip": 100 * 1024 * 1024,
31894
+ "application/x-gzip": 100 * 1024 * 1024,
31895
+ "application/x-tar": 100 * 1024 * 1024,
31896
+ "application/x-compressed-tar": 100 * 1024 * 1024,
31897
+ // Video: 200 MB.
31898
+ "video/mp4": 200 * 1024 * 1024,
31899
+ "video/quicktime": 200 * 1024 * 1024,
31900
+ "video/webm": 200 * 1024 * 1024
31901
+ };
31902
+ var ChatAttachmentDownloadMaxSizeBytes = 20 * 1024 * 1024;
31903
+ var ChatAttachmentDownloadToolInputSchema = external_exports.object({
31904
+ target: ChatAddressSchema,
31905
+ /** A message/file ref from `chat.history` or a trigger delivery's Attachment line. */
31906
+ attachment: external_exports.object({
31907
+ /** Provider file id (Slack `file.id`), the stable canonical reference. */
31908
+ fileId: external_exports.string().trim().min(1),
31909
+ mimeType: external_exports.string().trim().min(1),
31910
+ size: external_exports.number().int().nonnegative().optional(),
31911
+ name: external_exports.string().trim().min(1).optional()
31912
+ })
31913
+ });
31914
+ var ChatAttachmentDownloadToolOutputSchema = external_exports.object({
31915
+ /** Short-lived, signed URL the session curls from its sandbox to fetch the bytes. */
31916
+ downloadUrl: external_exports.string().url(),
31917
+ /** When the signed download URL expires (ISO 8601). */
31918
+ expiresAt: external_exports.string().datetime(),
31919
+ mimeType: external_exports.string().trim().min(1),
31920
+ size: external_exports.number().int().nonnegative(),
31921
+ filename: external_exports.string().trim().min(1)
31922
+ });
31852
31923
  var ChatIssueParticipantSchema = external_exports.object({
31853
31924
  id: external_exports.string().trim().min(1),
31854
31925
  name: external_exports.string().trim().min(1).optional(),
@@ -33761,6 +33832,8 @@ var BindingTargetSchema = external_exports.object({
33761
33832
  type: BindingTargetTypeSchema,
33762
33833
  externalId: external_exports.string().min(1)
33763
33834
  });
33835
+ var BINDING_AUTO_BIND_VALUES = ["onAttributedEvent"];
33836
+ var BindingAutoBindSchema = external_exports.enum(BINDING_AUTO_BIND_VALUES);
33764
33837
 
33765
33838
  // ../../packages/schemas/src/tools.ts
33766
33839
  var REMOTE_MCP_TRANSPORTS = ["streamable_http"];
@@ -34422,7 +34495,8 @@ var AgentIdentitySchema = external_exports.object({
34422
34495
  });
34423
34496
  var BINDING_LIFECYCLE_VALUES = ["manual", "held"];
34424
34497
  var BindingLifecycleSpecSchema = external_exports.object({
34425
- lifecycle: external_exports.enum(BINDING_LIFECYCLE_VALUES).default("manual")
34498
+ lifecycle: external_exports.enum(BINDING_LIFECYCLE_VALUES).default("manual"),
34499
+ bind: BindingAutoBindSchema.optional()
34426
34500
  }).strict();
34427
34501
  var AgentBindingsSchema = external_exports.record(external_exports.string(), BindingLifecycleSpecSchema).superRefine((bindings, context) => {
34428
34502
  for (const key of Object.keys(bindings)) {
@@ -35651,6 +35725,10 @@ var OrganizationBillingSettingsSchema = external_exports.object({
35651
35725
  // amount. Both must be set for auto-top-up to arm.
35652
35726
  autoTopUpThresholdUsd: NonNegativeUsdSchema.nullable(),
35653
35727
  autoTopUpAmountUsd: PositiveUsdSchema.nullable(),
35728
+ // System-managed pause marker: set by the circuit breaker when the org's
35729
+ // balance drops below its reserve, cleared by the credit-event resume hook.
35730
+ // Never set by the settings PATCH (the request schema is strict without it).
35731
+ billingPausedAt: external_exports.string().datetime().nullable(),
35654
35732
  // Stripe linkage, set by the payment flow (never by the settings PATCH):
35655
35733
  // the org's Stripe customer, and the saved card auto-top-up charges
35656
35734
  // off-session. A non-null payment method is what "card on file" means.
@@ -36445,9 +36523,12 @@ var RunSummarySchema = external_exports.object({
36445
36523
 
36446
36524
  // ../../packages/schemas/src/session-parks.ts
36447
36525
  var BILLING_SESSION_PARK_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
36526
+ var PROVIDER_OUTAGE_SESSION_PARK_TTL_MS = 6 * 60 * 60 * 1e3;
36527
+ var PROVIDER_OUTAGE_SESSION_PARK_REPROBE_MS = 5 * 6e4;
36448
36528
  var SESSION_PARK_REASON_KINDS = [
36449
36529
  "billing_insufficient_credits",
36450
- "billing_spending_limit_exceeded"
36530
+ "billing_spending_limit_exceeded",
36531
+ "provider_outage"
36451
36532
  ];
36452
36533
  var SESSION_PARK_RESUME_CONDITIONS = [
36453
36534
  "organization_credits_added",
package/dist/index.js CHANGED
@@ -15538,7 +15538,7 @@ var init_auth = __esm({
15538
15538
  });
15539
15539
 
15540
15540
  // ../../packages/schemas/src/chat.ts
15541
- var ChatMessageKindSchema, ChatMessageRefSchema, ChatToolBindingSchema, ChatMessageEventPayloadSchema, ChatReactionEventPayloadSchema, ChatMessageContentSchema, ChatThreadSelectorSchema, SlackChatDestinationSchema, LinearChatDestinationSchema, TelegramChatDestinationSchema, ChatDestinationSchema, SlackChatRecipientSchema, LinearChatRecipientSchema, TelegramChatRecipientSchema, ChatRecipientSchema, SlackChatAddressSchema, LinearChatAddressSchema, TelegramChatAddressSchema, ChatAddressSchema, ChatToolDefaultsSchema, ChatSendToolInputSchema, ChatSendToolOutputSchema, ChatHistoryToolInputSchema, ChatAttachmentSchema, ChatHistoryMessageSchema, ChatHistoryToolOutputSchema, ChatIssueParticipantSchema, ChatIssueNamedRefSchema, ChatIssueRefSchema, ChatIssueSchema, ChatIssueGetToolInputSchema, ChatIssueGetToolOutputSchema, ChatIssueUpdateToolInputSchema, ChatIssueUpdateToolOutputSchema, ChatReplyToolInputSchema, ChatReplyToolOutputSchema, ChatReactionToolInputSchema, ChatReactionToolOutputSchema, ChatSearchResultTypeSchema, ChatSearchToolInputSchema, ChatSearchWorkspaceSchema, SlackChatSearchResultSchema, ChatSearchResultSchema, ChatSearchToolOutputSchema;
15541
+ var ChatMessageKindSchema, ChatMessageRefSchema, ChatToolBindingSchema, ChatMessageEventPayloadSchema, ChatReactionEventPayloadSchema, ChatMessageContentSchema, ChatThreadSelectorSchema, SlackChatDestinationSchema, LinearChatDestinationSchema, TelegramChatDestinationSchema, ChatDestinationSchema, SlackChatRecipientSchema, LinearChatRecipientSchema, TelegramChatRecipientSchema, ChatRecipientSchema, SlackChatAddressSchema, LinearChatAddressSchema, TelegramChatAddressSchema, ChatAddressSchema, ChatToolDefaultsSchema, ChatSendToolInputSchema, ChatSendToolOutputSchema, ChatHistoryToolInputSchema, ChatAttachmentSchema, ChatHistoryMessageSchema, ChatHistoryToolOutputSchema, ChatAttachmentDownloadAllowedMimeTypes, ChatAttachmentDownloadAllowedMimeTypeSchema, ChatAttachmentDownloadMaxSizeBytesByType, ChatAttachmentDownloadMaxSizeBytes, ChatAttachmentDownloadToolInputSchema, ChatAttachmentDownloadToolOutputSchema, ChatIssueParticipantSchema, ChatIssueNamedRefSchema, ChatIssueRefSchema, ChatIssueSchema, ChatIssueGetToolInputSchema, ChatIssueGetToolOutputSchema, ChatIssueUpdateToolInputSchema, ChatIssueUpdateToolOutputSchema, ChatReplyToolInputSchema, ChatReplyToolOutputSchema, ChatReactionToolInputSchema, ChatReactionToolOutputSchema, ChatSearchResultTypeSchema, ChatSearchToolInputSchema, ChatSearchWorkspaceSchema, SlackChatSearchResultSchema, ChatSearchResultSchema, ChatSearchToolOutputSchema;
15542
15542
  var init_chat = __esm({
15543
15543
  "../../packages/schemas/src/chat.ts"() {
15544
15544
  "use strict";
@@ -15748,6 +15748,12 @@ var init_chat = __esm({
15748
15748
  name: external_exports.string().trim().min(1).optional(),
15749
15749
  mimeType: external_exports.string().trim().min(1).optional(),
15750
15750
  size: external_exports.number().int().nonnegative().optional(),
15751
+ /**
15752
+ * Provider-internal file id (Slack file `id`). Stable across re-reads; used as
15753
+ * the canonical reference for `chat.attachment_download` when present, since
15754
+ * `url_private` can rotate on Slack-initiated file revisions.
15755
+ */
15756
+ fileId: external_exports.string().trim().min(1).optional(),
15751
15757
  /**
15752
15758
  * Provider file URL. May require provider credentials to fetch (Slack
15753
15759
  * `url_private` needs the installation bot token as a bearer header), so
@@ -15765,6 +15771,71 @@ var init_chat = __esm({
15765
15771
  ChatHistoryToolOutputSchema = external_exports.object({
15766
15772
  messages: external_exports.array(ChatHistoryMessageSchema)
15767
15773
  });
15774
+ ChatAttachmentDownloadAllowedMimeTypes = [
15775
+ // Images
15776
+ "image/png",
15777
+ "image/jpeg",
15778
+ "image/gif",
15779
+ "image/webp",
15780
+ // Documents
15781
+ "application/pdf",
15782
+ "text/markdown",
15783
+ "text/plain",
15784
+ // Archives
15785
+ "application/zip",
15786
+ "application/gzip",
15787
+ "application/x-gzip",
15788
+ "application/x-tar",
15789
+ "application/x-compressed-tar",
15790
+ // Video
15791
+ "video/mp4",
15792
+ "video/quicktime",
15793
+ "video/webm"
15794
+ ];
15795
+ ChatAttachmentDownloadAllowedMimeTypeSchema = external_exports.enum(
15796
+ ChatAttachmentDownloadAllowedMimeTypes
15797
+ );
15798
+ ChatAttachmentDownloadMaxSizeBytesByType = {
15799
+ // Images and small documents: 20 MB.
15800
+ "image/png": 20 * 1024 * 1024,
15801
+ "image/jpeg": 20 * 1024 * 1024,
15802
+ "image/gif": 20 * 1024 * 1024,
15803
+ "image/webp": 20 * 1024 * 1024,
15804
+ "application/pdf": 20 * 1024 * 1024,
15805
+ "text/markdown": 20 * 1024 * 1024,
15806
+ "text/plain": 20 * 1024 * 1024,
15807
+ // Archives: 100 MB.
15808
+ "application/zip": 100 * 1024 * 1024,
15809
+ "application/gzip": 100 * 1024 * 1024,
15810
+ "application/x-gzip": 100 * 1024 * 1024,
15811
+ "application/x-tar": 100 * 1024 * 1024,
15812
+ "application/x-compressed-tar": 100 * 1024 * 1024,
15813
+ // Video: 200 MB.
15814
+ "video/mp4": 200 * 1024 * 1024,
15815
+ "video/quicktime": 200 * 1024 * 1024,
15816
+ "video/webm": 200 * 1024 * 1024
15817
+ };
15818
+ ChatAttachmentDownloadMaxSizeBytes = 20 * 1024 * 1024;
15819
+ ChatAttachmentDownloadToolInputSchema = external_exports.object({
15820
+ target: ChatAddressSchema,
15821
+ /** A message/file ref from `chat.history` or a trigger delivery's Attachment line. */
15822
+ attachment: external_exports.object({
15823
+ /** Provider file id (Slack `file.id`), the stable canonical reference. */
15824
+ fileId: external_exports.string().trim().min(1),
15825
+ mimeType: external_exports.string().trim().min(1),
15826
+ size: external_exports.number().int().nonnegative().optional(),
15827
+ name: external_exports.string().trim().min(1).optional()
15828
+ })
15829
+ });
15830
+ ChatAttachmentDownloadToolOutputSchema = external_exports.object({
15831
+ /** Short-lived, signed URL the session curls from its sandbox to fetch the bytes. */
15832
+ downloadUrl: external_exports.string().url(),
15833
+ /** When the signed download URL expires (ISO 8601). */
15834
+ expiresAt: external_exports.string().datetime(),
15835
+ mimeType: external_exports.string().trim().min(1),
15836
+ size: external_exports.number().int().nonnegative(),
15837
+ filename: external_exports.string().trim().min(1)
15838
+ });
15768
15839
  ChatIssueParticipantSchema = external_exports.object({
15769
15840
  id: external_exports.string().trim().min(1),
15770
15841
  name: external_exports.string().trim().min(1).optional(),
@@ -17824,7 +17895,7 @@ var init_secrets = __esm({
17824
17895
  });
17825
17896
 
17826
17897
  // ../../packages/schemas/src/session-bindings.ts
17827
- var BINDING_TARGET_TYPES, TRIGGER_BINDING_TARGET_TYPES, SESSION_BINDING_SOURCES, SESSION_BINDING_STATUSES, SESSION_BINDING_RELEASE_POLICIES, SESSION_BINDING_RELEASED_BY, BindingTargetTypeSchema, TriggerBindingTargetTypeSchema, SessionBindingSourceSchema, SessionBindingStatusSchema, SessionBindingReleasePolicySchema, SessionBindingReleasedBySchema, BindingTargetSchema;
17898
+ var BINDING_TARGET_TYPES, TRIGGER_BINDING_TARGET_TYPES, SESSION_BINDING_SOURCES, SESSION_BINDING_STATUSES, SESSION_BINDING_RELEASE_POLICIES, SESSION_BINDING_RELEASED_BY, BindingTargetTypeSchema, TriggerBindingTargetTypeSchema, SessionBindingSourceSchema, SessionBindingStatusSchema, SessionBindingReleasePolicySchema, SessionBindingReleasedBySchema, BindingTargetSchema, BINDING_AUTO_BIND_VALUES, BindingAutoBindSchema;
17828
17899
  var init_session_bindings = __esm({
17829
17900
  "../../packages/schemas/src/session-bindings.ts"() {
17830
17901
  "use strict";
@@ -17873,6 +17944,8 @@ var init_session_bindings = __esm({
17873
17944
  type: BindingTargetTypeSchema,
17874
17945
  externalId: external_exports.string().min(1)
17875
17946
  });
17947
+ BINDING_AUTO_BIND_VALUES = ["onAttributedEvent"];
17948
+ BindingAutoBindSchema = external_exports.enum(BINDING_AUTO_BIND_VALUES);
17876
17949
  }
17877
17950
  });
17878
17951
 
@@ -18847,7 +18920,8 @@ var init_agents = __esm({
18847
18920
  });
18848
18921
  BINDING_LIFECYCLE_VALUES = ["manual", "held"];
18849
18922
  BindingLifecycleSpecSchema = external_exports.object({
18850
- lifecycle: external_exports.enum(BINDING_LIFECYCLE_VALUES).default("manual")
18923
+ lifecycle: external_exports.enum(BINDING_LIFECYCLE_VALUES).default("manual"),
18924
+ bind: BindingAutoBindSchema.optional()
18851
18925
  }).strict();
18852
18926
  AgentBindingsSchema = external_exports.record(external_exports.string(), BindingLifecycleSpecSchema).superRefine((bindings, context) => {
18853
18927
  for (const key of Object.keys(bindings)) {
@@ -19964,6 +20038,10 @@ var init_billing = __esm({
19964
20038
  // amount. Both must be set for auto-top-up to arm.
19965
20039
  autoTopUpThresholdUsd: NonNegativeUsdSchema.nullable(),
19966
20040
  autoTopUpAmountUsd: PositiveUsdSchema.nullable(),
20041
+ // System-managed pause marker: set by the circuit breaker when the org's
20042
+ // balance drops below its reserve, cleared by the credit-event resume hook.
20043
+ // Never set by the settings PATCH (the request schema is strict without it).
20044
+ billingPausedAt: external_exports.string().datetime().nullable(),
19967
20045
  // Stripe linkage, set by the payment flow (never by the settings PATCH):
19968
20046
  // the org's Stripe customer, and the saved card auto-top-up charges
19969
20047
  // off-session. A non-null payment method is what "card on file" means.
@@ -20844,16 +20922,19 @@ var init_session_introspection = __esm({
20844
20922
  });
20845
20923
 
20846
20924
  // ../../packages/schemas/src/session-parks.ts
20847
- var BILLING_SESSION_PARK_TTL_MS, SESSION_PARK_REASON_KINDS, SESSION_PARK_RESUME_CONDITIONS, SESSION_PARK_RESOLUTIONS, SessionParkReasonKindSchema, SessionParkResumeConditionSchema, SessionParkResolutionSchema, SessionParkRecordSchema;
20925
+ var BILLING_SESSION_PARK_TTL_MS, PROVIDER_OUTAGE_SESSION_PARK_TTL_MS, PROVIDER_OUTAGE_SESSION_PARK_REPROBE_MS, SESSION_PARK_REASON_KINDS, SESSION_PARK_RESUME_CONDITIONS, SESSION_PARK_RESOLUTIONS, SessionParkReasonKindSchema, SessionParkResumeConditionSchema, SessionParkResolutionSchema, SessionParkRecordSchema;
20848
20926
  var init_session_parks = __esm({
20849
20927
  "../../packages/schemas/src/session-parks.ts"() {
20850
20928
  "use strict";
20851
20929
  init_zod();
20852
20930
  init_ids();
20853
20931
  BILLING_SESSION_PARK_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
20932
+ PROVIDER_OUTAGE_SESSION_PARK_TTL_MS = 6 * 60 * 60 * 1e3;
20933
+ PROVIDER_OUTAGE_SESSION_PARK_REPROBE_MS = 5 * 6e4;
20854
20934
  SESSION_PARK_REASON_KINDS = [
20855
20935
  "billing_insufficient_credits",
20856
- "billing_spending_limit_exceeded"
20936
+ "billing_spending_limit_exceeded",
20937
+ "provider_outage"
20857
20938
  ];
20858
20939
  SESSION_PARK_RESUME_CONDITIONS = [
20859
20940
  "organization_credits_added",
@@ -34961,7 +35042,7 @@ var init_package = __esm({
34961
35042
  "package.json"() {
34962
35043
  package_default = {
34963
35044
  name: "@autohq/cli",
34964
- version: "0.1.398",
35045
+ version: "0.1.399",
34965
35046
  license: "SEE LICENSE IN README.md",
34966
35047
  publishConfig: {
34967
35048
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.398",
3
+ "version": "0.1.399",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"