feat(agent): formalize first-class tool lifecycle states and status mapping (#24993)

This commit is contained in:
Michael Bleigh
2026-05-05 11:45:12 -07:00
parent f5e2cf59fd
commit 005e0cfc53
5 changed files with 122 additions and 10 deletions
+9 -2
View File
@@ -18,7 +18,7 @@
// limitations under the License.
import { execSync } from 'node:child_process';
import { writeFileSync, existsSync, cpSync } from 'node:fs';
import { writeFileSync, existsSync, cpSync, rmSync } from 'node:fs';
import { join, basename } from 'node:path';
if (!process.cwd().includes('packages')) {
@@ -48,7 +48,14 @@ if (packageName === 'core') {
const docsSource = join(process.cwd(), '..', '..', 'docs');
const docsTarget = join(process.cwd(), 'dist', 'docs');
if (existsSync(docsSource)) {
cpSync(docsSource, docsTarget, { recursive: true, dereference: true });
if (existsSync(docsTarget)) {
rmSync(docsTarget, { recursive: true, force: true });
}
cpSync(docsSource, docsTarget, {
recursive: true,
dereference: true,
force: true,
});
console.log('Copied documentation to dist/docs');
}
}