@okostream/mcp 0.18.0 → 0.18.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/README.md CHANGED
@@ -101,7 +101,8 @@ A new page is a draft: viewers of its public URL see "not published".
101
101
  the ledger of the organizer behind the key (scope `wallet:read`, included in
102
102
  the `operator` and `full` presets, not in `readOnly`). Keys created before that scope existed get `SCOPE_REQUIRED` and
103
103
  need a new key. A page in a shared workspace is paid from the workspace
104
- owner's wallet, which is theirs to read.
104
+ owner's wallet: its balance is told, in the previews and refusals, to whoever
105
+ may spend from it; its grants and ledger are the owner's to read.
105
106
  - **Payment and terms are web-only.** Plans and lumens are bought, and terms
106
107
  accepted, only in the OKO web cabinet, and no MCP tool collects a password,
107
108
  card or bank details, or agreement to terms on anyone's behalf.
package/dist/server.js CHANGED
@@ -116320,7 +116320,7 @@ function sanitizeScopes(scopes) {
116320
116320
  }
116321
116321
 
116322
116322
  // build/version.js
116323
- var OKO_MCP_VERSION = "0.18.0";
116323
+ var OKO_MCP_VERSION = "0.18.1";
116324
116324
 
116325
116325
  // build/auth.js
116326
116326
  var state = null;
@@ -119581,7 +119581,7 @@ function sessionOutlookWarnings(outlook) {
119581
119581
  if (outlook.lumens.enoughForPlan === false && outlook.lumens.neededForPlan !== null) {
119582
119582
  warnings.push({
119583
119583
  code: "session_lumens_not_enough_for_plan",
119584
- message: `A session that runs to the end of its plan costs about ${outlook.lumens.neededForPlan} lumens (1 per minute, taken when it ends). The wallet that pays for this workspace holds less: the session would be stopped when the lumens run out. Its owner can top it up. Lumens are checked at Start (a wallet at zero refuses it) and every minute while it runs.`
119584
+ message: `A session that runs to the end of its plan costs about ${outlook.lumens.neededForPlan} lumens (1 per minute, taken when it ends). ` + (typeof outlook.lumens.available === "number" ? `The wallet that pays for this workspace holds ${outlook.lumens.available}, which is less: ` : "The wallet that pays for this workspace holds less: ") + "the session would be stopped when the lumens run out. Its owner can top it up. Lumens are checked at Start (a wallet at zero refuses it) and every minute while it runs."
119585
119585
  });
119586
119586
  }
119587
119587
  return warnings;
@@ -122386,8 +122386,9 @@ function telegramPostRefusalResult(eventId, postId, error3, callerUid) {
122386
122386
  eventId,
122387
122387
  postId,
122388
122388
  needed,
122389
- // The wallet belongs to the payer: its balance is told to the payer only.
122390
- ...callerIsPayer && typeof info.available === "number" ? { available: info.available } : {},
122389
+ // The server tells the balance to whoever may spend from the wallet (the payer and a member who may send: decision
122390
+ // 2026-09-30) — this side relays what it was told, whoever the caller is.
122391
+ ...typeof info.available === "number" ? { available: info.available } : {},
122391
122392
  callerIsPayer,
122392
122393
  message: text || `OKO refused to send the Telegram post: the wallet that pays for this event holds fewer than ${needed} lumens. The post was not sent and nothing was charged.`,
122393
122394
  whatToDo: [
@@ -122853,7 +122854,7 @@ function registerWalletTools(server2) {
122853
122854
  ],
122854
122855
  notes: [
122855
122856
  "Needs the wallet:read scope. A key created before that scope existed gets SCOPE_REQUIRED and its scopes cannot be changed: the organizer creates a new key in the OKO cabinet.",
122856
- "Shows only the wallet of the organizer behind the key. A page in a shared workspace is paid from the WORKSPACE OWNER's wallet: the publish, session and Telegram previews name that payer, and the owner's balance is theirs to read, not this key's.",
122857
+ "Shows only the wallet of the organizer behind the key. A page in a shared workspace is paid from the WORKSPACE OWNER's wallet: the publish, session and Telegram previews and refusals name that payer and tell its balance to whoever may spend from it (publish, start a session, send posts); the owner's grants and ledger are theirs to read, not this key's.",
122857
122858
  "This tool cannot buy, grant, top up or spend lumens. Plans, lumens and payment details belong to the OKO web cabinet only; never ask the organizer for card data or a password.",
122858
122859
  "Refusals of the paid tools use the same codes as the web: ENTITLEMENT_REQUIRED (the plan does not include the feature) and INSUFFICIENT_TOKENS (not enough lumens); PLATFORM_REJECTED_READ here means the platform refused the read."
122859
122860
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okostream/mcp",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "Control OKO Stream webinars from Claude, Codex, and other MCP clients.",
5
5
  "license": "UNLICENSED",
6
6
  "author": {