neatlogs-cli 0.1.0-team-test.6 → 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.
- package/CHANGELOG.md +18 -4
- package/LICENSE +21 -0
- package/README.md +33 -2
- package/dist/bin.js +670 -467
- package/docs/command-reference.md +18 -18
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to `neatlogs-cli` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.1.0 (release candidate)
|
|
8
|
+
|
|
9
|
+
- Prepare the first stable `neatlogs-cli` version under the MIT license.
|
|
10
|
+
- Keep the `neatlogs` command and existing package name for compatibility.
|
|
11
|
+
- Support separate US and EU host profiles with deployment-bound credentials.
|
|
12
|
+
- Include read-oriented OAuth defaults, bounded login shutdown, current API
|
|
13
|
+
contracts and safe request-ID diagnostics from the retest repairs.
|
|
14
|
+
- Publication and deployed end-to-end acceptance remain release requirements.
|
|
15
|
+
|
|
16
|
+
## 0.1.0-team-test.7 (unpublished; superseded by 0.1.0)
|
|
17
|
+
|
|
18
|
+
- Include the merged fresh-start fixes: read-only default OAuth scopes and
|
|
19
|
+
field-specific guidance for required analytics dates and other arguments.
|
|
20
|
+
- Refresh the embedded Public API contract for detection issue semantics
|
|
21
|
+
returned by the current dev backend.
|
|
22
|
+
- Preserve safe server request IDs and operation paths when a response fails
|
|
23
|
+
JSON decoding or strict contract validation, without exposing response bodies.
|
|
24
|
+
|
|
7
25
|
## 0.1.0-team-test.6
|
|
8
26
|
|
|
9
27
|
- Close unused browser callback connections so OAuth login, denial, and timeout
|
|
@@ -52,7 +70,3 @@ All notable changes to `neatlogs-cli` are documented in this file.
|
|
|
52
70
|
## 0.1.0-team-test.1
|
|
53
71
|
|
|
54
72
|
- Team-testing prerelease of the NeatLogs public API CLI.
|
|
55
|
-
|
|
56
|
-
## 0.1.0
|
|
57
|
-
|
|
58
|
-
- Initial public release of the NeatLogs public API CLI.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NeatLogs contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -34,14 +34,21 @@ flowchart LR
|
|
|
34
34
|
|
|
35
35
|
## Human quickstart
|
|
36
36
|
|
|
37
|
+
The stable release candidate in this checkout is `neatlogs-cli@0.1.0`, under
|
|
38
|
+
the MIT license in [LICENSE](LICENSE). It is not published by a source change.
|
|
39
|
+
Verify `npm view neatlogs-cli@0.1.0 version` before using the stable install
|
|
40
|
+
command; the currently published team-test release remains available through
|
|
41
|
+
`npm install --global neatlogs-cli@team-test` until the reviewed release ships.
|
|
42
|
+
|
|
37
43
|
1. Install the CLI and confirm that it runs.
|
|
38
44
|
|
|
39
45
|
```bash
|
|
40
|
-
npm install --global neatlogs-cli@
|
|
46
|
+
npm install --global neatlogs-cli@0.1.0
|
|
41
47
|
neatlogs --version
|
|
42
48
|
```
|
|
43
49
|
|
|
44
|
-
The
|
|
50
|
+
The stable candidate is `0.1.0`; publication must be independently verified.
|
|
51
|
+
Use Node.js 22 or
|
|
45
52
|
24. The complete dev setup and verification flow is in the
|
|
46
53
|
[team quickstart](../backend/docs/public-api/dev-team-quickstart.md).
|
|
47
54
|
|
|
@@ -79,6 +86,26 @@ flowchart LR
|
|
|
79
86
|
`profile set` stores non-secret host and project preferences. Login stores the
|
|
80
87
|
OAuth credentials separately in the native operating-system vault.
|
|
81
88
|
|
|
89
|
+
## US and EU profiles
|
|
90
|
+
|
|
91
|
+
One CLI package supports both regions. Use the dashboard origin, not the SDK
|
|
92
|
+
ingest/backend URL, as the CLI host:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
neatlogs profile set us --host '<us-dashboard-origin>'
|
|
96
|
+
neatlogs profile set eu --host 'https://eu.app.neatlogs.com'
|
|
97
|
+
neatlogs --profile eu auth login
|
|
98
|
+
neatlogs --profile eu projects list
|
|
99
|
+
neatlogs profile set eu --host 'https://eu.app.neatlogs.com' --project '<eu-project-uuid>'
|
|
100
|
+
neatlogs --profile eu traces list --limit 10
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The EU backend uses `https://eu.ingest.neatlogs.com`, but OAuth discovery and
|
|
104
|
+
public API requests stay on `https://eu.app.neatlogs.com`. Sign in separately
|
|
105
|
+
for each profile; US credentials do not authorize EU requests. Region support
|
|
106
|
+
requires the frontend, backend, schema and runtime configuration to be deployed
|
|
107
|
+
there first. See the [EU release preflight](../backend/docs/public-api/eu-release.md).
|
|
108
|
+
|
|
82
109
|
## Completion and bounded pagination
|
|
83
110
|
|
|
84
111
|
Generate completion from the installed CLI command tree, then regenerate it
|
|
@@ -120,6 +147,10 @@ The consent page lists only the permissions requested by this login command.
|
|
|
120
147
|
`offline_access` allows refresh tokens; it is not an API permission shown by
|
|
121
148
|
`whoami`.
|
|
122
149
|
|
|
150
|
+
Existing OAuth credentials retain their issued scopes after a CLI upgrade.
|
|
151
|
+
Log out of the selected profile and sign in again to apply the stable release's
|
|
152
|
+
read-oriented defaults; request write scopes explicitly when needed.
|
|
153
|
+
|
|
123
154
|
## Agent and CI automation
|
|
124
155
|
|
|
125
156
|
In **Settings → Service Accounts**, create a dedicated account, bind only the
|