@elizaos/cli 1.0.16 → 1.0.17
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/assets/{index-EfDd1Y35.js → index-D8r_Vfdr.js} +2465 -2521
- package/dist/assets/index-D8r_Vfdr.js.br +0 -0
- package/dist/assets/{index-EfDd1Y35.js.map → index-D8r_Vfdr.js.map} +1 -1
- package/dist/assets/{index-BBiLesJT.js → index-DHpmOGa_.js} +2 -2
- package/dist/assets/index-DHpmOGa_.js.br +0 -0
- package/dist/assets/{index-BBiLesJT.js.map → index-DHpmOGa_.js.map} +1 -1
- package/dist/assets/index-vV3utthf.css +1 -0
- package/dist/assets/index-vV3utthf.css.br +0 -0
- package/dist/index.html +2 -2
- package/dist/index.js +255 -35
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/package.json +5 -5
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/package.json +3 -3
- package/dist/assets/index-BBiLesJT.js.br +0 -0
- package/dist/assets/index-DxW_jg81.css +0 -1
- package/dist/assets/index-DxW_jg81.css.br +0 -0
- package/dist/assets/index-EfDd1Y35.js.br +0 -0
package/dist/index.js
CHANGED
|
@@ -2165,6 +2165,15 @@ var SimpleMigrationAgent = class extends EventEmitter {
|
|
|
2165
2165
|
abortController;
|
|
2166
2166
|
verbose;
|
|
2167
2167
|
guideLoader;
|
|
2168
|
+
spinnerInterval = null;
|
|
2169
|
+
spinnerFrame = 0;
|
|
2170
|
+
spinnerFrames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
2171
|
+
// Token and cost tracking
|
|
2172
|
+
totalInputTokens = 0;
|
|
2173
|
+
totalOutputTokens = 0;
|
|
2174
|
+
totalCost = 0;
|
|
2175
|
+
lastTokenUpdate = Date.now();
|
|
2176
|
+
lastCostSummary = Date.now();
|
|
2168
2177
|
constructor(repoPath, options = {}) {
|
|
2169
2178
|
super();
|
|
2170
2179
|
this.repoPath = repoPath;
|
|
@@ -2190,40 +2199,123 @@ var SimpleMigrationAgent = class extends EventEmitter {
|
|
|
2190
2199
|
/error/i,
|
|
2191
2200
|
/building/i,
|
|
2192
2201
|
/testing/i,
|
|
2193
|
-
|
|
2202
|
+
/upgrading/i,
|
|
2203
|
+
/validating/i,
|
|
2204
|
+
/fixing/i,
|
|
2205
|
+
/installing/i,
|
|
2206
|
+
/processing/i,
|
|
2207
|
+
/checking/i,
|
|
2208
|
+
/updating/i,
|
|
2209
|
+
/✓|✗|🎉|🚀|📊|⚡|🔍|🔨|🧪|📝|📖|✏️|📄/,
|
|
2210
|
+
/^(Starting|Finishing|Completed)/i,
|
|
2211
|
+
/^[A-Z][a-z]+ (plugin|package|file|test)/i
|
|
2212
|
+
// Actions on specific items
|
|
2194
2213
|
];
|
|
2195
|
-
return importantPatterns.some((pattern) => pattern.test(text3)) && text3.length <
|
|
2214
|
+
return importantPatterns.some((pattern) => pattern.test(text3)) && text3.length < 300;
|
|
2196
2215
|
}
|
|
2197
2216
|
formatProgressUpdate(text3) {
|
|
2198
2217
|
text3 = text3.trim();
|
|
2218
|
+
const timestamp = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
|
|
2219
|
+
hour12: false,
|
|
2220
|
+
hour: "2-digit",
|
|
2221
|
+
minute: "2-digit",
|
|
2222
|
+
second: "2-digit"
|
|
2223
|
+
});
|
|
2199
2224
|
if (text3.includes("GATE")) {
|
|
2200
2225
|
return `
|
|
2201
|
-
\u{1F3AF} ${text3}`;
|
|
2202
|
-
} else if (text3.includes("complete") || text3.includes("\u2713")) {
|
|
2203
|
-
return `\u2705 ${text3}`;
|
|
2204
|
-
} else if (text3.includes("error") || text3.includes("\u2717")) {
|
|
2205
|
-
return `\u274C ${text3}`;
|
|
2206
|
-
} else if (text3.includes("analyzing") || text3.includes("
|
|
2207
|
-
return `\u{1F50D} ${text3}`;
|
|
2208
|
-
} else if (text3.includes("
|
|
2209
|
-
return `\u{
|
|
2210
|
-
} else if (text3.includes("
|
|
2211
|
-
return `\u{
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2226
|
+
\u{1F3AF} [${timestamp}] ${text3}`;
|
|
2227
|
+
} else if (text3.includes("complete") || text3.includes("\u2713") || text3.includes("success")) {
|
|
2228
|
+
return `\u2705 [${timestamp}] ${text3}`;
|
|
2229
|
+
} else if (text3.includes("error") || text3.includes("\u2717") || text3.includes("failed")) {
|
|
2230
|
+
return `\u274C [${timestamp}] ${text3}`;
|
|
2231
|
+
} else if (text3.includes("analyzing") || text3.includes("analysis")) {
|
|
2232
|
+
return `\u{1F50D} [${timestamp}] ${text3}`;
|
|
2233
|
+
} else if (text3.includes("migrating") || text3.includes("migration") || text3.includes("upgrading")) {
|
|
2234
|
+
return `\u{1F504} [${timestamp}] ${text3}`;
|
|
2235
|
+
} else if (text3.includes("building") || text3.includes("compile")) {
|
|
2236
|
+
return `\u{1F528} [${timestamp}] ${text3}`;
|
|
2237
|
+
} else if (text3.includes("testing") || text3.includes("test")) {
|
|
2238
|
+
return `\u{1F9EA} [${timestamp}] ${text3}`;
|
|
2239
|
+
} else if (text3.includes("installing") || text3.includes("install")) {
|
|
2240
|
+
return `\u{1F4E6} [${timestamp}] ${text3}`;
|
|
2241
|
+
} else if (text3.includes("validating") || text3.includes("validation")) {
|
|
2242
|
+
return `\u2714\uFE0F [${timestamp}] ${text3}`;
|
|
2243
|
+
} else if (text3.includes("fixing") || text3.includes("fix")) {
|
|
2244
|
+
return `\u{1F527} [${timestamp}] ${text3}`;
|
|
2245
|
+
} else if (text3.includes("Starting") || text3.includes("Initializing")) {
|
|
2246
|
+
return `\u{1F680} [${timestamp}] ${text3}`;
|
|
2247
|
+
} else if (text3.includes("Finishing") || text3.includes("Completed")) {
|
|
2248
|
+
return `\u{1F3C1} [${timestamp}] ${text3}`;
|
|
2249
|
+
}
|
|
2250
|
+
return `\u{1F4AD} [${timestamp}] ${text3}`;
|
|
2251
|
+
}
|
|
2252
|
+
startSpinner(message) {
|
|
2253
|
+
if (this.spinnerInterval) {
|
|
2254
|
+
this.stopSpinner();
|
|
2255
|
+
}
|
|
2256
|
+
process.stdout.write(`${message} `);
|
|
2257
|
+
this.spinnerInterval = setInterval(() => {
|
|
2258
|
+
process.stdout.write(`\r${message} ${this.spinnerFrames[this.spinnerFrame]}`);
|
|
2259
|
+
this.spinnerFrame = (this.spinnerFrame + 1) % this.spinnerFrames.length;
|
|
2260
|
+
}, 100);
|
|
2261
|
+
}
|
|
2262
|
+
stopSpinner(completionMessage) {
|
|
2263
|
+
if (this.spinnerInterval) {
|
|
2264
|
+
clearInterval(this.spinnerInterval);
|
|
2265
|
+
this.spinnerInterval = null;
|
|
2266
|
+
if (completionMessage) {
|
|
2267
|
+
process.stdout.write(`\r${completionMessage}
|
|
2268
|
+
`);
|
|
2269
|
+
} else {
|
|
2270
|
+
process.stdout.write("\r");
|
|
2271
|
+
process.stdout.clearLine(0);
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
updateTokenTracking(usage) {
|
|
2276
|
+
if (usage.input_tokens) {
|
|
2277
|
+
this.totalInputTokens += usage.input_tokens;
|
|
2278
|
+
}
|
|
2279
|
+
if (usage.output_tokens) {
|
|
2280
|
+
this.totalOutputTokens += usage.output_tokens;
|
|
2281
|
+
}
|
|
2282
|
+
const inputCostPer1k = 3e-3;
|
|
2283
|
+
const outputCostPer1k = 0.015;
|
|
2284
|
+
if (usage.input_tokens) {
|
|
2285
|
+
this.totalCost += usage.input_tokens / 1e3 * inputCostPer1k;
|
|
2286
|
+
}
|
|
2287
|
+
if (usage.output_tokens) {
|
|
2288
|
+
this.totalCost += usage.output_tokens / 1e3 * outputCostPer1k;
|
|
2289
|
+
}
|
|
2290
|
+
this.lastTokenUpdate = Date.now();
|
|
2291
|
+
}
|
|
2292
|
+
formatTokenDisplay() {
|
|
2293
|
+
if (this.totalInputTokens === 0 && this.totalOutputTokens === 0) {
|
|
2294
|
+
return "";
|
|
2295
|
+
}
|
|
2296
|
+
const totalTokens = this.totalInputTokens + this.totalOutputTokens;
|
|
2297
|
+
const costDisplay = this.totalCost > 0 ? ` ($${this.totalCost.toFixed(4)})` : "";
|
|
2298
|
+
return ` | \u{1F3A9} ${totalTokens.toLocaleString()} tokens${costDisplay}`;
|
|
2214
2299
|
}
|
|
2215
2300
|
getSimplifiedToolName(toolName) {
|
|
2216
2301
|
const toolMap = {
|
|
2217
2302
|
TodoWrite: "\u{1F4DD} Planning",
|
|
2303
|
+
TodoRead: "\u{1F4CB} Checking",
|
|
2218
2304
|
Bash: "\u26A1 Running",
|
|
2219
2305
|
Read: "\u{1F4D6} Reading",
|
|
2220
2306
|
Edit: "\u270F\uFE0F Editing",
|
|
2307
|
+
MultiEdit: "\u{1F4DD} Batch editing",
|
|
2221
2308
|
Write: "\u{1F4C4} Writing",
|
|
2222
2309
|
LS: "\u{1F50D} Exploring",
|
|
2223
|
-
|
|
2224
|
-
|
|
2310
|
+
Glob: "\u{1F50E} Pattern matching",
|
|
2311
|
+
Grep: "\u{1F50D} Searching",
|
|
2312
|
+
Task: "\u{1F527} Processing",
|
|
2313
|
+
WebFetch: "\u{1F310} Fetching",
|
|
2314
|
+
WebSearch: "\u{1F50D} Web searching",
|
|
2315
|
+
NotebookRead: "\u{1F4D3} Notebook reading",
|
|
2316
|
+
NotebookEdit: "\u{1F4DD} Notebook editing"
|
|
2225
2317
|
};
|
|
2226
|
-
return toolMap[toolName] ||
|
|
2318
|
+
return toolMap[toolName] || `\u{1F6E0}\uFE0F ${toolName}`;
|
|
2227
2319
|
}
|
|
2228
2320
|
async migrate() {
|
|
2229
2321
|
const startTime = Date.now();
|
|
@@ -2235,6 +2327,7 @@ var SimpleMigrationAgent = class extends EventEmitter {
|
|
|
2235
2327
|
process.env.OTEL_METRICS_EXPORTER = "";
|
|
2236
2328
|
console.log("Claude is analyzing and migrating your plugin...\n");
|
|
2237
2329
|
this.emit("start");
|
|
2330
|
+
this.startSpinner("\u{1F50E} Initializing Claude Code SDK...");
|
|
2238
2331
|
console.log(`Starting migration in directory: ${this.repoPath}`);
|
|
2239
2332
|
const migrationContext = this.guideLoader.getAllGuidesContent();
|
|
2240
2333
|
const guideReferences = this.guideLoader.generateMigrationContext();
|
|
@@ -2350,6 +2443,9 @@ ABSOLUTE REQUIREMENT: The migration is NOT complete until bun run test shows zer
|
|
|
2350
2443
|
const errorMessage = queryError instanceof Error ? queryError.message : String(queryError);
|
|
2351
2444
|
throw new Error(`Failed to initialize Claude Code SDK query: ${errorMessage}`);
|
|
2352
2445
|
}
|
|
2446
|
+
let currentToolName = null;
|
|
2447
|
+
let toolStartTime = null;
|
|
2448
|
+
let lastProgressUpdate = Date.now();
|
|
2353
2449
|
for await (const message of queryGenerator) {
|
|
2354
2450
|
messageCount++;
|
|
2355
2451
|
try {
|
|
@@ -2361,55 +2457,129 @@ ABSOLUTE REQUIREMENT: The migration is NOT complete until bun run test shows zer
|
|
|
2361
2457
|
if (block.type === "text") {
|
|
2362
2458
|
const text3 = block.text;
|
|
2363
2459
|
if (this.isImportantUpdate(text3)) {
|
|
2364
|
-
|
|
2460
|
+
if (currentToolName) {
|
|
2461
|
+
process.stdout.write(" \u2713\n");
|
|
2462
|
+
currentToolName = null;
|
|
2463
|
+
}
|
|
2464
|
+
let formattedText = this.formatProgressUpdate(text3);
|
|
2465
|
+
if (text3.includes("GATE") && (this.totalInputTokens > 0 || this.totalOutputTokens > 0)) {
|
|
2466
|
+
const tokenInfo = this.formatTokenDisplay();
|
|
2467
|
+
formattedText += tokenInfo;
|
|
2468
|
+
}
|
|
2469
|
+
console.log(formattedText);
|
|
2470
|
+
} else if (this.verbose && text3.length > 10 && text3.length < 100) {
|
|
2471
|
+
console.log(`\u{1F4AC} ${text3.trim()}`);
|
|
2365
2472
|
}
|
|
2366
2473
|
} else if (block.type === "tool_use") {
|
|
2367
2474
|
const toolName = this.getSimplifiedToolName(block.name);
|
|
2368
2475
|
if (toolName) {
|
|
2476
|
+
if (currentToolName) {
|
|
2477
|
+
const duration = toolStartTime ? Date.now() - toolStartTime : 0;
|
|
2478
|
+
process.stdout.write(` \u2713 (${Math.round(duration / 1e3)}s)
|
|
2479
|
+
`);
|
|
2480
|
+
}
|
|
2369
2481
|
process.stdout.write(`${toolName}...`);
|
|
2482
|
+
currentToolName = toolName;
|
|
2483
|
+
toolStartTime = Date.now();
|
|
2370
2484
|
}
|
|
2371
2485
|
}
|
|
2372
2486
|
}
|
|
2373
2487
|
} else if (typeof content === "string") {
|
|
2374
2488
|
if (this.isImportantUpdate(content)) {
|
|
2489
|
+
if (currentToolName) {
|
|
2490
|
+
process.stdout.write(" \u2713\n");
|
|
2491
|
+
currentToolName = null;
|
|
2492
|
+
}
|
|
2375
2493
|
console.log(this.formatProgressUpdate(content));
|
|
2376
2494
|
}
|
|
2377
2495
|
}
|
|
2378
2496
|
}
|
|
2379
2497
|
}
|
|
2380
2498
|
if ("type" in message && message.type === "tool_result") {
|
|
2381
|
-
|
|
2499
|
+
if (currentToolName) {
|
|
2500
|
+
const duration = toolStartTime ? Date.now() - toolStartTime : 0;
|
|
2501
|
+
process.stdout.write(` \u2713 (${Math.round(duration / 1e3)}s)
|
|
2502
|
+
`);
|
|
2503
|
+
currentToolName = null;
|
|
2504
|
+
toolStartTime = null;
|
|
2505
|
+
}
|
|
2382
2506
|
}
|
|
2383
2507
|
if (message.type === "result") {
|
|
2508
|
+
if (currentToolName) {
|
|
2509
|
+
process.stdout.write(" \u2713\n");
|
|
2510
|
+
currentToolName = null;
|
|
2511
|
+
}
|
|
2384
2512
|
console.log(`
|
|
2385
2513
|
|
|
2386
2514
|
\u{1F4CA} Migration Summary:`);
|
|
2515
|
+
console.log(`\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`);
|
|
2387
2516
|
console.log(`Status: ${message.subtype === "success" ? "\u2705 Completed" : "\u274C Failed"}`);
|
|
2388
|
-
|
|
2517
|
+
const finalCost = message.total_cost_usd || this.totalCost;
|
|
2518
|
+
if (finalCost > 0) {
|
|
2519
|
+
console.log(`\u{1F4B0} Total Cost: $${finalCost.toFixed(4)}`);
|
|
2520
|
+
}
|
|
2521
|
+
if (this.totalInputTokens > 0 || this.totalOutputTokens > 0) {
|
|
2522
|
+
console.log(
|
|
2523
|
+
`\u{1F3A9} Token Usage: \u2192${this.totalInputTokens.toLocaleString()} in, \u2190${this.totalOutputTokens.toLocaleString()} out (${(this.totalInputTokens + this.totalOutputTokens).toLocaleString()} total)`
|
|
2524
|
+
);
|
|
2525
|
+
}
|
|
2389
2526
|
if (message.duration_ms)
|
|
2390
|
-
console.log(
|
|
2391
|
-
if (message.num_turns) console.log(
|
|
2527
|
+
console.log(`\u23F1\uFE0F Duration: ${Math.round(message.duration_ms / 1e3)}s`);
|
|
2528
|
+
if (message.num_turns) console.log(`\u{1F916} AI Operations: ${message.num_turns}`);
|
|
2529
|
+
console.log(`\u{1F4EC} Total Messages: ${messageCount}`);
|
|
2392
2530
|
console.log("");
|
|
2393
2531
|
}
|
|
2394
2532
|
if (message.type === "system" && message.subtype === "init") {
|
|
2395
|
-
|
|
2396
|
-
|
|
2533
|
+
this.stopSpinner("\u{1F680} Migration session started");
|
|
2534
|
+
console.log("");
|
|
2397
2535
|
}
|
|
2398
2536
|
} catch (messageError) {
|
|
2399
2537
|
if (this.verbose) {
|
|
2400
2538
|
const errorMessage = messageError instanceof Error ? messageError.message : String(messageError);
|
|
2401
2539
|
console.log(`
|
|
2402
|
-
\
|
|
2540
|
+
\u26A0\uFE0F Message processing error: ${errorMessage}`);
|
|
2403
2541
|
}
|
|
2404
2542
|
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2543
|
+
const now = Date.now();
|
|
2544
|
+
if (messageCount % 15 === 0 && now - lastProgressUpdate > 5e3) {
|
|
2545
|
+
if (currentToolName) {
|
|
2546
|
+
process.stdout.write("\n");
|
|
2547
|
+
}
|
|
2548
|
+
const tokenInfo = this.formatTokenDisplay();
|
|
2549
|
+
console.log(
|
|
2550
|
+
`
|
|
2551
|
+
\u23F3 Processing... (${messageCount} operations, ${Math.round((now - startTime) / 1e3)}s elapsed${tokenInfo})
|
|
2552
|
+
`
|
|
2553
|
+
);
|
|
2409
2554
|
this.emit("progress", messageCount);
|
|
2555
|
+
lastProgressUpdate = now;
|
|
2556
|
+
if (currentToolName) {
|
|
2557
|
+
process.stdout.write(`${currentToolName}...`);
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
if (message.type === "assistant" && "usage" in message) {
|
|
2561
|
+
this.updateTokenTracking(message.usage);
|
|
2562
|
+
const timeSinceCostSummary = now - this.lastCostSummary;
|
|
2563
|
+
if (timeSinceCostSummary > 3e4 && this.totalInputTokens > 0) {
|
|
2564
|
+
if (currentToolName) {
|
|
2565
|
+
process.stdout.write("\n");
|
|
2566
|
+
}
|
|
2567
|
+
console.log(
|
|
2568
|
+
`\u{1F4B0} Cost Update: $${this.totalCost.toFixed(4)} | \u{1F3A9} ${(this.totalInputTokens + this.totalOutputTokens).toLocaleString()} tokens used`
|
|
2569
|
+
);
|
|
2570
|
+
this.lastCostSummary = now;
|
|
2571
|
+
if (currentToolName) {
|
|
2572
|
+
process.stdout.write(`${currentToolName}...`);
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2410
2575
|
}
|
|
2411
2576
|
}
|
|
2412
|
-
|
|
2577
|
+
this.stopSpinner();
|
|
2578
|
+
if (currentToolName) {
|
|
2579
|
+
process.stdout.write(" \u2713\n");
|
|
2580
|
+
}
|
|
2581
|
+
console.log("\n\u{1F389} Migration completed successfully!");
|
|
2582
|
+
console.log(`\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`);
|
|
2413
2583
|
const guidesUsed = this.guideLoader.getGuidesByCategory("basic").concat(this.guideLoader.getGuidesByCategory("advanced")).concat(this.guideLoader.getGuidesByCategory("testing")).concat(this.guideLoader.getGuidesByCategory("completion")).map((guide) => guide.name);
|
|
2414
2584
|
return {
|
|
2415
2585
|
success: true,
|
|
@@ -2419,9 +2589,41 @@ ABSOLUTE REQUIREMENT: The migration is NOT complete until bun run test shows zer
|
|
|
2419
2589
|
guidesUsed
|
|
2420
2590
|
};
|
|
2421
2591
|
} catch (error) {
|
|
2422
|
-
console.log("\n\
|
|
2423
|
-
console.log(`
|
|
2424
|
-
|
|
2592
|
+
console.log("\n\u274C Migration failed");
|
|
2593
|
+
console.log(`\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`);
|
|
2594
|
+
if (error instanceof Error) {
|
|
2595
|
+
console.log(`\u{1F4DC} Error Type: ${error.name}`);
|
|
2596
|
+
console.log(`\u{1F4AC} Error Message: ${error.message}`);
|
|
2597
|
+
if (error.message.includes("API key")) {
|
|
2598
|
+
console.log("\n\u{1F511} API Key Issue Detected:");
|
|
2599
|
+
console.log(" \u2022 Verify ANTHROPIC_API_KEY is set correctly");
|
|
2600
|
+
console.log(' \u2022 Ensure the key starts with "sk-ant-"');
|
|
2601
|
+
console.log(" \u2022 Check your key has sufficient credits");
|
|
2602
|
+
} else if (error.message.includes("timeout") || error.message.includes("network")) {
|
|
2603
|
+
console.log("\n\u{1F310} Network Issue Detected:");
|
|
2604
|
+
console.log(" \u2022 Check your internet connection");
|
|
2605
|
+
console.log(" \u2022 Try again in a few moments");
|
|
2606
|
+
console.log(" \u2022 Consider using --timeout option for slower connections");
|
|
2607
|
+
} else if (error.message.includes("permission") || error.message.includes("access")) {
|
|
2608
|
+
console.log("\n\u{1F512} Permission Issue Detected:");
|
|
2609
|
+
console.log(" \u2022 Ensure you have write access to the plugin directory");
|
|
2610
|
+
console.log(" \u2022 Check file permissions");
|
|
2611
|
+
console.log(" \u2022 Try running from a directory you own");
|
|
2612
|
+
}
|
|
2613
|
+
if (this.verbose) {
|
|
2614
|
+
console.log(`
|
|
2615
|
+
\u{1F50E} Full Stack Trace:`);
|
|
2616
|
+
console.log(error.stack || "No stack trace available");
|
|
2617
|
+
}
|
|
2618
|
+
} else {
|
|
2619
|
+
console.log(`\u{1F4AC} Error Details:`, error);
|
|
2620
|
+
}
|
|
2621
|
+
console.log("\n\u{1F527} Recovery Options:");
|
|
2622
|
+
console.log(" 1. Check git status and stash/commit changes if needed");
|
|
2623
|
+
console.log(" 2. Verify plugin structure follows ElizaOS standards");
|
|
2624
|
+
console.log(" 3. Try running with --verbose for detailed output");
|
|
2625
|
+
console.log(" 4. Check network connectivity and API key validity");
|
|
2626
|
+
console.log(' 5. Ensure all dependencies are installed with "bun install"');
|
|
2425
2627
|
return {
|
|
2426
2628
|
success: false,
|
|
2427
2629
|
repoPath: this.repoPath,
|
|
@@ -2432,8 +2634,26 @@ Error details:`, error);
|
|
|
2432
2634
|
}
|
|
2433
2635
|
}
|
|
2434
2636
|
abort() {
|
|
2637
|
+
this.stopSpinner();
|
|
2638
|
+
console.log("\n\u2639\uFE0F Migration aborted by user");
|
|
2639
|
+
if (this.totalInputTokens > 0 || this.totalOutputTokens > 0) {
|
|
2640
|
+
console.log(
|
|
2641
|
+
`\u{1F4B0} Partial cost: $${this.totalCost.toFixed(4)} | \u{1F3A9} ${(this.totalInputTokens + this.totalOutputTokens).toLocaleString()} tokens used`
|
|
2642
|
+
);
|
|
2643
|
+
}
|
|
2644
|
+
console.log(`\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`);
|
|
2645
|
+
console.log("\u{1F5FA}\uFE0F What happened:");
|
|
2646
|
+
console.log(" \u2022 Migration process was interrupted");
|
|
2647
|
+
console.log(" \u2022 Plugin files may be in partial state");
|
|
2648
|
+
console.log(" \u2022 Some changes may have been applied");
|
|
2649
|
+
console.log("\n\u{1F527} Recommended next steps:");
|
|
2650
|
+
console.log(" 1. Check git status to see what changed");
|
|
2651
|
+
console.log(' 2. Use "git checkout ." to revert uncommitted changes if needed');
|
|
2652
|
+
console.log(" 3. Review any migration-guides/ directory that may have been created");
|
|
2653
|
+
console.log(' 4. Clean up with "rm -rf migration-guides/" if present');
|
|
2654
|
+
console.log(" 5. Try migration again when ready");
|
|
2435
2655
|
this.abortController.abort();
|
|
2436
|
-
|
|
2656
|
+
this.emit("aborted");
|
|
2437
2657
|
}
|
|
2438
2658
|
/**
|
|
2439
2659
|
* Get migration help for specific issues
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.0.
|
|
32
|
-
"@elizaos/core": "1.0.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.0.
|
|
34
|
-
"@elizaos/plugin-sql": "1.0.
|
|
31
|
+
"@elizaos/cli": "1.0.16",
|
|
32
|
+
"@elizaos/core": "1.0.16",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.0.16",
|
|
34
|
+
"@elizaos/plugin-sql": "1.0.16",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.0.
|
|
37
|
-
"@elizaos/core": "1.0.
|
|
36
|
+
"@elizaos/cli": "1.0.16",
|
|
37
|
+
"@elizaos/core": "1.0.16",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.0.
|
|
39
|
+
"@elizaos/plugin-sql": "1.0.16",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "elizaOS CLI - Manage your AI agents and plugins",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"typescript": "5.8.3",
|
|
71
71
|
"vite": "^6.3.5"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d036af49c47d497fbf0d316680103e76d85cd7ce",
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@anthropic-ai/claude-code": "^1.0.35",
|
|
76
76
|
"@anthropic-ai/sdk": "^0.54.0",
|
|
77
77
|
"@clack/prompts": "^0.11.0",
|
|
78
|
-
"@elizaos/core": "1.0.
|
|
79
|
-
"@elizaos/plugin-sql": "1.0.
|
|
80
|
-
"@elizaos/server": "1.0.
|
|
78
|
+
"@elizaos/core": "1.0.17",
|
|
79
|
+
"@elizaos/plugin-sql": "1.0.17",
|
|
80
|
+
"@elizaos/server": "1.0.17",
|
|
81
81
|
"bun": "^1.2.17",
|
|
82
82
|
"chalk": "^5.3.0",
|
|
83
83
|
"chokidar": "^4.0.3",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.0.
|
|
32
|
-
"@elizaos/core": "1.0.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.0.
|
|
34
|
-
"@elizaos/plugin-sql": "1.0.
|
|
31
|
+
"@elizaos/cli": "1.0.16",
|
|
32
|
+
"@elizaos/core": "1.0.16",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.0.16",
|
|
34
|
+
"@elizaos/plugin-sql": "1.0.16",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.0.
|
|
37
|
-
"@elizaos/core": "1.0.
|
|
36
|
+
"@elizaos/cli": "1.0.16",
|
|
37
|
+
"@elizaos/core": "1.0.16",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.0.
|
|
39
|
+
"@elizaos/plugin-sql": "1.0.16",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
|
Binary file
|