@autohq/cli 0.1.520 → 0.1.521

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.
@@ -30866,7 +30866,7 @@ Object.assign(lookup, {
30866
30866
  // package.json
30867
30867
  var package_default = {
30868
30868
  name: "@autohq/cli",
30869
- version: "0.1.520",
30869
+ version: "0.1.521",
30870
30870
  license: "SEE LICENSE IN README.md",
30871
30871
  publishConfig: {
30872
30872
  access: "public"
@@ -33463,6 +33463,29 @@ function parseApprovalRequest(method, requestId, params) {
33463
33463
  }
33464
33464
  }
33465
33465
 
33466
+ // ../../packages/schemas/src/community-invite.ts
33467
+ var AUTO_COMMUNITY_SLACK_CHANNEL_NAME = "#ext-auto-community";
33468
+ var CommunitySlackInviteUrlSchema = external_exports.string().trim().url().refine(isCommunitySlackInviteUrl, {
33469
+ message: "Community Slack invites must use a canonical HTTPS join.slack.com shared-invite URL"
33470
+ });
33471
+ var CommunityInviteOutputSchema = external_exports.object({
33472
+ success: external_exports.boolean(),
33473
+ status: external_exports.enum(["available", "configuration_error"]),
33474
+ channelName: external_exports.literal(AUTO_COMMUNITY_SLACK_CHANNEL_NAME),
33475
+ inviteUrl: CommunitySlackInviteUrlSchema.nullable(),
33476
+ configurationIssue: external_exports.enum(["missing", "invalid"]).nullable()
33477
+ });
33478
+ function isCommunitySlackInviteUrl(value2) {
33479
+ try {
33480
+ const url3 = new URL(value2);
33481
+ return url3.protocol === "https:" && url3.hostname === "join.slack.com" && url3.username === "" && url3.password === "" && url3.search === "" && url3.hash === "" && /^\/t\/[A-Za-z0-9_-]+\/shared_invite\/[A-Za-z0-9_-]+\/?$/.test(
33482
+ url3.pathname
33483
+ );
33484
+ } catch {
33485
+ return false;
33486
+ }
33487
+ }
33488
+
33466
33489
  // ../../packages/schemas/src/model-selection.ts
33467
33490
  var MODEL_API_TOKEN_PROVIDERS = [
33468
33491
  "anthropic",
package/dist/index.js CHANGED
@@ -17279,6 +17279,36 @@ var init_conversation_reducer = __esm({
17279
17279
  }
17280
17280
  });
17281
17281
 
17282
+ // ../../packages/schemas/src/community-invite.ts
17283
+ function isCommunitySlackInviteUrl(value) {
17284
+ try {
17285
+ const url2 = new URL(value);
17286
+ return url2.protocol === "https:" && url2.hostname === "join.slack.com" && url2.username === "" && url2.password === "" && url2.search === "" && url2.hash === "" && /^\/t\/[A-Za-z0-9_-]+\/shared_invite\/[A-Za-z0-9_-]+\/?$/.test(
17287
+ url2.pathname
17288
+ );
17289
+ } catch {
17290
+ return false;
17291
+ }
17292
+ }
17293
+ var AUTO_COMMUNITY_SLACK_CHANNEL_NAME, CommunitySlackInviteUrlSchema, CommunityInviteOutputSchema;
17294
+ var init_community_invite = __esm({
17295
+ "../../packages/schemas/src/community-invite.ts"() {
17296
+ "use strict";
17297
+ init_zod();
17298
+ AUTO_COMMUNITY_SLACK_CHANNEL_NAME = "#ext-auto-community";
17299
+ CommunitySlackInviteUrlSchema = external_exports.string().trim().url().refine(isCommunitySlackInviteUrl, {
17300
+ message: "Community Slack invites must use a canonical HTTPS join.slack.com shared-invite URL"
17301
+ });
17302
+ CommunityInviteOutputSchema = external_exports.object({
17303
+ success: external_exports.boolean(),
17304
+ status: external_exports.enum(["available", "configuration_error"]),
17305
+ channelName: external_exports.literal(AUTO_COMMUNITY_SLACK_CHANNEL_NAME),
17306
+ inviteUrl: CommunitySlackInviteUrlSchema.nullable(),
17307
+ configurationIssue: external_exports.enum(["missing", "invalid"]).nullable()
17308
+ });
17309
+ }
17310
+ });
17311
+
17282
17312
  // ../../packages/schemas/src/model-selection.ts
17283
17313
  function modelRulesForHarness(harness) {
17284
17314
  return HARNESS_MODEL_RULES[harness];
@@ -65315,6 +65345,7 @@ var init_src = __esm({
65315
65345
  init_codex();
65316
65346
  init_conversation();
65317
65347
  init_conversation_reducer();
65348
+ init_community_invite();
65318
65349
  init_connections();
65319
65350
  init_default_agent();
65320
65351
  init_dormant_capabilities();
@@ -68132,7 +68163,7 @@ var init_package = __esm({
68132
68163
  "package.json"() {
68133
68164
  package_default = {
68134
68165
  name: "@autohq/cli",
68135
- version: "0.1.520",
68166
+ version: "0.1.521",
68136
68167
  license: "SEE LICENSE IN README.md",
68137
68168
  publishConfig: {
68138
68169
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.520",
3
+ "version": "0.1.521",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"