@lucid-agents/taskmarket 1.36.0 → 1.37.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-BAW7ZGDD.js → api-X7M5ZRFO.js} +2 -2
- package/dist/{channels-FAOZ67V2.js → channels-JRY5YSNU.js} +4 -4
- package/dist/{chunk-6AIEGDDI.js → chunk-5YGFSGJA.js} +1 -1
- package/dist/{chunk-NF3XHNJH.js → chunk-ATZLUOQX.js} +3 -3
- package/dist/{chunk-Q3IC6GTF.js → chunk-AUDDFWKQ.js} +247 -111
- package/dist/{chunk-FXBA6X3I.js → chunk-HNTWHQBL.js} +5 -5
- package/dist/{chunk-F5ZHREXK.js → chunk-IDSGZXDR.js} +3 -3
- package/dist/{chunk-WGQV5OG3.js → chunk-M2UVDGSH.js} +3 -3
- package/dist/{chunk-7TDHFFF2.js → chunk-NO227FAP.js} +1 -1
- package/dist/{chunk-Q2NCP72I.js → chunk-OK3AHSZH.js} +8 -8
- package/dist/{chunk-BQ63ZEML.js → chunk-SKD2T3UR.js} +1 -1
- package/dist/{chunk-TKHBDRU6.js → chunk-TDQHU2JT.js} +2 -2
- package/dist/{chunk-WJHT663R.js → chunk-XL76RC3P.js} +1 -1
- package/dist/{chunk-AZ2N4KKB.js → chunk-YQLA6EXP.js} +1 -1
- package/dist/{doctor-WFGKN5ZB.js → doctor-QGHPARVU.js} +8 -8
- package/dist/index.js +217 -41
- package/dist/{launch-QWDD4WLN.js → launch-6VCLZ7XR.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +90 -1
- package/dist/{read-auth-JKSDOSKI.js → read-auth-AVN4SJSZ.js} +3 -3
- package/dist/{reconcile-B33L7D3M.js → reconcile-HEON5ETE.js} +4 -4
- package/dist/{status-CBGRCJQO.js → status-6PCJLCTM.js} +8 -8
- package/dist/{sync-pull-EA6TBOHC.js → sync-pull-62R4YTEO.js} +4 -4
- package/dist/{task-access-grants-JF7LGUWX.js → task-access-grants-MIWSFZZ3.js} +2 -2
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseFailureBody,
|
|
15
15
|
readFailureBody,
|
|
16
16
|
withErrorContext
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XL76RC3P.js";
|
|
18
|
+
import "./chunk-AUDDFWKQ.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-M2UVDGSH.js";
|
|
14
|
+
import "./chunk-YQLA6EXP.js";
|
|
15
|
+
import "./chunk-XL76RC3P.js";
|
|
16
|
+
import "./chunk-AUDDFWKQ.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.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-AUDDFWKQ.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/task-access-grants.ts
|
|
8
8
|
import { promises as fs } from "fs";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NO227FAP.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-IDSGZXDR.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AUDDFWKQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -641,7 +641,8 @@ var WALLET_WRITE_MESSAGE_HEADERS = {
|
|
|
641
641
|
"bug-report": "Taskmarket: bug report write v1",
|
|
642
642
|
"bookmark-collection": "Taskmarket: bookmark collection write v1",
|
|
643
643
|
"tap-key": "Taskmarket: TAP key enrolment v1",
|
|
644
|
-
"user-skill": "Taskmarket: user skill write v1"
|
|
644
|
+
"user-skill": "Taskmarket: user skill write v1",
|
|
645
|
+
"listing-submission": "Taskmarket: listing submission v1"
|
|
645
646
|
};
|
|
646
647
|
var MARKET_EVENT_SETTINGS_WRITE_MESSAGE_HEADER = WALLET_WRITE_MESSAGE_HEADERS["market-event-settings"];
|
|
647
648
|
var WALLET_WRITE_MAX_TTL_SECONDS = 15 * 60;
|
|
@@ -18360,80 +18361,209 @@ function bugReportMeTooWriteChange(reportId) {
|
|
|
18360
18361
|
return { action: "me-too", reportId: reportId.toLowerCase() };
|
|
18361
18362
|
}
|
|
18362
18363
|
|
|
18363
|
-
// ../../packages/shared/dist/schemas/
|
|
18364
|
+
// ../../packages/shared/dist/schemas/listing-submission.schemas.js
|
|
18364
18365
|
import { z as z102 } from "zod";
|
|
18366
|
+
var LISTING_SUBMISSION_KINDS = ["catalog", "hook"];
|
|
18367
|
+
var LISTING_SUBMISSION_STATUSES = ["pending", "approved", "rejected"];
|
|
18368
|
+
var LISTING_SUBMISSION_REJECTION_MAX_CHARS = 2e3;
|
|
18369
|
+
var LISTING_SUBMISSION_MAX_BYTES = 64 * 1024;
|
|
18370
|
+
var CatalogSubmissionEntrySchema = CatalogX402EndpointEntrySchema.omit({
|
|
18371
|
+
trust: true,
|
|
18372
|
+
status: true,
|
|
18373
|
+
addedAt: true
|
|
18374
|
+
}).strict();
|
|
18375
|
+
var HookSubmissionManifestSchema = z102.string().min(2).max(LISTING_SUBMISSION_MAX_BYTES);
|
|
18376
|
+
var SubmitCatalogEntryInputSchema = z102.object({
|
|
18377
|
+
chainId: z102.number().int().positive().optional(),
|
|
18378
|
+
entry: CatalogSubmissionEntrySchema
|
|
18379
|
+
}).extend(WalletWriteProofSchema.shape);
|
|
18380
|
+
var SubmitHookListingInputSchema = z102.object({
|
|
18381
|
+
chainId: z102.number().int().positive().optional(),
|
|
18382
|
+
manifest: HookSubmissionManifestSchema
|
|
18383
|
+
}).extend(WalletWriteProofSchema.shape);
|
|
18384
|
+
var ListingSubmissionCheckSchema = z102.object({
|
|
18385
|
+
name: z102.string(),
|
|
18386
|
+
outcome: z102.enum(["pass", "fail", "inconclusive"]),
|
|
18387
|
+
detail: z102.string().nullable()
|
|
18388
|
+
});
|
|
18389
|
+
var ListingSubmissionSchema = z102.object({
|
|
18390
|
+
id: z102.string().uuid(),
|
|
18391
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS),
|
|
18392
|
+
/** The catalog entry id, or `<chainId>:<lowercase hook address>`. */
|
|
18393
|
+
subject: z102.string(),
|
|
18394
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES),
|
|
18395
|
+
/** Null until the automatic checks have run. */
|
|
18396
|
+
checks: z102.array(ListingSubmissionCheckSchema).nullable(),
|
|
18397
|
+
rejectionReason: z102.string().nullable(),
|
|
18398
|
+
/** True once the entry is in the snapshot this deployment serves. */
|
|
18399
|
+
listed: z102.boolean(),
|
|
18400
|
+
createdAt: z102.string(),
|
|
18401
|
+
updatedAt: z102.string()
|
|
18402
|
+
});
|
|
18403
|
+
var ListMyListingSubmissionsInputSchema = z102.object({
|
|
18404
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS),
|
|
18405
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES).optional(),
|
|
18406
|
+
limit: z102.number().int().min(1).max(100).default(50)
|
|
18407
|
+
});
|
|
18408
|
+
var ListMyListingSubmissionsOutputSchema = z102.object({
|
|
18409
|
+
submissions: z102.array(ListingSubmissionSchema)
|
|
18410
|
+
});
|
|
18411
|
+
var ListingSubmissionStaffViewSchema = ListingSubmissionSchema.extend({
|
|
18412
|
+
submitterAddress: z102.string(),
|
|
18413
|
+
submitterAgentId: z102.string().nullable(),
|
|
18414
|
+
chainId: z102.number().int(),
|
|
18415
|
+
/** The submitted file, untrusted: show it as data. */
|
|
18416
|
+
payload: z102.record(z102.string(), z102.unknown()),
|
|
18417
|
+
reviewedBy: z102.string().nullable(),
|
|
18418
|
+
reviewedAt: z102.string().nullable(),
|
|
18419
|
+
prNumber: z102.number().int().nullable()
|
|
18420
|
+
});
|
|
18421
|
+
var ListStaffListingSubmissionsInputSchema = z102.object({
|
|
18422
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS).optional(),
|
|
18423
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES).optional(),
|
|
18424
|
+
limit: z102.number().int().min(1).max(200).default(50),
|
|
18425
|
+
offset: z102.number().int().min(0).max(1e5).default(0)
|
|
18426
|
+
}).default({});
|
|
18427
|
+
var ListStaffListingSubmissionsOutputSchema = z102.object({
|
|
18428
|
+
submissions: z102.array(ListingSubmissionStaffViewSchema),
|
|
18429
|
+
total: z102.number().int()
|
|
18430
|
+
});
|
|
18431
|
+
var GetListingSubmissionInputSchema = z102.object({ id: z102.string().uuid() });
|
|
18432
|
+
var ApproveListingSubmissionInputSchema = z102.object({ id: z102.string().uuid() });
|
|
18433
|
+
var RecordListingSubmissionPrInputSchema = z102.object({
|
|
18434
|
+
id: z102.string().uuid(),
|
|
18435
|
+
prNumber: z102.number().int().positive()
|
|
18436
|
+
});
|
|
18437
|
+
var ListingSubmissionPrClosedInputSchema = RecordListingSubmissionPrInputSchema.extend({
|
|
18438
|
+
merged: z102.boolean()
|
|
18439
|
+
});
|
|
18440
|
+
var RejectListingSubmissionInputSchema = z102.object({
|
|
18441
|
+
id: z102.string().uuid(),
|
|
18442
|
+
reason: z102.string().trim().min(1).max(LISTING_SUBMISSION_REJECTION_MAX_CHARS)
|
|
18443
|
+
});
|
|
18444
|
+
var HIDDEN_CHARACTERS = (
|
|
18445
|
+
// eslint-disable-next-line no-control-regex
|
|
18446
|
+
/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/
|
|
18447
|
+
);
|
|
18448
|
+
function findHiddenCharacters(value, path3 = "$") {
|
|
18449
|
+
if (typeof value === "string")
|
|
18450
|
+
return HIDDEN_CHARACTERS.test(value) ? path3 : null;
|
|
18451
|
+
if (Array.isArray(value)) {
|
|
18452
|
+
for (let i = 0; i < value.length; i++) {
|
|
18453
|
+
const found = findHiddenCharacters(value[i], `${path3}[${i}]`);
|
|
18454
|
+
if (found)
|
|
18455
|
+
return found;
|
|
18456
|
+
}
|
|
18457
|
+
return null;
|
|
18458
|
+
}
|
|
18459
|
+
if (value && typeof value === "object") {
|
|
18460
|
+
for (const [key, child] of Object.entries(value)) {
|
|
18461
|
+
if (HIDDEN_CHARACTERS.test(key))
|
|
18462
|
+
return `${path3}.${key}`;
|
|
18463
|
+
const found = findHiddenCharacters(child, `${path3}.${key}`);
|
|
18464
|
+
if (found)
|
|
18465
|
+
return found;
|
|
18466
|
+
}
|
|
18467
|
+
}
|
|
18468
|
+
return null;
|
|
18469
|
+
}
|
|
18470
|
+
|
|
18471
|
+
// ../../packages/shared/dist/lib/catalog-probe.js
|
|
18472
|
+
var CATALOG_PROBE_MAX_BODY_CHARS = 64 * 1024;
|
|
18473
|
+
|
|
18474
|
+
// ../../packages/shared/dist/lib/listing-submission-write.js
|
|
18475
|
+
import { keccak256 as keccak2563, stringToBytes as stringToBytes2 } from "viem";
|
|
18476
|
+
function listingSubmissionContentHash(payload) {
|
|
18477
|
+
return keccak2563(stringToBytes2(canonicalSubmissionReviewValue(payload)));
|
|
18478
|
+
}
|
|
18479
|
+
function hookListingSubject(manifest) {
|
|
18480
|
+
const deployments = manifest.deployments;
|
|
18481
|
+
if (!Array.isArray(deployments) || deployments.length !== 1)
|
|
18482
|
+
return null;
|
|
18483
|
+
const deployment = deployments[0];
|
|
18484
|
+
if (!deployment || !Number.isSafeInteger(deployment.chainId) || typeof deployment.hook !== "string" || !/^0x[0-9a-fA-F]{40}$/.test(deployment.hook)) {
|
|
18485
|
+
return null;
|
|
18486
|
+
}
|
|
18487
|
+
return `${deployment.chainId}:${deployment.hook.toLowerCase()}`;
|
|
18488
|
+
}
|
|
18489
|
+
function listingSubmissionWriteChange(kind, subject, payload) {
|
|
18490
|
+
return { action: "submit", kind, subject, contentHash: listingSubmissionContentHash(payload) };
|
|
18491
|
+
}
|
|
18492
|
+
|
|
18493
|
+
// ../../packages/shared/dist/schemas/user-skill-agent.schemas.js
|
|
18494
|
+
import { z as z103 } from "zod";
|
|
18365
18495
|
var AGENT_SKILL_REQUEST_BODY_LIMIT_BYTES = 1048576;
|
|
18366
18496
|
var agentSkillWriteBase = {
|
|
18367
18497
|
/** The owner's swarm wallet that signs; the backend resolves the owner from it. */
|
|
18368
18498
|
walletAddress: EthAddressSchema,
|
|
18369
18499
|
/** The hosted agent the write is made as; it must be one of that owner's live agents. */
|
|
18370
|
-
agentId:
|
|
18371
|
-
skillId:
|
|
18500
|
+
agentId: z103.string().uuid(),
|
|
18501
|
+
skillId: z103.string().uuid(),
|
|
18372
18502
|
/** One logical write: a resend with the same key and input returns the first result. */
|
|
18373
|
-
requestKey:
|
|
18503
|
+
requestKey: z103.string().uuid()
|
|
18374
18504
|
};
|
|
18375
|
-
var AgentUserSkillBundleWriteSchema =
|
|
18505
|
+
var AgentUserSkillBundleWriteSchema = z103.object({
|
|
18376
18506
|
...agentSkillWriteBase,
|
|
18377
18507
|
bundle: UserSkillDraftBundleSchema,
|
|
18378
|
-
note:
|
|
18508
|
+
note: z103.string().trim().max(500).default("")
|
|
18379
18509
|
});
|
|
18380
|
-
var AgentUserSkillArchiveWriteSchema =
|
|
18510
|
+
var AgentUserSkillArchiveWriteSchema = z103.object({
|
|
18381
18511
|
...agentSkillWriteBase,
|
|
18382
|
-
removeAssignments:
|
|
18512
|
+
removeAssignments: z103.boolean().default(false)
|
|
18383
18513
|
});
|
|
18384
18514
|
var AgentUserSkillCreateInputSchema = AgentUserSkillBundleWriteSchema.extend(WalletWriteProofSchema.shape).strict();
|
|
18385
18515
|
var AgentUserSkillArchiveInputSchema = AgentUserSkillArchiveWriteSchema.extend(WalletWriteProofSchema.shape).strict();
|
|
18386
|
-
var AgentUserSkillVersionResultSchema =
|
|
18387
|
-
skillId:
|
|
18388
|
-
version:
|
|
18389
|
-
revision:
|
|
18390
|
-
});
|
|
18391
|
-
var AgentUserSkillArchiveResultSchema =
|
|
18392
|
-
skillId:
|
|
18393
|
-
archived:
|
|
18394
|
-
revision:
|
|
18395
|
-
});
|
|
18396
|
-
var hostedAgentId =
|
|
18397
|
-
var HostedSkillCreateInputSchema =
|
|
18516
|
+
var AgentUserSkillVersionResultSchema = z103.object({
|
|
18517
|
+
skillId: z103.string().uuid(),
|
|
18518
|
+
version: z103.number().int().positive(),
|
|
18519
|
+
revision: z103.number().int().nonnegative()
|
|
18520
|
+
});
|
|
18521
|
+
var AgentUserSkillArchiveResultSchema = z103.object({
|
|
18522
|
+
skillId: z103.string().uuid(),
|
|
18523
|
+
archived: z103.literal(true),
|
|
18524
|
+
revision: z103.number().int().nonnegative()
|
|
18525
|
+
});
|
|
18526
|
+
var hostedAgentId = z103.string().uuid().optional();
|
|
18527
|
+
var HostedSkillCreateInputSchema = z103.object({
|
|
18398
18528
|
agentId: hostedAgentId,
|
|
18399
|
-
skillId:
|
|
18529
|
+
skillId: z103.string().uuid().optional(),
|
|
18400
18530
|
bundle: UserSkillDraftBundleSchema,
|
|
18401
|
-
note:
|
|
18531
|
+
note: z103.string().trim().max(500).optional()
|
|
18402
18532
|
}).strict();
|
|
18403
|
-
var HostedSkillVersionInputSchema =
|
|
18533
|
+
var HostedSkillVersionInputSchema = z103.object({
|
|
18404
18534
|
agentId: hostedAgentId,
|
|
18405
|
-
skillId:
|
|
18535
|
+
skillId: z103.string().uuid(),
|
|
18406
18536
|
bundle: UserSkillDraftBundleSchema,
|
|
18407
|
-
note:
|
|
18537
|
+
note: z103.string().trim().max(500).optional()
|
|
18408
18538
|
}).strict();
|
|
18409
|
-
var HostedSkillArchiveInputSchema =
|
|
18539
|
+
var HostedSkillArchiveInputSchema = z103.object({
|
|
18410
18540
|
agentId: hostedAgentId,
|
|
18411
|
-
skillId:
|
|
18412
|
-
removeAssignments:
|
|
18541
|
+
skillId: z103.string().uuid(),
|
|
18542
|
+
removeAssignments: z103.boolean().optional()
|
|
18413
18543
|
}).strict();
|
|
18414
18544
|
var HostedSkillImportInputSchema = UserSkillImportPreviewInputSchema.extend({
|
|
18415
18545
|
agentId: hostedAgentId,
|
|
18416
|
-
skillId:
|
|
18417
|
-
confirmExclusions:
|
|
18418
|
-
note:
|
|
18546
|
+
skillId: z103.string().uuid().optional(),
|
|
18547
|
+
confirmExclusions: z103.boolean().optional(),
|
|
18548
|
+
note: z103.string().trim().max(500).optional()
|
|
18419
18549
|
}).strict();
|
|
18420
|
-
var HostedSkillUpdateInputSchema =
|
|
18550
|
+
var HostedSkillUpdateInputSchema = z103.object({
|
|
18421
18551
|
agentId: hostedAgentId,
|
|
18422
|
-
skillId:
|
|
18423
|
-
confirmExclusions:
|
|
18424
|
-
note:
|
|
18552
|
+
skillId: z103.string().uuid(),
|
|
18553
|
+
confirmExclusions: z103.boolean().optional(),
|
|
18554
|
+
note: z103.string().trim().max(500).optional()
|
|
18425
18555
|
}).strict();
|
|
18426
|
-
var HostedSkillListInputSchema =
|
|
18427
|
-
var HostedSkillShowInputSchema =
|
|
18556
|
+
var HostedSkillListInputSchema = z103.object({ agentId: hostedAgentId }).strict();
|
|
18557
|
+
var HostedSkillShowInputSchema = z103.object({
|
|
18428
18558
|
agentId: hostedAgentId,
|
|
18429
|
-
skillId:
|
|
18430
|
-
version:
|
|
18431
|
-
path:
|
|
18432
|
-
offset:
|
|
18559
|
+
skillId: z103.string().uuid(),
|
|
18560
|
+
version: z103.number().int().positive().optional(),
|
|
18561
|
+
path: z103.string().min(1).max(240).optional(),
|
|
18562
|
+
offset: z103.number().int().nonnegative().optional()
|
|
18433
18563
|
}).strict();
|
|
18434
|
-
var HostedSkillSourceSummarySchema =
|
|
18435
|
-
|
|
18436
|
-
|
|
18564
|
+
var HostedSkillSourceSummarySchema = z103.discriminatedUnion("kind", [
|
|
18565
|
+
z103.object({ kind: z103.literal("upload") }),
|
|
18566
|
+
z103.object({ kind: z103.literal("agent"), agentId: z103.string().uuid() }),
|
|
18437
18567
|
UserSkillGithubSourceSchema.pick({
|
|
18438
18568
|
kind: true,
|
|
18439
18569
|
repo: true,
|
|
@@ -18443,38 +18573,38 @@ var HostedSkillSourceSummarySchema = z102.discriminatedUnion("kind", [
|
|
|
18443
18573
|
license: true
|
|
18444
18574
|
})
|
|
18445
18575
|
]);
|
|
18446
|
-
var HostedSkillShareInputSchema =
|
|
18576
|
+
var HostedSkillShareInputSchema = z103.object({
|
|
18447
18577
|
agentId: hostedAgentId,
|
|
18448
|
-
skillId:
|
|
18449
|
-
version:
|
|
18578
|
+
skillId: z103.string().uuid(),
|
|
18579
|
+
version: z103.number().int().positive().optional(),
|
|
18450
18580
|
/** The receiving agent: this agent's own ID, or another live agent of the same owner. */
|
|
18451
|
-
toAgentId:
|
|
18581
|
+
toAgentId: z103.string().uuid()
|
|
18452
18582
|
}).strict();
|
|
18453
|
-
var AgentUserSkillShareWriteSchema =
|
|
18454
|
-
agentId:
|
|
18455
|
-
skillId:
|
|
18456
|
-
version:
|
|
18457
|
-
toAgentId:
|
|
18458
|
-
requestKey:
|
|
18459
|
-
});
|
|
18460
|
-
var AgentUserSkillShareResultSchema =
|
|
18461
|
-
skillId:
|
|
18462
|
-
version:
|
|
18463
|
-
toAgentId:
|
|
18464
|
-
status:
|
|
18465
|
-
requestId:
|
|
18583
|
+
var AgentUserSkillShareWriteSchema = z103.object({
|
|
18584
|
+
agentId: z103.string().uuid(),
|
|
18585
|
+
skillId: z103.string().uuid(),
|
|
18586
|
+
version: z103.number().int().positive().optional(),
|
|
18587
|
+
toAgentId: z103.string().uuid(),
|
|
18588
|
+
requestKey: z103.string().uuid()
|
|
18589
|
+
});
|
|
18590
|
+
var AgentUserSkillShareResultSchema = z103.object({
|
|
18591
|
+
skillId: z103.string().uuid(),
|
|
18592
|
+
version: z103.number().int().positive(),
|
|
18593
|
+
toAgentId: z103.string().uuid(),
|
|
18594
|
+
status: z103.enum(["assigned", "pending"]),
|
|
18595
|
+
requestId: z103.string().uuid().nullable(),
|
|
18466
18596
|
/**
|
|
18467
18597
|
* Issue #4461: true when the version holds text from outside the owner (imported from GitHub, or
|
|
18468
18598
|
* saved in a turn that handled untrusted content), so even a share with the agent itself or a
|
|
18469
18599
|
* share in free mode waits for the owner's approval.
|
|
18470
18600
|
*/
|
|
18471
|
-
untrustedContent:
|
|
18601
|
+
untrustedContent: z103.literal(true).optional()
|
|
18472
18602
|
});
|
|
18473
18603
|
|
|
18474
18604
|
// ../../packages/shared/dist/lib/user-skill-write.js
|
|
18475
|
-
import { keccak256 as
|
|
18605
|
+
import { keccak256 as keccak2564, stringToBytes as stringToBytes3 } from "viem";
|
|
18476
18606
|
function contentHash2(value) {
|
|
18477
|
-
return
|
|
18607
|
+
return keccak2564(stringToBytes3(canonicalSubmissionReviewValue(value)));
|
|
18478
18608
|
}
|
|
18479
18609
|
function bundleChange(action, input2) {
|
|
18480
18610
|
const parsed = AgentUserSkillBundleWriteSchema.parse(input2);
|
|
@@ -19159,7 +19289,7 @@ function piCodingAgentTools(options) {
|
|
|
19159
19289
|
}
|
|
19160
19290
|
|
|
19161
19291
|
// ../../packages/shared/dist/task-templates/templates.js
|
|
19162
|
-
import { z as
|
|
19292
|
+
import { z as z104 } from "zod";
|
|
19163
19293
|
|
|
19164
19294
|
// ../../packages/shared/dist/task-templates/catalogue.js
|
|
19165
19295
|
var taskTemplateCatalogue = [
|
|
@@ -20491,38 +20621,38 @@ var BRIEF_HEADINGS = [
|
|
|
20491
20621
|
"Boundaries",
|
|
20492
20622
|
"How selection works"
|
|
20493
20623
|
];
|
|
20494
|
-
var tokenSchema =
|
|
20495
|
-
key:
|
|
20496
|
-
label:
|
|
20497
|
-
placeholder:
|
|
20498
|
-
defaultValue:
|
|
20499
|
-
required:
|
|
20624
|
+
var tokenSchema = z104.object({
|
|
20625
|
+
key: z104.string().regex(/^[a-z][a-zA-Z0-9]*$/),
|
|
20626
|
+
label: z104.string().min(1),
|
|
20627
|
+
placeholder: z104.string().min(1),
|
|
20628
|
+
defaultValue: z104.string().min(1).optional(),
|
|
20629
|
+
required: z104.boolean()
|
|
20500
20630
|
}).strict();
|
|
20501
|
-
var readinessItemSchema =
|
|
20502
|
-
key:
|
|
20503
|
-
label:
|
|
20504
|
-
help:
|
|
20505
|
-
input:
|
|
20506
|
-
placeholder:
|
|
20507
|
-
defaultValue:
|
|
20508
|
-
publicAccess:
|
|
20509
|
-
required:
|
|
20631
|
+
var readinessItemSchema = z104.object({
|
|
20632
|
+
key: z104.string().regex(/^[a-z][a-zA-Z0-9]*$/),
|
|
20633
|
+
label: z104.string().min(1),
|
|
20634
|
+
help: z104.string().min(1),
|
|
20635
|
+
input: z104.enum(["shortText", "longText", "url"]),
|
|
20636
|
+
placeholder: z104.string().min(1),
|
|
20637
|
+
defaultValue: z104.string().min(1).optional(),
|
|
20638
|
+
publicAccess: z104.enum(["required", "notApplicable"]),
|
|
20639
|
+
required: z104.boolean()
|
|
20510
20640
|
}).strict().superRefine((item, ctx) => {
|
|
20511
20641
|
if (item.publicAccess === "required" && item.input !== "url") {
|
|
20512
20642
|
ctx.addIssue({
|
|
20513
|
-
code:
|
|
20643
|
+
code: z104.ZodIssueCode.custom,
|
|
20514
20644
|
message: "Public-access readiness items must use a URL input.",
|
|
20515
20645
|
path: ["input"]
|
|
20516
20646
|
});
|
|
20517
20647
|
}
|
|
20518
20648
|
});
|
|
20519
|
-
var briefSectionSchemas = BRIEF_HEADINGS.map((heading) =>
|
|
20520
|
-
var baseTemplateSchema =
|
|
20521
|
-
id:
|
|
20522
|
-
label:
|
|
20523
|
-
shortDescription:
|
|
20524
|
-
titleTemplate:
|
|
20525
|
-
icon:
|
|
20649
|
+
var briefSectionSchemas = BRIEF_HEADINGS.map((heading) => z104.object({ heading: z104.literal(heading), body: z104.string().min(1) }).strict());
|
|
20650
|
+
var baseTemplateSchema = z104.object({
|
|
20651
|
+
id: z104.enum(TASK_TEMPLATE_IDS),
|
|
20652
|
+
label: z104.string().min(1),
|
|
20653
|
+
shortDescription: z104.string().min(1),
|
|
20654
|
+
titleTemplate: z104.string().min(1),
|
|
20655
|
+
icon: z104.enum([
|
|
20526
20656
|
"activity",
|
|
20527
20657
|
"bug",
|
|
20528
20658
|
"chart",
|
|
@@ -20540,37 +20670,37 @@ var baseTemplateSchema = z103.object({
|
|
|
20540
20670
|
"sparkles",
|
|
20541
20671
|
"transfer"
|
|
20542
20672
|
]),
|
|
20543
|
-
motif:
|
|
20544
|
-
durationHours:
|
|
20545
|
-
tags:
|
|
20546
|
-
bestFor:
|
|
20547
|
-
details:
|
|
20548
|
-
tokens:
|
|
20549
|
-
readiness:
|
|
20550
|
-
brief:
|
|
20673
|
+
motif: z104.enum(["grid", "rays", "rings", "signal", "steps"]),
|
|
20674
|
+
durationHours: z104.number().int().min(24).max(720),
|
|
20675
|
+
tags: z104.array(z104.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)).min(3).max(5).refine((tags) => new Set(tags).size === tags.length, "Template tags must be unique."),
|
|
20676
|
+
bestFor: z104.tuple([z104.string().min(1), z104.string().min(1), z104.string().min(1)]),
|
|
20677
|
+
details: z104.object({ includes: z104.string().min(1), success: z104.string().min(1) }).strict(),
|
|
20678
|
+
tokens: z104.array(tokenSchema).min(2).max(3),
|
|
20679
|
+
readiness: z104.array(readinessItemSchema).min(1).max(3),
|
|
20680
|
+
brief: z104.tuple(briefSectionSchemas).readonly()
|
|
20551
20681
|
}).strict();
|
|
20552
|
-
var catalogueSchema =
|
|
20553
|
-
baseTemplateSchema.extend({ mode:
|
|
20682
|
+
var catalogueSchema = z104.array(z104.discriminatedUnion("mode", [
|
|
20683
|
+
baseTemplateSchema.extend({ mode: z104.literal("bounty") }),
|
|
20554
20684
|
baseTemplateSchema.extend({
|
|
20555
|
-
mode:
|
|
20556
|
-
modeDefaults:
|
|
20685
|
+
mode: z104.literal("claim"),
|
|
20686
|
+
modeDefaults: z104.object({ stakeRequired: z104.literal(false), stakeBps: z104.literal("0") }).strict()
|
|
20557
20687
|
}),
|
|
20558
20688
|
baseTemplateSchema.extend({
|
|
20559
|
-
mode:
|
|
20560
|
-
modeDefaults:
|
|
20689
|
+
mode: z104.literal("pitch"),
|
|
20690
|
+
modeDefaults: z104.object({ pitchDeadline: z104.string().regex(/^[1-9]\d*$/) }).strict()
|
|
20561
20691
|
}),
|
|
20562
20692
|
baseTemplateSchema.extend({
|
|
20563
|
-
mode:
|
|
20564
|
-
modeDefaults:
|
|
20565
|
-
metricDescription:
|
|
20566
|
-
metricTarget:
|
|
20693
|
+
mode: z104.literal("benchmark"),
|
|
20694
|
+
modeDefaults: z104.object({
|
|
20695
|
+
metricDescription: z104.string().min(1),
|
|
20696
|
+
metricTarget: z104.string().min(1)
|
|
20567
20697
|
}).strict()
|
|
20568
20698
|
}),
|
|
20569
20699
|
baseTemplateSchema.extend({
|
|
20570
|
-
mode:
|
|
20571
|
-
modeDefaults:
|
|
20572
|
-
auctionType:
|
|
20573
|
-
bidDeadline:
|
|
20700
|
+
mode: z104.literal("auction"),
|
|
20701
|
+
modeDefaults: z104.object({
|
|
20702
|
+
auctionType: z104.enum(["english", "reverse_english"]),
|
|
20703
|
+
bidDeadline: z104.string().regex(/^[1-9]\d*$/)
|
|
20574
20704
|
}).strict()
|
|
20575
20705
|
})
|
|
20576
20706
|
]));
|
|
@@ -20946,6 +21076,12 @@ export {
|
|
|
20946
21076
|
bugReportCommentWriteChange,
|
|
20947
21077
|
bugReportVisibilityWriteChange,
|
|
20948
21078
|
bugReportMeTooWriteChange,
|
|
21079
|
+
LISTING_SUBMISSION_STATUSES,
|
|
21080
|
+
LISTING_SUBMISSION_MAX_BYTES,
|
|
21081
|
+
CatalogSubmissionEntrySchema,
|
|
21082
|
+
findHiddenCharacters,
|
|
21083
|
+
hookListingSubject,
|
|
21084
|
+
listingSubmissionWriteChange,
|
|
20949
21085
|
AGENT_SKILL_REQUEST_BODY_LIMIT_BYTES,
|
|
20950
21086
|
AgentUserSkillBundleWriteSchema,
|
|
20951
21087
|
AgentUserSkillArchiveWriteSchema,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ATZLUOQX.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-NO227FAP.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-M2UVDGSH.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XL76RC3P.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AUDDFWKQ.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readMppTempoChallenge,
|
|
16
16
|
reconcileX402Payment,
|
|
17
17
|
withX402FileLock
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQLA6EXP.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-XL76RC3P.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-AUDDFWKQ.js";
|
|
47
47
|
|
|
48
48
|
// src/lib/x402-fee.ts
|
|
49
49
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YQLA6EXP.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XL76RC3P.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AUDDFWKQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -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-AUDDFWKQ.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|