@lucid-agents/taskmarket 1.39.0 → 1.40.0
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/agent-compatibility.json +1 -1
- package/dist/{api-I3EZRW6P.js → api-KVJC2YUT.js} +2 -2
- package/dist/{channels-JW5465JV.js → channels-C7RATT4R.js} +4 -4
- package/dist/{chunk-LJKCK7J7.js → chunk-6QUUNUR4.js} +8 -8
- package/dist/{chunk-U7L2VMHL.js → chunk-DQ7VOFP7.js} +5 -5
- package/dist/{chunk-OEVU366I.js → chunk-H6EGL76J.js} +21 -9
- package/dist/{chunk-WGLEKAU2.js → chunk-HDXVDIQQ.js} +1 -1
- package/dist/{chunk-I6O7MUFZ.js → chunk-HWOVMACE.js} +2 -2
- package/dist/{chunk-5IV4HFML.js → chunk-I56PQUGS.js} +3 -3
- package/dist/{chunk-PPTRUZJK.js → chunk-IILD5VXU.js} +1 -1
- package/dist/{chunk-BVUHDLFY.js → chunk-JAJCNNGK.js} +1 -1
- package/dist/{chunk-HJE3YXIQ.js → chunk-KOV37V5R.js} +3 -3
- package/dist/{chunk-U2BQZ7BU.js → chunk-LPW4GUD5.js} +3 -3
- package/dist/{chunk-6Q37G25Q.js → chunk-PQCZDREC.js} +1 -1
- package/dist/{chunk-CO6HZLD5.js → chunk-QEDLNQCE.js} +1 -1
- package/dist/{doctor-YSCUPIXR.js → doctor-22BCAXSE.js} +8 -8
- package/dist/index.js +49 -20
- package/dist/{launch-ZEYFMO3L.js → launch-CGOA6WTU.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +24 -9
- package/dist/{read-auth-34XAANDC.js → read-auth-XV4SH3GF.js} +3 -3
- package/dist/{reconcile-34TJBB74.js → reconcile-7ZG7SJM2.js} +4 -4
- package/dist/{status-ZAZLJJMP.js → status-VODVEYZK.js} +8 -8
- package/dist/{sync-pull-3HL7LFTB.js → sync-pull-3EZWIMNV.js} +4 -4
- package/dist/{task-access-grants-WMTLO2WA.js → task-access-grants-J3RR2BKM.js} +2 -2
- package/package.json +2 -2
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseFailureBody,
|
|
15
15
|
readFailureBody,
|
|
16
16
|
withErrorContext
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
18
|
+
import "./chunk-H6EGL76J.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
20
20
|
export {
|
|
21
21
|
ApiError,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
selectRail,
|
|
11
11
|
uncertainPurchases,
|
|
12
12
|
withdrawalHatch
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-KOV37V5R.js";
|
|
14
|
+
import "./chunk-QEDLNQCE.js";
|
|
15
|
+
import "./chunk-HDXVDIQQ.js";
|
|
16
|
+
import "./chunk-H6EGL76J.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
|
|
2
2
|
import {
|
|
3
3
|
x402FeePost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LPW4GUD5.js";
|
|
5
5
|
import {
|
|
6
6
|
signReadAuth
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HWOVMACE.js";
|
|
8
8
|
import {
|
|
9
9
|
taskAccessGrantHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IILD5VXU.js";
|
|
11
11
|
import {
|
|
12
12
|
apiGet,
|
|
13
13
|
apiPost,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runWorkerAction,
|
|
16
16
|
signMessage,
|
|
17
17
|
taskRequiresTap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
19
19
|
import {
|
|
20
20
|
TaskAwardSchema,
|
|
21
21
|
buildClaimMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
buildSubmitUploadMessage,
|
|
24
24
|
isRecordingPendingResponse,
|
|
25
25
|
submitUploadExpiresAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H6EGL76J.js";
|
|
27
27
|
|
|
28
28
|
// src/sdk/artifact-upload.ts
|
|
29
29
|
import { extname } from "path";
|
|
@@ -115,9 +115,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress, idleTimeoutMs =
|
|
|
115
115
|
// src/lib/worker-attestation.ts
|
|
116
116
|
var requirementCache = /* @__PURE__ */ new Map();
|
|
117
117
|
async function defaultGet(path) {
|
|
118
|
-
const { apiGet: apiGet2 } = await import("./api-
|
|
119
|
-
const { signReadAuth: signReadAuth2 } = await import("./read-auth-
|
|
120
|
-
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-
|
|
118
|
+
const { apiGet: apiGet2 } = await import("./api-KVJC2YUT.js");
|
|
119
|
+
const { signReadAuth: signReadAuth2 } = await import("./read-auth-XV4SH3GF.js");
|
|
120
|
+
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-J3RR2BKM.js");
|
|
121
121
|
const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
|
|
122
122
|
return apiGet2(path, {
|
|
123
123
|
headers: {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I56PQUGS.js";
|
|
10
10
|
import {
|
|
11
11
|
activeClaim,
|
|
12
12
|
captureProblem,
|
|
13
13
|
killedSession,
|
|
14
14
|
loadSyncState,
|
|
15
15
|
orphanOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JAJCNNGK.js";
|
|
17
17
|
import {
|
|
18
18
|
allocationViews,
|
|
19
19
|
channelView,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
openAgentChannels,
|
|
22
22
|
uncertainPurchases,
|
|
23
23
|
withdrawalHatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KOV37V5R.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-H6EGL76J.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -8884,11 +8884,14 @@ var ProjectNameSchema = plainText(PROJECT_NAME_MAX_LENGTH, "project name").descr
|
|
|
8884
8884
|
var ProjectGoalSchema = plainText(PROJECT_GOAL_MAX_LENGTH, "project goal").describe(`What the project is for, plain text, up to ${PROJECT_GOAL_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
|
|
8885
8885
|
var PROJECT_SUGGESTIONS_SETTINGS = ["off", "backers", "anyone"];
|
|
8886
8886
|
var ProjectSuggestionsSettingSchema = z51.enum(PROJECT_SUGGESTIONS_SETTINGS).describe("Who may post and upvote suggestions: off (no one), backers (the owner, operators with an accepted grant and backers) or anyone (any wallet)");
|
|
8887
|
+
var PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS = 30;
|
|
8888
|
+
var ProjectSuggestionsMinBackingSchema = UsdcBaseUnitsSchema.refine((value) => value.length <= PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS, `The minimum contribution can be at most ${PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS} digits`).describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units of the payment token; 0 admits any contribution. One whole token ($1) by default");
|
|
8887
8889
|
var ProjectCreateSchema = z51.object({
|
|
8888
8890
|
chainId: ChainIdSchema2.optional(),
|
|
8889
8891
|
name: ProjectNameSchema.optional(),
|
|
8890
8892
|
goal: ProjectGoalSchema.optional(),
|
|
8891
8893
|
suggestions: ProjectSuggestionsSettingSchema.optional().describe("Who may post and upvote suggestions on the project; backers when omitted. Kept by Taskmarket, not on the chain"),
|
|
8894
|
+
suggestionsMinBacking: ProjectSuggestionsMinBackingSchema.optional().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution, one whole token ($1) when omitted. Kept by Taskmarket, not on the chain"),
|
|
8892
8895
|
budget: PositiveUsdcBaseUnitsSchema.describe("The opening budget, in base units of the task payment stablecoin; paid with this request"),
|
|
8893
8896
|
endsAt: z51.string().datetime({ offset: true }).describe("When the project stops funding new tasks (ISO 8601); must be in the future and at most 365 days away"),
|
|
8894
8897
|
taskGraceSecs: z51.number().int().min(0).max(PROJECT_MAX_TASK_GRACE_SECS).default(PROJECT_DEFAULT_TASK_GRACE_SECS).describe("How long after endsAt the project's tasks may run, in seconds: 0 to 90 days, 30 days when omitted. Fixed at creation. Every project task must end by endsAt plus this, so backers can claim once the last task ends.")
|
|
@@ -9730,14 +9733,15 @@ var ProjectWorkflowPayoutStatusSchema = z53.enum([
|
|
|
9730
9733
|
"pending",
|
|
9731
9734
|
"confirmed",
|
|
9732
9735
|
"unavailable",
|
|
9733
|
-
"auto_paid"
|
|
9736
|
+
"auto_paid",
|
|
9737
|
+
"accepted_by_owner"
|
|
9734
9738
|
]);
|
|
9735
9739
|
var ProjectWorkflowPayoutViewSchema = z53.object({
|
|
9736
9740
|
proposalId: z53.string(),
|
|
9737
9741
|
runId: z53.string(),
|
|
9738
9742
|
chainId: z53.number(),
|
|
9739
9743
|
projectId: z53.number(),
|
|
9740
|
-
status: ProjectWorkflowPayoutStatusSchema.describe("pending: waits for the owner to confirm; confirmed: the owner confirmed and the accept was sent; auto_paid: the runner sent the accept itself (payout: auto); unavailable: no valid recommendation (or an automatic payout fell back), so the owner accepts by hand"),
|
|
9744
|
+
status: ProjectWorkflowPayoutStatusSchema.describe("pending: waits for the owner to confirm; confirmed: the owner confirmed and the accept was sent; auto_paid: the runner sent the accept itself (payout: auto); accepted_by_owner: the gated task was accepted by hand before the automatic accept landed, so the runner paid nothing (txHash is the hand accept); unavailable: no valid recommendation (or an automatic payout fell back), so the owner accepts by hand"),
|
|
9741
9745
|
mode: z53.enum(["confirm", "auto"]).describe("The gating step's payout mode the proposal was made under"),
|
|
9742
9746
|
reason: z53.string().nullable().describe("Why the recommendation is unavailable"),
|
|
9743
9747
|
gatedStep: z53.string().describe("The step key of the gated task"),
|
|
@@ -9757,8 +9761,8 @@ var ProjectWorkflowPayoutViewSchema = z53.object({
|
|
|
9757
9761
|
})),
|
|
9758
9762
|
rationale: z53.string().nullable(),
|
|
9759
9763
|
createdAt: z53.string(),
|
|
9760
|
-
confirmedAt: z53.string().nullable().describe("When the owner confirmed, or the runner paid"),
|
|
9761
|
-
confirmedBy: z53.string().nullable().describe("The owner, or the runner wallet on auto_paid"),
|
|
9764
|
+
confirmedAt: z53.string().nullable().describe("When the owner confirmed, or the runner paid; null on accepted_by_owner"),
|
|
9765
|
+
confirmedBy: z53.string().nullable().describe("The owner, or the runner wallet on auto_paid; null on accepted_by_owner"),
|
|
9762
9766
|
txHash: z53.string().nullable().describe("The accept's transaction, once known"),
|
|
9763
9767
|
intentId: z53.string().nullable()
|
|
9764
9768
|
});
|
|
@@ -10006,10 +10010,9 @@ var ProjectSuggestionSettingsSchema = z57.object({
|
|
|
10006
10010
|
chainId: ChainIdSchema6.optional(),
|
|
10007
10011
|
projectId: ProjectIdSchema2,
|
|
10008
10012
|
suggestions: ProjectSuggestionsSettingSchema.optional(),
|
|
10009
|
-
hostedOperators: z57.boolean().optional().describe("Whether hosted agents that operate the project may accept and decline suggestions by themselves; on by default")
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
});
|
|
10013
|
+
hostedOperators: z57.boolean().optional().describe("Whether hosted agents that operate the project may accept and decline suggestions by themselves; on by default"),
|
|
10014
|
+
minBacking: ProjectSuggestionsMinBackingSchema.nullable().optional().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution, null returns to the default of one whole token ($1)")
|
|
10015
|
+
}).refine((value) => value.suggestions !== void 0 || value.hostedOperators !== void 0 || value.minBacking !== void 0, { message: "Set suggestions, minBacking, hostedOperators or any of them together" });
|
|
10013
10016
|
var ProjectSuggestionVoteSchema = WalletWriteProofSchema.extend({
|
|
10014
10017
|
chainId: ChainIdSchema6.optional(),
|
|
10015
10018
|
suggestionId: ProjectSuggestionIdSchema
|
|
@@ -10049,7 +10052,9 @@ var ProjectSuggestionViewSchema = z57.object({
|
|
|
10049
10052
|
});
|
|
10050
10053
|
var ProjectSuggestionSettingsViewSchema = z57.object({
|
|
10051
10054
|
suggestions: ProjectSuggestionsSettingSchema,
|
|
10052
|
-
hostedOperators: z57.boolean()
|
|
10055
|
+
hostedOperators: z57.boolean(),
|
|
10056
|
+
minBacking: z57.string().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution"),
|
|
10057
|
+
minBackingDefault: z57.boolean().describe("Whether minBacking is the default (one whole token) rather than set by the owner")
|
|
10053
10058
|
});
|
|
10054
10059
|
var ProjectSuggestionsListOutputSchema = z57.object({
|
|
10055
10060
|
chainId: z57.number(),
|
|
@@ -17116,6 +17121,13 @@ var MARKET_EVENT_TYPE_INFO = {
|
|
|
17116
17121
|
roles: ["requester"],
|
|
17117
17122
|
summary: "An automatic payout fell back to manual: accept the task yourself."
|
|
17118
17123
|
},
|
|
17124
|
+
// The gated task was accepted by hand before the runner's automatic accept landed: the runner
|
|
17125
|
+
// paid nothing, and the proposal records the hand accept.
|
|
17126
|
+
"payout.accepted_by_owner": {
|
|
17127
|
+
family: "lifecycle",
|
|
17128
|
+
roles: ["requester"],
|
|
17129
|
+
summary: "The task was accepted by hand, so its automatic payout was not sent."
|
|
17130
|
+
},
|
|
17119
17131
|
// ADR-0506: events of a project's workflows and schedules. They have no task: their only
|
|
17120
17132
|
// recipient is the project owner, as `requester`, and refs name the project, run and gate.
|
|
17121
17133
|
"workflow.approval_needed": {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
createWalletAccountFromKeystore,
|
|
4
4
|
loadKeystore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
6
6
|
import {
|
|
7
7
|
READ_AUTH_ADDRESS_HEADER,
|
|
8
8
|
READ_AUTH_SIGNATURE_HEADER,
|
|
9
9
|
buildReadAuthMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H6EGL76J.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth(signal) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JAJCNNGK.js";
|
|
12
12
|
import {
|
|
13
13
|
buyComputeCredit,
|
|
14
14
|
fetchComputePricing,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
loadComputeCreditConfig,
|
|
17
17
|
onComputeBalanceObserved,
|
|
18
18
|
readComputeCreditStatus
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LPW4GUD5.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H6EGL76J.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
TASK_ACCESS_GRANT_HEADER,
|
|
4
4
|
getTaskmarketHome
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H6EGL76J.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/task-access-grants.ts
|
|
8
8
|
import { promises as fs } from "fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
|
|
2
2
|
import {
|
|
3
3
|
getTaskmarketHome
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H6EGL76J.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QEDLNQCE.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H6EGL76J.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readMppTempoChallenge,
|
|
16
16
|
reconcileX402Payment,
|
|
17
17
|
withX402FileLock
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QEDLNQCE.js";
|
|
19
19
|
import {
|
|
20
20
|
ApiError,
|
|
21
21
|
apiGet,
|
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
withChainId,
|
|
37
37
|
withIdempotentWrite,
|
|
38
38
|
withTapSignature
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
40
40
|
import {
|
|
41
41
|
ComputeCreditBuyOutputSchema,
|
|
42
42
|
ComputeCreditPricingSchema,
|
|
43
43
|
ComputeCreditStatusOutputSchema,
|
|
44
44
|
apiErrorEnvelopeOf,
|
|
45
45
|
getTaskmarketHome
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-H6EGL76J.js";
|
|
47
47
|
|
|
48
48
|
// src/lib/x402-fee.ts
|
|
49
49
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
|
|
2
2
|
import {
|
|
3
3
|
listSandboxes
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-DQ7VOFP7.js";
|
|
5
|
+
import "./chunk-I56PQUGS.js";
|
|
6
|
+
import "./chunk-JAJCNNGK.js";
|
|
7
|
+
import "./chunk-LPW4GUD5.js";
|
|
8
8
|
import {
|
|
9
9
|
AGENT_COMPATIBILITY,
|
|
10
10
|
assertAgentCompatibility,
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
loadAgentPolicy,
|
|
17
17
|
openAgentChannels,
|
|
18
18
|
railChainIdHex
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KOV37V5R.js";
|
|
20
20
|
import {
|
|
21
21
|
getX402PolicyPath,
|
|
22
22
|
loadX402Policy,
|
|
23
23
|
rpcUrlForNetwork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QEDLNQCE.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
keystoreExists,
|
|
28
28
|
loadKeystore,
|
|
29
29
|
withChainId
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
31
|
+
import "./chunk-H6EGL76J.js";
|
|
32
32
|
import "./chunk-YM4S6IE4.js";
|
|
33
33
|
import {
|
|
34
34
|
AGENT_VIEW_VERSION
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
listWorkerSubmissions,
|
|
15
15
|
submitTaskFiles,
|
|
16
16
|
taskRequirementsOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6QUUNUR4.js";
|
|
18
18
|
import {
|
|
19
19
|
ComputeCreditError,
|
|
20
20
|
applyComputeCreditSetup,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
releasePendingComputePurchase,
|
|
38
38
|
resolvePendingComputePurchases,
|
|
39
39
|
x402FeePost
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LPW4GUD5.js";
|
|
41
41
|
import {
|
|
42
42
|
signReadAuth
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-HWOVMACE.js";
|
|
44
44
|
import {
|
|
45
45
|
saveTaskAccessGrant,
|
|
46
46
|
taskAccessGrantHeaders
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-IILD5VXU.js";
|
|
48
48
|
import {
|
|
49
49
|
MPP_TEMPO_DEFAULT_VALIDITY_SECONDS,
|
|
50
50
|
X402PayError,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
setX402PolicyRuleEnabled,
|
|
63
63
|
signSponsoredTempoTransfer,
|
|
64
64
|
signTaskmarketFeePayment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-QEDLNQCE.js";
|
|
66
66
|
import {
|
|
67
67
|
ALL_NETWORKS,
|
|
68
68
|
ApiError,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
withErrorContext,
|
|
126
126
|
withIdempotentWrite,
|
|
127
127
|
withTapSignature
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
129
129
|
import {
|
|
130
130
|
AGENT_AVATAR_MAX_BYTES,
|
|
131
131
|
AGENT_HIRES_ROLES,
|
|
@@ -361,7 +361,7 @@ import {
|
|
|
361
361
|
vaultCallGasLimit7702,
|
|
362
362
|
verifierProviderId,
|
|
363
363
|
verifiersUnsupportedOnChain
|
|
364
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-H6EGL76J.js";
|
|
365
365
|
import "./chunk-S7SJMJ2I.js";
|
|
366
366
|
|
|
367
367
|
// src/index.ts
|
|
@@ -13009,7 +13009,7 @@ async function runAgentCommand(options) {
|
|
|
13009
13009
|
try {
|
|
13010
13010
|
const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
|
|
13011
13011
|
const pi = assertAgentCompatibility();
|
|
13012
|
-
const { runAgent } = await import("./launch-
|
|
13012
|
+
const { runAgent } = await import("./launch-CGOA6WTU.js");
|
|
13013
13013
|
result = await runAgent({
|
|
13014
13014
|
model: options.model,
|
|
13015
13015
|
pi,
|
|
@@ -13443,13 +13443,13 @@ function agentManagementCommands() {
|
|
|
13443
13443
|
const status = new Command57("status").description(
|
|
13444
13444
|
"Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
|
|
13445
13445
|
).action(async () => {
|
|
13446
|
-
const { collectAgentStatus } = await import("./status-
|
|
13446
|
+
const { collectAgentStatus } = await import("./status-VODVEYZK.js");
|
|
13447
13447
|
await run(() => collectAgentStatus());
|
|
13448
13448
|
});
|
|
13449
13449
|
const doctor = new Command57("doctor").description(
|
|
13450
13450
|
"Check that the agent can start: Node and the bundled runtime, wallet and policy, channels, API, sandbox broker, host keys, xgate and RPC. Reads only."
|
|
13451
13451
|
).action(async () => {
|
|
13452
|
-
const { runDoctor } = await import("./doctor-
|
|
13452
|
+
const { runDoctor } = await import("./doctor-22BCAXSE.js");
|
|
13453
13453
|
const report = await run(() => runDoctor());
|
|
13454
13454
|
if (report && !report.ok) process.exitCode = 1;
|
|
13455
13455
|
});
|
|
@@ -13460,7 +13460,7 @@ function agentManagementCommands() {
|
|
|
13460
13460
|
"Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
|
|
13461
13461
|
).action(
|
|
13462
13462
|
async (invocationId, options) => {
|
|
13463
|
-
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-
|
|
13463
|
+
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-7ZG7SJM2.js");
|
|
13464
13464
|
const choice = { rail: options.rail, channel: options.channel };
|
|
13465
13465
|
if (invocationId !== void 0) {
|
|
13466
13466
|
await run(() => reconcileInvocation(invocationId, { choice }));
|
|
@@ -13492,7 +13492,7 @@ function agentManagementCommands() {
|
|
|
13492
13492
|
`Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
|
|
13493
13493
|
);
|
|
13494
13494
|
}
|
|
13495
|
-
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-
|
|
13495
|
+
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-C7RATT4R.js");
|
|
13496
13496
|
const { rails } = await openAgentChannels();
|
|
13497
13497
|
const result = await requestTopUp(selectRail(rails, options.rail), amount);
|
|
13498
13498
|
return {
|
|
@@ -13512,8 +13512,8 @@ function agentManagementCommands() {
|
|
|
13512
13512
|
await run(async () => {
|
|
13513
13513
|
await requireExperimental();
|
|
13514
13514
|
const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
|
|
13515
|
-
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-
|
|
13516
|
-
const { reconcileLeasedPurchase } = await import("./reconcile-
|
|
13515
|
+
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-C7RATT4R.js");
|
|
13516
|
+
const { reconcileLeasedPurchase } = await import("./reconcile-7ZG7SJM2.js");
|
|
13517
13517
|
const opened = await openAgentChannels();
|
|
13518
13518
|
const { rail, retired } = selectChannel(opened, options);
|
|
13519
13519
|
const result = await closeChannel(
|
|
@@ -13567,7 +13567,7 @@ function agentManagementCommands() {
|
|
|
13567
13567
|
async (options) => {
|
|
13568
13568
|
await run(async () => {
|
|
13569
13569
|
await requireExperimental();
|
|
13570
|
-
const { runPull } = await import("./sync-pull-
|
|
13570
|
+
const { runPull } = await import("./sync-pull-3EZWIMNV.js");
|
|
13571
13571
|
const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
|
|
13572
13572
|
return runPull(options, {
|
|
13573
13573
|
interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
|
|
@@ -25770,6 +25770,17 @@ function parseSuggestionsSetting(value) {
|
|
|
25770
25770
|
const trimmed = value.trim();
|
|
25771
25771
|
return PROJECT_SUGGESTIONS_SETTINGS.includes(trimmed) ? trimmed : { error: `--suggestions must be ${PROJECT_SUGGESTIONS_SETTINGS.join(", ")}` };
|
|
25772
25772
|
}
|
|
25773
|
+
function parseSuggestionsMinBacking(value, options = {}) {
|
|
25774
|
+
const trimmed = value.trim();
|
|
25775
|
+
if (options.allowDefault && trimmed === "default") return null;
|
|
25776
|
+
try {
|
|
25777
|
+
return usdcToBaseUnits(trimmed, { allowZero: true });
|
|
25778
|
+
} catch (err) {
|
|
25779
|
+
return {
|
|
25780
|
+
error: `Invalid --suggestions-min-backing: ${err instanceof Error ? err.message : String(err)}${options.allowDefault ? ", or default" : ""}`
|
|
25781
|
+
};
|
|
25782
|
+
}
|
|
25783
|
+
}
|
|
25773
25784
|
function suggestBody(projectId, opts) {
|
|
25774
25785
|
if (opts.title === void 0) return { error: "--title is required" };
|
|
25775
25786
|
if (opts.brief === void 0) return { error: "--brief is required" };
|
|
@@ -25825,7 +25836,9 @@ function suggestionsQuery(opts) {
|
|
|
25825
25836
|
return params.toString();
|
|
25826
25837
|
}
|
|
25827
25838
|
function suggestionSettingsBody(projectId, opts) {
|
|
25828
|
-
if (opts.suggestions === void 0 && opts.hostedOperators === void 0)
|
|
25839
|
+
if (opts.suggestions === void 0 && opts.hostedOperators === void 0 && opts.suggestionsMinBacking === void 0) {
|
|
25840
|
+
return null;
|
|
25841
|
+
}
|
|
25829
25842
|
const body = { projectId };
|
|
25830
25843
|
if (opts.suggestions !== void 0) {
|
|
25831
25844
|
const setting = parseSuggestionsSetting(opts.suggestions);
|
|
@@ -25837,6 +25850,11 @@ function suggestionSettingsBody(projectId, opts) {
|
|
|
25837
25850
|
if (value !== "on" && value !== "off") return { error: "--hosted-operators must be on or off" };
|
|
25838
25851
|
body.hostedOperators = value === "on";
|
|
25839
25852
|
}
|
|
25853
|
+
if (opts.suggestionsMinBacking !== void 0) {
|
|
25854
|
+
const min = parseSuggestionsMinBacking(opts.suggestionsMinBacking, { allowDefault: true });
|
|
25855
|
+
if (min !== null && typeof min === "object") return min;
|
|
25856
|
+
body.minBacking = min;
|
|
25857
|
+
}
|
|
25840
25858
|
return body;
|
|
25841
25859
|
}
|
|
25842
25860
|
async function signedRead(path9) {
|
|
@@ -25956,10 +25974,13 @@ var projectSuggestionCommand = new Command128("suggestion").description(
|
|
|
25956
25974
|
voteCommand("unvote", "Take back your upvote on a suggestion (free, signed by your wallet)")
|
|
25957
25975
|
).addCommand(withdrawCommand2).addCommand(declineCommand);
|
|
25958
25976
|
var projectSuggestionSettingsCommand = new Command128("suggestion-settings").description(
|
|
25959
|
-
"Read or set the project's suggestions settings, as its owner: who may post and upvote suggestions (off, backers or anyone) and whether hosted agents that operate the project accept and decline suggestions by themselves (on by default). Turning hosted operators off keeps their grants. Setting costs 0.001 in the payment token; reading is free"
|
|
25977
|
+
"Read or set the project's suggestions settings, as its owner: who may post and upvote suggestions (off, backers or anyone), the least a wallet must have contributed to count as a backer for them (1 in the payment token by default), and whether hosted agents that operate the project accept and decline suggestions by themselves (on by default). Turning hosted operators off keeps their grants. Setting costs 0.001 in the payment token; reading is free"
|
|
25960
25978
|
).argument("<projectId>", "Project id").option(
|
|
25961
25979
|
"--suggestions <setting>",
|
|
25962
25980
|
"off (no one), backers (the owner, operators and backers) or anyone (any wallet)"
|
|
25981
|
+
).option(
|
|
25982
|
+
"--suggestions-min-backing <amount>",
|
|
25983
|
+
"Under backers, the least a wallet must have contributed to the project's pool to post and upvote, in the payment token (e.g. 5); 0 admits any contribution, default returns to the default of 1"
|
|
25963
25984
|
).option(
|
|
25964
25985
|
"--hosted-operators <on|off>",
|
|
25965
25986
|
"Whether hosted operators act on suggestions by themselves"
|
|
@@ -26231,6 +26252,9 @@ var projectCreateCommand = new Command133("create").description(
|
|
|
26231
26252
|
).option("--name <text>", "A short name for the project: 1 to 80 characters of plain text").option("--goal <text>", "What the project is for: up to 500 characters of plain text").option(
|
|
26232
26253
|
"--suggestions <setting>",
|
|
26233
26254
|
"Who may post and upvote suggestions: off (no one), backers (the owner, operators and backers; the default) or anyone (any wallet). Change it later with `project suggestion-settings`"
|
|
26255
|
+
).option(
|
|
26256
|
+
"--suggestions-min-backing <amount>",
|
|
26257
|
+
"Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in the payment token: 1 by default, 0 admits any contribution"
|
|
26234
26258
|
).action(
|
|
26235
26259
|
async (opts) => {
|
|
26236
26260
|
const name = opts.name === void 0 ? void 0 : ProjectNameSchema.safeParse(opts.name);
|
|
@@ -26239,6 +26263,10 @@ var projectCreateCommand = new Command133("create").description(
|
|
|
26239
26263
|
if (goal && !goal.success) return void printError(`--goal: ${goal.error.issues[0].message}`);
|
|
26240
26264
|
const suggestions = opts.suggestions === void 0 ? void 0 : parseSuggestionsSetting(opts.suggestions);
|
|
26241
26265
|
if (typeof suggestions === "object") return void printError(suggestions.error);
|
|
26266
|
+
const suggestionsMinBacking = opts.suggestionsMinBacking === void 0 ? void 0 : parseSuggestionsMinBacking(opts.suggestionsMinBacking);
|
|
26267
|
+
if (suggestionsMinBacking !== null && typeof suggestionsMinBacking === "object") {
|
|
26268
|
+
return void printError(suggestionsMinBacking.error);
|
|
26269
|
+
}
|
|
26242
26270
|
const budget = parseAmount(opts.budget, "--budget");
|
|
26243
26271
|
if (typeof budget !== "string") return void printError(budget.error);
|
|
26244
26272
|
const endsAt = parseEndsAt(opts.endsAt);
|
|
@@ -26253,7 +26281,8 @@ var projectCreateCommand = new Command133("create").description(
|
|
|
26253
26281
|
...taskGraceSecs === void 0 ? {} : { taskGraceSecs },
|
|
26254
26282
|
...name?.success ? { name: name.data } : {},
|
|
26255
26283
|
...goal?.success ? { goal: goal.data } : {},
|
|
26256
|
-
...suggestions === void 0 ? {} : { suggestions }
|
|
26284
|
+
...suggestions === void 0 ? {} : { suggestions },
|
|
26285
|
+
...suggestionsMinBacking === void 0 ? {} : { suggestionsMinBacking }
|
|
26257
26286
|
},
|
|
26258
26287
|
{ maxAmount: budget }
|
|
26259
26288
|
);
|
|
@@ -27690,14 +27719,14 @@ async function ownerRead(path9) {
|
|
|
27690
27719
|
}
|
|
27691
27720
|
}
|
|
27692
27721
|
var payoutListCommand = new Command147("list").description(
|
|
27693
|
-
"A run's payout proposals: what each accepted gating review recommends paying on the task it gates, with the exact accept confirming sends; visible to the project's owner and operators only (signed with your wallet); status is pending, confirmed, auto_paid (payout: auto, with mode, txHash and intentId) or unavailable (free)"
|
|
27722
|
+
"A run's payout proposals: what each accepted gating review recommends paying on the task it gates, with the exact accept confirming sends; visible to the project's owner and operators only (signed with your wallet); status is pending, confirmed, auto_paid (payout: auto, with mode, txHash and intentId), accepted_by_owner (the gated task was accepted by hand before the automatic payout landed; the runner paid nothing) or unavailable (free)"
|
|
27694
27723
|
).argument("<runId>", "Run id").action(async (value) => {
|
|
27695
27724
|
const id = uuid(value, "run");
|
|
27696
27725
|
if (typeof id !== "string") return void printError(id.error);
|
|
27697
27726
|
await ownerRead(withChainId(`/api/project-workflow-runs/${id}/payouts`));
|
|
27698
27727
|
});
|
|
27699
27728
|
var payoutShowCommand = new Command147("show").description(
|
|
27700
|
-
"Show a payout proposal: its status (pending, confirmed, auto_paid or unavailable), mode, txHash and intentId once sent, the ranking and rationale, and `accept`, the winners and shares (basis points) confirming sends; owner and operators only (free)"
|
|
27729
|
+
"Show a payout proposal: its status (pending, confirmed, auto_paid, accepted_by_owner or unavailable), mode, txHash and intentId once sent, the ranking and rationale, and `accept`, the winners and shares (basis points) confirming sends; owner and operators only (free)"
|
|
27701
27730
|
).argument("<proposalId>", "Payout proposal id").action(async (value) => {
|
|
27702
27731
|
const id = uuid(value, "payout proposal");
|
|
27703
27732
|
if (typeof id !== "string") return void printError(id.error);
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
sha256Hex,
|
|
39
39
|
specHash,
|
|
40
40
|
taskStage
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-I56PQUGS.js";
|
|
42
42
|
import {
|
|
43
43
|
SessionSync,
|
|
44
44
|
emptyBase,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
recordSessionEnd,
|
|
48
48
|
recordSessionStart,
|
|
49
49
|
uploadPlan
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-PQCZDREC.js";
|
|
51
51
|
import {
|
|
52
52
|
BrokerConnector,
|
|
53
53
|
OutputLimitError,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
serveSandboxChannel,
|
|
60
60
|
withFileLock,
|
|
61
61
|
writeAtomic
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-JAJCNNGK.js";
|
|
63
63
|
import {
|
|
64
64
|
TaskOperationError,
|
|
65
65
|
claimTask,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
requestArtifactUpload,
|
|
79
79
|
submitUploadedArtifacts,
|
|
80
80
|
taskAwardsOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-6QUUNUR4.js";
|
|
82
82
|
import {
|
|
83
83
|
applyComputeCreditSetup,
|
|
84
84
|
atomicToUsd,
|
|
@@ -88,13 +88,13 @@ import {
|
|
|
88
88
|
planComputeCreditSetup,
|
|
89
89
|
readComputeCreditBalance,
|
|
90
90
|
usdToAtomic
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-LPW4GUD5.js";
|
|
92
92
|
import {
|
|
93
93
|
signReadAuth
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-HWOVMACE.js";
|
|
95
95
|
import {
|
|
96
96
|
taskAccessGrantHeaders
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IILD5VXU.js";
|
|
98
98
|
import {
|
|
99
99
|
MAX_RETIRED_RAILS,
|
|
100
100
|
NETWORK_NAMES,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
routeOfCatalogRow,
|
|
119
119
|
saveAgentPolicy,
|
|
120
120
|
settledRetiredRails
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-KOV37V5R.js";
|
|
122
122
|
import {
|
|
123
123
|
BASE_CHANNEL_RAIL_ID,
|
|
124
124
|
createBaseChannelPayer,
|
|
@@ -132,13 +132,13 @@ import {
|
|
|
132
132
|
rpcUrlForNetwork,
|
|
133
133
|
saveX402Policy,
|
|
134
134
|
x402SpendWindowAvailability
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-QEDLNQCE.js";
|
|
136
136
|
import {
|
|
137
137
|
apiUrl,
|
|
138
138
|
keystoreExists,
|
|
139
139
|
loadKeystore,
|
|
140
140
|
selectedNetwork
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
142
142
|
import {
|
|
143
143
|
IntentStatusResponseSchema,
|
|
144
144
|
NetworkChainInfoSchema,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
isRecordingPendingResponse,
|
|
148
148
|
piCodingAgentTools,
|
|
149
149
|
taskmarketChain
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-H6EGL76J.js";
|
|
151
151
|
import {
|
|
152
152
|
AgentLaunchError
|
|
153
153
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -53472,11 +53472,14 @@ var ProjectNameSchema = plainText(PROJECT_NAME_MAX_LENGTH, "project name").descr
|
|
|
53472
53472
|
var ProjectGoalSchema = plainText(PROJECT_GOAL_MAX_LENGTH, "project goal").describe(`What the project is for, plain text, up to ${PROJECT_GOAL_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
|
|
53473
53473
|
var PROJECT_SUGGESTIONS_SETTINGS = ["off", "backers", "anyone"];
|
|
53474
53474
|
var ProjectSuggestionsSettingSchema = external_exports.enum(PROJECT_SUGGESTIONS_SETTINGS).describe("Who may post and upvote suggestions: off (no one), backers (the owner, operators with an accepted grant and backers) or anyone (any wallet)");
|
|
53475
|
+
var PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS = 30;
|
|
53476
|
+
var ProjectSuggestionsMinBackingSchema = UsdcBaseUnitsSchema.refine((value) => value.length <= PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS, `The minimum contribution can be at most ${PROJECT_SUGGESTIONS_MIN_BACKING_MAX_DIGITS} digits`).describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units of the payment token; 0 admits any contribution. One whole token ($1) by default");
|
|
53475
53477
|
var ProjectCreateSchema = external_exports.object({
|
|
53476
53478
|
chainId: ChainIdSchema2.optional(),
|
|
53477
53479
|
name: ProjectNameSchema.optional(),
|
|
53478
53480
|
goal: ProjectGoalSchema.optional(),
|
|
53479
53481
|
suggestions: ProjectSuggestionsSettingSchema.optional().describe("Who may post and upvote suggestions on the project; backers when omitted. Kept by Taskmarket, not on the chain"),
|
|
53482
|
+
suggestionsMinBacking: ProjectSuggestionsMinBackingSchema.optional().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution, one whole token ($1) when omitted. Kept by Taskmarket, not on the chain"),
|
|
53480
53483
|
budget: PositiveUsdcBaseUnitsSchema.describe("The opening budget, in base units of the task payment stablecoin; paid with this request"),
|
|
53481
53484
|
endsAt: external_exports.string().datetime({ offset: true }).describe("When the project stops funding new tasks (ISO 8601); must be in the future and at most 365 days away"),
|
|
53482
53485
|
taskGraceSecs: external_exports.number().int().min(0).max(PROJECT_MAX_TASK_GRACE_SECS).default(PROJECT_DEFAULT_TASK_GRACE_SECS).describe("How long after endsAt the project's tasks may run, in seconds: 0 to 90 days, 30 days when omitted. Fixed at creation. Every project task must end by endsAt plus this, so backers can claim once the last task ends.")
|
|
@@ -54118,14 +54121,15 @@ var ProjectWorkflowPayoutStatusSchema = external_exports.enum([
|
|
|
54118
54121
|
"pending",
|
|
54119
54122
|
"confirmed",
|
|
54120
54123
|
"unavailable",
|
|
54121
|
-
"auto_paid"
|
|
54124
|
+
"auto_paid",
|
|
54125
|
+
"accepted_by_owner"
|
|
54122
54126
|
]);
|
|
54123
54127
|
var ProjectWorkflowPayoutViewSchema = external_exports.object({
|
|
54124
54128
|
proposalId: external_exports.string(),
|
|
54125
54129
|
runId: external_exports.string(),
|
|
54126
54130
|
chainId: external_exports.number(),
|
|
54127
54131
|
projectId: external_exports.number(),
|
|
54128
|
-
status: ProjectWorkflowPayoutStatusSchema.describe("pending: waits for the owner to confirm; confirmed: the owner confirmed and the accept was sent; auto_paid: the runner sent the accept itself (payout: auto); unavailable: no valid recommendation (or an automatic payout fell back), so the owner accepts by hand"),
|
|
54132
|
+
status: ProjectWorkflowPayoutStatusSchema.describe("pending: waits for the owner to confirm; confirmed: the owner confirmed and the accept was sent; auto_paid: the runner sent the accept itself (payout: auto); accepted_by_owner: the gated task was accepted by hand before the automatic accept landed, so the runner paid nothing (txHash is the hand accept); unavailable: no valid recommendation (or an automatic payout fell back), so the owner accepts by hand"),
|
|
54129
54133
|
mode: external_exports.enum(["confirm", "auto"]).describe("The gating step's payout mode the proposal was made under"),
|
|
54130
54134
|
reason: external_exports.string().nullable().describe("Why the recommendation is unavailable"),
|
|
54131
54135
|
gatedStep: external_exports.string().describe("The step key of the gated task"),
|
|
@@ -54145,8 +54149,8 @@ var ProjectWorkflowPayoutViewSchema = external_exports.object({
|
|
|
54145
54149
|
})),
|
|
54146
54150
|
rationale: external_exports.string().nullable(),
|
|
54147
54151
|
createdAt: external_exports.string(),
|
|
54148
|
-
confirmedAt: external_exports.string().nullable().describe("When the owner confirmed, or the runner paid"),
|
|
54149
|
-
confirmedBy: external_exports.string().nullable().describe("The owner, or the runner wallet on auto_paid"),
|
|
54152
|
+
confirmedAt: external_exports.string().nullable().describe("When the owner confirmed, or the runner paid; null on accepted_by_owner"),
|
|
54153
|
+
confirmedBy: external_exports.string().nullable().describe("The owner, or the runner wallet on auto_paid; null on accepted_by_owner"),
|
|
54150
54154
|
txHash: external_exports.string().nullable().describe("The accept's transaction, once known"),
|
|
54151
54155
|
intentId: external_exports.string().nullable()
|
|
54152
54156
|
});
|
|
@@ -54384,10 +54388,9 @@ var ProjectSuggestionSettingsSchema = external_exports.object({
|
|
|
54384
54388
|
chainId: ChainIdSchema6.optional(),
|
|
54385
54389
|
projectId: ProjectIdSchema2,
|
|
54386
54390
|
suggestions: ProjectSuggestionsSettingSchema.optional(),
|
|
54387
|
-
hostedOperators: external_exports.boolean().optional().describe("Whether hosted agents that operate the project may accept and decline suggestions by themselves; on by default")
|
|
54388
|
-
|
|
54389
|
-
|
|
54390
|
-
});
|
|
54391
|
+
hostedOperators: external_exports.boolean().optional().describe("Whether hosted agents that operate the project may accept and decline suggestions by themselves; on by default"),
|
|
54392
|
+
minBacking: ProjectSuggestionsMinBackingSchema.nullable().optional().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution, null returns to the default of one whole token ($1)")
|
|
54393
|
+
}).refine((value) => value.suggestions !== void 0 || value.hostedOperators !== void 0 || value.minBacking !== void 0, { message: "Set suggestions, minBacking, hostedOperators or any of them together" });
|
|
54391
54394
|
var ProjectSuggestionVoteSchema = WalletWriteProofSchema.extend({
|
|
54392
54395
|
chainId: ChainIdSchema6.optional(),
|
|
54393
54396
|
suggestionId: ProjectSuggestionIdSchema
|
|
@@ -54427,7 +54430,9 @@ var ProjectSuggestionViewSchema = external_exports.object({
|
|
|
54427
54430
|
});
|
|
54428
54431
|
var ProjectSuggestionSettingsViewSchema = external_exports.object({
|
|
54429
54432
|
suggestions: ProjectSuggestionsSettingSchema,
|
|
54430
|
-
hostedOperators: external_exports.boolean()
|
|
54433
|
+
hostedOperators: external_exports.boolean(),
|
|
54434
|
+
minBacking: external_exports.string().describe("Under backers, the least a wallet must have contributed to the project's pool to post and upvote suggestions, in base units; 0 admits any contribution"),
|
|
54435
|
+
minBackingDefault: external_exports.boolean().describe("Whether minBacking is the default (one whole token) rather than set by the owner")
|
|
54431
54436
|
});
|
|
54432
54437
|
var ProjectSuggestionsListOutputSchema = external_exports.object({
|
|
54433
54438
|
chainId: external_exports.number(),
|
|
@@ -55357,6 +55362,9 @@ var USDC_PATTERN = new RegExp(`^(0|[1-9][0-9]*)(?:\\.([0-9]{1,${USDC_DECIMALS2}}
|
|
|
55357
55362
|
// ../../packages/shared/dist/lib/payment-amount.js
|
|
55358
55363
|
init_cjs_shims();
|
|
55359
55364
|
|
|
55365
|
+
// ../../packages/shared/dist/lib/project-suggestions.js
|
|
55366
|
+
init_cjs_shims();
|
|
55367
|
+
|
|
55360
55368
|
// ../../packages/shared/dist/lib/agent-registration-uri.js
|
|
55361
55369
|
init_cjs_shims();
|
|
55362
55370
|
|
|
@@ -60222,6 +60230,13 @@ var MARKET_EVENT_TYPE_INFO = {
|
|
|
60222
60230
|
roles: ["requester"],
|
|
60223
60231
|
summary: "An automatic payout fell back to manual: accept the task yourself."
|
|
60224
60232
|
},
|
|
60233
|
+
// The gated task was accepted by hand before the runner's automatic accept landed: the runner
|
|
60234
|
+
// paid nothing, and the proposal records the hand accept.
|
|
60235
|
+
"payout.accepted_by_owner": {
|
|
60236
|
+
family: "lifecycle",
|
|
60237
|
+
roles: ["requester"],
|
|
60238
|
+
summary: "The task was accepted by hand, so its automatic payout was not sent."
|
|
60239
|
+
},
|
|
60225
60240
|
// ADR-0506: events of a project's workflows and schedules. They have no task: their only
|
|
60226
60241
|
// recipient is the project owner, as `requester`, and refs name the project, run and gate.
|
|
60227
60242
|
"workflow.approval_needed": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
|
|
2
2
|
import {
|
|
3
3
|
signReadAuth
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HWOVMACE.js";
|
|
5
|
+
import "./chunk-HDXVDIQQ.js";
|
|
6
|
+
import "./chunk-H6EGL76J.js";
|
|
7
7
|
import "./chunk-S7SJMJ2I.js";
|
|
8
8
|
export {
|
|
9
9
|
signReadAuth
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
channelView,
|
|
4
4
|
openAgentChannels,
|
|
5
5
|
selectChannel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOV37V5R.js";
|
|
7
7
|
import {
|
|
8
8
|
BASE_CHANNEL_RAIL_ID,
|
|
9
9
|
X402_INVOCATION_ID_PATTERN,
|
|
10
10
|
getX402JournalPath,
|
|
11
11
|
listX402Payments
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-QEDLNQCE.js";
|
|
13
|
+
import "./chunk-HDXVDIQQ.js";
|
|
14
|
+
import "./chunk-H6EGL76J.js";
|
|
15
15
|
import {
|
|
16
16
|
AgentLaunchError
|
|
17
17
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
listSandboxes,
|
|
5
5
|
readSyncStatus,
|
|
6
6
|
readTaskStatus
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DQ7VOFP7.js";
|
|
8
|
+
import "./chunk-I56PQUGS.js";
|
|
9
|
+
import "./chunk-JAJCNNGK.js";
|
|
10
|
+
import "./chunk-LPW4GUD5.js";
|
|
11
|
+
import "./chunk-KOV37V5R.js";
|
|
12
|
+
import "./chunk-QEDLNQCE.js";
|
|
13
|
+
import "./chunk-HDXVDIQQ.js";
|
|
14
|
+
import "./chunk-H6EGL76J.js";
|
|
15
15
|
import "./chunk-YM4S6IE4.js";
|
|
16
16
|
import "./chunk-XJOB4NMV.js";
|
|
17
17
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
savedWorkspace,
|
|
12
12
|
summarize,
|
|
13
13
|
unsavedPaths
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PQCZDREC.js";
|
|
15
15
|
import {
|
|
16
16
|
BrokerConnector,
|
|
17
17
|
SandboxUnavailableError,
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
releaseClaim,
|
|
28
28
|
unresolvedCount,
|
|
29
29
|
updateSyncState
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JAJCNNGK.js";
|
|
31
31
|
import {
|
|
32
32
|
apiUrl,
|
|
33
33
|
loadKeystore
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-HDXVDIQQ.js";
|
|
35
|
+
import "./chunk-H6EGL76J.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentLaunchError
|
|
38
38
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
loadTaskAccessGrant,
|
|
4
4
|
saveTaskAccessGrant,
|
|
5
5
|
taskAccessGrantHeaders
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-IILD5VXU.js";
|
|
7
|
+
import "./chunk-H6EGL76J.js";
|
|
8
8
|
import "./chunk-S7SJMJ2I.js";
|
|
9
9
|
export {
|
|
10
10
|
loadTaskAccessGrant,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-agents/taskmarket",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"taskmarket": "./dist/index.js"
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"vitest": "^2.0.0",
|
|
33
33
|
"@taskmarket/agent-host": "0.0.1",
|
|
34
34
|
"@taskmarket/contracts": "0.0.0",
|
|
35
|
-
"@taskmarket/prettier-config": "0.0.0",
|
|
36
35
|
"@taskmarket/eslint-config": "0.0.0",
|
|
36
|
+
"@taskmarket/prettier-config": "0.0.0",
|
|
37
37
|
"@taskmarket/remote-tools": "0.0.1",
|
|
38
38
|
"@taskmarket/shared": "2.0.0",
|
|
39
39
|
"@taskmarket/solana-sponsored-client": "0.1.0",
|