@celljs/ta-agents 4.9.1 → 4.10.0
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/extension/index.mjs +19 -1
- package/package.json +3 -3
package/extension/index.mjs
CHANGED
|
@@ -699,6 +699,10 @@ var TEXTS = {
|
|
|
699
699
|
en: (agent, command) => `${agent} ran \`${command}\` and said nothing back; it may only show in ${agent}'s own interface.`,
|
|
700
700
|
zh: (agent, command) => `${agent} 已执行 \`${command}\`,没有返回内容(这个命令可能只在 ${agent} 自己的界面里有显示)。`
|
|
701
701
|
},
|
|
702
|
+
starting: {
|
|
703
|
+
en: (agent) => `Starting ${agent}…`,
|
|
704
|
+
zh: (agent) => `正在启动 ${agent}…`
|
|
705
|
+
},
|
|
702
706
|
unfinished: {
|
|
703
707
|
en: (agent) => `${agent} ended its turn before this call finished.`,
|
|
704
708
|
zh: (agent) => `${agent} 在这次调用完成前结束了这一轮。`
|
|
@@ -986,6 +990,9 @@ class AgentBindings {
|
|
|
986
990
|
sessionId(agent) {
|
|
987
991
|
return this.ids.get(agent);
|
|
988
992
|
}
|
|
993
|
+
ready(config) {
|
|
994
|
+
return this.opened.has(config.id) && this.agentOf(config, this.cwd, this.owner).running;
|
|
995
|
+
}
|
|
989
996
|
open(config, signal) {
|
|
990
997
|
this.used.set(JSON.stringify([config.id, this.cwd, this.owner]), { config, cwd: this.cwd, owner: this.owner });
|
|
991
998
|
const agent = this.agentOf(config, this.cwd, this.owner);
|
|
@@ -1717,7 +1724,18 @@ function activate(pi, options = {}) {
|
|
|
1717
1724
|
learn(config, session);
|
|
1718
1725
|
}, options.agentOf, options.release);
|
|
1719
1726
|
const streamer = new AgentStreamer({
|
|
1720
|
-
open: (config, signal) =>
|
|
1727
|
+
open: async (config, signal) => {
|
|
1728
|
+
if (bindings.ready(config)) {
|
|
1729
|
+
return bindings.open(config, signal);
|
|
1730
|
+
}
|
|
1731
|
+
const ui = context?.hasUI ? context.ui : undefined;
|
|
1732
|
+
ui?.setWorkingMessage(text("starting", config.name));
|
|
1733
|
+
try {
|
|
1734
|
+
return await bindings.open(config, signal);
|
|
1735
|
+
} finally {
|
|
1736
|
+
ui?.setWorkingMessage();
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1721
1739
|
calls,
|
|
1722
1740
|
ended: (config, session) => {
|
|
1723
1741
|
if (session.title && !pi.getSessionName()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-agents",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A pi package for Ta: other coding agents (CodeBuddy Code, Claude Code, Codex and any agent that speaks ACP) as models to pick, each running a conversation on its own harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@earendil-works/pi-ai": "^1.5.
|
|
30
|
-
"@earendil-works/pi-coding-agent": "^1.5.
|
|
29
|
+
"@earendil-works/pi-ai": "^1.5.2",
|
|
30
|
+
"@earendil-works/pi-coding-agent": "^1.5.2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|