Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts: # docs/config-catalog.md # docs/config-catalog.zh.md # docs/event-producer-consumer.md # docs/event-producer-consumer.zh.md # docs/persistence-catalog.i18n.yaml # docs/persistence-catalog.md # docs/persistence-catalog.zh.md # docs/persistence-schema.json # packages/experimental/worktree/README.i18n.yaml # packages/extensions/tool-cordis/src/api-catalog.ts # packages/session/working-directory/README.i18n.yaml # packages/session/working-directory/README.md # packages/session/working-directory/README.zh.md # packages/session/working-directory/src/index.ts
This commit is contained in:
commit
b5c048eea8
684 files changed
+18286
-4759
No files matched your search
@@ -429,8 +429,14 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
|
||||
ForgeBaseBranches: 'forge.md',
|
||||
ForgeBranches: 'forge.md',
|
||||
ForgeChangeRequestDiff: 'forge.md',
|
||||
ForgeCommit: 'forge.md',
|
||||
ForgeCommitList: 'forge.md',
|
||||
ForgeReviewData: 'forge.md',
|
||||
ForgeCommitRange: 'forge.md',
|
||||
ForgeFileLayer: 'forge.md',
|
||||
ForgeChangeRequestStatesFrame: 'forge.md',
|
||||
ForgeFailure: 'forge.md',
|
||||
ForgeLocalCommits: 'forge.md',
|
||||
ForgeLocalDiff: 'forge.md',
|
||||
ForgeLocalScope: 'forge.md',
|
||||
ForgePanelState: 'forge.md',
|
||||
|
||||
@@ -826,8 +826,7 @@
|
||||
"612bd4047fa63f957ecb33d7fc7544c489301c3c0592e9a42dafe2cb85311165": 1
|
||||
},
|
||||
"packages/core/session/src/index.ts": {
|
||||
"487a58a6269113d4cbfd31915a9abdbf016e672be9a2af2c6d5d57b087d0b011": 1,
|
||||
"617d5fb3379f8603568546bd83b208f372616fda55fa23902ffacca293d1e841": 1
|
||||
"487a58a6269113d4cbfd31915a9abdbf016e672be9a2af2c6d5d57b087d0b011": 1
|
||||
},
|
||||
"packages/core/session/tests/canonical-envelopes.spec.ts": {
|
||||
"23574fdfdba1d085e9d7aa52f76f723732597efdad04ca6b6742c3f5131376d6": 1,
|
||||
|
||||
@@ -2880,11 +2880,205 @@
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "step/start",
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 9,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"id": "{{messageId}}",
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Cancellation checkpoint probe."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "plugin:serial-created-fixture"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 10,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": [],
|
||||
"outcome": "canceled"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 11,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"id": "{{messageId}}",
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Serial agent creation completed."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "plugin:serial-created-fixture"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 12,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-turn",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Reply with exactly DIRECT_CHILD_OK and nothing else."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Your final answer is delivered automatically if your parent is still online. Include the result and relevant evidence in that answer; the parent does not receive your full transcript, tool output, or reasoning. If your last action is a message to your parent, the completion notice omits your final answer; include the result and relevant evidence in that message."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "user"
|
||||
},
|
||||
"role": "user",
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "turn/end",
|
||||
"seq": 13,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"reason": {
|
||||
"kind": "aborted",
|
||||
"reason": {
|
||||
"kind": "user"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.status",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"status": "idle"
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.status",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"status": "running"
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "turn/start",
|
||||
"seq": 14,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 15,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 16,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-turn",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "step/start",
|
||||
"seq": 17,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 2,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
@@ -2896,10 +3090,10 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "system/message",
|
||||
"seq": 10,
|
||||
"seq": 18,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1,
|
||||
"message": {
|
||||
"role": "system",
|
||||
@@ -2925,7 +3119,7 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 11,
|
||||
"seq": 19,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"id": "{{messageId}}",
|
||||
@@ -2950,7 +3144,7 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 12,
|
||||
"seq": 20,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"content": [
|
||||
@@ -2979,7 +3173,7 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 13,
|
||||
"seq": 21,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"content": [
|
||||
@@ -3027,7 +3221,7 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "request/header",
|
||||
"seq": 14,
|
||||
"seq": 22,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"header": {
|
||||
@@ -3063,7 +3257,7 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "request/context",
|
||||
"seq": 15,
|
||||
"seq": 23,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"provider": "deepseek-official",
|
||||
@@ -3079,12 +3273,12 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "session/title",
|
||||
"seq": 16,
|
||||
"seq": 24,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"title": "Reply with exactly DIRECT_CHILD_OK and",
|
||||
"messageSeqs": [
|
||||
12
|
||||
20
|
||||
],
|
||||
"source": {
|
||||
"kind": "fallback"
|
||||
@@ -3099,12 +3293,12 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "session-log-deepseek/delivery-accepted",
|
||||
"seq": 17,
|
||||
"seq": 25,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"sessionId": "{{child-1}}",
|
||||
"sessionFormatVersion": 4,
|
||||
"throughSeq": 16
|
||||
"throughSeq": 24
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3115,10 +3309,10 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "assistant/message",
|
||||
"seq": 18,
|
||||
"seq": 26,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
@@ -3229,10 +3423,10 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "step/end",
|
||||
"seq": 19,
|
||||
"seq": 27,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
@@ -3244,10 +3438,10 @@
|
||||
"sessionId": "{{child-1}}",
|
||||
"event": {
|
||||
"type": "turn/end",
|
||||
"seq": 20,
|
||||
"seq": 28,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"reason": {
|
||||
"kind": "completed"
|
||||
}
|
||||
@@ -3712,11 +3906,201 @@
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "step/start",
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 9,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"id": "{{messageId}}",
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Cancellation checkpoint probe."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "plugin:serial-created-fixture"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 10,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": [],
|
||||
"outcome": "canceled"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 11,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"id": "{{messageId}}",
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Serial agent creation completed."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "plugin:serial-created-fixture"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 12,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-turn",
|
||||
"start": 0,
|
||||
"inserted": [
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Reply with exactly WORKFLOW_CHILD_OK and nothing else."
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "user"
|
||||
},
|
||||
"role": "user",
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "turn/end",
|
||||
"seq": 13,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"reason": {
|
||||
"kind": "aborted",
|
||||
"reason": {
|
||||
"kind": "user"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.status",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"status": "idle"
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.status",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"status": "running"
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "turn/start",
|
||||
"seq": 14,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 15,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-step",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "agent/inbox/spliced",
|
||||
"seq": 16,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"target": "next-turn",
|
||||
"start": 0,
|
||||
"removedCount": 1,
|
||||
"inserted": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "session.event",
|
||||
"payload": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "step/start",
|
||||
"seq": 17,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 2,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
@@ -3728,10 +4112,10 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "system/message",
|
||||
"seq": 10,
|
||||
"seq": 18,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1,
|
||||
"message": {
|
||||
"role": "system",
|
||||
@@ -3757,7 +4141,7 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 11,
|
||||
"seq": 19,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"id": "{{messageId}}",
|
||||
@@ -3782,7 +4166,7 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 12,
|
||||
"seq": 20,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"content": [
|
||||
@@ -3807,7 +4191,7 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "user/message",
|
||||
"seq": 13,
|
||||
"seq": 21,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"content": [
|
||||
@@ -3855,7 +4239,7 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "request/header",
|
||||
"seq": 14,
|
||||
"seq": 22,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"header": {
|
||||
@@ -3891,7 +4275,7 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "request/context",
|
||||
"seq": 15,
|
||||
"seq": 23,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"provider": "deepseek-official",
|
||||
@@ -3907,12 +4291,12 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "session/title",
|
||||
"seq": 16,
|
||||
"seq": 24,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"title": "Reply with exactly WORKFLOW_CHILD_OK and",
|
||||
"messageSeqs": [
|
||||
12
|
||||
20
|
||||
],
|
||||
"source": {
|
||||
"kind": "fallback"
|
||||
@@ -3927,12 +4311,12 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "session-log-deepseek/delivery-accepted",
|
||||
"seq": 17,
|
||||
"seq": 25,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"sessionId": "{{child-2}}",
|
||||
"sessionFormatVersion": 4,
|
||||
"throughSeq": 16
|
||||
"throughSeq": 24
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3943,10 +4327,10 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "assistant/message",
|
||||
"seq": 18,
|
||||
"seq": 26,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1,
|
||||
"message": {
|
||||
"role": "assistant",
|
||||
@@ -4057,10 +4441,10 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "step/end",
|
||||
"seq": 19,
|
||||
"seq": 27,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
@@ -4072,10 +4456,10 @@
|
||||
"sessionId": "{{child-2}}",
|
||||
"event": {
|
||||
"type": "turn/end",
|
||||
"seq": 20,
|
||||
"seq": 28,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
"turn": 2,
|
||||
"reason": {
|
||||
"kind": "completed"
|
||||
}
|
||||
|
||||
@@ -8,15 +8,23 @@
|
||||
{"type":"turn/start","data":{"turn":1}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Cancellation checkpoint probe."}],"source":{"kind":"plugin:serial-created-fixture"}}]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[],"outcome":"canceled"}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}}]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"inserted":[{"content":[{"type":"text","text":"Reply with exactly DIRECT_CHILD_OK and nothing else."},{"type":"text","text":"Your final answer is delivered automatically if your parent is still online. Include the result and relevant evidence in that answer; the parent does not receive your full transcript, tool output, or reasoning. If your last action is a message to your parent, the completion notice omits your final answer; include the result and relevant evidence in that message."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"}]}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"aborted","reason":{"kind":"user"}}}}
|
||||
{"type":"turn/start","data":{"turn":2}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":2,"step":1}}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Reply with exactly DIRECT_CHILD_OK and nothing else."},{"type":"text","text":"Your final answer is delivered automatically if your parent is still online. Include the result and relevant evidence in that answer; the parent does not receive your full transcript, tool output, or reasoning. If your last action is a message to your parent, the completion notice omits your final answer; include the result and relevant evidence in that message."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nDelegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"tool:subagent:depth","text":"Delegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly."},{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","reasoningEffort":"high","maxTokens":256000},"adapterDefaults":{"maxTokens":true},"tools":["cordis_inspect_list","cordis_inspect_query","job_kill","job_list","job_output","snapshot_double","subagent","workflow","working_directory"]},"reason":"initial"}}
|
||||
{"type":"request/context","data":{"provider":"deepseek-official","model":"smoke-model","contextWindow":1000000}}
|
||||
{"type":"session/title","data":{"title":"Reply with exactly DIRECT_CHILD_OK and","messageSeqs":[12],"source":{"kind":"fallback"}}}
|
||||
{"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{child-1}}","sessionFormatVersion":4,"throughSeq":16}}
|
||||
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"DIRECT_CHILD_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":0,"index":0,"dt":[],"texts":["DIRECT_CHILD_OK"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"DIRECT_CHILD_OK"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}}}]},"surfaceOp":"append"}
|
||||
{"type":"step/end","data":{"turn":1,"step":1}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|
||||
{"type":"session/title","data":{"title":"Reply with exactly DIRECT_CHILD_OK and","messageSeqs":[20],"source":{"kind":"fallback"}}}
|
||||
{"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{child-1}}","sessionFormatVersion":4,"throughSeq":24}}
|
||||
{"type":"assistant/message","data":{"turn":2,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"DIRECT_CHILD_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":0,"index":0,"dt":[],"texts":["DIRECT_CHILD_OK"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"DIRECT_CHILD_OK"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}}}]},"surfaceOp":"append"}
|
||||
{"type":"step/end","data":{"turn":2,"step":1}}
|
||||
{"type":"turn/end","data":{"turn":2,"reason":{"kind":"completed"}}}
|
||||
@@ -8,15 +8,23 @@
|
||||
{"type":"turn/start","data":{"turn":1}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Cancellation checkpoint probe."}],"source":{"kind":"plugin:serial-created-fixture"}}]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[],"outcome":"canceled"}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}}]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"inserted":[{"content":[{"type":"text","text":"Reply with exactly WORKFLOW_CHILD_OK and nothing else."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"}]}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"aborted","reason":{"kind":"user"}}}}
|
||||
{"type":"turn/start","data":{"turn":2}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":2,"step":1}}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Reply with exactly WORKFLOW_CHILD_OK and nothing else."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nDelegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"tool:subagent:depth","text":"Delegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly."},{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","reasoningEffort":"high","maxTokens":256000},"adapterDefaults":{"maxTokens":true},"tools":["cordis_inspect_list","cordis_inspect_query","job_kill","job_list","job_output","snapshot_double","subagent","workflow","working_directory"]},"reason":"initial"}}
|
||||
{"type":"request/context","data":{"provider":"deepseek-official","model":"smoke-model","contextWindow":1000000}}
|
||||
{"type":"session/title","data":{"title":"Reply with exactly WORKFLOW_CHILD_OK and","messageSeqs":[12],"source":{"kind":"fallback"}}}
|
||||
{"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{child-2}}","sessionFormatVersion":4,"throughSeq":16}}
|
||||
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"WORKFLOW_CHILD_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":0,"index":0,"dt":[],"texts":["WORKFLOW_CHILD_OK"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"WORKFLOW_CHILD_OK"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}}}]},"surfaceOp":"append"}
|
||||
{"type":"step/end","data":{"turn":1,"step":1}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|
||||
{"type":"session/title","data":{"title":"Reply with exactly WORKFLOW_CHILD_OK and","messageSeqs":[20],"source":{"kind":"fallback"}}}
|
||||
{"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{child-2}}","sessionFormatVersion":4,"throughSeq":24}}
|
||||
{"type":"assistant/message","data":{"turn":2,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"WORKFLOW_CHILD_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":0,"index":0,"dt":[],"texts":["WORKFLOW_CHILD_OK"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"WORKFLOW_CHILD_OK"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"smoke-model"},"blocks":[{"type":"text"}]}}}]},"surfaceOp":"append"}
|
||||
{"type":"step/end","data":{"turn":2,"step":1}}
|
||||
{"type":"turn/end","data":{"turn":2,"reason":{"kind":"completed"}}}
|
||||
@@ -52,7 +52,6 @@
|
||||
"get_goal",
|
||||
"glob",
|
||||
"grep",
|
||||
"interrupt_agent",
|
||||
"job_kill",
|
||||
"job_list",
|
||||
"job_output",
|
||||
@@ -116,7 +115,6 @@
|
||||
"get_goal",
|
||||
"glob",
|
||||
"grep",
|
||||
"interrupt_agent",
|
||||
"job_kill",
|
||||
"job_list",
|
||||
"job_output",
|
||||
@@ -195,7 +193,6 @@
|
||||
"get_goal",
|
||||
"glob",
|
||||
"grep",
|
||||
"interrupt_agent",
|
||||
"job_kill",
|
||||
"job_list",
|
||||
"job_output",
|
||||
|
||||
@@ -2452,6 +2452,16 @@
|
||||
"symbol": "ForgeProvider",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeCommit",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeCommitList",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestKey",
|
||||
@@ -2757,6 +2767,11 @@
|
||||
"symbol": "ForgeChangeRequestStatesFrame",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeCommitRange",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeLocalScope",
|
||||
@@ -2772,6 +2787,11 @@
|
||||
"symbol": "ForgeDiffStatus",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeFileLayer",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeDiffFile",
|
||||
@@ -2782,6 +2802,11 @@
|
||||
"symbol": "ForgeLocalDiff",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeLocalCommits",
|
||||
"source": "packages/experimental/client-ui-forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeChangeRequestDiff",
|
||||
@@ -2811,6 +2836,46 @@
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeReviewResult",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeThreadId",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeCommentId",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeAnchor",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeCommentAuthor",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeReviewComment",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeReviewThread",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ForgeReviewData",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/session.md",
|
||||
"symbol": "SessionEventInput",
|
||||
"source": "packages/core/session/src/types.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -253,7 +253,7 @@ function bodylessMember(text: string, sf: ts.SourceFile, member: ts.ClassElement
|
||||
|
||||
/**
|
||||
* Render a class as an ambient declaration containing only its public fields,
|
||||
* constructor, accessors, and methods. Implementation bodies and private or
|
||||
* constructor, accessors, and methods. Overload implementations, other bodies, and private or
|
||||
* protected members are deliberately absent; original class/member JSDoc is
|
||||
* retained so the projection is the source-owned public contract.
|
||||
*/
|
||||
@@ -268,6 +268,11 @@ function sourcePublicApi(sourceRel: string, symbol: string): string | null {
|
||||
const header = `declare ${abstract}class ${symbol}${typeParameters ? `<${typeParameters}>` : ''}${heritage ? ` ${heritage}` : ''} {`
|
||||
const members = stmt.members
|
||||
.filter(isPublicMember)
|
||||
.filter(member => !(ts.isMethodDeclaration(member) && member.body !== undefined
|
||||
&& stmt.members.some(candidate => ts.isMethodDeclaration(candidate) && candidate.body === undefined
|
||||
&& candidate.name.getText(sf) === member.name.getText(sf)
|
||||
&& Boolean(ts.getModifiers(candidate)?.some(modifier => modifier.kind === ts.SyntaxKind.StaticKeyword))
|
||||
=== Boolean(ts.getModifiers(member)?.some(modifier => modifier.kind === ts.SyntaxKind.StaticKeyword)))))
|
||||
.map((member) => {
|
||||
const jsDoc = sourceJSDoc(text, member)
|
||||
const declaration = bodylessMember(text, sf, member)
|
||||
|
||||
Reference in new issue
Block a user