@actwith-ai/sdk 0.2.1 → 0.3.1
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/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -44,6 +44,7 @@ interface Task {
|
|
|
44
44
|
claimedBy: string | null;
|
|
45
45
|
claimedByName: string | null;
|
|
46
46
|
response: string | null;
|
|
47
|
+
workContextId: string | null;
|
|
47
48
|
createdAt: number;
|
|
48
49
|
completedAt: number | null;
|
|
49
50
|
}
|
|
@@ -51,6 +52,7 @@ interface CreateTaskOptions {
|
|
|
51
52
|
contextId: string;
|
|
52
53
|
description: string;
|
|
53
54
|
bounty?: number;
|
|
55
|
+
workContextId?: string;
|
|
54
56
|
}
|
|
55
57
|
interface Memory {
|
|
56
58
|
key: string;
|
|
@@ -404,7 +406,7 @@ declare class ActwithClient {
|
|
|
404
406
|
taskCreate(options: CreateTaskOptions): Promise<{
|
|
405
407
|
id: string;
|
|
406
408
|
}>;
|
|
407
|
-
taskList(contextId: string, status?: "open" | "claimed" | "completed" | "pending_review" | "rejected"): Promise<Task[]>;
|
|
409
|
+
taskList(contextId: string, status?: "open" | "claimed" | "completed" | "pending_review" | "rejected", workContextId?: string): Promise<Task[]>;
|
|
408
410
|
taskGet(taskId: string): Promise<Task | null>;
|
|
409
411
|
taskClaim(taskId: string, agentId: string): Promise<void>;
|
|
410
412
|
taskComplete(taskId: string, response: string, artifact?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ interface Task {
|
|
|
44
44
|
claimedBy: string | null;
|
|
45
45
|
claimedByName: string | null;
|
|
46
46
|
response: string | null;
|
|
47
|
+
workContextId: string | null;
|
|
47
48
|
createdAt: number;
|
|
48
49
|
completedAt: number | null;
|
|
49
50
|
}
|
|
@@ -51,6 +52,7 @@ interface CreateTaskOptions {
|
|
|
51
52
|
contextId: string;
|
|
52
53
|
description: string;
|
|
53
54
|
bounty?: number;
|
|
55
|
+
workContextId?: string;
|
|
54
56
|
}
|
|
55
57
|
interface Memory {
|
|
56
58
|
key: string;
|
|
@@ -404,7 +406,7 @@ declare class ActwithClient {
|
|
|
404
406
|
taskCreate(options: CreateTaskOptions): Promise<{
|
|
405
407
|
id: string;
|
|
406
408
|
}>;
|
|
407
|
-
taskList(contextId: string, status?: "open" | "claimed" | "completed" | "pending_review" | "rejected"): Promise<Task[]>;
|
|
409
|
+
taskList(contextId: string, status?: "open" | "claimed" | "completed" | "pending_review" | "rejected", workContextId?: string): Promise<Task[]>;
|
|
408
410
|
taskGet(taskId: string): Promise<Task | null>;
|
|
409
411
|
taskClaim(taskId: string, agentId: string): Promise<void>;
|
|
410
412
|
taskComplete(taskId: string, response: string, artifact?: {
|
package/dist/index.js
CHANGED
|
@@ -123,9 +123,10 @@ var ActwithClient = class {
|
|
|
123
123
|
async taskCreate(options) {
|
|
124
124
|
return this.request("POST", "/v1/tasks", options);
|
|
125
125
|
}
|
|
126
|
-
async taskList(contextId, status) {
|
|
126
|
+
async taskList(contextId, status, workContextId) {
|
|
127
127
|
const params = new URLSearchParams({ context: contextId });
|
|
128
128
|
if (status) params.set("status", status);
|
|
129
|
+
if (workContextId) params.set("workContextId", workContextId);
|
|
129
130
|
return this.request("GET", `/v1/tasks?${params}`);
|
|
130
131
|
}
|
|
131
132
|
async taskGet(taskId) {
|
package/dist/index.mjs
CHANGED
|
@@ -96,9 +96,10 @@ var ActwithClient = class {
|
|
|
96
96
|
async taskCreate(options) {
|
|
97
97
|
return this.request("POST", "/v1/tasks", options);
|
|
98
98
|
}
|
|
99
|
-
async taskList(contextId, status) {
|
|
99
|
+
async taskList(contextId, status, workContextId) {
|
|
100
100
|
const params = new URLSearchParams({ context: contextId });
|
|
101
101
|
if (status) params.set("status", status);
|
|
102
|
+
if (workContextId) params.set("workContextId", workContextId);
|
|
102
103
|
return this.request("GET", `/v1/tasks?${params}`);
|
|
103
104
|
}
|
|
104
105
|
async taskGet(taskId) {
|
package/package.json
CHANGED