@autohq/cli 0.1.424 → 0.1.425
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/README.md +3 -3
- package/dist/agent-bridge.js +26 -3
- package/dist/index.js +46 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ note that both packages install an `auto` binary.)
|
|
|
28
28
|
The fastest path is agent-driven onboarding. Paste this into a coding agent
|
|
29
29
|
running in your repository (Claude Code, Cursor, Codex):
|
|
30
30
|
|
|
31
|
-
>
|
|
31
|
+
> Run `auto onboard --agent` and follow the instructions it prints.
|
|
32
32
|
|
|
33
33
|
The agent walks you through sign-in, studies your repo, and installs a
|
|
34
34
|
first workflow tailored to how your team works.
|
|
@@ -42,7 +42,7 @@ auto start <agent> # launch a session; --attach to follow it
|
|
|
42
42
|
auto tui # interactive dashboard
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Run `auto --help` for the full command tree.
|
|
46
46
|
|
|
47
47
|
## Accounts
|
|
48
48
|
|
|
@@ -68,7 +68,7 @@ Copyright Fractal Works. All rights reserved.
|
|
|
68
68
|
|
|
69
69
|
This package is distributed in compiled form for use with the auto
|
|
70
70
|
platform, and its use is governed by the auto Terms of Service. You may
|
|
71
|
-
install and
|
|
71
|
+
install and run this package to access the auto service. No license is
|
|
72
72
|
granted to copy, modify, reverse engineer, redistribute, or create
|
|
73
73
|
derivative works of this software, in whole or in part, except as required
|
|
74
74
|
by applicable law.
|
package/dist/agent-bridge.js
CHANGED
|
@@ -30825,7 +30825,7 @@ Object.assign(lookup, {
|
|
|
30825
30825
|
// package.json
|
|
30826
30826
|
var package_default = {
|
|
30827
30827
|
name: "@autohq/cli",
|
|
30828
|
-
version: "0.1.
|
|
30828
|
+
version: "0.1.425",
|
|
30829
30829
|
license: "SEE LICENSE IN README.md",
|
|
30830
30830
|
publishConfig: {
|
|
30831
30831
|
access: "public"
|
|
@@ -30990,7 +30990,7 @@ async function runAgentBridgeSocket(options) {
|
|
|
30990
30990
|
});
|
|
30991
30991
|
socket.on(
|
|
30992
30992
|
RUNTIME_BRIDGE_BOOTSTRAP_EVENT,
|
|
30993
|
-
|
|
30993
|
+
createRuntimeBridgeBootstrapListener({
|
|
30994
30994
|
token: options.token,
|
|
30995
30995
|
onBootstrap: options.onBootstrap,
|
|
30996
30996
|
createHandler: (bootstrap) => options.createHandler({
|
|
@@ -31116,7 +31116,7 @@ async function runAgentBridgeSocket(options) {
|
|
|
31116
31116
|
function isTerminalAuthError(error51) {
|
|
31117
31117
|
return TERMINAL_AUTH_ERROR_MESSAGES.has(error51.message);
|
|
31118
31118
|
}
|
|
31119
|
-
function
|
|
31119
|
+
function createRuntimeBridgeBootstrapListener(input) {
|
|
31120
31120
|
return async (rawEnvelope, ack) => {
|
|
31121
31121
|
const bootstrapStartedAt = Date.now();
|
|
31122
31122
|
input.writeOutput?.(
|
|
@@ -36189,6 +36189,29 @@ var McpJsonRpcMessageSchema = external_exports.object({
|
|
|
36189
36189
|
}).passthrough();
|
|
36190
36190
|
var McpPostBodySchema = external_exports.union([McpJsonRpcMessageSchema, external_exports.array(McpJsonRpcMessageSchema)]).transform((body) => Array.isArray(body) ? body : [body]);
|
|
36191
36191
|
|
|
36192
|
+
// ../../packages/schemas/src/onboarding-runs.ts
|
|
36193
|
+
var ONBOARDING_RUN_SLUG_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
36194
|
+
var OnboardingRunTeamIdSchema = external_exports.string().trim().min(1).max(64).regex(
|
|
36195
|
+
ONBOARDING_RUN_SLUG_PATTERN,
|
|
36196
|
+
"team id must be a lowercase slug (letters, digits, '_' or '-')"
|
|
36197
|
+
);
|
|
36198
|
+
var OnboardingRunPhaseSchema = external_exports.string().trim().min(1).max(64).regex(
|
|
36199
|
+
ONBOARDING_RUN_SLUG_PATTERN,
|
|
36200
|
+
"phase must be a lowercase slug (letters, digits, '_' or '-')"
|
|
36201
|
+
);
|
|
36202
|
+
var OnboardingRunEvidenceSchema = JsonObjectSchema;
|
|
36203
|
+
var ProjectOnboardingRunSnapshotSchema = external_exports.object({
|
|
36204
|
+
id: external_exports.string().min(1),
|
|
36205
|
+
teamId: OnboardingRunTeamIdSchema,
|
|
36206
|
+
phase: OnboardingRunPhaseSchema,
|
|
36207
|
+
evidence: OnboardingRunEvidenceSchema,
|
|
36208
|
+
/** Monotonic per-run write counter; also the phase_changed dedup clock. */
|
|
36209
|
+
revision: external_exports.number().int().positive(),
|
|
36210
|
+
completedAt: external_exports.string().datetime().nullable(),
|
|
36211
|
+
createdAt: external_exports.string().datetime(),
|
|
36212
|
+
updatedAt: external_exports.string().datetime()
|
|
36213
|
+
});
|
|
36214
|
+
|
|
36192
36215
|
// ../../packages/schemas/src/organization-settings.ts
|
|
36193
36216
|
var OrganizationIdentityPolicySchema = external_exports.object({
|
|
36194
36217
|
allowAssertedForGit: external_exports.boolean()
|
package/dist/index.js
CHANGED
|
@@ -20373,6 +20373,37 @@ var init_mcp = __esm({
|
|
|
20373
20373
|
}
|
|
20374
20374
|
});
|
|
20375
20375
|
|
|
20376
|
+
// ../../packages/schemas/src/onboarding-runs.ts
|
|
20377
|
+
var ONBOARDING_RUN_SLUG_PATTERN, OnboardingRunTeamIdSchema, OnboardingRunPhaseSchema, OnboardingRunEvidenceSchema, ProjectOnboardingRunSnapshotSchema;
|
|
20378
|
+
var init_onboarding_runs = __esm({
|
|
20379
|
+
"../../packages/schemas/src/onboarding-runs.ts"() {
|
|
20380
|
+
"use strict";
|
|
20381
|
+
init_zod();
|
|
20382
|
+
init_primitives();
|
|
20383
|
+
ONBOARDING_RUN_SLUG_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
20384
|
+
OnboardingRunTeamIdSchema = external_exports.string().trim().min(1).max(64).regex(
|
|
20385
|
+
ONBOARDING_RUN_SLUG_PATTERN,
|
|
20386
|
+
"team id must be a lowercase slug (letters, digits, '_' or '-')"
|
|
20387
|
+
);
|
|
20388
|
+
OnboardingRunPhaseSchema = external_exports.string().trim().min(1).max(64).regex(
|
|
20389
|
+
ONBOARDING_RUN_SLUG_PATTERN,
|
|
20390
|
+
"phase must be a lowercase slug (letters, digits, '_' or '-')"
|
|
20391
|
+
);
|
|
20392
|
+
OnboardingRunEvidenceSchema = JsonObjectSchema;
|
|
20393
|
+
ProjectOnboardingRunSnapshotSchema = external_exports.object({
|
|
20394
|
+
id: external_exports.string().min(1),
|
|
20395
|
+
teamId: OnboardingRunTeamIdSchema,
|
|
20396
|
+
phase: OnboardingRunPhaseSchema,
|
|
20397
|
+
evidence: OnboardingRunEvidenceSchema,
|
|
20398
|
+
/** Monotonic per-run write counter; also the phase_changed dedup clock. */
|
|
20399
|
+
revision: external_exports.number().int().positive(),
|
|
20400
|
+
completedAt: external_exports.string().datetime().nullable(),
|
|
20401
|
+
createdAt: external_exports.string().datetime(),
|
|
20402
|
+
updatedAt: external_exports.string().datetime()
|
|
20403
|
+
});
|
|
20404
|
+
}
|
|
20405
|
+
});
|
|
20406
|
+
|
|
20376
20407
|
// ../../packages/schemas/src/organization-settings.ts
|
|
20377
20408
|
var OrganizationIdentityPolicySchema, UpdateOrganizationIdentityPolicyRequestSchema, UpdateOrganizationSettingsRequestSchema;
|
|
20378
20409
|
var init_organization_settings = __esm({
|
|
@@ -36150,6 +36181,7 @@ var init_src = __esm({
|
|
|
36150
36181
|
init_mcp();
|
|
36151
36182
|
init_model_selection();
|
|
36152
36183
|
init_mounts();
|
|
36184
|
+
init_onboarding_runs();
|
|
36153
36185
|
init_organization_settings();
|
|
36154
36186
|
init_billing();
|
|
36155
36187
|
init_pricing();
|
|
@@ -36276,7 +36308,7 @@ function activeAccountKey(path2 = defaultConfigPath()) {
|
|
|
36276
36308
|
function writeConfig(config2, path2 = defaultConfigPath()) {
|
|
36277
36309
|
const accountPath = activeAccountPath(path2);
|
|
36278
36310
|
if (!accountPath) {
|
|
36279
|
-
throw new Error("Not logged in.
|
|
36311
|
+
throw new Error("Not logged in. Run `auto auth login` first.");
|
|
36280
36312
|
}
|
|
36281
36313
|
writeAccountFile(config2, accountPath);
|
|
36282
36314
|
}
|
|
@@ -36386,7 +36418,7 @@ var init_file = __esm({
|
|
|
36386
36418
|
function requireActiveProject(config2) {
|
|
36387
36419
|
if (!config2.organizationId || !config2.projectId) {
|
|
36388
36420
|
throw new Error(
|
|
36389
|
-
"
|
|
36421
|
+
"Run `auto orgs use <organization>` and `auto projects use <project>` first."
|
|
36390
36422
|
);
|
|
36391
36423
|
}
|
|
36392
36424
|
return {
|
|
@@ -37068,7 +37100,7 @@ function createApiClient(input) {
|
|
|
37068
37100
|
const { organizationId } = await resolveActiveSelection();
|
|
37069
37101
|
if (!organizationId) {
|
|
37070
37102
|
throw new Error(
|
|
37071
|
-
"No active organization.
|
|
37103
|
+
"No active organization. Run `auto auth login` to sign in, then `auto orgs use <organization>` to select one."
|
|
37072
37104
|
);
|
|
37073
37105
|
}
|
|
37074
37106
|
return { organizationId };
|
|
@@ -38941,7 +38973,7 @@ var init_package = __esm({
|
|
|
38941
38973
|
"package.json"() {
|
|
38942
38974
|
package_default = {
|
|
38943
38975
|
name: "@autohq/cli",
|
|
38944
|
-
version: "0.1.
|
|
38976
|
+
version: "0.1.425",
|
|
38945
38977
|
license: "SEE LICENSE IN README.md",
|
|
38946
38978
|
publishConfig: {
|
|
38947
38979
|
access: "public"
|
|
@@ -48677,7 +48709,7 @@ function logout(context) {
|
|
|
48677
48709
|
function listAccounts2(context) {
|
|
48678
48710
|
const accounts = listAccounts(context.configPath);
|
|
48679
48711
|
if (accounts.length === 0) {
|
|
48680
|
-
throw new Error("No stored accounts.
|
|
48712
|
+
throw new Error("No stored accounts. Run `auto auth login` first.");
|
|
48681
48713
|
}
|
|
48682
48714
|
for (const account of accounts) {
|
|
48683
48715
|
context.writeOutput(
|
|
@@ -48734,7 +48766,7 @@ function accountLine(account, activeKey, style) {
|
|
|
48734
48766
|
async function switchAccountInteractive(context) {
|
|
48735
48767
|
const accounts = listAccounts(context.configPath);
|
|
48736
48768
|
if (accounts.length === 0) {
|
|
48737
|
-
throw new Error("No stored accounts.
|
|
48769
|
+
throw new Error("No stored accounts. Run `auto auth login` first.");
|
|
48738
48770
|
}
|
|
48739
48771
|
if (!context.io.canPrompt()) {
|
|
48740
48772
|
throw new Error(
|
|
@@ -48781,14 +48813,14 @@ function useAccount(context, account) {
|
|
|
48781
48813
|
function resolveAccountByEmail(context, accountRef, options) {
|
|
48782
48814
|
const accounts = listAccounts(context.configPath);
|
|
48783
48815
|
if (accounts.length === 0) {
|
|
48784
|
-
throw new Error("No stored accounts.
|
|
48816
|
+
throw new Error("No stored accounts. Run `auto auth login` first.");
|
|
48785
48817
|
}
|
|
48786
48818
|
const matches = accounts.filter(
|
|
48787
48819
|
(account) => account.config.userEmail?.toLowerCase() === accountRef.toLowerCase() && (!options.server || account.config.serverUrl === options.server)
|
|
48788
48820
|
);
|
|
48789
48821
|
if (matches.length === 0) {
|
|
48790
48822
|
throw new Error(
|
|
48791
|
-
`No stored account for ${accountRef}.
|
|
48823
|
+
`No stored account for ${accountRef}. Run \`auto auth login\` to add it.`
|
|
48792
48824
|
);
|
|
48793
48825
|
}
|
|
48794
48826
|
if (matches.length === 1) return matches[0];
|
|
@@ -49969,7 +50001,7 @@ async function runAgentBridgeSocket(options) {
|
|
|
49969
50001
|
});
|
|
49970
50002
|
socket.on(
|
|
49971
50003
|
RUNTIME_BRIDGE_BOOTSTRAP_EVENT,
|
|
49972
|
-
|
|
50004
|
+
createRuntimeBridgeBootstrapListener({
|
|
49973
50005
|
token: options.token,
|
|
49974
50006
|
onBootstrap: options.onBootstrap,
|
|
49975
50007
|
createHandler: (bootstrap) => options.createHandler({
|
|
@@ -50095,7 +50127,7 @@ async function runAgentBridgeSocket(options) {
|
|
|
50095
50127
|
function isTerminalAuthError(error51) {
|
|
50096
50128
|
return TERMINAL_AUTH_ERROR_MESSAGES.has(error51.message);
|
|
50097
50129
|
}
|
|
50098
|
-
function
|
|
50130
|
+
function createRuntimeBridgeBootstrapListener(input) {
|
|
50099
50131
|
return async (rawEnvelope, ack) => {
|
|
50100
50132
|
const bootstrapStartedAt = Date.now();
|
|
50101
50133
|
input.writeOutput?.(
|
|
@@ -56932,7 +56964,7 @@ async function requireProjectScope(input) {
|
|
|
56932
56964
|
return resolved;
|
|
56933
56965
|
}
|
|
56934
56966
|
throw new Error(
|
|
56935
|
-
`No project selected.
|
|
56967
|
+
`No project selected. Run \`auto projects use <project>\` or pass ${input.explicitHint}.`
|
|
56936
56968
|
);
|
|
56937
56969
|
}
|
|
56938
56970
|
async function resolveProjectScope(input) {
|
|
@@ -56996,7 +57028,7 @@ async function requireConnection(input) {
|
|
|
56996
57028
|
);
|
|
56997
57029
|
}
|
|
56998
57030
|
throw new Error(
|
|
56999
|
-
`No ${input.provider} connection found matching ${identifier}.
|
|
57031
|
+
`No ${input.provider} connection found matching ${identifier}. Run \`auto connections list\` to see available connections.`
|
|
57000
57032
|
);
|
|
57001
57033
|
}
|
|
57002
57034
|
if (matches.length > 1) {
|
|
@@ -57008,7 +57040,7 @@ async function requireConnection(input) {
|
|
|
57008
57040
|
}
|
|
57009
57041
|
if (grants.length === 0) {
|
|
57010
57042
|
throw new Error(
|
|
57011
|
-
`No ${input.provider} connections found.
|
|
57043
|
+
`No ${input.provider} connections found. Run \`auto connect ${input.provider}\` first.`
|
|
57012
57044
|
);
|
|
57013
57045
|
}
|
|
57014
57046
|
if (grants.length > 1) {
|
|
@@ -58227,7 +58259,7 @@ var humanQuickstartText = `Get started with auto:
|
|
|
58227
58259
|
Fastest path: paste this into a coding agent running in your repo
|
|
58228
58260
|
(Claude Code, Cursor, Codex):
|
|
58229
58261
|
|
|
58230
|
-
"
|
|
58262
|
+
"Run \`auto onboard --agent\` and follow the instructions it prints."
|
|
58231
58263
|
|
|
58232
58264
|
The agent walks you through setup end to end, studies your repo, and installs
|
|
58233
58265
|
a first workflow tailored to how your team works.
|