forkit-connect 0.1.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 (51) hide show
  1. package/QUICKSTART.md +55 -0
  2. package/README.md +96 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.js +4724 -0
  5. package/dist/index.d.ts +7 -0
  6. package/dist/index.js +21 -0
  7. package/dist/launcher.d.ts +33 -0
  8. package/dist/launcher.js +9344 -0
  9. package/dist/ps-list-loader.d.ts +5 -0
  10. package/dist/ps-list-loader.js +20 -0
  11. package/dist/v1/agent-observation.d.ts +42 -0
  12. package/dist/v1/agent-observation.js +499 -0
  13. package/dist/v1/api.d.ts +276 -0
  14. package/dist/v1/api.js +390 -0
  15. package/dist/v1/credential-store.d.ts +92 -0
  16. package/dist/v1/credential-store.js +797 -0
  17. package/dist/v1/currency.d.ts +41 -0
  18. package/dist/v1/currency.js +127 -0
  19. package/dist/v1/daemon.d.ts +50 -0
  20. package/dist/v1/daemon.js +265 -0
  21. package/dist/v1/discovery.d.ts +61 -0
  22. package/dist/v1/discovery.js +168 -0
  23. package/dist/v1/filesystem-models.d.ts +11 -0
  24. package/dist/v1/filesystem-models.js +261 -0
  25. package/dist/v1/heartbeat.d.ts +45 -0
  26. package/dist/v1/heartbeat.js +463 -0
  27. package/dist/v1/lifecycle-monitor.d.ts +78 -0
  28. package/dist/v1/lifecycle-monitor.js +512 -0
  29. package/dist/v1/lmstudio.d.ts +11 -0
  30. package/dist/v1/lmstudio.js +148 -0
  31. package/dist/v1/ollama.d.ts +19 -0
  32. package/dist/v1/ollama.js +164 -0
  33. package/dist/v1/openai-compatible.d.ts +12 -0
  34. package/dist/v1/openai-compatible.js +124 -0
  35. package/dist/v1/process-scout.d.ts +50 -0
  36. package/dist/v1/process-scout.js +715 -0
  37. package/dist/v1/providers.d.ts +50 -0
  38. package/dist/v1/providers.js +106 -0
  39. package/dist/v1/service.d.ts +680 -0
  40. package/dist/v1/service.js +8286 -0
  41. package/dist/v1/state.d.ts +87 -0
  42. package/dist/v1/state.js +1318 -0
  43. package/dist/v1/test-credential-backend.d.ts +19 -0
  44. package/dist/v1/test-credential-backend.js +49 -0
  45. package/dist/v1/types.d.ts +873 -0
  46. package/dist/v1/types.js +3 -0
  47. package/dist/v1/update.d.ts +38 -0
  48. package/dist/v1/update.js +184 -0
  49. package/dist/v1/vitality-pulse.d.ts +36 -0
  50. package/dist/v1/vitality-pulse.js +512 -0
  51. package/package.json +53 -0
package/QUICKSTART.md ADDED
@@ -0,0 +1,55 @@
1
+ # Forkit Connect Quickstart
2
+
3
+ ## Ubuntu Install
4
+
5
+ ```bash
6
+ cd integrations/connect
7
+ pnpm run install:ubuntu
8
+ export PATH="$HOME/.local/bin:$PATH"
9
+ forkit-connect --help
10
+ ```
11
+
12
+ On apt-based Linux, the installer now offers to install `libsecret-tools` so `forkit-connect login` can persist the device session securely between runs.
13
+
14
+ If you want the command available in new shells too, add this to `~/.bashrc`:
15
+
16
+ ```bash
17
+ export PATH="$HOME/.local/bin:$PATH"
18
+ ```
19
+
20
+ ## Recommended First Run
21
+
22
+ ```bash
23
+ forkit-connect init
24
+ forkit-connect login
25
+ forkit-connect scan
26
+ forkit-connect inbox
27
+ forkit-connect changes
28
+ forkit-connect status
29
+ forkit-connect start
30
+ ```
31
+
32
+ ## What Each Step Does
33
+
34
+ - `init` creates local Connect identity and privacy posture metadata.
35
+ - `login` completes the device-login flow against Forkit.dev.
36
+ - `scan` detects supported local runtimes and AI models.
37
+ - `inbox` shows what is ready to connect, what needs confirmation, and what is already connected.
38
+ - `changes` shows the local evidence trail, runtime signal history, and anything still waiting to sync.
39
+ - `status` summarizes readiness, daemon state, discovery counts, and next recommended action.
40
+ - `start` launches the daemon loop for continued local discovery and sync preparation.
41
+
42
+ ## Useful Next Commands
43
+
44
+ - `forkit-connect connect <modelNameOrDiscoveryHash>` — prepare or sync a Passport draft for a detected model
45
+ - `forkit-connect daemon status` — inspect daemon state
46
+ - `forkit-connect pulse status` — inspect best-effort local runtime telemetry
47
+ - `forkit-connect agent review` — inspect detected local AI agents
48
+ - `forkit-connect update-check` — inspect release metadata without enabling auto-update
49
+
50
+ ## Notes
51
+
52
+ - Resource usage shown by Connect is heuristic runtime-health telemetry, not billing.
53
+ - Normal users do not need to expose or manage backend API keys.
54
+ - Website governance remains the authority for workspace, project, and Passport control.
55
+ - For pre-publish validation, generate a tarball with `npm pack` and run `pnpm run smoke:package`.
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ # Forkit Connect
2
+
3
+ Forkit Connect is the local engine for discovering AI runtimes, reviewing what is running on-device, and preparing metadata-only Passport and lifecycle handoff into Forkit.dev.
4
+
5
+ ## Install Surface
6
+
7
+ - Package name: `@forkit/connect`
8
+ - Public binary: `forkit-connect`
9
+ - Intended bootstrap: `npx forkit-connect ...` once published
10
+ - Current pre-publish workflow: install from a local tarball generated with `npm pack`
11
+ - Current Ubuntu shortcut: `pnpm run install:ubuntu` installs into user space without `sudo`
12
+
13
+ ## Ubuntu Install
14
+
15
+ Requirements:
16
+
17
+ - Node.js `20+`
18
+ - `npm`
19
+ - `pnpm` for local packaging from this repo
20
+ - On Linux, `libsecret-tools` is recommended so Forkit Connect can store login credentials in Secret Service
21
+
22
+ From `integrations/connect`:
23
+
24
+ ```bash
25
+ pnpm run install:ubuntu
26
+ export PATH="$HOME/.local/bin:$PATH"
27
+ forkit-connect --help
28
+ forkit-connect status
29
+ ```
30
+
31
+ The installer:
32
+
33
+ - builds and packs the current Connect package
34
+ - installs it into `~/.local/share/forkit-connect`
35
+ - links `forkit-connect` into `~/.local/bin`
36
+ - offers to install `libsecret-tools` on apt-based Linux so login persistence works without a separate manual step
37
+ - avoids `sudo` and does not require the full monorepo at runtime after install
38
+
39
+ If `libsecret-tools` is not present, read-only commands still work, but stored login persistence on Linux will stay limited until Secret Service tooling is installed.
40
+
41
+ If `~/.local/bin` is already on your `PATH`, the command is immediately accessible.
42
+
43
+ ## Public Commands
44
+
45
+ - `forkit-connect init` — initialize local Connect identity and privacy posture
46
+ - `forkit-connect login` — link this device to Forkit.dev with the device flow
47
+ - `forkit-connect scan` — discover local runtimes and AI models
48
+ - `forkit-connect inbox` — review the Smart Registration Inbox
49
+ - `forkit-connect status` — show public Connect readiness status
50
+ - `forkit-connect changes` — view collected local evidence, runtime signal history, and pending sync items
51
+ - `forkit-connect start` — start the local daemon loop
52
+
53
+ ## Advanced Commands
54
+
55
+ Advanced flows remain available under the same binary, including `connect`, `review`, `daemon`, `config`, `pulse`, `c2`, `train`, `agent`, and notification utilities.
56
+
57
+ ## Privacy and Security Posture
58
+
59
+ - Session credentials are stored outside `state.v1.json`.
60
+ - Backend-bound endpoint metadata is sanitized before upload.
61
+ - Connect does not require normal users to manage backend API keys.
62
+ - Local runtime telemetry is best-effort health data, not billing or exact cost accounting.
63
+ - Website and backend governance remain authoritative for registration and C2 decisions.
64
+ - Auto-update is not enabled as a package-install workflow.
65
+
66
+ ## Local Tarball Flow
67
+
68
+ From `integrations/connect`:
69
+
70
+ ```bash
71
+ pnpm run prepack
72
+ npm pack
73
+ ```
74
+
75
+ Then install the generated tarball into a clean directory:
76
+
77
+ ```bash
78
+ mkdir -p /tmp/forkit-connect-smoke
79
+ cd /tmp/forkit-connect-smoke
80
+ npm init -y
81
+ npm install /absolute/path/to/forkit-connect-0.1.0.tgz
82
+ npx forkit-connect --help
83
+ npx forkit-connect status
84
+ npx forkit-connect inbox
85
+ npx forkit-connect init
86
+ ```
87
+
88
+ For a user-space Ubuntu install that creates a stable command path, prefer `pnpm run install:ubuntu`.
89
+
90
+ ## Development Notes
91
+
92
+ - Build config: `tsconfig.build.json`
93
+ - Package smoke script: `pnpm run smoke:package`
94
+ - Dist pruning removes compiled tests and source maps before packaging
95
+
96
+ See `QUICKSTART.md` for the recommended onboarding sequence.
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map