polygram 0.9.0-rc.3 → 0.9.0-rc.4

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.9.0-rc.3",
4
+ "version": "0.9.0-rc.4",
5
5
  "description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands plus history (transcript queries) and polygram-send (out-of-turn IPC sends with file-upload validation) skills.",
6
6
  "keywords": [
7
7
  "telegram",
@@ -112,6 +112,15 @@ function resolveAgentLocation(agentName, homeDir, cwd) {
112
112
  // Fallback: ~/.claude-plugins-local/<plugin>/agents/<agent>.md
113
113
  const localPath = path.join(homeDir, '.claude-plugins-local', plugin, 'agents', agent + '.md');
114
114
  if (fs.existsSync(localPath)) return { kind: 'file', path: localPath, dir: null };
115
+ // Last fallback: <cwd>/.claude-plugins-local/<plugin>/agents/<agent>.md.
116
+ // Matches a project's `extraKnownMarketplaces.<m>.source.path =
117
+ // <cwd>/.claude-plugins-local` setup — the project vendors plugins
118
+ // under its own tree without polluting ~/.claude-plugins-local/.
119
+ // Lowest precedence so registry + user-local still win.
120
+ if (cwd) {
121
+ const cwdLocal = path.join(cwd, '.claude-plugins-local', plugin, 'agents', agent + '.md');
122
+ if (fs.existsSync(cwdLocal)) return { kind: 'file', path: cwdLocal, dir: null };
123
+ }
115
124
  return null;
116
125
  }
117
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.9.0-rc.3",
3
+ "version": "0.9.0-rc.4",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc/client.js",
6
6
  "bin": {