@debugbundle/cli 1.18.1 → 1.18.2
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 +2 -0
- package/dist/main.cjs +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @debugbundle/cli
|
|
2
2
|
|
|
3
|
+
Connected `doctor` diagnostics check API health and saved member authentication with a one-incident probe restricted to `cloud_project_id`. Missing or blank connected project scope fails before any request. Incident contents are discarded and are not included in the report. Local-only diagnostics make no cloud request.
|
|
4
|
+
|
|
3
5
|
In a connected workspace, `debugbundle incidents` and `--source cloud` default
|
|
4
6
|
their cloud requests to the connection's `cloud_project_id`. `--project-id <id>`
|
|
5
7
|
overrides that default. All cloud pages retain the selected project; local
|
package/dist/main.cjs
CHANGED
|
@@ -65110,6 +65110,14 @@ async function buildConnectedApiCheck(input3) {
|
|
|
65110
65110
|
if (input3.connection === null || input3.connection.mode !== "connected") {
|
|
65111
65111
|
return null;
|
|
65112
65112
|
}
|
|
65113
|
+
const projectId = input3.connection.cloud_project_id?.trim();
|
|
65114
|
+
if (!projectId) {
|
|
65115
|
+
return {
|
|
65116
|
+
name: "connected-api",
|
|
65117
|
+
status: "error",
|
|
65118
|
+
message: `Invalid connected project scope in ${CONNECTION_FILE_PATH}; run debugbundle connect before verifying member-token auth.`
|
|
65119
|
+
};
|
|
65120
|
+
}
|
|
65113
65121
|
const connectionBaseUrl = input3.connection.cloud_base_url === null ? null : normalizeBaseUrl3(input3.connection.cloud_base_url);
|
|
65114
65122
|
const authBaseUrl = input3.authState === null ? null : normalizeBaseUrl3(input3.authState.base_url);
|
|
65115
65123
|
const baseUrl = authBaseUrl ?? connectionBaseUrl;
|
|
@@ -65159,7 +65167,8 @@ async function buildConnectedApiCheck(input3) {
|
|
|
65159
65167
|
}
|
|
65160
65168
|
let incidentsResponse;
|
|
65161
65169
|
try {
|
|
65162
|
-
|
|
65170
|
+
const query = new URLSearchParams({ limit: "1", project_id: projectId });
|
|
65171
|
+
incidentsResponse = await input3.fetchImpl(`${baseUrl}/v1/incidents?${query}`, {
|
|
65163
65172
|
method: "GET",
|
|
65164
65173
|
headers: {
|
|
65165
65174
|
accept: "application/json",
|
|
@@ -81206,7 +81215,7 @@ async function handleCaptureRuleCommand2(parsedArgv, dependencies) {
|
|
|
81206
81215
|
// package.json
|
|
81207
81216
|
var package_default = {
|
|
81208
81217
|
name: "@debugbundle/cli",
|
|
81209
|
-
version: "1.18.
|
|
81218
|
+
version: "1.18.2",
|
|
81210
81219
|
private: false,
|
|
81211
81220
|
description: "Command-line interface for DebugBundle",
|
|
81212
81221
|
license: "Apache-2.0",
|