unfold-deploy 0.0.0-stage → 0.2.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +21 -0
  3. package/README.md +150 -2
  4. package/bin/unfold.js +14 -0
  5. package/demos/claude-success.json +72 -0
  6. package/demos/codex-checks-failing.json +62 -0
  7. package/demos/gcloud-deploy-failure.json +616 -0
  8. package/demos/gcloud-success.json +608 -0
  9. package/demos/vercel-build-failure.json +331 -0
  10. package/demos/vercel-interrupted.json +271 -0
  11. package/demos/vercel-success.json +343 -0
  12. package/dist/cli.js +121 -0
  13. package/dist/commands/demo.js +75 -0
  14. package/dist/commands/observe.js +137 -0
  15. package/dist/commands/replay.js +76 -0
  16. package/dist/commands/run.js +24 -0
  17. package/dist/commands/show.js +44 -0
  18. package/dist/core/errors.js +3 -0
  19. package/dist/core/fix-prompt.js +85 -0
  20. package/dist/core/flow.js +211 -0
  21. package/dist/core/launch.js +196 -0
  22. package/dist/core/model.js +3 -0
  23. package/dist/core/redact.js +79 -0
  24. package/dist/core/server.js +109 -0
  25. package/dist/core/session.js +136 -0
  26. package/dist/core/store.js +52 -0
  27. package/dist/core/terminal.js +109 -0
  28. package/dist/providers/agents/claude.js +205 -0
  29. package/dist/providers/agents/codex.js +152 -0
  30. package/dist/providers/agents/shared.js +119 -0
  31. package/dist/providers/gcloud/index.js +39 -0
  32. package/dist/providers/gcloud/parser.js +149 -0
  33. package/dist/providers/gcloud/stages.js +55 -0
  34. package/dist/providers/index.js +5 -0
  35. package/dist/providers/provider.js +1 -0
  36. package/dist/providers/vercel/index.js +56 -0
  37. package/dist/providers/vercel/parser.js +239 -0
  38. package/dist/providers/vercel/stages.js +54 -0
  39. package/dist/tui/ansi.js +71 -0
  40. package/dist/tui/explore.js +220 -0
  41. package/dist/tui/panel.js +118 -0
  42. package/dist/tui/render.js +140 -0
  43. package/dist/tui/restore.js +29 -0
  44. package/dist/ui/app.js +332 -0
  45. package/dist/ui/index.html +60 -0
  46. package/dist/ui/styles.css +220 -0
  47. package/package.json +64 -4
  48. package/scripts/postinstall.mjs +13 -0
package/package.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
2
  "name": "unfold-deploy",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Watch what happens after you hit Enter: live, explained flows for Vercel and Cloud Run deploys and Claude Code / Codex tasks, in your terminal.",
5
+ "keywords": [
6
+ "ai-agents",
7
+ "build-logs",
8
+ "claude-code",
9
+ "cli",
10
+ "cloud-run",
11
+ "codex",
12
+ "deploy",
13
+ "devtools",
14
+ "gcloud",
15
+ "preview",
16
+ "terminal",
17
+ "vercel"
18
+ ],
19
+ "homepage": "https://github.com/faizm10/unfold#readme",
20
+ "bugs": {
21
+ "url": "https://github.com/faizm10/unfold/issues"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/faizm10/unfold.git"
26
+ },
27
+ "license": "MIT",
28
+ "author": "faizm10",
29
+ "type": "module",
30
+ "bin": {
31
+ "unfold": "bin/unfold.js"
32
+ },
33
+ "files": [
34
+ "bin",
35
+ "dist",
36
+ "demos",
37
+ "scripts/postinstall.mjs",
38
+ "README.md",
39
+ "LICENSE",
40
+ "CHANGELOG.md"
41
+ ],
42
+ "engines": {
43
+ "node": ">=20"
44
+ },
45
+ "scripts": {
46
+ "build": "node scripts/clean.mjs && tsc -p tsconfig.json && node scripts/copy-ui.mjs",
47
+ "typecheck": "tsc -p tsconfig.json --noEmit",
48
+ "pretest": "npm run build",
49
+ "test": "vitest run",
50
+ "postinstall": "node scripts/postinstall.mjs",
51
+ "prepublishOnly": "npm test",
52
+ "demo:success": "npm run build && node bin/unfold.js demo success",
53
+ "demo:failure": "npm run build && node bin/unfold.js demo build-failure",
54
+ "demo:interrupted": "npm run build && node bin/unfold.js demo interrupted"
55
+ },
56
+ "optionalDependencies": {
57
+ "node-pty": "1.1.0"
58
+ },
59
+ "devDependencies": {
60
+ "@types/node": "^22.10.2",
61
+ "@xterm/headless": "^5.5.0",
62
+ "typescript": "^5.6.3",
63
+ "vitest": "^4.1.12",
64
+ "vite": "^7.3.7"
65
+ }
66
+ }
@@ -0,0 +1,13 @@
1
+ // node-pty 1.1.0 prebuilds can ship spawn-helper without its execute bit.
2
+ import { chmodSync, existsSync, statSync } from 'node:fs';
3
+ import { createRequire } from 'node:module';
4
+ import { dirname, join } from 'node:path';
5
+
6
+ try {
7
+ const require = createRequire(import.meta.url);
8
+ const root = dirname(require.resolve('node-pty/package.json'));
9
+ const helper = join(root, 'prebuilds', `${process.platform}-${process.arch}`, 'spawn-helper');
10
+ if (existsSync(helper) && !(statSync(helper).mode & 0o111)) chmodSync(helper, 0o755);
11
+ } catch {
12
+ // node-pty missing: Unfold falls back to pipes.
13
+ }