@decantr/cli 1.7.27 → 1.7.28
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/dist/bin.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
buildGuardRegistryContext,
|
|
20
20
|
scanProjectInteractions,
|
|
21
21
|
sendCliCommandTelemetry
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RRRHQ45P.js";
|
|
23
23
|
|
|
24
24
|
// src/index.ts
|
|
25
25
|
import { existsSync as existsSync27, mkdirSync as mkdirSync11, readdirSync as readdirSync7, readFileSync as readFileSync20, writeFileSync as writeFileSync14 } from "fs";
|
|
@@ -6687,7 +6687,7 @@ async function main() {
|
|
|
6687
6687
|
`${YELLOW9}Note: \`decantr heal\` is deprecated. Use \`decantr check\` instead.${RESET13}`
|
|
6688
6688
|
);
|
|
6689
6689
|
}
|
|
6690
|
-
const { cmdHeal } = await import("./heal-
|
|
6690
|
+
const { cmdHeal } = await import("./heal-SWUFIYU5.js");
|
|
6691
6691
|
const telemetryFlag = args.includes("--telemetry");
|
|
6692
6692
|
await cmdHeal(process.cwd(), { telemetry: telemetryFlag });
|
|
6693
6693
|
break;
|
|
@@ -137,7 +137,8 @@ import { dirname, join as join3 } from "path";
|
|
|
137
137
|
import { fileURLToPath } from "url";
|
|
138
138
|
import {
|
|
139
139
|
createFetchTelemetrySink,
|
|
140
|
-
createTelemetryClient
|
|
140
|
+
createTelemetryClient,
|
|
141
|
+
isTelemetryActorType
|
|
141
142
|
} from "@decantr/telemetry";
|
|
142
143
|
var TELEMETRY_ENDPOINT = "https://api.decantr.ai/v1/telemetry/guard";
|
|
143
144
|
var DEFAULT_TELEMETRY_EVENTS_ENDPOINT = "https://api.decantr.ai/v1/telemetry/events";
|
|
@@ -200,6 +201,7 @@ async function sendCliCommandTelemetry(input) {
|
|
|
200
201
|
name: "cli.command.completed",
|
|
201
202
|
context: {
|
|
202
203
|
source: "cli",
|
|
204
|
+
actorType: getTelemetryActorType(),
|
|
203
205
|
environment: "production",
|
|
204
206
|
decantrVersion: getCliVersion(),
|
|
205
207
|
installId: identities.installId,
|
|
@@ -310,6 +312,10 @@ function getConfigDir() {
|
|
|
310
312
|
function getTelemetryEventsEndpoint() {
|
|
311
313
|
return process.env.DECANTR_TELEMETRY_ENDPOINT || DEFAULT_TELEMETRY_EVENTS_ENDPOINT;
|
|
312
314
|
}
|
|
315
|
+
function getTelemetryActorType() {
|
|
316
|
+
const configured = process.env.DECANTR_TELEMETRY_ACTOR_TYPE;
|
|
317
|
+
return isTelemetryActorType(configured) ? configured : "customer";
|
|
318
|
+
}
|
|
313
319
|
function normalizeCommand(command) {
|
|
314
320
|
if (!command) return null;
|
|
315
321
|
if (command === "--help" || command === "-h") return "help";
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-56VBV4MT.js";
|
|
2
2
|
import "./chunk-GCDFX7UE.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-RRRHQ45P.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decantr/cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.28",
|
|
4
4
|
"description": "Decantr CLI — scaffold, audit, and maintain Decantr projects from the terminal",
|
|
5
5
|
"author": "Decantr AI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@decantr/core": "1.0.6",
|
|
34
|
-
"@decantr/
|
|
35
|
-
"@decantr/
|
|
36
|
-
"@decantr/
|
|
37
|
-
"@decantr/
|
|
34
|
+
"@decantr/registry": "1.0.4",
|
|
35
|
+
"@decantr/verifier": "1.0.6",
|
|
36
|
+
"@decantr/telemetry": "0.1.2",
|
|
37
|
+
"@decantr/essence-spec": "1.0.6"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsup",
|