@goliapkg/sentori-cli 0.5.3 → 0.6.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 +27 -32
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +795 -0
- package/lib/index.js.map +1 -0
- package/lib/issue.d.ts +28 -0
- package/lib/issue.d.ts.map +1 -0
- package/lib/issue.js +53 -0
- package/lib/issue.js.map +1 -0
- package/lib/mcp.d.ts +14 -0
- package/lib/mcp.d.ts.map +1 -0
- package/lib/mcp.js +371 -0
- package/lib/mcp.js.map +1 -0
- package/lib/native-artifacts.d.ts +43 -0
- package/lib/native-artifacts.d.ts.map +1 -0
- package/lib/native-artifacts.js +148 -0
- package/lib/native-artifacts.js.map +1 -0
- package/lib/push.d.ts +42 -0
- package/lib/push.d.ts.map +1 -0
- package/lib/push.js +92 -0
- package/lib/push.js.map +1 -0
- package/lib/react-native.d.ts +25 -0
- package/lib/react-native.d.ts.map +1 -0
- package/lib/react-native.js +74 -0
- package/lib/react-native.js.map +1 -0
- package/lib/source-bundle.d.ts +28 -0
- package/lib/source-bundle.d.ts.map +1 -0
- package/lib/source-bundle.js +193 -0
- package/lib/source-bundle.js.map +1 -0
- package/lib/upload.d.ts +24 -0
- package/lib/upload.d.ts.map +1 -0
- package/lib/upload.js +65 -0
- package/lib/upload.js.map +1 -0
- package/package.json +23 -13
- package/src/__tests__/issue.test.ts +95 -0
- package/src/__tests__/mcp.test.ts +124 -0
- package/src/__tests__/native-artifacts.test.ts +132 -0
- package/src/__tests__/react-native.test.ts +37 -0
- package/src/__tests__/source-bundle-from-dir.test.ts +85 -0
- package/src/__tests__/source-bundle.test.ts +105 -0
- package/src/__tests__/upload.test.ts +121 -0
- package/src/index.ts +799 -0
- package/src/issue.ts +81 -0
- package/src/mcp.ts +399 -0
- package/src/native-artifacts.ts +182 -0
- package/src/push.ts +174 -0
- package/src/react-native.ts +87 -0
- package/src/source-bundle.ts +234 -0
- package/src/upload.ts +85 -0
- package/bin/sentori-cli.js +0 -32
- package/scripts/postinstall.js +0 -90
package/README.md
CHANGED
|
@@ -1,55 +1,50 @@
|
|
|
1
1
|
# @goliapkg/sentori-cli
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
9
|
-
# or
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
Bun blocks postinstall scripts by default. After `bun add`, run:
|
|
17
|
+
## Source-map upload
|
|
21
18
|
|
|
22
19
|
```sh
|
|
23
|
-
|
|
20
|
+
sentori-cli upload sourcemap \
|
|
21
|
+
--release "my-app@1.2.3" \
|
|
22
|
+
--token "$SENTORI_TOKEN" \
|
|
23
|
+
./dist
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|