agentic-dev 0.2.0 → 0.2.2

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/lib/scaffold.mjs CHANGED
@@ -151,7 +151,13 @@ export function ensureTargetDir(targetDir, { force = false } = {}) {
151
151
  }
152
152
 
153
153
  function copyPath(relativePath, destinationRoot) {
154
- const sourcePath = path.join(PACKAGE_ROOT, relativePath);
154
+ let sourcePath = path.join(PACKAGE_ROOT, relativePath);
155
+ if (!fs.existsSync(sourcePath) && relativePath === ".gitignore") {
156
+ const npmIgnorePath = path.join(PACKAGE_ROOT, ".npmignore");
157
+ if (fs.existsSync(npmIgnorePath)) {
158
+ sourcePath = npmIgnorePath;
159
+ }
160
+ }
155
161
  const destinationPath = path.join(destinationRoot, relativePath);
156
162
  fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
157
163
  fs.cpSync(sourcePath, destinationPath, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-dev",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Scaffold an agentic template repo with the selected frontend surface and shared toolchain assets.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.32.0",
@@ -31,6 +31,7 @@ frontend_resolver_path="${script_dir}/resolve_frontend_target.py"
31
31
  proof_schema_path="${script_dir}/../ui-parity/contracts/proof-result.schema.json"
32
32
  route_gap_schema_path="${script_dir}/../ui-parity/contracts/route-gap-report.schema.json"
33
33
  schema_validator_path="${script_dir}/validate_json_schema.py"
34
+ repo_root="$(cd "${repo_root}" && pwd)"
34
35
 
35
36
  resolve_contract() {
36
37
  "${resolver_path}" "${repo_root}"
@@ -119,7 +120,6 @@ if [[ ! -f "${resolver_path}" ]]; then
119
120
  fi
120
121
 
121
122
  contract_path="$(resolve_contract)" || exit 1
122
- repo_root="$(cd "$(dirname "${contract_path}")/.." && pwd)"
123
123
 
124
124
  case "${phase}" in
125
125
  plan_audit|build|proof|deploy_dev|verify_dev)