@goliapkg/sentori-cli 0.5.3 → 1.0.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 (58) hide show
  1. package/README.md +27 -32
  2. package/lib/index.d.ts +3 -0
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +723 -0
  5. package/lib/index.js.map +1 -0
  6. package/lib/issue.d.ts +26 -0
  7. package/lib/issue.d.ts.map +1 -0
  8. package/lib/issue.js +50 -0
  9. package/lib/issue.js.map +1 -0
  10. package/lib/lenient.d.ts +13 -0
  11. package/lib/lenient.d.ts.map +1 -0
  12. package/lib/lenient.js +25 -0
  13. package/lib/lenient.js.map +1 -0
  14. package/lib/mcp.d.ts +16 -0
  15. package/lib/mcp.d.ts.map +1 -0
  16. package/lib/mcp.js +194 -0
  17. package/lib/mcp.js.map +1 -0
  18. package/lib/native-artifacts.d.ts +42 -0
  19. package/lib/native-artifacts.d.ts.map +1 -0
  20. package/lib/native-artifacts.js +137 -0
  21. package/lib/native-artifacts.js.map +1 -0
  22. package/lib/probes.d.ts +10 -0
  23. package/lib/probes.d.ts.map +1 -0
  24. package/lib/probes.js +75 -0
  25. package/lib/probes.js.map +1 -0
  26. package/lib/push.d.ts +42 -0
  27. package/lib/push.d.ts.map +1 -0
  28. package/lib/push.js +92 -0
  29. package/lib/push.js.map +1 -0
  30. package/lib/react-native.d.ts +25 -0
  31. package/lib/react-native.d.ts.map +1 -0
  32. package/lib/react-native.js +82 -0
  33. package/lib/react-native.js.map +1 -0
  34. package/lib/source-bundle.d.ts +28 -0
  35. package/lib/source-bundle.d.ts.map +1 -0
  36. package/lib/source-bundle.js +193 -0
  37. package/lib/source-bundle.js.map +1 -0
  38. package/lib/upload.d.ts +13 -0
  39. package/lib/upload.d.ts.map +1 -0
  40. package/lib/upload.js +28 -0
  41. package/lib/upload.js.map +1 -0
  42. package/package.json +23 -13
  43. package/src/__tests__/lenient.test.ts +32 -0
  44. package/src/__tests__/mcp.test.ts +32 -0
  45. package/src/__tests__/native-artifacts.test.ts +125 -0
  46. package/src/__tests__/probes.test.ts +41 -0
  47. package/src/__tests__/react-native.test.ts +37 -0
  48. package/src/index.ts +727 -0
  49. package/src/issue.ts +82 -0
  50. package/src/lenient.ts +39 -0
  51. package/src/mcp.ts +230 -0
  52. package/src/native-artifacts.ts +175 -0
  53. package/src/probes.ts +75 -0
  54. package/src/push.ts +174 -0
  55. package/src/react-native.ts +94 -0
  56. package/src/upload.ts +44 -0
  57. package/bin/sentori-cli.js +0 -32
  58. package/scripts/postinstall.js +0 -90
package/README.md CHANGED
@@ -1,55 +1,50 @@
1
1
  # @goliapkg/sentori-cli
2
2
 
3
- Thin npm wrapper around the [Sentori](https://sentori.golia.jp) Rust CLI. The package downloads the prebuilt binary for your platform on `npm install` (postinstall hook) so `npx @goliapkg/sentori-cli` works the moment you have it in `package.json`.
3
+ Node-based CLI for [Sentori](https://sentori.golia.jp). Two surfaces:
4
+
5
+ - **Source-map upload** for web bundlers + Hermes (React Native) builds
6
+ - **Issue triage** (list / resolve / silence / comment) — usable as
7
+ a Model Context Protocol (MCP) server so Claude / Cursor / Aider
8
+ can act on your error inbox
4
9
 
5
10
  ## Install
6
11
 
7
12
  ```sh
8
- npm install -D @goliapkg/sentori-cli
9
- # or pnpm / yarn
10
-
11
- npx @goliapkg/sentori-cli upload sourcemap \
12
- --release myapp@1.2.3+456 \
13
- --token st_pk_... \
14
- --ingest-url https://ingest.sentori.your-host.com \
15
- dist/bundle.js.map
13
+ bun add -D @goliapkg/sentori-cli
14
+ # or invoke transiently with bunx / npx
16
15
  ```
17
16
 
18
- ### Using bun
19
-
20
- Bun blocks postinstall scripts by default. After `bun add`, run:
17
+ ## Source-map upload
21
18
 
22
19
  ```sh
23
- bun pm trust @goliapkg/sentori-cli
20
+ sentori-cli upload sourcemap \
21
+ --release "my-app@1.2.3" \
22
+ --token "$SENTORI_TOKEN" \
23
+ ./dist
24
24
  ```
25
25
 
26
- once to allow the binary download, or use `bun add --trust @goliapkg/sentori-cli` from the start.
27
-
28
- Supported platforms:
29
-
30
- | OS | Arch |
31
- |----|------|
32
- | Linux | x64, arm64 |
33
- | macOS | x64 (Intel), arm64 (Apple Silicon) |
34
-
35
- If your platform isn't covered, the postinstall hook will print a soft warning and you can fall back to:
26
+ React Native (Android, raw maps still on disk):
36
27
 
37
28
  ```sh
38
- cargo install --git https://github.com/goliajp/sentori --bin sentori-cli
29
+ sentori-cli react-native upload \
30
+ --release "$APPLICATION_ID@$VERSION+$BUILD" \
31
+ --metro-map android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map \
32
+ --hermes-map android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.compiler.map \
33
+ --bundle android/app/build/generated/assets/react/release/index.android.bundle
39
34
  ```
40
35
 
41
- ## Skipping postinstall
42
-
43
- `SENTORI_SKIP_DOWNLOAD=1` skips the binary download — useful in monorepo bootstrap or sandbox CI environments where the binary will be vendored separately.
44
-
45
- ## Verifying the binary
46
-
47
- Each release artifact ships with a `.sha256` sidecar published next to the `.tar.gz` on the GitHub Release page; the postinstall script downloads only the tarball but you can manually verify:
36
+ ## Issue triage (MCP)
48
37
 
49
38
  ```sh
50
- curl -L https://github.com/goliajp/sentori/releases/download/cli-v<VERSION>/sentori-cli-cli-v<VERSION>-darwin-arm64.tar.gz.sha256
39
+ sentori-cli mcp serve --project "$PROJECT_UUID" --token "$SK_TOKEN"
51
40
  ```
52
41
 
42
+ Then point a MCP-compatible agent (Claude Code config / Cursor / etc.)
43
+ at the spawned stdio server.
44
+
45
+ → Full reference: `sentori-cli --help`
46
+ → Recipes: [sentori.golia.jp/docs/recipes/sourcemap-upload](https://sentori.golia.jp/docs/recipes/sourcemap-upload)
47
+
53
48
  ## License
54
49
 
55
50
  Dual-licensed under [Apache-2.0](../../LICENSE-APACHE) OR
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}