@autohq/cli 0.1.157 → 0.1.158
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 +35 -1
- package/dist/index.js +44 -1
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -22701,6 +22701,40 @@ var SessionDispatchCommandRecordSchema = external_exports.discriminatedUnion("ki
|
|
|
22701
22701
|
})
|
|
22702
22702
|
]);
|
|
22703
22703
|
|
|
22704
|
+
// ../../packages/schemas/src/setup.ts
|
|
22705
|
+
var SetupPullRequestFilePathSchema = external_exports.string().trim().min(1).max(255).refine((path2) => !path2.startsWith("/") && !path2.includes(".."), {
|
|
22706
|
+
message: "file path must be relative and must not contain .."
|
|
22707
|
+
});
|
|
22708
|
+
var SetupPullRequestFileSchema = external_exports.object({
|
|
22709
|
+
path: SetupPullRequestFilePathSchema,
|
|
22710
|
+
content: external_exports.string().min(1).max(256e3)
|
|
22711
|
+
});
|
|
22712
|
+
var SetupOnboardingPullRequestCreateRequestSchema = external_exports.object({
|
|
22713
|
+
githubConnection: external_exports.string().trim().min(1).optional(),
|
|
22714
|
+
slackConnection: external_exports.string().trim().min(1).optional(),
|
|
22715
|
+
repo: GithubSyncRepositoryFullNameSchema,
|
|
22716
|
+
baseBranch: GithubSyncProductionBranchSchema.optional(),
|
|
22717
|
+
branchName: GithubSyncProductionBranchSchema.default("auto/setup-onboarding"),
|
|
22718
|
+
title: external_exports.string().trim().min(1).max(200).default("Add Auto onboarding agent"),
|
|
22719
|
+
body: external_exports.string().trim().max(1e4).optional(),
|
|
22720
|
+
files: external_exports.array(SetupPullRequestFileSchema).min(1).max(5).refine(
|
|
22721
|
+
(files) => files.some((file2) => file2.path === ".auto/agents/onboarding.yaml"),
|
|
22722
|
+
{
|
|
22723
|
+
message: "files must include .auto/agents/onboarding.yaml"
|
|
22724
|
+
}
|
|
22725
|
+
)
|
|
22726
|
+
});
|
|
22727
|
+
var SetupOnboardingPullRequestSchema = external_exports.object({
|
|
22728
|
+
number: external_exports.number().int().positive(),
|
|
22729
|
+
url: external_exports.string().url().optional(),
|
|
22730
|
+
branchName: GithubSyncProductionBranchSchema,
|
|
22731
|
+
baseBranch: GithubSyncProductionBranchSchema,
|
|
22732
|
+
headSha: external_exports.string().trim().min(1)
|
|
22733
|
+
});
|
|
22734
|
+
var SetupOnboardingPullRequestCreateResponseSchema = external_exports.object({
|
|
22735
|
+
pullRequest: SetupOnboardingPullRequestSchema
|
|
22736
|
+
});
|
|
22737
|
+
|
|
22704
22738
|
// ../../packages/schemas/src/runtimes.ts
|
|
22705
22739
|
var RuntimeRecordSchema = external_exports.object({
|
|
22706
22740
|
id: RuntimeIdSchema2,
|
|
@@ -26361,7 +26395,7 @@ Object.assign(lookup, {
|
|
|
26361
26395
|
// package.json
|
|
26362
26396
|
var package_default = {
|
|
26363
26397
|
name: "@autohq/cli",
|
|
26364
|
-
version: "0.1.
|
|
26398
|
+
version: "0.1.158",
|
|
26365
26399
|
license: "SEE LICENSE IN README.md",
|
|
26366
26400
|
publishConfig: {
|
|
26367
26401
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -19491,6 +19491,48 @@ var init_session_commands = __esm({
|
|
|
19491
19491
|
}
|
|
19492
19492
|
});
|
|
19493
19493
|
|
|
19494
|
+
// ../../packages/schemas/src/setup.ts
|
|
19495
|
+
var SetupPullRequestFilePathSchema, SetupPullRequestFileSchema, SetupOnboardingPullRequestCreateRequestSchema, SetupOnboardingPullRequestSchema, SetupOnboardingPullRequestCreateResponseSchema;
|
|
19496
|
+
var init_setup = __esm({
|
|
19497
|
+
"../../packages/schemas/src/setup.ts"() {
|
|
19498
|
+
"use strict";
|
|
19499
|
+
init_zod();
|
|
19500
|
+
init_github_sync();
|
|
19501
|
+
SetupPullRequestFilePathSchema = external_exports.string().trim().min(1).max(255).refine((path2) => !path2.startsWith("/") && !path2.includes(".."), {
|
|
19502
|
+
message: "file path must be relative and must not contain .."
|
|
19503
|
+
});
|
|
19504
|
+
SetupPullRequestFileSchema = external_exports.object({
|
|
19505
|
+
path: SetupPullRequestFilePathSchema,
|
|
19506
|
+
content: external_exports.string().min(1).max(256e3)
|
|
19507
|
+
});
|
|
19508
|
+
SetupOnboardingPullRequestCreateRequestSchema = external_exports.object({
|
|
19509
|
+
githubConnection: external_exports.string().trim().min(1).optional(),
|
|
19510
|
+
slackConnection: external_exports.string().trim().min(1).optional(),
|
|
19511
|
+
repo: GithubSyncRepositoryFullNameSchema,
|
|
19512
|
+
baseBranch: GithubSyncProductionBranchSchema.optional(),
|
|
19513
|
+
branchName: GithubSyncProductionBranchSchema.default("auto/setup-onboarding"),
|
|
19514
|
+
title: external_exports.string().trim().min(1).max(200).default("Add Auto onboarding agent"),
|
|
19515
|
+
body: external_exports.string().trim().max(1e4).optional(),
|
|
19516
|
+
files: external_exports.array(SetupPullRequestFileSchema).min(1).max(5).refine(
|
|
19517
|
+
(files) => files.some((file2) => file2.path === ".auto/agents/onboarding.yaml"),
|
|
19518
|
+
{
|
|
19519
|
+
message: "files must include .auto/agents/onboarding.yaml"
|
|
19520
|
+
}
|
|
19521
|
+
)
|
|
19522
|
+
});
|
|
19523
|
+
SetupOnboardingPullRequestSchema = external_exports.object({
|
|
19524
|
+
number: external_exports.number().int().positive(),
|
|
19525
|
+
url: external_exports.string().url().optional(),
|
|
19526
|
+
branchName: GithubSyncProductionBranchSchema,
|
|
19527
|
+
baseBranch: GithubSyncProductionBranchSchema,
|
|
19528
|
+
headSha: external_exports.string().trim().min(1)
|
|
19529
|
+
});
|
|
19530
|
+
SetupOnboardingPullRequestCreateResponseSchema = external_exports.object({
|
|
19531
|
+
pullRequest: SetupOnboardingPullRequestSchema
|
|
19532
|
+
});
|
|
19533
|
+
}
|
|
19534
|
+
});
|
|
19535
|
+
|
|
19494
19536
|
// ../../packages/schemas/src/runtimes.ts
|
|
19495
19537
|
var RuntimeRecordSchema, SessionCommandDispatchWorkflowInputSchema, SessionCommandDispatchSignalPayloadSchema, RealtimeRunCursorSchema;
|
|
19496
19538
|
var init_runtimes = __esm({
|
|
@@ -19556,6 +19598,7 @@ var init_src = __esm({
|
|
|
19556
19598
|
init_session_introspection();
|
|
19557
19599
|
init_secrets();
|
|
19558
19600
|
init_session_commands();
|
|
19601
|
+
init_setup();
|
|
19559
19602
|
init_runtimes();
|
|
19560
19603
|
init_sessions();
|
|
19561
19604
|
init_agents();
|
|
@@ -21374,7 +21417,7 @@ var init_package = __esm({
|
|
|
21374
21417
|
"package.json"() {
|
|
21375
21418
|
package_default = {
|
|
21376
21419
|
name: "@autohq/cli",
|
|
21377
|
-
version: "0.1.
|
|
21420
|
+
version: "0.1.158",
|
|
21378
21421
|
license: "SEE LICENSE IN README.md",
|
|
21379
21422
|
publishConfig: {
|
|
21380
21423
|
access: "public"
|