@open-agent-toolkit/cli 0.0.56 → 0.0.57
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/assets/public-package-versions.json +4 -4
- package/dist/commands/project/archive/archive-utils.d.ts +7 -3
- package/dist/commands/project/archive/archive-utils.d.ts.map +1 -1
- package/dist/commands/project/archive/archive-utils.js +15 -11
- package/dist/commands/project/archive/index.d.ts +2 -1
- package/dist/commands/project/archive/index.d.ts.map +1 -1
- package/dist/commands/project/archive/index.js +12 -4
- package/package.json +2 -2
|
@@ -57,10 +57,14 @@ export interface ArchiveProjectOnCompletionOptions {
|
|
|
57
57
|
*/
|
|
58
58
|
awsRegion?: string | null;
|
|
59
59
|
}
|
|
60
|
-
interface
|
|
60
|
+
export interface ResolvePrimaryRepoRootDependencies {
|
|
61
|
+
gitExecFile?: ExecFileLike;
|
|
62
|
+
dirExists?: typeof dirExists;
|
|
63
|
+
env?: NodeJS.ProcessEnv;
|
|
64
|
+
}
|
|
65
|
+
interface ArchiveProjectOnCompletionDependencies extends EnsureS3ArchiveAccessDependencies, ResolvePrimaryRepoRootDependencies {
|
|
61
66
|
ensureS3ArchiveAccess?: typeof ensureS3ArchiveAccess;
|
|
62
67
|
execFile?: ExecFileLike;
|
|
63
|
-
gitExecFile?: ExecFileLike;
|
|
64
68
|
ensureDir?: typeof ensureDir;
|
|
65
69
|
copyDirectory?: typeof copyDirectory;
|
|
66
70
|
removePath?: (target: string, options: {
|
|
@@ -68,7 +72,6 @@ interface ArchiveProjectOnCompletionDependencies extends EnsureS3ArchiveAccessDe
|
|
|
68
72
|
force: true;
|
|
69
73
|
}) => Promise<void>;
|
|
70
74
|
copySingleFile?: typeof copySingleFile;
|
|
71
|
-
dirExists?: typeof dirExists;
|
|
72
75
|
fileExists?: typeof fileExists;
|
|
73
76
|
timestamp?: () => string;
|
|
74
77
|
}
|
|
@@ -122,6 +125,7 @@ export declare function parseArchiveSnapshotName(snapshotName: string): {
|
|
|
122
125
|
dateStamp: string | null;
|
|
123
126
|
};
|
|
124
127
|
export declare function resolveLocalArchiveProjectPath(projectsRoot: string, projectName: string): string;
|
|
128
|
+
export declare function resolvePrimaryRepoRoot(repoRoot: string, dependencies?: ResolvePrimaryRepoRootDependencies): Promise<string>;
|
|
125
129
|
export declare function archiveProjectOnCompletion(options: ArchiveProjectOnCompletionOptions, dependencies?: ArchiveProjectOnCompletionDependencies): Promise<ArchiveProjectOnCompletionResult>;
|
|
126
130
|
export declare function ensureS3ArchiveAccess(options: EnsureS3ArchiveAccessOptions, dependencies?: EnsureS3ArchiveAccessDependencies): Promise<EnsureS3ArchiveAccessResult>;
|
|
127
131
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"archive-utils.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/archive/archive-utils.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,aAAa,EACb,cAAc,EACd,SAAS,EACT,SAAS,EACT,UAAU,EACX,MAAM,QAAQ,CAAC;AAIhB,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAAE,KAChD,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,UAAU,iCAAiC;IACzC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,
|
|
1
|
+
{"version":3,"file":"archive-utils.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/archive/archive-utils.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,aAAa,EACb,cAAc,EACd,SAAS,EACT,SAAS,EACT,UAAU,EACX,MAAM,QAAQ,CAAC;AAIhB,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAAE,KAChD,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,YAAY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AwB,CAAC,YAAY,EAAE,MAAM,GAAG;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CA4BA;AAED,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB,MAAM,CAIR;AA6DD,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,MAAM,EAChB,YAAY,GAAE,kCAAuC,GACpD,OAAO,CAAC,MAAM,CAAC,CAgCjB;AAmED,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,iCAAiC,EAC1C,YAAY,GAAE,sCAA2C,GACxD,OAAO,CAAC,gCAAgC,CAAC,CAgH3C;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,EACrC,YAAY,GAAE,iCAAsC,GACnD,OAAO,CAAC,2BAA2B,CAAC,CA+CtC"}
|
|
@@ -158,16 +158,7 @@ async function isGitignoredArchivePath(repoRoot, archiveProjectPath, dependencie
|
|
|
158
158
|
throw error;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
async function
|
|
162
|
-
try {
|
|
163
|
-
const archivePathIsGitignored = await isGitignoredArchivePath(repoRoot, archiveProjectPath, dependencies);
|
|
164
|
-
if (!archivePathIsGitignored) {
|
|
165
|
-
return repoRoot;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
catch {
|
|
169
|
-
return repoRoot;
|
|
170
|
-
}
|
|
161
|
+
export async function resolvePrimaryRepoRoot(repoRoot, dependencies = {}) {
|
|
171
162
|
const execFile = dependencies.gitExecFile ?? execFileAsync;
|
|
172
163
|
try {
|
|
173
164
|
const [{ stdout: commonDir }, { stdout: gitDir }] = await Promise.all([
|
|
@@ -196,6 +187,18 @@ async function resolveArchiveRepoRoot(repoRoot, archiveProjectPath, dependencies
|
|
|
196
187
|
}
|
|
197
188
|
return repoRoot;
|
|
198
189
|
}
|
|
190
|
+
async function resolveArchiveRepoRoot(repoRoot, archiveProjectPath, dependencies) {
|
|
191
|
+
try {
|
|
192
|
+
const archivePathIsGitignored = await isGitignoredArchivePath(repoRoot, archiveProjectPath, dependencies);
|
|
193
|
+
if (!archivePathIsGitignored) {
|
|
194
|
+
return repoRoot;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
return repoRoot;
|
|
199
|
+
}
|
|
200
|
+
return resolvePrimaryRepoRoot(repoRoot, dependencies);
|
|
201
|
+
}
|
|
199
202
|
async function resolveUniqueArchivePath(archivePath, dependencies) {
|
|
200
203
|
const directoryExists = dependencies.dirExists ?? dirExists;
|
|
201
204
|
if (!(await directoryExists(archivePath))) {
|
|
@@ -264,7 +267,8 @@ export async function archiveProjectOnCompletion(options, dependencies = {}) {
|
|
|
264
267
|
});
|
|
265
268
|
warnings.push(...access.warnings);
|
|
266
269
|
if (access.ok) {
|
|
267
|
-
|
|
270
|
+
const remoteRepoRoot = await resolvePrimaryRepoRoot(options.repoRoot, dependencies);
|
|
271
|
+
s3Path = buildProjectArchiveS3Uri(options.s3Uri, remoteRepoRoot, snapshotName);
|
|
268
272
|
try {
|
|
269
273
|
const syncArgs = ['s3', 'sync', archivePath, s3Path];
|
|
270
274
|
for (const pattern of S3_ARCHIVE_SYNC_EXCLUDES) {
|
|
@@ -2,7 +2,7 @@ import { rm } from 'node:fs/promises';
|
|
|
2
2
|
import { buildCommandContext, type CommandContext } from '../../../app/command-context.js';
|
|
3
3
|
import { type OatConfig } from '../../../config/oat-config.js';
|
|
4
4
|
import { Command } from 'commander';
|
|
5
|
-
import { buildProjectArchiveS3Uri, buildRepoArchiveS3Uri, ensureS3ArchiveAccess, type ExecFileLike, resolveLocalArchiveProjectPath } from './archive-utils.js';
|
|
5
|
+
import { buildProjectArchiveS3Uri, buildRepoArchiveS3Uri, ensureS3ArchiveAccess, type ExecFileLike, resolveLocalArchiveProjectPath, resolvePrimaryRepoRoot } from './archive-utils.js';
|
|
6
6
|
export interface ProjectArchiveCommandDependencies {
|
|
7
7
|
buildCommandContext: (options: Parameters<typeof buildCommandContext>[0]) => CommandContext;
|
|
8
8
|
resolveProjectRoot: (cwd: string) => Promise<string>;
|
|
@@ -12,6 +12,7 @@ export interface ProjectArchiveCommandDependencies {
|
|
|
12
12
|
buildRepoArchiveS3Uri: typeof buildRepoArchiveS3Uri;
|
|
13
13
|
buildProjectArchiveS3Uri: typeof buildProjectArchiveS3Uri;
|
|
14
14
|
resolveLocalArchiveProjectPath: typeof resolveLocalArchiveProjectPath;
|
|
15
|
+
resolvePrimaryRepoRoot: typeof resolvePrimaryRepoRoot;
|
|
15
16
|
execFile: ExecFileLike;
|
|
16
17
|
removeDirectory: typeof rm;
|
|
17
18
|
processEnv: NodeJS.ProcessEnv;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/archive/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EAAE,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAIL,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,YAAY,EAEjB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/archive/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EAAE,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAIL,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,YAAY,EAEjB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAsEzB,MAAM,WAAW,iCAAiC;IAChD,mBAAmB,EAAE,CACnB,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAC/C,cAAc,CAAC;IACpB,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACxD,mBAAmB,EAAE,CACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,CAAC,UAAU,KACnB,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;IACpD,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;IACpD,wBAAwB,EAAE,OAAO,wBAAwB,CAAC;IAC1D,8BAA8B,EAAE,OAAO,8BAA8B,CAAC;IACtE,sBAAsB,EAAE,OAAO,sBAAsB,CAAC;IACtD,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,OAAO,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAoMD,wBAAgB,2BAA2B,CACzC,SAAS,GAAE,OAAO,CAAC,iCAAiC,CAAM,GACzD,OAAO,CA4LT"}
|
|
@@ -9,7 +9,7 @@ import { readOatConfig } from '../../../config/oat-config.js';
|
|
|
9
9
|
import { CliError } from '../../../errors/cli-error.js';
|
|
10
10
|
import { resolveProjectRoot } from '../../../fs/paths.js';
|
|
11
11
|
import { Command } from 'commander';
|
|
12
|
-
import { ARCHIVE_SNAPSHOT_METADATA_FILENAME, S3_ARCHIVE_SYNC_EXCLUDES, buildAwsEnv, buildProjectArchiveS3Uri, buildRepoArchiveS3Uri, ensureS3ArchiveAccess, parseArchiveSnapshotName, resolveLocalArchiveProjectPath, } from './archive-utils.js';
|
|
12
|
+
import { ARCHIVE_SNAPSHOT_METADATA_FILENAME, S3_ARCHIVE_SYNC_EXCLUDES, buildAwsEnv, buildProjectArchiveS3Uri, buildRepoArchiveS3Uri, ensureS3ArchiveAccess, parseArchiveSnapshotName, resolveLocalArchiveProjectPath, resolvePrimaryRepoRoot, } from './archive-utils.js';
|
|
13
13
|
const execFileAsync = promisify(execFileCallback);
|
|
14
14
|
/**
|
|
15
15
|
* Resolve effective AWS profile/region for an archive sync invocation, honoring
|
|
@@ -64,6 +64,7 @@ function defaultDependencies() {
|
|
|
64
64
|
buildRepoArchiveS3Uri,
|
|
65
65
|
buildProjectArchiveS3Uri,
|
|
66
66
|
resolveLocalArchiveProjectPath,
|
|
67
|
+
resolvePrimaryRepoRoot,
|
|
67
68
|
execFile: execFileAsync,
|
|
68
69
|
removeDirectory: rm,
|
|
69
70
|
processEnv: process.env,
|
|
@@ -89,7 +90,11 @@ async function runArchiveSync(repoRoot, source, target, options, awsEnv, depende
|
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
92
|
async function listArchiveSnapshots(repoRoot, projectsRoot, s3Uri, awsEnv, dependencies) {
|
|
92
|
-
const
|
|
93
|
+
const remoteRepoRoot = await dependencies.resolvePrimaryRepoRoot(repoRoot, {
|
|
94
|
+
gitExecFile: dependencies.execFile,
|
|
95
|
+
env: awsEnv,
|
|
96
|
+
});
|
|
97
|
+
const repoPrefix = `${dependencies.buildRepoArchiveS3Uri(s3Uri, remoteRepoRoot)}/`;
|
|
93
98
|
const { stdout } = await dependencies.execFile('aws', ['s3', 'ls', repoPrefix], {
|
|
94
99
|
cwd: repoRoot,
|
|
95
100
|
env: awsEnv,
|
|
@@ -102,7 +107,7 @@ async function listArchiveSnapshots(repoRoot, projectsRoot, s3Uri, awsEnv, depen
|
|
|
102
107
|
const parsed = parseArchiveSnapshotName(snapshotName);
|
|
103
108
|
return {
|
|
104
109
|
...parsed,
|
|
105
|
-
source: dependencies.buildProjectArchiveS3Uri(s3Uri,
|
|
110
|
+
source: dependencies.buildProjectArchiveS3Uri(s3Uri, remoteRepoRoot, snapshotName),
|
|
106
111
|
target: dependencies.resolveLocalArchiveProjectPath(projectsRoot, parsed.projectName),
|
|
107
112
|
};
|
|
108
113
|
});
|
|
@@ -231,7 +236,10 @@ export function createProjectArchiveCommand(overrides = {}) {
|
|
|
231
236
|
: resolveLocalArchiveRoot(projectsRoot);
|
|
232
237
|
const sourceSummary = appliedSources.length > 0
|
|
233
238
|
? appliedSources.join(', ')
|
|
234
|
-
: dependencies.buildRepoArchiveS3Uri(s3Uri, repoRoot
|
|
239
|
+
: dependencies.buildRepoArchiveS3Uri(s3Uri, await dependencies.resolvePrimaryRepoRoot(repoRoot, {
|
|
240
|
+
gitExecFile: dependencies.execFile,
|
|
241
|
+
env: awsEnv,
|
|
242
|
+
}));
|
|
235
243
|
if (context.json) {
|
|
236
244
|
context.logger.json({
|
|
237
245
|
status: 'ok',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-agent-toolkit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Open Agent Toolkit CLI",
|
|
6
6
|
"homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/cli",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"ora": "^9.0.0",
|
|
34
34
|
"yaml": "2.8.2",
|
|
35
35
|
"zod": "^3.25.76",
|
|
36
|
-
"@open-agent-toolkit/control-plane": "0.0.
|
|
36
|
+
"@open-agent-toolkit/control-plane": "0.0.57"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.10.0",
|