commonswarm 0.1.35 → 0.1.37

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 (2) hide show
  1. package/cswarm.cjs +11 -8
  2. package/package.json +1 -1
package/cswarm.cjs CHANGED
@@ -29218,14 +29218,16 @@ function askReplyReadFailureMessage(workspaceId2, error) {
29218
29218
  return `Your message was posted, but its reply could not be fetched (${failure.detail}). Do not resend this ask. Check with: cswarm inbox --workspace-id ${workspaceId2}`;
29219
29219
  }
29220
29220
  function renderSignals(signals, options) {
29221
+ const feedScopeGuidance = "This feed shows broadcast signals only. It omits directed messages, including messages you sent. Read messages directed to you with: cswarm inbox";
29221
29222
  if (signals.length === 0) {
29222
29223
  return [
29223
- options.inbox ? "Inbox:" : "Recent signals:",
29224
- options.inbox ? "Nothing is waiting for you." : options.includeStale ? "No signals have been shared in this workspace yet." : "No live signals in this workspace yet."
29224
+ options.inbox ? "Inbox:" : "Recent broadcast signals:",
29225
+ options.inbox ? "Nothing is waiting for you." : options.includeStale ? "No broadcast signals have been shared in this workspace yet." : "No live broadcast signals in this workspace yet.",
29226
+ ...options.inbox ? [] : [feedScopeGuidance]
29225
29227
  ].join("\n");
29226
29228
  }
29227
29229
  const now = options.now ?? Date.now();
29228
- const lines = [options.inbox ? "Inbox:" : "Recent signals:"];
29230
+ const lines = [options.inbox ? "Inbox:" : "Recent broadcast signals:"];
29229
29231
  for (const signal of signals) {
29230
29232
  const authorKind = signal.from_kind === "agent" ? "agent" : "member";
29231
29233
  const authorName = signal.from_kind === "agent" ? options.authors?.agents.get(signal.from) : options.authors?.users.get(signal.from);
@@ -29253,6 +29255,7 @@ function renderSignals(signals, options) {
29253
29255
  );
29254
29256
  }
29255
29257
  }
29258
+ if (!options.inbox) lines.push(feedScopeGuidance);
29256
29259
  return lines.join("\n");
29257
29260
  }
29258
29261
  function renderSignalStatus(recent, waitingAsks, options = {}) {
@@ -29643,8 +29646,8 @@ function arrivalSnippet(body) {
29643
29646
  if (oneLine.length <= ARRIVAL_SNIPPET_MAX) return oneLine;
29644
29647
  return `${oneLine.slice(0, ARRIVAL_SNIPPET_MAX - 1).trimEnd()}\u2026`;
29645
29648
  }
29646
- function arrivalReplyCommand(signalId, workspaceId2, target2) {
29647
- return `cswarm reply ${signalId} "<answer>" --agent-token-stdin --url ${target2.url} --anon-key ${target2.anonKey} --workspace-id ${workspaceId2}`;
29649
+ function arrivalReplyCommand(signalId, workspaceId2) {
29650
+ return `cswarm reply ${signalId} "<answer>" --workspace-id ${workspaceId2}`;
29648
29651
  }
29649
29652
  function arrivalNotification(signal, workspaceId2, target2) {
29650
29653
  return {
@@ -29655,7 +29658,7 @@ function arrivalNotification(signal, workspaceId2, target2) {
29655
29658
  sender_kind: signal.from_kind,
29656
29659
  kind: signal.kind,
29657
29660
  snippet: arrivalSnippet(signal.body),
29658
- reply_command: arrivalReplyCommand(signal.id, workspaceId2, target2)
29661
+ reply_command: arrivalReplyCommand(signal.id, workspaceId2)
29659
29662
  };
29660
29663
  }
29661
29664
  function formatArrivalNotification(notification) {
@@ -38829,8 +38832,8 @@ var ACCEPTED_AGENT_CREDENTIAL_MESSAGES = [
38829
38832
  AGENT_CREDENTIAL_MESSAGE_D088
38830
38833
  ];
38831
38834
  function packageVersion() {
38832
- if ("0.1.35".length > 0) {
38833
- return "0.1.35";
38835
+ if ("0.1.37".length > 0) {
38836
+ return "0.1.37";
38834
38837
  }
38835
38838
  try {
38836
38839
  const value = JSON.parse(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commonswarm",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "CommonSwarm CLI — coordination for teams where people and AI agents work side by side.",
5
5
  "bin": {
6
6
  "cswarm": "cswarm.cjs"