@ycodium-ai/plugin-team 0.2.4477 → 0.2.4688

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/dist/index.js +14 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all3) => {
8
8
  import { definePlugin } from "@ycodium-ai/plugin-api";
9
9
 
10
10
  // ../../packages/plugin-api/src/version.ts
11
- var PLUGIN_API_VERSION = 118;
11
+ var PLUGIN_API_VERSION = 128;
12
12
 
13
13
  // ../../node_modules/.pnpm/effect@4.0.0-beta.103_patch_hash=2379c0b6f6365efdc960ef467ae589e40827f36fbfe7992e14580cecfa87fd2b/node_modules/effect/dist/Pipeable.js
14
14
  var pipeArguments = (self, args2) => {
@@ -8215,14 +8215,18 @@ var formatPluginWakeText = (input) => [
8215
8215
  escapedBlockOpenTag("plugin-wake", [
8216
8216
  ["plugin", input.pluginId],
8217
8217
  ["reason", input.reason],
8218
- ...input.item ? [["item", input.item]] : []
8218
+ ...input.item ? [["item", input.item]] : [],
8219
+ ...input.round ? [
8220
+ ["round", String(input.round.round)],
8221
+ ["limit", String(input.round.limit)]
8222
+ ] : []
8219
8223
  ]),
8220
8224
  escapeSystemText(input.text),
8221
8225
  "</plugin-wake>",
8222
8226
  SYSTEM_NOTIFICATION_CLOSE_TAG
8223
8227
  ].join("\n");
8224
8228
  var PLUGIN_WAKE_PATTERN = new RegExp(
8225
- `${FIRST_BLOCK_START}<plugin-wake plugin="([^"]+)" reason="([^"]+)"(?: item="([^"]+)")? ${SYSTEM_TEXT_ESCAPED_ATTRIBUTE}>\\n[\\s\\S]*?\\n</plugin-wake>`
8229
+ `${FIRST_BLOCK_START}<plugin-wake plugin="([^"]+)" reason="([^"]+)"(?: item="([^"]+)")?(?: round="(\\d+)" limit="(\\d+)")? ${SYSTEM_TEXT_ESCAPED_ATTRIBUTE}>\\n([\\s\\S]*?)\\n</plugin-wake>`
8226
8230
  );
8227
8231
 
8228
8232
  // src/runtime/deliver.ts
@@ -10843,7 +10847,11 @@ var decodeCount = decodeUnknownOption2(
10843
10847
  Struct({ threadId: String4, peerThreadId: String4, halfTrips: Number5 })
10844
10848
  );
10845
10849
  var decodeReset = decodeUnknownOption2(
10846
- Struct({ threadId: String4, peerThreadId: optionalKey2(String4) })
10850
+ Struct({
10851
+ threadId: String4,
10852
+ peerThreadId: optionalKey2(String4),
10853
+ peerPluginId: optionalKey2(String4)
10854
+ })
10847
10855
  );
10848
10856
  function foldProgress(state, event) {
10849
10857
  if (event.type === "communication.wake-loop-updated") {
@@ -10857,7 +10865,7 @@ function foldProgress(state, event) {
10857
10865
  }
10858
10866
  if (event.type === "communication.wake-loops-reset") {
10859
10867
  const decoded2 = decodeReset(event.payload);
10860
- if (isNone2(decoded2)) return state;
10868
+ if (isNone2(decoded2) || decoded2.value.peerPluginId !== void 0) return state;
10861
10869
  const { threadId: threadId2, peerThreadId } = decoded2.value;
10862
10870
  const removed = new Set(
10863
10871
  Object.entries(state.counts).filter(
@@ -10904,6 +10912,7 @@ function createDeliveryPacing(progress, waitingOnSomeone2, counts) {
10904
10912
  if (await waitingOnSomeone2(threadId).catch(() => true)) return true;
10905
10913
  const [loops, changed] = await Promise.all([counts.list({ threadId }), progress.get()]);
10906
10914
  return loops.every((loop) => {
10915
+ if (loop.peerThreadId === void 0) return true;
10907
10916
  const at = Date.parse(loop.updatedAt);
10908
10917
  const baseline = changed.baselines[threadId]?.[pairKey(loop.threadId, loop.peerThreadId)] ?? 0;
10909
10918
  return now3 >= at + delayForStreak(Math.floor(Math.max(0, loop.halfTrips - baseline) / 2)) * 6e4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-team",
3
- "version": "0.2.4477",
3
+ "version": "0.2.4688",
4
4
  "description": "A project team roster with members, a lead, and goals.",
5
5
  "keywords": [
6
6
  "teams",
@@ -34,7 +34,7 @@
34
34
  "tailwindcss": "^4.0.0",
35
35
  "typescript": "~6.0.3",
36
36
  "vite-plus": "0.2.2",
37
- "@ycodium-ai/plugin-api": "0.2.4477",
37
+ "@ycodium-ai/plugin-api": "0.2.4688",
38
38
  "ycodium-system-text": "0.0.0"
39
39
  },
40
40
  "ycodium": {