@canonmsg/codex-plugin 0.11.8 → 0.11.10

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/host.js +4 -3
  2. package/package.json +3 -3
package/dist/host.js CHANGED
@@ -757,6 +757,9 @@ export async function main() {
757
757
  }
758
758
  console.error(`[canon-codex] [${input.conversationId.slice(0, 8)}] Message from ${input.senderName}: "${content.slice(0, 80)}" (${autoReply.reason})`);
759
759
  markGroupContextModeUsed(input.conversationId, participantContext.groupContextMode);
760
+ const turnMetadata = normalizeTurnMetadata(input.message.metadata);
761
+ const deliveryIntent = turnMetadata?.deliveryIntent ?? 'queue';
762
+ const shouldMarkAccepted = turnMetadata?.inboundDisposition === 'queued';
760
763
  let session;
761
764
  try {
762
765
  session = await getOrCreateSession(input.conversationId);
@@ -765,6 +768,7 @@ export async function main() {
765
768
  const message = error instanceof Error ? error.message : String(error);
766
769
  const userMessage = error instanceof ExecutionEnvironmentError ? error.userMessage : message;
767
770
  console.error(`[canon-codex] [${input.conversationId.slice(0, 8)}] Failed to create session: ${message}`);
771
+ await markQueuedMessageAccepted(input.conversationId, input.message.id, shouldMarkAccepted);
768
772
  await client.sendMessage(input.conversationId, `I couldn't start a coding session for this workspace: ${userMessage}`, {
769
773
  ...(activeSelfContextId ? { selfContextId: activeSelfContextId } : {}),
770
774
  metadata: {
@@ -775,10 +779,7 @@ export async function main() {
775
779
  }).catch(() => { });
776
780
  return;
777
781
  }
778
- const turnMetadata = normalizeTurnMetadata(input.message.metadata);
779
782
  session.activeSelfContextId = activeSelfContextId;
780
- const deliveryIntent = turnMetadata?.deliveryIntent ?? 'queue';
781
- const shouldMarkAccepted = turnMetadata?.inboundDisposition === 'queued';
782
783
  const prompt = buildCanonPrompt({
783
784
  content,
784
785
  conversationId: input.conversationId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/codex-plugin",
3
- "version": "0.11.8",
3
+ "version": "0.11.10",
4
4
  "description": "Canon host integration for Codex CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "prepack": "npm run build"
30
30
  },
31
31
  "dependencies": {
32
- "@canonmsg/agent-sdk": "^1.5.3",
33
- "@canonmsg/core": "^0.20.0"
32
+ "@canonmsg/agent-sdk": "^1.6.0",
33
+ "@canonmsg/core": "^0.22.0"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=18.0.0"