@orchagent/cli 0.3.8 → 0.3.10

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.
@@ -161,6 +161,7 @@ function registerPublishCommand(program) {
161
161
  .option('--dry-run', 'Show what would be published without making changes')
162
162
  .option('--skills <skills>', 'Default skills (comma-separated, e.g., org/skill@v1,org/other@v1)')
163
163
  .option('--skills-locked', 'Lock default skills (callers cannot override via headers)')
164
+ .option('--docker', 'Include Dockerfile for custom environment (builds E2B template)')
164
165
  .action(async (options) => {
165
166
  if (options.private) {
166
167
  process.stderr.write('Warning: --private is deprecated (private is now the default). You can safely remove it.\n');
@@ -449,10 +450,23 @@ function registerPublishCommand(program) {
449
450
  const tempDir = await promises_1.default.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'orchagent-bundle-'));
450
451
  const bundlePath = path_1.default.join(tempDir, 'bundle.zip');
451
452
  try {
453
+ // Build include patterns - add Dockerfile if --docker flag is set
454
+ const includePatterns = [...(manifest.bundle?.include || [])];
455
+ if (options.docker) {
456
+ const dockerfilePath = path_1.default.join(cwd, 'Dockerfile');
457
+ try {
458
+ await promises_1.default.access(dockerfilePath);
459
+ includePatterns.push('Dockerfile');
460
+ process.stdout.write(` Including Dockerfile for custom environment\n`);
461
+ }
462
+ catch {
463
+ throw new errors_1.CliError('--docker flag specified but no Dockerfile found in project directory');
464
+ }
465
+ }
452
466
  const bundleResult = await (0, bundle_1.createCodeBundle)(cwd, bundlePath, {
453
467
  entrypoint: manifest.entrypoint,
454
468
  exclude: manifest.bundle?.exclude,
455
- include: manifest.bundle?.include,
469
+ include: includePatterns.length > 0 ? includePatterns : undefined,
456
470
  });
457
471
  process.stdout.write(` Created bundle: ${bundleResult.fileCount} files, ${(bundleResult.sizeBytes / 1024).toFixed(1)}KB\n`);
458
472
  // Validate bundle size
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "Command-line interface for the orchagent AI agent marketplace",
5
5
  "license": "MIT",
6
6
  "author": "orchagent <hello@orchagent.io>",