sentry 0.1.2 → 0.3.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/LICENSE.md +105 -0
- package/README.md +81 -50
- package/dist/bin.cjs +497 -0
- package/package.json +48 -19
- package/.gitignore +0 -4
- package/.npmignore +0 -1
- package/Cakefile +0 -12
- package/LICENSE +0 -9
- package/lib/sentry.js +0 -78
- package/spec/fixtures/bar.js +0 -1
- package/spec/fixtures/deepwildcard/bar.js +0 -1
- package/spec/fixtures/deepwildcard/deep/baz.coffee +0 -1
- package/spec/fixtures/deepwildcard/deep/foo.js +0 -1
- package/spec/fixtures/deepwildcard/deep/qux.js +0 -1
- package/spec/fixtures/regex/bar.js +0 -1
- package/spec/fixtures/regex/deep/foo.js +0 -1
- package/spec/fixtures/regex/deep/foo.txt +0 -1
- package/spec/fixtures/string/bar.js +0 -1
- package/spec/fixtures/string/baz.js +0 -1
- package/spec/fixtures/string/foo.js +0 -1
- package/spec/fixtures/wildcard/bar.js +0 -1
- package/spec/fixtures/wildcard/baz.coffee +0 -1
- package/spec/fixtures/wildcard/foo.js +0 -1
- package/spec/fixtures/wildcard/qux.js +0 -1
- package/spec/helpers/spec_helper.coffee +0 -8
- package/spec/sentry_spec.coffee +0 -170
- package/src/sentry.coffee +0 -83
package/LICENSE.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, Apache 2.0 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2025 Functional Software, Inc. dba Sentry
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,82 +1,113 @@
|
|
|
1
|
-
#
|
|
1
|
+
# sentry
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A gh-like CLI for Sentry.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Install globally with your preferred package manager:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```bash
|
|
10
|
+
# npm
|
|
11
|
+
npm install -g sentry
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
# pnpm
|
|
14
|
+
pnpm add -g sentry
|
|
13
15
|
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
+
# yarn
|
|
17
|
+
yarn global add sentry
|
|
16
18
|
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
+
# bun
|
|
20
|
+
bun add -g sentry
|
|
21
|
+
```
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
sentry.watch 'fld/**/*', ->
|
|
23
|
+
Or run directly without installing:
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
sentry
|
|
25
|
+
```bash
|
|
26
|
+
npx sentry --help
|
|
27
|
+
pnpm dlx sentry --help
|
|
28
|
+
yarn dlx sentry --help
|
|
29
|
+
bunx sentry --help
|
|
30
|
+
```
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
sentry.watch 'file.coffee', 'coffee -c'
|
|
28
|
-
````
|
|
32
|
+
## Setup
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
```bash
|
|
35
|
+
# Login via OAuth (device flow)
|
|
36
|
+
sentry auth login
|
|
37
|
+
```
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
You'll be given a URL and a code to enter. Once you authorize, the CLI will automatically receive your token.
|
|
33
40
|
|
|
34
|
-
|
|
41
|
+
Or use an API token directly:
|
|
35
42
|
|
|
36
|
-
|
|
43
|
+
```bash
|
|
44
|
+
sentry auth login --token YOUR_SENTRY_API_TOKEN
|
|
45
|
+
```
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
sentry.watch 'file.js', 'coffee -c', (err, stdout, stderr) ->
|
|
40
|
-
````
|
|
47
|
+
## Commands
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
### Auth
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
sentry
|
|
46
|
-
|
|
51
|
+
```bash
|
|
52
|
+
sentry auth login # Login via OAuth device flow
|
|
53
|
+
sentry auth logout # Logout
|
|
54
|
+
sentry auth status # Check auth status
|
|
55
|
+
```
|
|
47
56
|
|
|
48
|
-
|
|
57
|
+
### Organizations
|
|
49
58
|
|
|
50
|
-
|
|
59
|
+
```bash
|
|
60
|
+
sentry org list # List all orgs
|
|
61
|
+
sentry org list --json # Output as JSON
|
|
62
|
+
sentry org view my-org # View organization details
|
|
63
|
+
sentry org view my-org -w # Open organization in browser
|
|
64
|
+
```
|
|
51
65
|
|
|
52
|
-
|
|
53
|
-
sentry.watch '/folder/*', ->
|
|
66
|
+
### Projects
|
|
54
67
|
|
|
55
|
-
|
|
56
|
-
sentry
|
|
68
|
+
```bash
|
|
69
|
+
sentry project list # List all projects
|
|
70
|
+
sentry project list my-org # List projects in org
|
|
71
|
+
sentry project list --platform javascript # Filter by platform
|
|
72
|
+
sentry project view my-project # View project details
|
|
73
|
+
sentry project view my-project -w # Open project in browser
|
|
74
|
+
```
|
|
57
75
|
|
|
58
|
-
|
|
59
|
-
sentry.watch '/folder/**/*', ->
|
|
76
|
+
### Issues
|
|
60
77
|
|
|
61
|
-
|
|
62
|
-
sentry
|
|
63
|
-
|
|
78
|
+
```bash
|
|
79
|
+
sentry issue list --org my-org --project my-project # List issues
|
|
80
|
+
sentry issue list --org my-org --project my-project --json
|
|
81
|
+
sentry issue view 123456789 # View issue by ID
|
|
82
|
+
sentry issue view PROJ-ABC # View issue by short ID
|
|
83
|
+
sentry issue view 123456789 -w # Open issue in browser
|
|
84
|
+
```
|
|
64
85
|
|
|
65
|
-
###
|
|
86
|
+
### Events
|
|
66
87
|
|
|
67
|
-
|
|
88
|
+
```bash
|
|
89
|
+
sentry event view abc123def # View event by ID
|
|
90
|
+
sentry event view abc123def -w # Open event in browser
|
|
91
|
+
```
|
|
68
92
|
|
|
69
|
-
|
|
93
|
+
### API
|
|
70
94
|
|
|
71
|
-
|
|
72
|
-
sentry
|
|
95
|
+
```bash
|
|
96
|
+
sentry api /organizations/ # GET request
|
|
97
|
+
sentry api /issues/123/ --method PUT --field status=resolved
|
|
98
|
+
sentry api /organizations/ --include # Show headers
|
|
99
|
+
```
|
|
73
100
|
|
|
74
|
-
|
|
75
|
-
sentry.watchRegExp '../tests/', /^test_,.coffee$/, ->
|
|
76
|
-
````
|
|
101
|
+
## Development
|
|
77
102
|
|
|
78
|
-
|
|
103
|
+
```bash
|
|
104
|
+
bun install
|
|
105
|
+
bun run --env-file=.env.local src/bin.ts --help # Run CLI in dev mode
|
|
106
|
+
bun run build # Build binary
|
|
107
|
+
```
|
|
79
108
|
|
|
80
|
-
|
|
109
|
+
See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed development instructions.
|
|
81
110
|
|
|
82
|
-
|
|
111
|
+
## Config
|
|
112
|
+
|
|
113
|
+
Stored in `~/.sentry/config.json` (mode 600).
|