@open-agent-toolkit/cli 0.1.50 → 0.1.51
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/agents/oat-phase-implementer.md +16 -5
- package/assets/docs/cli-utilities/workflow-gates.md +1 -1
- package/assets/docs/provider-sync/commands.md +29 -1
- package/assets/docs/provider-sync/providers.md +13 -4
- package/assets/docs/provider-sync/scope-and-surface.md +13 -0
- package/assets/docs/workflows/projects/implementation-execution.md +29 -3
- package/assets/docs/workflows/projects/reviews.md +18 -1
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/oat-agent-instructions-analyze/references/docs/provider-reference.md +8 -2
- package/assets/skills/oat-agent-instructions-apply/references/docs/provider-reference.md +8 -2
- package/assets/skills/oat-project-implement/SKILL.md +93 -38
- package/assets/skills/oat-project-review-provide/SKILL.md +27 -9
- package/dist/commands/doctor/index.d.ts.map +1 -1
- package/dist/commands/doctor/index.js +148 -85
- package/dist/commands/gate/index.js +1 -1
- package/dist/commands/project/dispatch-ceiling/index.d.ts.map +1 -1
- package/dist/commands/project/dispatch-ceiling/index.js +80 -0
- package/dist/commands/providers/codex/materialize.d.ts.map +1 -1
- package/dist/commands/providers/codex/materialize.js +31 -15
- package/dist/providers/codex/codec/config-merge.d.ts +8 -2
- package/dist/providers/codex/codec/config-merge.d.ts.map +1 -1
- package/dist/providers/codex/codec/config-merge.js +17 -2
- package/dist/providers/codex/codec/sync-extension.d.ts.map +1 -1
- package/dist/providers/codex/codec/sync-extension.js +14 -4
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import { validateRealPathWithinScope } from '../../../fs/paths.js';
|
|
|
10
10
|
import TOML from '@iarna/toml';
|
|
11
11
|
import YAML from 'yaml';
|
|
12
12
|
import { SUPPORTED_CODEX_BASE_ROLES, SUPPORTED_CODEX_ROLE_TARGETS, } from './catalog.js';
|
|
13
|
-
import { mergeCodexConfig } from './config-merge.js';
|
|
13
|
+
import { mergeCodexConfig, readCodexMaxDepth, } from './config-merge.js';
|
|
14
14
|
import { exportCanonicalAgentToCodexRole } from './export-to-codex.js';
|
|
15
15
|
import { materializeCodexRole } from './materialize.js';
|
|
16
16
|
import { isOatManagedCodexRoleFile, readOatManagedCodexRoleOwner, withOatManagedCodexRoleOwner, } from './shared.js';
|
|
@@ -273,6 +273,14 @@ function isUserCodexScope(scopeRoot, options) {
|
|
|
273
273
|
}
|
|
274
274
|
return resolve(scopeRoot) === resolve(options.userConfigDir, '..');
|
|
275
275
|
}
|
|
276
|
+
async function readInheritedCodexMaxDepth(scopeRoot, options) {
|
|
277
|
+
if (!options.userConfigDir || isUserCodexScope(scopeRoot, options)) {
|
|
278
|
+
return undefined;
|
|
279
|
+
}
|
|
280
|
+
const userScopeRoot = resolve(options.userConfigDir, '..');
|
|
281
|
+
const userConfigContent = await readOptionalFile(configPath(userScopeRoot));
|
|
282
|
+
return readCodexMaxDepth(userConfigContent) ?? undefined;
|
|
283
|
+
}
|
|
276
284
|
async function readCodexMaterializationTargets(scopeRoot, options = {}) {
|
|
277
285
|
const targets = new Map();
|
|
278
286
|
const effectiveConfig = await resolveEffectiveConfig(scopeRoot, options.userConfigDir ?? join(scopeRoot, '.oat', '__no-user-config__'), options.env);
|
|
@@ -395,9 +403,6 @@ export async function computeCodexProjectExtensionPlan(scopeRoot, canonicalEntri
|
|
|
395
403
|
const desiredRoleNames = new Set(desiredRoles.map((role) => role.roleName));
|
|
396
404
|
const existingConfigPath = configPath(scopeRoot);
|
|
397
405
|
const existingConfigContent = await readOptionalFile(existingConfigPath);
|
|
398
|
-
const staleRoles = isPartialSync
|
|
399
|
-
? []
|
|
400
|
-
: await collectStaleManagedRoles(scopeRoot, existingConfigContent, desiredRoleNames, isUserCodexScope(scopeRoot, options) ? 'user-config' : 'project-config', !isUserCodexScope(scopeRoot, options));
|
|
401
406
|
if (isPartialSync && desiredRoles.length === 0) {
|
|
402
407
|
return {
|
|
403
408
|
operations: [],
|
|
@@ -405,6 +410,10 @@ export async function computeCodexProjectExtensionPlan(scopeRoot, canonicalEntri
|
|
|
405
410
|
aggregateConfigHash: hashContent(existingConfigContent ?? ''),
|
|
406
411
|
};
|
|
407
412
|
}
|
|
413
|
+
const inheritedMaxDepth = await readInheritedCodexMaxDepth(scopeRoot, options);
|
|
414
|
+
const staleRoles = isPartialSync
|
|
415
|
+
? []
|
|
416
|
+
: await collectStaleManagedRoles(scopeRoot, existingConfigContent, desiredRoleNames, isUserCodexScope(scopeRoot, options) ? 'user-config' : 'project-config', !isUserCodexScope(scopeRoot, options));
|
|
408
417
|
const operations = [];
|
|
409
418
|
for (const role of desiredRoles) {
|
|
410
419
|
const existingRoleContent = await readOptionalFile(role.rolePath);
|
|
@@ -456,6 +465,7 @@ export async function computeCodexProjectExtensionPlan(scopeRoot, canonicalEntri
|
|
|
456
465
|
existingContent: existingConfigContent,
|
|
457
466
|
desiredRoles: normalizeManagedRolesConfig(desiredRoles),
|
|
458
467
|
staleManagedRoles: staleRoles,
|
|
468
|
+
inheritedMaxDepth,
|
|
459
469
|
});
|
|
460
470
|
operations.push({
|
|
461
471
|
action: existingConfigContent === null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-agent-toolkit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ora": "^9.0.0",
|
|
35
35
|
"yaml": "2.8.2",
|
|
36
36
|
"zod": "^3.25.76",
|
|
37
|
-
"@open-agent-toolkit/control-plane": "0.1.
|
|
37
|
+
"@open-agent-toolkit/control-plane": "0.1.51"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.10.0",
|