@biznetgio/neo-app 0.4.9 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biznetgio/neo-app",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "NEO App CLI — one-command agent onboarding, MCP server, and project ops for coding agents (Codex, Claude Code).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -200,7 +200,13 @@ export async function deploySource(api, { projectId, src, name, port, build, env
200
200
  if (buildType && app.buildType && app.buildType !== buildType) patch.buildType = buildType;
201
201
  if (Object.keys(patch).length) {
202
202
  plan.push(`update "${svc}": ${Object.keys(patch).join(', ')}`);
203
- if (!dryRun) { await api.put(`/api/v1/apps/${app.id}`, patch); log(`updated source config (${Object.keys(patch).join(', ')})`); }
203
+ if (!dryRun) {
204
+ const upd = await api.put(`/api/v1/apps/${app.id}`, patch);
205
+ // If the source-config update needs approval, STOP — deploying now would ship
206
+ // the OLD config while the change is still pending (JNG #96 re-validation).
207
+ if (pending(upd)) return { pending: true, approvalId: upd.data.approvalId };
208
+ log(`updated source config (${Object.keys(patch).join(', ')})`);
209
+ }
204
210
  } else {
205
211
  log(`service ${svc} exists — redeploying`);
206
212
  }