@dosu/cli 0.48.1 → 0.48.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/bin/dosu.js +28 -11
- package/package.json +1 -1
package/bin/dosu.js
CHANGED
|
@@ -4739,7 +4739,7 @@ function isNpxInvocation(channel = INSTALL_CHANNEL, env = process.env) {
|
|
|
4739
4739
|
function getVersionString() {
|
|
4740
4740
|
return `v${VERSION}`;
|
|
4741
4741
|
}
|
|
4742
|
-
var VERSION = "0.48.
|
|
4742
|
+
var VERSION = "0.48.2", INSTALL_CHANNEL = "npm";
|
|
4743
4743
|
|
|
4744
4744
|
// src/debug/logger.ts
|
|
4745
4745
|
import {
|
|
@@ -10336,7 +10336,7 @@ var init_settings = __esm(() => {
|
|
|
10336
10336
|
});
|
|
10337
10337
|
|
|
10338
10338
|
// src/telemetry/debug-id.ts
|
|
10339
|
-
var BUNDLE_DEBUG_ID_PLACEHOLDER = "
|
|
10339
|
+
var BUNDLE_DEBUG_ID_PLACEHOLDER = "5ce578c4-b058-6d8b-6475-6e2164756e21";
|
|
10340
10340
|
|
|
10341
10341
|
// src/telemetry/telemetry.ts
|
|
10342
10342
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
@@ -11167,10 +11167,18 @@ function allowlistedWorkflowProperties(properties) {
|
|
|
11167
11167
|
if (Array.isArray(input.providers)) {
|
|
11168
11168
|
safe.providers = input.providers.filter((provider) => typeof provider === "string" && /^[a-z][a-z0-9-]{0,31}$/.test(provider)).slice(0, 50);
|
|
11169
11169
|
}
|
|
11170
|
-
for (const key of [
|
|
11170
|
+
for (const key of [
|
|
11171
|
+
"completed_mcp",
|
|
11172
|
+
"completed_skill",
|
|
11173
|
+
"completed_agents_md",
|
|
11174
|
+
"completed_logs_handoff"
|
|
11175
|
+
]) {
|
|
11171
11176
|
if (typeof input[key] === "boolean")
|
|
11172
11177
|
safe[key] = input[key];
|
|
11173
11178
|
}
|
|
11179
|
+
if (input.logs_handoff === "accepted" || input.logs_handoff === "declined" || input.logs_handoff === "cancelled") {
|
|
11180
|
+
safe.logs_handoff = input.logs_handoff;
|
|
11181
|
+
}
|
|
11174
11182
|
return safe;
|
|
11175
11183
|
}
|
|
11176
11184
|
function safeIdentifier(value, maxLength) {
|
|
@@ -11453,23 +11461,27 @@ function confirmLogsHandoffMessage(agent) {
|
|
|
11453
11461
|
async function offerLogsHandoff(options = {}) {
|
|
11454
11462
|
const hits = detectLogSources(options.home);
|
|
11455
11463
|
if (hits.length === 0)
|
|
11456
|
-
return null;
|
|
11464
|
+
return { plan: null };
|
|
11457
11465
|
const sources = hits.map((hit) => hit.source);
|
|
11458
11466
|
const agent = resolveKickoffAgent(options.preferredAgents ?? []);
|
|
11459
11467
|
if (!agent) {
|
|
11460
11468
|
printManualLogsNudge();
|
|
11461
|
-
return null;
|
|
11469
|
+
return { plan: null };
|
|
11462
11470
|
}
|
|
11463
11471
|
log.success(`MCP setup successful! Found logs: ${formatLogSourceSummary(hits)}`);
|
|
11464
11472
|
const go = await confirm({
|
|
11465
11473
|
message: confirmLogsHandoffMessage(agent),
|
|
11466
11474
|
initialValue: true
|
|
11467
11475
|
});
|
|
11468
|
-
if (isCancel(go)
|
|
11476
|
+
if (isCancel(go)) {
|
|
11469
11477
|
printManualLogsNudge();
|
|
11470
|
-
return null;
|
|
11478
|
+
return { plan: null, decision: "cancelled" };
|
|
11479
|
+
}
|
|
11480
|
+
if (!go) {
|
|
11481
|
+
printManualLogsNudge();
|
|
11482
|
+
return { plan: null, decision: "declined" };
|
|
11471
11483
|
}
|
|
11472
|
-
return { agent, sources };
|
|
11484
|
+
return { plan: { agent, sources }, decision: "accepted" };
|
|
11473
11485
|
}
|
|
11474
11486
|
function launchLogsAgent(plan) {
|
|
11475
11487
|
const prompt = buildLogsHandoffPrompt();
|
|
@@ -12088,15 +12100,20 @@ async function runSetup(opts = {}) {
|
|
|
12088
12100
|
agentsMdCompleted = await stepUpdateAgentsMd();
|
|
12089
12101
|
}
|
|
12090
12102
|
let logsPlan = null;
|
|
12103
|
+
let logsHandoff;
|
|
12091
12104
|
if (mcpCompleted && cfg.mode !== MODE_OSS && inGitWorkTree()) {
|
|
12092
12105
|
const preferredAgents = configuredProviders.map((result) => result.provider.id());
|
|
12093
|
-
|
|
12106
|
+
const offer = await offerLogsHandoff({ preferredAgents });
|
|
12107
|
+
logsPlan = offer.plan;
|
|
12108
|
+
logsHandoff = offer.decision;
|
|
12094
12109
|
}
|
|
12095
12110
|
if (mcpCompleted || skillCompleted || agentsMdCompleted) {
|
|
12096
12111
|
trackInBackground(trackCliOnboardingEvent(cfg, onboardingRunID, "cli_onboarding_completed", {
|
|
12097
12112
|
completed_mcp: mcpCompleted,
|
|
12098
12113
|
completed_skill: skillCompleted,
|
|
12099
|
-
completed_agents_md: agentsMdCompleted
|
|
12114
|
+
completed_agents_md: agentsMdCompleted,
|
|
12115
|
+
completed_logs_handoff: logsHandoff === "accepted",
|
|
12116
|
+
...logsHandoff ? { logs_handoff: logsHandoff } : {}
|
|
12100
12117
|
}));
|
|
12101
12118
|
}
|
|
12102
12119
|
if (cfg.mode === MODE_OSS) {
|
|
@@ -17582,4 +17599,4 @@ execute().catch((err) => {
|
|
|
17582
17599
|
process.exit(1);
|
|
17583
17600
|
});
|
|
17584
17601
|
|
|
17585
|
-
//# debugId=
|
|
17602
|
+
//# debugId=5ce578c4-b058-6d8b-6475-6e2164756e21
|