notioncode 0.1.0 → 0.1.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.
Files changed (78) hide show
  1. package/README.md +22 -9
  2. package/agent-runtime-server/package-lock.json +4377 -0
  3. package/agent-runtime-server/package.json +36 -0
  4. package/agent-runtime-server/scripts/fix-node-pty.js +67 -0
  5. package/agent-runtime-server/server/agent-session-service.js +816 -0
  6. package/agent-runtime-server/server/claude-sdk.js +836 -0
  7. package/agent-runtime-server/server/cli.js +330 -0
  8. package/agent-runtime-server/server/constants/config.js +5 -0
  9. package/agent-runtime-server/server/cursor-cli.js +335 -0
  10. package/agent-runtime-server/server/database/db.js +653 -0
  11. package/agent-runtime-server/server/database/init.sql +99 -0
  12. package/agent-runtime-server/server/gemini-cli.js +460 -0
  13. package/agent-runtime-server/server/gemini-response-handler.js +79 -0
  14. package/agent-runtime-server/server/index.js +2569 -0
  15. package/agent-runtime-server/server/load-env.js +32 -0
  16. package/agent-runtime-server/server/middleware/auth.js +132 -0
  17. package/agent-runtime-server/server/openai-codex.js +512 -0
  18. package/agent-runtime-server/server/projects.js +2594 -0
  19. package/agent-runtime-server/server/providers/claude/adapter.js +278 -0
  20. package/agent-runtime-server/server/providers/codex/adapter.js +248 -0
  21. package/agent-runtime-server/server/providers/cursor/adapter.js +353 -0
  22. package/agent-runtime-server/server/providers/gemini/adapter.js +186 -0
  23. package/agent-runtime-server/server/providers/registry.js +44 -0
  24. package/agent-runtime-server/server/providers/types.js +119 -0
  25. package/agent-runtime-server/server/providers/utils.js +29 -0
  26. package/agent-runtime-server/server/routes/agent-sessions.js +238 -0
  27. package/agent-runtime-server/server/routes/agent.js +1244 -0
  28. package/agent-runtime-server/server/routes/auth.js +144 -0
  29. package/agent-runtime-server/server/routes/cli-auth.js +478 -0
  30. package/agent-runtime-server/server/routes/codex.js +329 -0
  31. package/agent-runtime-server/server/routes/commands.js +596 -0
  32. package/agent-runtime-server/server/routes/cursor.js +798 -0
  33. package/agent-runtime-server/server/routes/gemini.js +24 -0
  34. package/agent-runtime-server/server/routes/git.js +1508 -0
  35. package/agent-runtime-server/server/routes/mcp-utils.js +48 -0
  36. package/agent-runtime-server/server/routes/mcp.js +552 -0
  37. package/agent-runtime-server/server/routes/messages.js +61 -0
  38. package/agent-runtime-server/server/routes/plugins.js +307 -0
  39. package/agent-runtime-server/server/routes/projects.js +548 -0
  40. package/agent-runtime-server/server/routes/settings.js +276 -0
  41. package/agent-runtime-server/server/routes/taskmaster.js +1963 -0
  42. package/agent-runtime-server/server/routes/user.js +123 -0
  43. package/agent-runtime-server/server/services/notification-orchestrator.js +227 -0
  44. package/agent-runtime-server/server/services/vapid-keys.js +35 -0
  45. package/agent-runtime-server/server/sessionManager.js +226 -0
  46. package/agent-runtime-server/server/utils/commandParser.js +303 -0
  47. package/agent-runtime-server/server/utils/frontmatter.js +18 -0
  48. package/agent-runtime-server/server/utils/gitConfig.js +34 -0
  49. package/agent-runtime-server/server/utils/mcp-detector.js +198 -0
  50. package/agent-runtime-server/server/utils/plugin-loader.js +457 -0
  51. package/agent-runtime-server/server/utils/plugin-process-manager.js +184 -0
  52. package/agent-runtime-server/server/utils/taskmaster-websocket.js +129 -0
  53. package/agent-runtime-server/shared/modelConstants.js +12 -0
  54. package/agent-runtime-server/shared/modelConstants.test.js +34 -0
  55. package/agent-runtime-server/shared/networkHosts.js +22 -0
  56. package/agent-runtime-server/test_sdk.mjs +16 -0
  57. package/bin/bridges/darwin-x64/nocode-bridge +0 -0
  58. package/bin/{nocode-local.js → notioncode.js} +2 -8
  59. package/dist/assets/icon-CQtd7WEB.png +0 -0
  60. package/dist/assets/index-D_1ZrHDe.js +1 -0
  61. package/dist/assets/index-DhCWie1Z.css +1 -0
  62. package/dist/assets/index-DkGqIiwF.js +689 -0
  63. package/dist/index.html +46 -0
  64. package/dist/onboarding/step1_create.png +0 -0
  65. package/dist/onboarding/step2_capabilities.png +0 -0
  66. package/dist/onboarding/step2b_content_access.png +0 -0
  67. package/dist/onboarding/step2c_page_access.png +0 -0
  68. package/dist/onboarding/step3_token.png +0 -0
  69. package/dist/onboarding/step4_webhook.png +0 -0
  70. package/dist/onboarding/step6a_verify.png +0 -0
  71. package/dist/onboarding/step6b_copy_verify_token.png +0 -0
  72. package/dist/tinyfish-fish-only.png +0 -0
  73. package/lib/certs.js +332 -0
  74. package/lib/install.js +48 -4
  75. package/lib/start.js +346 -29
  76. package/package.json +10 -4
  77. package/src/shared/modelRegistry.d.ts +24 -0
  78. package/src/shared/modelRegistry.js +163 -0
package/README.md CHANGED
@@ -1,30 +1,38 @@
1
- # @nocodenotioncode
1
+ # notioncode
2
2
 
3
- Run the Notion Code local companion without opening the Tauri desktop shell.
3
+ Run the local companion runtime behind the `npx notioncode start` flow.
4
4
 
5
5
  ## Intended usage
6
6
 
7
7
  ```bash
8
- npx @nocodenotioncode start
8
+ npx notioncode start
9
9
  ```
10
10
 
11
11
  Options:
12
12
 
13
13
  ```bash
14
- npx @nocodenotioncode install
15
- npx @nocodenotioncode doctor
16
- npx @nocodenotioncode start --with-local-ui
14
+ npx notioncode install
15
+ npx notioncode doctor
16
+ npx notioncode start
17
17
  ```
18
18
 
19
19
  ## What it starts
20
20
 
21
21
  - localhost bridge on `127.0.0.1:3456`
22
- - optional local UI on `127.0.0.1:1420`
22
+ - local UI on `http://127.0.0.1:1420` for non-Safari default browsers
23
+ - local UI on `https://localhost:1420` when the default browser is Safari
23
24
  - browser handoff to `https://www.notioncode.live`
25
+ - trusted localhost certificate provisioning with `mkcert` only when Safari-compatible HTTPS is needed
24
26
 
25
27
  ## Bridge binaries
26
28
 
27
- The package prefers a prebuilt bridge binary and falls back to a locally built binary when running from source.
29
+ The package prefers a bridge binary bundled inside the `notioncode` npm tarball itself.
30
+ If no bundled bridge is present, it falls back to:
31
+
32
+ 1. an explicitly provided `NOCODE_BRIDGE_BIN`
33
+ 2. a cached bridge binary in the companion install root
34
+ 3. a locally built bridge when running from source
35
+ 4. a GitHub release download as the final fallback
28
36
 
29
37
  Environment variables:
30
38
 
@@ -33,6 +41,11 @@ Environment variables:
33
41
  - `NOCODE_CLOUD_URL`
34
42
  - `NOCODE_NO_OPEN=1`
35
43
 
44
+ ## Safari support
45
+
46
+ When the system default browser is Safari, this package switches the local UI to `https://localhost:1420`.
47
+ That path requires a trusted localhost certificate, so the setup flow will install or download `mkcert` and ask the OS to trust a local CA when needed.
48
+
36
49
  ## Current limitation
37
50
 
38
- This package is implemented inside the source tree and still expects local runtime assets from this repository. It is publication-ready in interface and metadata, but the final standalone distribution still needs packaged runtime assets for the agent sidecar.
51
+ The bridge can be bundled into the `notioncode` package, but the final standalone distribution still needs packaged runtime assets for the agent sidecar and local UI to make the npm install fully self-contained.