@biznetgio/neo-app 0.4.7 → 0.4.9

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.7",
3
+ "version": "0.4.9",
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": {
@@ -30,6 +30,9 @@ function isDir(s) {
30
30
  }
31
31
 
32
32
  export async function deploy(source, opts = {}) {
33
+ // `--source <path|.zip|git-url>` is an explicit alias for the positional source, as
34
+ // documented in the deploy examples (JNG #75/#79); the positional still works.
35
+ source = source || opts.source;
33
36
  // Forgive the common mix-up: --url is the CONTROL-PLANE override, not the Git repo.
34
37
  if (!source && !opts.repo && !opts.image && isGitUrl(opts.url)) {
35
38
  warn('`--url` is the control-plane URL, not the Git repo — using it as the repo. Next time: `neo-app deploy <git-url>` or `--repo <url>`.');
package/src/index.js CHANGED
@@ -28,6 +28,7 @@ ${c.bold('Commands')}
28
28
  login Authenticate with a NEO App API key (kap_...)
29
29
  link <project-id> Link this repo to a project (writes .neo-app.json)
30
30
  deploy [path|.zip|git-url] Deploy a directory (default: cwd), a .zip, a Git repo, or --image <ref>
31
+ (or pass the same via --source <path|.zip|git-url>)
31
32
  project create [name] Create a project (defaults to the dir name) and link it
32
33
  project list List projects in your organization (find ids to link)
33
34
  status | whoami Show connected account, org, environment, linked project
@@ -35,6 +36,7 @@ ${c.bold('Commands')}
35
36
 
36
37
  ${c.bold('Options')}
37
38
  --project <id> Target/link a project (agent setup, deploy)
39
+ --source <path> Deploy a local folder or .zip (or a git-url) — alias of the positional (deploy)
38
40
  --image <ref> Deploy a prebuilt image (deploy)
39
41
  --repo <git-url> Deploy from a Git repo, built server-side (deploy)
40
42
  --name <name> Service name (deploy; default derived from the source)
@@ -55,6 +57,7 @@ const options = {
55
57
  project: { type: 'string' },
56
58
  agent: { type: 'string' },
57
59
  org: { type: 'string' },
60
+ source: { type: 'string' },
58
61
  image: { type: 'string' },
59
62
  repo: { type: 'string' },
60
63
  name: { type: 'string' },