Просмотр исходного кода

Merge latest ACP review fixes into DSH SDK layer

pku-xht 1 месяц назад
Родитель
Сommit
f72ef36331

+ 1 - 2
examples/acp-agent/subagent-acp-diagnostic.cordis.snapshot.yml

@@ -1,5 +1,5 @@
 # Keyless twin of subagent-acp-diagnostic.cordis.yml: keep the real ACP child
 # Keyless twin of subagent-acp-diagnostic.cordis.yml: keep the real ACP child
-# process/provider/tool and replace only the external parent model adapter.
+# permission-denial path and replace only the external parent model adapter.
 - id: base
 - id: base
   name: '@deepseek-ai/cordis-plugin-include'
   name: '@deepseek-ai/cordis-plugin-include'
   config:
   config:
@@ -27,7 +27,6 @@
                 - !!js process.env.DSH_TEST_MOCK_ACP_SERVER
                 - !!js process.env.DSH_TEST_MOCK_ACP_SERVER
               permission: reject
               permission: reject
               env:
               env:
-                MOCK_TEXT: partial ACP assistant text
                 MOCK_PERMISSION: '1'
                 MOCK_PERMISSION: '1'
                 MOCK_TOOL_KIND: execute
                 MOCK_TOOL_KIND: execute
           - id: tool-subagent-acp-diagnostic
           - id: tool-subagent-acp-diagnostic

+ 2 - 3
examples/acp-agent/subagent-acp-diagnostic.cordis.yml

@@ -1,7 +1,7 @@
 # Add the real ACP provider behind a one-shot delegation tool. The snapshot
 # Add the real ACP provider behind a one-shot delegation tool. The snapshot
 # scenario supplies the absolute protocol fixture path through
 # scenario supplies the absolute protocol fixture path through
-# DSH_TEST_MOCK_ACP_SERVER; the child returns a remote limit after a denied
-# execute permission and streams partial assistant output first.
+# DSH_TEST_MOCK_ACP_SERVER; the denied execute permission returns `cancelled`
+# and exercises diagnostic-bearing remote-abort parity.
 - id: base
 - id: base
   name: '@deepseek-ai/cordis-plugin-include'
   name: '@deepseek-ai/cordis-plugin-include'
   config:
   config:
@@ -17,7 +17,6 @@
                 - !!js process.env.DSH_TEST_MOCK_ACP_SERVER
                 - !!js process.env.DSH_TEST_MOCK_ACP_SERVER
               permission: reject
               permission: reject
               env:
               env:
-                MOCK_TEXT: partial ACP assistant text
                 MOCK_PERMISSION: '1'
                 MOCK_PERMISSION: '1'
                 MOCK_TOOL_KIND: execute
                 MOCK_TOOL_KIND: execute
           - id: tool-subagent-acp-diagnostic
           - id: tool-subagent-acp-diagnostic