@privos_ai/app-server 0.8.4 → 0.10.0
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/README.md +76 -1
- package/dist/cli/commands/lint.d.ts +8 -0
- package/dist/cli/commands/lint.d.ts.map +1 -0
- package/dist/cli/commands/lint.js +24 -0
- package/dist/cli/commands/lint.js.map +1 -0
- package/dist/cli/commands/publish.d.ts +20 -0
- package/dist/cli/commands/publish.d.ts.map +1 -0
- package/dist/cli/commands/publish.js +365 -0
- package/dist/cli/commands/publish.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +36 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/lib/authorize.d.ts +80 -0
- package/dist/cli/lib/authorize.d.ts.map +1 -0
- package/dist/cli/lib/authorize.js +86 -0
- package/dist/cli/lib/authorize.js.map +1 -0
- package/dist/cli/lib/manifest.d.ts +30 -0
- package/dist/cli/lib/manifest.d.ts.map +1 -0
- package/dist/cli/lib/manifest.js +61 -0
- package/dist/cli/lib/manifest.js.map +1 -0
- package/dist/cli/lib/output.d.ts +66 -0
- package/dist/cli/lib/output.d.ts.map +1 -0
- package/dist/cli/lib/output.js +61 -0
- package/dist/cli/lib/output.js.map +1 -0
- package/dist/cli/lib/package-source.d.ts +63 -0
- package/dist/cli/lib/package-source.d.ts.map +1 -0
- package/dist/cli/lib/package-source.js +219 -0
- package/dist/cli/lib/package-source.js.map +1 -0
- package/dist/cli/lib/portal-client.d.ts +38 -0
- package/dist/cli/lib/portal-client.d.ts.map +1 -0
- package/dist/cli/lib/portal-client.js +87 -0
- package/dist/cli/lib/portal-client.js.map +1 -0
- package/dist/cli/lib/upload.d.ts +54 -0
- package/dist/cli/lib/upload.d.ts.map +1 -0
- package/dist/cli/lib/upload.js +75 -0
- package/dist/cli/lib/upload.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest-lint-cli.js +5 -16
- package/dist/manifest-lint-cli.js.map +1 -1
- package/dist/relay/relay-client.d.ts.map +1 -1
- package/dist/relay/relay-client.js +25 -5
- package/dist/relay/relay-client.js.map +1 -1
- package/dist/runtime.d.ts +38 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +92 -5
- package/dist/runtime.js.map +1 -1
- package/dist/ui/asset-filename-rule.d.ts +18 -0
- package/dist/ui/asset-filename-rule.d.ts.map +1 -0
- package/dist/ui/asset-filename-rule.js +39 -0
- package/dist/ui/asset-filename-rule.js.map +1 -0
- package/dist/ui/assets-manifest.d.ts +19 -0
- package/dist/ui/assets-manifest.d.ts.map +1 -0
- package/dist/ui/assets-manifest.js +128 -0
- package/dist/ui/assets-manifest.js.map +1 -0
- package/dist/ui/serve-built-ui.d.ts +28 -0
- package/dist/ui/serve-built-ui.d.ts.map +1 -0
- package/dist/ui/serve-built-ui.js +131 -0
- package/dist/ui/serve-built-ui.js.map +1 -0
- package/dist/ui/shell-watchdog.d.ts +12 -0
- package/dist/ui/shell-watchdog.d.ts.map +1 -0
- package/dist/ui/shell-watchdog.js +25 -0
- package/dist/ui/shell-watchdog.js.map +1 -0
- package/package.json +3 -1
- package/skill/README.md +14 -0
- package/skill/SKILL.md +124 -0
- package/skill/references/errors.md +68 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# `privos-app publish` Error Reference
|
|
2
|
+
|
|
3
|
+
Every failure the CLI surfaces carries a `code` (visible in `--json` `error`
|
|
4
|
+
events and in the human-readable message) and maps to one of the exit codes
|
|
5
|
+
in `SKILL.md`. This table is generated from the CLI's actual error sites
|
|
6
|
+
(`src/cli/commands/publish.ts`, `src/cli/lib/*.ts`) — do not hand-edit
|
|
7
|
+
without checking the source stays in sync.
|
|
8
|
+
|
|
9
|
+
## Manifest / packaging (exit 2 unless noted)
|
|
10
|
+
|
|
11
|
+
| Code | Cause | Remediation |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `MANIFEST_INVALID` | `privos-app.json` fails structural lint | Run `privos-app lint` and fix the reported fields |
|
|
14
|
+
| `MANIFEST_IDENTITY_MISMATCH` | `name`/`version` differ between `privos-app.json` and `package.json` | Make both files agree exactly |
|
|
15
|
+
| `NOT_GIT_REPOSITORY` (exit 5) | `--cwd` is not inside a git repo, or has no commits | Publish from a committed git checkout |
|
|
16
|
+
| `DIRTY_TREE` | Uncommitted changes present, `--allow-dirty` not passed | Commit the intended files, or pass `--allow-dirty` deliberately |
|
|
17
|
+
| `CREDENTIAL_FILE_FOUND` | A `.env.*`, `.pem`, `.key`, `id_rsa*`, or `*credentials*` file is in the working tree | Remove or relocate the file outside the packaged tree |
|
|
18
|
+
| `GIT_ARCHIVE_FAILED` (exit 5) | `git read-tree`/`add`/`write-tree`/`archive` failed | Check the git error text printed alongside; usually a broken index or permissions issue |
|
|
19
|
+
| `INVALID_ZIP` | Produced archive has no valid ZIP central directory | Re-run; if it repeats, file a bug — not user-fixable |
|
|
20
|
+
| `MISSING_REQUIRED_ENTRY` | Archive is missing `privos-app.json` or `Dockerfile` at its root | Ensure both files are tracked (or present with `--allow-dirty`) at the repo root |
|
|
21
|
+
| `DENIED_PATH_IN_ARCHIVE` | Archive contains `node_modules`, `dist`, `dist-source`, `.git`, `.privos/skills`, `.env*`, `..` traversal, or credential-like paths | Remove those paths from the tree/`.gitattributes export-ignore` before packaging |
|
|
22
|
+
| `ENTRY_LIMIT_EXCEEDED` | Archive has more than 20,000 entries | Reduce tracked files or exclude generated assets |
|
|
23
|
+
| `FILE_SIZE_EXCEEDED` | A single file exceeds 50 MB | Remove or externalize the oversized file |
|
|
24
|
+
| `TOTAL_SIZE_EXCEEDED` | Archive exceeds 200 MB total | Trim the packaged tree |
|
|
25
|
+
| `CANCELLED` (exit 5) | User declined the interactive confirmation prompt | Re-run and confirm, or pass `--yes` |
|
|
26
|
+
|
|
27
|
+
## Authorization (exit 3 unless noted)
|
|
28
|
+
|
|
29
|
+
| Code | Cause | Remediation |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `LISTING_NOT_BOUND` (exit 2) | A publisher token was used but this listing has never had an interactively-approved first version | Run `privos-app publish` without a token once (browser approval) to bind the listing, then use the token for subsequent versions |
|
|
32
|
+
| `LISTING_UNRESOLVED` (exit 2) | The Portal could not resolve a listing from the manifest name | Pass `--listing <slug>` |
|
|
33
|
+
| `AUTHORIZATION_DENIED` | The approver declined the request on the approval page | Confirm with the user this was intentional; re-run to request a new approval if not |
|
|
34
|
+
| `AUTHORIZATION_EXPIRED` | Nobody approved within the authorization's TTL (15 min) | Re-run `publish`; approve promptly this time |
|
|
35
|
+
| `AUTHORIZATION_CONSUMED` | The device code was already used to mint a grant | Re-run `publish` to request a fresh authorization |
|
|
36
|
+
| `PUBLISHER_TOKEN_INVALID` / `PUBLISHER_TOKEN_REVOKED` / `PUBLISHER_TOKEN_EXPIRED` (exit 3) | `PRIVOS_PUBLISHER_TOKEN` is malformed, revoked, or past its expiry | Generate a new token in Creator Studio (step-up required) and export it in the environment |
|
|
37
|
+
|
|
38
|
+
## Upload / version / submit (exit 2 unless noted)
|
|
39
|
+
|
|
40
|
+
| Code | Cause | Remediation |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| `PUBLISH_GRANT_EXPIRED` (exit 3) | The 60-minute grant expired mid-upload | Re-run `publish` to request a new approval; do not resume a stale grant |
|
|
43
|
+
| `PUBLISH_GRANT_MISMATCH` | Uploaded archive sha256 or manifest name/version does not match what was approved | Re-run `publish` from a clean state — do not edit the archive after approval |
|
|
44
|
+
| `VERSION_SEMVER_EXISTS` | This exact semver was already published for the listing | **Bump `version` in both `privos-app.json` and `package.json`**, then re-run |
|
|
45
|
+
|
|
46
|
+
## Post-submit states (exit 0 — informational, not failures)
|
|
47
|
+
|
|
48
|
+
`publish` waits up to 60 s after submit for the version to leave
|
|
49
|
+
`PREFLIGHT_PENDING`, then prints one of:
|
|
50
|
+
|
|
51
|
+
- **`PREFLIGHT_FAILED`** — the automated preflight scan rejected the archive
|
|
52
|
+
itself (manifest/runtime problems found in the uploaded content). The CLI
|
|
53
|
+
prints the findings verbatim (exit 2). Fix the flagged issue, bump the
|
|
54
|
+
version, and re-run `publish`.
|
|
55
|
+
- **`PREFLIGHT_BLOCKED_INFRA`** — preflight cannot run because of
|
|
56
|
+
Portal-side build infrastructure capacity/availability, not anything wrong
|
|
57
|
+
with the submission (exit 0). Tell the user this is admin-side; no local
|
|
58
|
+
action fixes it — wait and check Creator Studio later.
|
|
59
|
+
- **listing content incomplete** — a *different* gate than preflight: if the
|
|
60
|
+
Creator Studio listing itself is missing required metadata (categories,
|
|
61
|
+
screenshots, legal URLs), the submission can be accepted by the CLI but
|
|
62
|
+
stall in human review because the listing page is incomplete. This is not
|
|
63
|
+
a CLI error code — the CLI only packages and submits the version; finishing
|
|
64
|
+
the listing's content is done in Creator Studio, not via `privos-app`.
|
|
65
|
+
- **`PREFLIGHT_PENDING`** (still pending after 60 s) or any other state —
|
|
66
|
+
printed as-is with "follow up in Creator Studio". The CLI has no `status`
|
|
67
|
+
command; all further review progress (`SCAN` → `AI_REVIEW` → human
|
|
68
|
+
`APPROVE` → build) is tracked only on `client.privos.io`.
|