@indexnetwork/cli 0.13.2-rc.57.1 → 0.13.2-rc.60.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.
Files changed (3) hide show
  1. package/README.md +9 -4
  2. package/dist/index.js +37 -49
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install -g @indexnetwork/cli
12
12
 
13
13
  Index helps you find the right people—and helps the right people find you—based on what you are actually trying to do, not just a profile headline. The value is grounded intros: suggestions come from communities you share (syndicates, founder groups, firm networks), not from spraying the open web.
14
14
 
15
- The flow below is one complete story—shape a room, invite people, publish an approved signal, let matching run in the background, then review a persisted match.
15
+ The flow below is one complete story—shape a room, invite people, publish an approved signal, let broker agents evaluate in the background, then review a persisted match.
16
16
 
17
17
  ```bash
18
18
  # login + setup
@@ -22,8 +22,10 @@ index profile
22
22
  # 1. express intent (signals)
23
23
  index intent create "federated learning collaboration"
24
24
 
25
- # 2. background matching evaluates approved signals
26
- # Wait for persisted opportunities to be created, then review outcomes.
25
+ # 2. broker agents evaluate approved signals in the background
26
+ index negotiation list
27
+
28
+ # 3. wait for persisted opportunities, then review outcomes
27
29
  index opportunity list --status pending
28
30
  index opportunity show <opportunity-id>
29
31
  index opportunity accept <opportunity-id>
@@ -177,11 +179,14 @@ index sync --json # Output to stdout as JSON
177
179
 
178
180
  ## Examples: Reviewing Opportunities
179
181
 
180
- Approved signals are matched in the background. `opportunity list` only reviews persisted results; it does not trigger matching.
182
+ Approved signals are evaluated in the background. `opportunity list` only reviews persisted results; it does not start evaluation.
181
183
 
182
184
  ### Review and act
183
185
 
184
186
  ```bash
187
+ # Inspect agent negotiations
188
+ index negotiation list
189
+
185
190
  # List persisted pending opportunities
186
191
  index opportunity list --status pending
187
192
 
package/dist/index.js CHANGED
@@ -710,8 +710,8 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
710
710
  const server = (options.serverFactory ?? createServer)(async (req, res) => {
711
711
  const url = new URL(req.url ?? "/", "http://localhost");
712
712
  if (req.method !== "GET" || url.pathname !== "/callback") {
713
- res.writeHead(404, { "Content-Type": "text/plain" });
714
- res.end("Not Found");
713
+ res.writeHead(404, { "Content-Type": "text/html" });
714
+ res.end(callbackHtml("Not found", "Unexpected request."));
715
715
  return;
716
716
  }
717
717
  const callbackState = url.searchParams.get("state");
@@ -745,7 +745,7 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
745
745
  return;
746
746
  }
747
747
  res.writeHead(200, { "Content-Type": "text/html" });
748
- res.end(callbackHtml("CLI authorized", "You can close this window and return to the terminal."));
748
+ res.end(callbackHtml("CLI authorized", "You can close this window and return to the terminal.", true));
749
749
  return;
750
750
  }
751
751
  if (!apiKey && sessionToken) {
@@ -763,7 +763,7 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
763
763
  return;
764
764
  }
765
765
  res.writeHead(200, { "Content-Type": "text/html" });
766
- res.end(callbackHtml("CLI authorized", "You can close this window and return to the terminal."));
766
+ res.end(callbackHtml("CLI authorized", "You can close this window and return to the terminal.", true));
767
767
  return;
768
768
  }
769
769
  resolveCallback({
@@ -846,51 +846,39 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
846
846
  callbackPromise: wrappedPromise
847
847
  };
848
848
  }
849
- function callbackHtml(title, message) {
850
- return `<!DOCTYPE html>
851
- <html lang="en">
852
- <head>
853
- <meta charset="utf-8" />
854
- <meta name="viewport" content="width=device-width, initial-scale=1" />
855
- <title>${title} — Index</title>
856
- <link rel="preconnect" href="https://fonts.googleapis.com" />
857
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
858
- <link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
859
- <style>
860
- * { margin: 0; padding: 0; box-sizing: border-box; }
861
- body {
862
- font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
863
- background: #FDFDFD;
864
- color: #111;
865
- display: flex;
866
- align-items: center;
867
- justify-content: center;
868
- min-height: 100vh;
869
- }
870
- .card {
871
- text-align: center;
872
- max-width: 400px;
873
- padding: 2rem;
874
- }
875
- h1 {
876
- font-size: 1.25rem;
877
- font-weight: 600;
878
- margin-bottom: 0.5rem;
879
- }
880
- p {
881
- font-size: 0.875rem;
882
- color: #666;
883
- line-height: 1.5;
884
- }
885
- </style>
886
- </head>
887
- <body>
888
- <div class="card">
889
- <h1>${title}</h1>
890
- <p>${message}</p>
891
- </div>
892
- </body>
893
- </html>`;
849
+ var WORDMARK_SVG = `<svg viewBox="0 0 522 44" fill="none" xmlns="http://www.w3.org/2000/svg">
850
+ <path d="M184.51 21.66C184.51 18.33 187.42 15.73 191.23 15.73C195.04 15.73 197.95 18.33 197.95 21.66C197.95 24.99 195.1 27.54 191.23 27.54C187.36 27.54 184.51 25 184.51 21.66Z" fill="white"/>
851
+ <path d="M0 0.72998H7.47V42.61H0V0.72998Z" fill="white"/>
852
+ <path d="M16.6301 0.72998H25.0701L44.3701 27.26H45.4001V0.72998H52.9301V42.61H44.4301L25.1901 16.08H24.1001V42.61H16.6301V0.72998Z" fill="white"/>
853
+ <path d="M99.91 21.67C99.91 33.63 90.74 42.61 78.54 42.61H62.03V0.72998H78.54C90.74 0.72998 99.91 9.70995 99.91 21.67ZM92.2 21.67C92.2 14.93 86.25 9.88998 78.3 9.88998H69.5V33.44H78.3C86.25 33.44 92.2 28.4 92.2 21.66V21.67Z" fill="white"/>
854
+ <path d="M137.61 33.45V42.62H107.08V0.73999H137.31V9.91H114.55V17.13H135.31V25.99H114.55V33.46H137.62L137.61 33.45Z" fill="white"/>
855
+ <path d="M167.53 21.7899L181.49 42.61H172.75L162.43 27.86H160.97L150.71 42.61H141.3L155.56 21.37L141.84 0.72998H150.58L160.66 15.36H162.06L172.14 0.72998H181.55L167.53 21.7899Z" fill="white"/>
856
+ <path d="M209.87 0.72998H218.31L237.61 27.26H238.64V0.72998H246.17V42.61H237.67L218.43 16.08H217.34V42.61H209.87V0.72998Z" fill="white"/>
857
+ <path d="M285.8 33.45V42.62H255.27V0.73999H285.5V9.91H262.74V17.13H283.5V25.99H262.74V33.46H285.81L285.8 33.45Z" fill="white"/>
858
+ <path d="M324.77 9.88998H311.48V42.61H304.01V9.88998H290.72V0.719971H324.77V9.88998Z" fill="white"/>
859
+ <path d="M328.96 0.72998H336.91L346.14 28.35H347.41L356.09 0.72998H362.71L371.45 28.35H372.79L381.89 0.72998H390.33L376.92 42.61H368.42L360.59 17.24H358.71L350.88 42.61H342.38L328.97 0.72998H328.96Z" fill="white"/>
860
+ <path d="M391.54 21.67C391.54 9.34998 401.07 0 413.7 0C426.33 0 435.86 9.34998 435.86 21.67C435.86 33.99 426.33 43.34 413.7 43.34C401.07 43.34 391.54 33.99 391.54 21.67ZM428.14 21.67C428.14 14.63 421.89 9.35004 413.69 9.35004C405.49 9.35004 399.24 14.63 399.24 21.67C399.24 28.71 405.49 33.99 413.69 33.99C421.89 33.99 428.14 28.71 428.14 21.67Z" fill="white"/>
861
+ <path d="M459.46 29.5H450.42V42.61H442.95V0.72998H462.13C470.57 0.72998 477 6.91996 477 15.12C477 21.31 473.36 26.35 467.9 28.47L477.55 42.61H468.45L459.47 29.5H459.46ZM450.42 20.33H461.95C466.44 20.33 469.23 18.27 469.23 15.11C469.23 11.95 466.44 9.88998 461.95 9.88998H450.42V20.33Z" fill="white"/>
862
+ <path d="M497.83 25.56L491.4 30.96V42.61H483.93V0.72998H491.4V17.67H492.92L509.07 0.72998H521.03L503.31 20.21L521.46 42.61H512.11L497.85 25.55L497.83 25.56Z" fill="white"/>
863
+ </svg>`;
864
+ function callbackHtml(title, message, ok = false) {
865
+ const check = ok ? `<div class="check"><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="#0b1612" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg></div>` : "";
866
+ return `<!doctype html><html><head><meta charset="utf-8"><title>${title} · index</title>
867
+ <link rel="preconnect" href="https://fonts.googleapis.com">
868
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
869
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Public+Sans:wght@300;400;500;600&display=swap">
870
+ <style>
871
+ body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#14241f;color:#F4FBF6;font-family:'Public Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
872
+ .nav{display:flex;align-items:center;padding:22px 56px}
873
+ .nav svg{height:14px;width:auto;display:block}
874
+ main{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}
875
+ .c{text-align:center;max-width:420px}
876
+ .check{width:56px;height:56px;margin:0 auto 26px;border-radius:50%;background:#3FBF7F;display:flex;align-items:center;justify-content:center}
877
+ h1{font-size:20px;font-weight:600;margin:0 0 10px}
878
+ p{font-size:14px;font-weight:500;margin:0;color:rgba(244,251,246,0.78)}
879
+ </style></head>
880
+ <body><nav class="nav">${WORDMARK_SVG}</nav>
881
+ <main><div class="c">${check}<h1>${title}</h1><p>${message}</p></div></main></body></html>`;
894
882
  }
895
883
 
896
884
  // src/logout.command.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/cli",
3
- "version": "0.13.2-rc.57.1",
3
+ "version": "0.13.2-rc.60.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.13.2-rc.57.1",
24
- "@indexnetwork/cli-linux-arm64": "0.13.2-rc.57.1",
25
- "@indexnetwork/cli-darwin-x64": "0.13.2-rc.57.1",
26
- "@indexnetwork/cli-darwin-arm64": "0.13.2-rc.57.1"
23
+ "@indexnetwork/cli-linux-x64": "0.13.2-rc.60.1",
24
+ "@indexnetwork/cli-linux-arm64": "0.13.2-rc.60.1",
25
+ "@indexnetwork/cli-darwin-x64": "0.13.2-rc.60.1",
26
+ "@indexnetwork/cli-darwin-arm64": "0.13.2-rc.60.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "1.3.14"