Introspection agent demo (#15232)

This commit is contained in:
Tommaso Sciortino
2025-12-19 14:11:32 -08:00
committed by GitHub
parent db67bb106a
commit 10ba348a3a
17 changed files with 533 additions and 16 deletions

View File

@@ -17,7 +17,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import { copyFileSync, existsSync, mkdirSync } from 'node:fs';
import { copyFileSync, existsSync, mkdirSync, cpSync } from 'node:fs';
import { dirname, join, basename } from 'node:path';
import { fileURLToPath } from 'node:url';
import { glob } from 'glob';
@@ -53,4 +53,13 @@ for (const file of policyFiles) {
}
console.log(`Copied ${policyFiles.length} policy files to bundle/policies/`);
// 3. Copy Documentation (docs/)
const docsSrc = join(root, 'docs');
const docsDest = join(bundleDir, 'docs');
if (existsSync(docsSrc)) {
cpSync(docsSrc, docsDest, { recursive: true, dereference: true });
console.log('Copied docs to bundle/docs/');
}
console.log('Assets copied to bundle/');