@indexnetwork/cli 0.10.4 → 0.10.5-rc.25.1
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/index.js +12 -12
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1242,38 +1242,38 @@ function opportunityCard(opp) {
|
|
|
1242
1242
|
`);
|
|
1243
1243
|
const st = opp.status ?? "unknown";
|
|
1244
1244
|
const category = opp.interpretation?.category ?? "Uncategorized";
|
|
1245
|
-
cardLine(`${BOLD}Status:${RESET} ${statusColor(st)}${st}${RESET}
|
|
1246
|
-
cardLine(`${BOLD}Category:${RESET} ${category}
|
|
1245
|
+
cardLine(`${BOLD}Status:${RESET} ${statusColor(st)}${st}${RESET}`);
|
|
1246
|
+
cardLine(`${BOLD}Category:${RESET} ${category}`);
|
|
1247
1247
|
if (opp.interpretation?.confidence != null) {
|
|
1248
1248
|
const bar = confidenceBar(opp.interpretation.confidence);
|
|
1249
|
-
cardLine(`${BOLD}Confidence:${RESET} ${bar}
|
|
1249
|
+
cardLine(`${BOLD}Confidence:${RESET} ${bar}`);
|
|
1250
1250
|
}
|
|
1251
1251
|
if (opp.actors && opp.actors.length > 0) {
|
|
1252
1252
|
process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
|
|
1253
1253
|
`);
|
|
1254
|
-
cardLine(`${BOLD}Parties:${RESET}
|
|
1254
|
+
cardLine(`${BOLD}Parties:${RESET}`);
|
|
1255
1255
|
for (const actor of opp.actors) {
|
|
1256
1256
|
const name = actor.name ?? actor.userId;
|
|
1257
1257
|
const role = roleLabel(actor.role);
|
|
1258
|
-
cardLine(` ${name} ${role}
|
|
1258
|
+
cardLine(` ${name} ${role}`);
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
if (opp.interpretation?.reasoning) {
|
|
1262
1262
|
process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
|
|
1263
1263
|
`);
|
|
1264
|
-
cardLine(`${BOLD}Reasoning:${RESET}
|
|
1264
|
+
cardLine(`${BOLD}Reasoning:${RESET}`);
|
|
1265
1265
|
const wrapped = wordWrap(opp.interpretation.reasoning, innerWidth - 4);
|
|
1266
1266
|
for (const line of wrapped) {
|
|
1267
|
-
cardLine(` ${AGENT_TEXT}${line}${RESET}
|
|
1267
|
+
cardLine(` ${AGENT_TEXT}${line}${RESET}`);
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
if (opp.presentation) {
|
|
1271
1271
|
process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
|
|
1272
1272
|
`);
|
|
1273
|
-
cardLine(`${BOLD}Presentation:${RESET}
|
|
1273
|
+
cardLine(`${BOLD}Presentation:${RESET}`);
|
|
1274
1274
|
const wrapped = wordWrap(opp.presentation, innerWidth - 4);
|
|
1275
1275
|
for (const line of wrapped) {
|
|
1276
|
-
cardLine(` ${AGENT_TEXT}${line}${RESET}
|
|
1276
|
+
cardLine(` ${AGENT_TEXT}${line}${RESET}`);
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
if (opp.createdAt) {
|
|
@@ -1286,13 +1286,13 @@ function opportunityCard(opp) {
|
|
|
1286
1286
|
hour: "2-digit",
|
|
1287
1287
|
minute: "2-digit"
|
|
1288
1288
|
});
|
|
1289
|
-
cardLine(`${GRAY}Created: ${created}${RESET}
|
|
1289
|
+
cardLine(`${GRAY}Created: ${created}${RESET}`);
|
|
1290
1290
|
}
|
|
1291
1291
|
process.stdout.write(` ${BLUE}+${"─".repeat(width)}+${RESET}
|
|
1292
1292
|
|
|
1293
1293
|
`);
|
|
1294
1294
|
}
|
|
1295
|
-
function cardLine(content
|
|
1295
|
+
function cardLine(content) {
|
|
1296
1296
|
process.stdout.write(` ${BLUE}|${RESET} ${content}
|
|
1297
1297
|
`);
|
|
1298
1298
|
}
|
|
@@ -2937,7 +2937,7 @@ async function onboardingComplete(client, json) {
|
|
|
2937
2937
|
// src/main.ts
|
|
2938
2938
|
var DEFAULT_API_URL = "https://protocol.index.network";
|
|
2939
2939
|
var DEFAULT_APP_URL = "https://index.network";
|
|
2940
|
-
var VERSION = "0.10.
|
|
2940
|
+
var VERSION = "0.10.5";
|
|
2941
2941
|
var BOX = { tl: "╭", tr: "╮", bl: "╰", br: "╯", h: "─", v: "│" };
|
|
2942
2942
|
function visualLen(s) {
|
|
2943
2943
|
return stripAnsi(s).length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indexnetwork/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5-rc.25.1",
|
|
4
4
|
"description": "Command-line interface for Index Network",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"publish:all": "bun scripts/publish.ts"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@indexnetwork/cli-linux-x64": "0.10.
|
|
24
|
-
"@indexnetwork/cli-linux-arm64": "0.10.
|
|
25
|
-
"@indexnetwork/cli-darwin-x64": "0.10.
|
|
26
|
-
"@indexnetwork/cli-darwin-arm64": "0.10.
|
|
23
|
+
"@indexnetwork/cli-linux-x64": "0.10.5-rc.25.1",
|
|
24
|
+
"@indexnetwork/cli-linux-arm64": "0.10.5-rc.25.1",
|
|
25
|
+
"@indexnetwork/cli-darwin-x64": "0.10.5-rc.25.1",
|
|
26
|
+
"@indexnetwork/cli-darwin-arm64": "0.10.5-rc.25.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/bun": "latest"
|