sentisense 0.72.0 → 0.72.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/cli.cjs CHANGED
@@ -512,6 +512,26 @@ var analystCommand = {
512
512
  }
513
513
  };
514
514
 
515
+ // src/cli/sample.ts
516
+ function sampleNote(envelope, ticker) {
517
+ if (envelope.sampleCompany) {
518
+ return {
519
+ kind: "text",
520
+ text: `${ticker} is a sample company: full data on every plan. PRO unlocks every company.`,
521
+ tone: "dim"
522
+ };
523
+ }
524
+ const tickers = envelope.upgrade?.sampleTickers;
525
+ if (tickers && tickers.length > 0) {
526
+ return {
527
+ kind: "text",
528
+ text: `Full data on every plan for the sample companies: ${tickers.join(", ")}.`,
529
+ tone: "dim"
530
+ };
531
+ }
532
+ return void 0;
533
+ }
534
+
515
535
  // src/cli/ticker.ts
516
536
  function rejectSurplus(args, name, allowed) {
517
537
  if (args.positionals.length <= allowed) return;
@@ -596,7 +616,8 @@ var analystsCommand = {
596
616
  ],
597
617
  notes: [
598
618
  "The price target band and analyst count come back in full on every key.",
599
- "The buy / hold / sell distribution and the longer action history are PRO.",
619
+ "The buy / hold / sell distribution and the longer action history are PRO, and full on a",
620
+ "free key for the sample companies.",
600
621
  "A ticker with no analyst coverage exits 4 rather than returning an empty band.",
601
622
  "--coverage answers who covers the ticker instead: one row per firm, the analyst that",
602
623
  "firm last published under, their latest target, and the firm's current rating. The slug",
@@ -693,7 +714,7 @@ var analystsCommand = {
693
714
  tone: "dim"
694
715
  });
695
716
  }
696
- return { json: { consensus, actions }, doc: doc(...blocks), notes };
717
+ return { json: { consensus, actions }, doc: doc(...blocks, sampleNote(consensus, ticker)), notes };
697
718
  }
698
719
  };
699
720
  async function coverageRun({ api, ticker, lookbackDays, full, args }) {
@@ -779,7 +800,7 @@ async function coverageRun({ api, ticker, lookbackDays, full, args }) {
779
800
  tone: "dim"
780
801
  });
781
802
  }
782
- return { json: envelope, doc: doc(...blocks) };
803
+ return { json: envelope, doc: doc(...blocks, sampleNote(envelope, ticker)) };
783
804
  }
784
805
 
785
806
  // src/cli/config.ts
@@ -972,7 +993,7 @@ var congressCommand = {
972
993
  "Disclosures are filed after the fact, so the gap between the trade date and the",
973
994
  "disclosure date is part of the picture. The delay column carries it in days.",
974
995
  "Amounts are the filed ranges, never exact figures: that is how the filings work.",
975
- "A free key sees a short preview of either feed.",
996
+ "A free key sees a short preview of either feed, or every filing for a sample company.",
976
997
  EMPTY_VERIFY_NOTE,
977
998
  EMPTY_VERIFY_NOTE_2
978
999
  ],
@@ -1054,7 +1075,7 @@ var congressCommand = {
1054
1075
  tone: "dim"
1055
1076
  });
1056
1077
  }
1057
- return { json: envelope, doc: doc(...blocks), notes };
1078
+ return { json: envelope, doc: doc(...blocks, ticker ? sampleNote(envelope, ticker) : void 0), notes };
1058
1079
  }
1059
1080
  };
1060
1081
 
@@ -1078,8 +1099,10 @@ var earningsCommand = {
1078
1099
  notes: [
1079
1100
  "With no ticker this is the forward calendar: who reports, when, and the consensus EPS.",
1080
1101
  "With a ticker it is the backward-looking analysis: one entry per reported quarter with",
1081
- "the editorial headline, and on a PRO key the written summary and guidance language.",
1082
- "A free key sees the current week of the calendar and the latest quarter of the analysis.",
1102
+ "the editorial headline, and on a PRO key or a sample company the written summary and",
1103
+ "guidance language.",
1104
+ "A free key sees the current week of the calendar and the latest quarter of the analysis,",
1105
+ "or every quarter for a sample company.",
1083
1106
  "Coverage of the per-ticker analysis is not the whole market, so a tracked company can",
1084
1107
  "have no stored quarter yet.",
1085
1108
  EMPTY_VERIFY_NOTE,
@@ -1168,7 +1191,7 @@ var earningsCommand = {
1168
1191
  tone: "dim"
1169
1192
  });
1170
1193
  }
1171
- return { json: envelope2, doc: doc(...blocks2), notes };
1194
+ return { json: envelope2, doc: doc(...blocks2, sampleNote(envelope2, ticker)), notes };
1172
1195
  }
1173
1196
  const week = typeof args.flags.week === "string" ? args.flags.week : void 0;
1174
1197
  if (week && week !== "this" && week !== "next") {
@@ -1354,7 +1377,7 @@ var flowsCommand = {
1354
1377
  tone: "dim"
1355
1378
  });
1356
1379
  }
1357
- return { json: envelope2, doc: doc(...blocks2), notes };
1380
+ return { json: envelope2, doc: doc(...blocks2, sampleNote(envelope2, ticker)), notes };
1358
1381
  }
1359
1382
  const envelope = await api.institutional.getFlows(quarter, { limit });
1360
1383
  const data = envelope.data;
@@ -1409,7 +1432,7 @@ var flowsCommand = {
1409
1432
  };
1410
1433
 
1411
1434
  // src/version.ts
1412
- var VERSION = "0.72.0";
1435
+ var VERSION = "0.72.1";
1413
1436
 
1414
1437
  // src/resources/analyst.ts
1415
1438
  var Analyst = class {
@@ -3494,7 +3517,8 @@ var insidersCommand = {
3494
3517
  "to sell, so they are excluded from sold and shown separately as withheld.",
3495
3518
  "The plan column says whether the trade was under a confirmed pre-arranged 10b5-1 plan,",
3496
3519
  "which is the difference between a scheduled sale and a discretionary one.",
3497
- "A free key sees the top few transactions; a PRO key sees the window you asked for.",
3520
+ "A free key sees the top few transactions, or the full window for a sample company; a PRO",
3521
+ "key sees the window you asked for.",
3498
3522
  EMPTY_VERIFY_NOTE,
3499
3523
  EMPTY_VERIFY_NOTE_2
3500
3524
  ],
@@ -3569,7 +3593,7 @@ var insidersCommand = {
3569
3593
  tone: "dim"
3570
3594
  });
3571
3595
  }
3572
- return { json: envelope, doc: doc(...blocks), notes };
3596
+ return { json: envelope, doc: doc(...blocks, sampleNote(envelope, ticker)), notes };
3573
3597
  }
3574
3598
  };
3575
3599
 
@@ -3591,7 +3615,8 @@ var insightsCommand = {
3591
3615
  notes: [
3592
3616
  "Signals are generated observations about filings, flows, and attention, ordered by",
3593
3617
  "urgency then confidence. They describe what the data shows, not what to do about it.",
3594
- "A free key sees the top three; a PRO key sees the whole list.",
3618
+ "A free key sees the top three, or the whole list for a sample company; a PRO key sees the",
3619
+ "whole list.",
3595
3620
  "Signal types vary by ticker and over time, so take --type from what a plain run reports",
3596
3621
  "rather than guessing a name.",
3597
3622
  EMPTY_VERIFY_NOTE,
@@ -3677,7 +3702,7 @@ var insightsCommand = {
3677
3702
  tone: "dim"
3678
3703
  });
3679
3704
  }
3680
- return { json: envelope, doc: doc(...blocks), notes };
3705
+ return { json: envelope, doc: doc(...blocks, sampleNote(envelope, ticker)), notes };
3681
3706
  }
3682
3707
  };
3683
3708
 
@@ -3904,7 +3929,7 @@ async function intraday(api, ticker, session) {
3904
3929
  if (envelope.upgrade?.url) {
3905
3930
  lines.push({ kind: "text", text: envelope.upgrade.url, tone: "dim" });
3906
3931
  }
3907
- return { json: envelope, doc: doc(...lines) };
3932
+ return { json: envelope, doc: doc(...lines, sampleNote(envelope, ticker)) };
3908
3933
  }
3909
3934
  const series = data?.series ?? [];
3910
3935
  const served = data?.session ?? session ?? "the latest session";
@@ -3955,7 +3980,7 @@ async function intraday(api, ticker, session) {
3955
3980
  text: `Volumes are cumulative for the session, from chains delayed ${data?.delayMinutes ?? 15} minutes.`,
3956
3981
  tone: "dim"
3957
3982
  });
3958
- return { json: envelope, doc: doc(...blocks) };
3983
+ return { json: envelope, doc: doc(...blocks, sampleNote(envelope, ticker)) };
3959
3984
  }
3960
3985
  var optionsCommand = {
3961
3986
  name: "options",
@@ -3977,13 +4002,14 @@ var optionsCommand = {
3977
4002
  EMPTY_VERIFY_NOTE,
3978
4003
  EMPTY_VERIFY_NOTE_2,
3979
4004
  "A free key gets the full dossier for the first ten calls each month, then a headline",
3980
- "preview. Calls that return no dossier do not count against that.",
4005
+ "preview. Calls that return no dossier do not count against that. Sample companies are",
4006
+ "always full and spend none of the ten.",
3981
4007
  "--intraday shows one session's intraday series instead: the ticker's volumes, put/call",
3982
- "ratio, unusual-contract count and ATM IV at every 15-minute cycle (PRO keys only).",
4008
+ "ratio, unusual-contract count and ATM IV at every 15-minute cycle (PRO keys and sample companies).",
3983
4009
  "--session picks the session and implies --intraday; omitted, the latest one."
3984
4010
  ],
3985
4011
  flags: {
3986
- intraday: { type: "boolean", describe: "Show the session's intraday series, every 15-minute cycle (PRO)" },
4012
+ intraday: { type: "boolean", describe: "Show the session's intraday series, every 15-minute cycle (PRO or a sample company)" },
3987
4013
  session: {
3988
4014
  type: "string",
3989
4015
  placeholder: "YYYY-MM-DD",
@@ -4099,7 +4125,7 @@ var optionsCommand = {
4099
4125
  tone: "dim"
4100
4126
  });
4101
4127
  }
4102
- return { json: envelope, doc: doc(...blocks) };
4128
+ return { json: envelope, doc: doc(...blocks, sampleNote(envelope, ticker)) };
4103
4129
  }
4104
4130
  };
4105
4131
 
package/dist/index.cjs CHANGED
@@ -1475,7 +1475,7 @@ var Trackers = class {
1475
1475
  };
1476
1476
 
1477
1477
  // src/version.ts
1478
- var VERSION = "0.72.0";
1478
+ var VERSION = "0.72.1";
1479
1479
 
1480
1480
  // src/client.ts
1481
1481
  var DEFAULT_BASE_URL = "https://app.sentisense.ai";