@ziggs-ai/agent-sdk 0.48.10 → 0.48.12
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.48.11
|
|
6
|
+
|
|
7
|
+
- `task_create` that hands work and files from a parent task to another hire now waits on the same cards as `task_delegate` when that hire cannot read the files yet. `HeldTaskCreate.handOver` can be the card list.
|
|
8
|
+
|
|
9
|
+
- A delegation the hire cannot read yet waits instead of failing. `task_delegate` create can answer `pending_approval`: the server sent one card to each person who must say yes, and makes the child after the last yes. The task-wake work signal now says to wait for it instead of filing access requests.
|
|
10
|
+
|
|
5
11
|
## 0.48.10
|
|
6
12
|
|
|
7
13
|
- A task wake says which of its own proposals were answered. The inbox loop passes each input's `reason` to the task executor (`TaskInputRef.reason`), and the Claude prompt turns an approved or declined proposal made from the task into a work signal: give the hire its first task with `task_delegate` (`task_create` on the hire is refused from inside the task), or report a decline.
|
|
@@ -242,8 +242,8 @@ function renderTaskInputLines(inputs, taskId, lines) {
|
|
|
242
242
|
`Give the hire its first task from this task with task_delegate (action "create", taskId ${taskId ?? 'this task'}` +
|
|
243
243
|
(agreementId ? `, agreementId ${agreementId}` : '') +
|
|
244
244
|
', the hire\'s provider agent as assigneeId, and an instruction artifact you record). ' +
|
|
245
|
-
'task_create on the hire is refused from here. If the
|
|
246
|
-
'
|
|
245
|
+
'task_create on the hire is refused from here. If the hire cannot read a file yet, the delegation answers pending_approval: ' +
|
|
246
|
+
'cards went to the people who must say yes, and the task is given after the last yes. Do not call again or file access requests for it.');
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
function renderEventLines(event, lines, now) {
|
|
@@ -49,7 +49,9 @@ export class TaskService {
|
|
|
49
49
|
try {
|
|
50
50
|
const result = await createTask({ ...taskData, agreementId }, this.creds);
|
|
51
51
|
runtimeLog.info('TaskService', 'handOver' in result
|
|
52
|
-
? `Task under agreement ${agreementId} waits on
|
|
52
|
+
? `Task under agreement ${agreementId} waits on ${'cards' in result.handOver
|
|
53
|
+
? `${result.handOver.cards.length} approval card(s)`
|
|
54
|
+
: `approval card ${result.handOver.agreementId}`}`
|
|
53
55
|
: `Task spawned under agreement ${agreementId}: ${result?.taskId || 'unknown'}`);
|
|
54
56
|
return result;
|
|
55
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/agent-sdk",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.12",
|
|
4
4
|
"description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
|
|
5
5
|
"homepage": "https://ziggsai.com/docs",
|
|
6
6
|
"bugs": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@anthropic-ai/claude-agent-sdk": "^0.3.284",
|
|
31
31
|
"@anthropic-ai/sdk": "^0.110.0",
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
33
|
-
"@ziggs-ai/api-client": "0.42.
|
|
34
|
-
"@ziggs-ai/contracts": "0.50.
|
|
33
|
+
"@ziggs-ai/api-client": "0.42.10",
|
|
34
|
+
"@ziggs-ai/contracts": "0.50.8",
|
|
35
35
|
"ajv": "^8.17.1",
|
|
36
36
|
"dotenv": "^17.2.3",
|
|
37
37
|
"openai": "^4.0.0",
|