@ganglion/xacpx 0.14.1 → 0.15.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -22389,6 +22389,9 @@ async function handleSessionArchive(context, chatKey, alias, archive) {
22389
22389
  async function promptWithSession(context, session3, chatKey, text, reply, replyContextToken, accountId, media, abortSignal, onToolEvent, onThought, perfSpan, metadata, onPlan, onUsage, onCommands) {
22390
22390
  if (session3.archived) {
22391
22391
  await context.sessions.setArchived(session3.alias, false);
22392
+ if (!await context.lifecycle.checkTransportSession(session3)) {
22393
+ await context.lifecycle.ensureTransportSession(session3, reply, perfSpan);
22394
+ }
22392
22395
  }
22393
22396
  const effectiveReplyMode = resolveEffectiveReplyMode(context.config, chatKey, session3.replyMode);
22394
22397
  if (!session3.replyMode)
@@ -25032,17 +25035,6 @@ class CommandRouter {
25032
25035
  try {
25033
25036
  await this.transport.cancel(session3);
25034
25037
  } catch {}
25035
- if (this.transport.removeSession) {
25036
- try {
25037
- await this.transport.removeSession(session3);
25038
- } catch (error2) {
25039
- await this.logger.error("session.archive_close_failed", "failed to close acpx session on archive", {
25040
- alias: internalAlias,
25041
- transportSession: session3.transportSession,
25042
- message: error2 instanceof Error ? error2.message : String(error2)
25043
- });
25044
- }
25045
- }
25046
25038
  }
25047
25039
  await this.sessions.setArchived(internalAlias, true);
25048
25040
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganglion/xacpx",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "随时随地通过聊天频道(微信 / 飞书 / 元宝等)远程控制 `acpx` 上的 Claude Code、Codex 等 Agents。",
5
5
  "keywords": [
6
6
  "acpx",