@lucid-agents/taskmarket 1.36.0 → 1.38.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-TC2WI2WY.js} +2 -2
- package/dist/{channels-FAOZ67V2.js → channels-UFRYFVIT.js} +4 -4
- package/dist/{chunk-7TDHFFF2.js → chunk-3VNJBJSK.js} +1 -1
- package/dist/{chunk-AZ2N4KKB.js → chunk-6JQ7KVVK.js} +1 -1
- package/dist/{chunk-BQ63ZEML.js → chunk-7RISA22K.js} +1 -1
- package/dist/{chunk-F5ZHREXK.js → chunk-HF6T5WRD.js} +3 -3
- package/dist/{chunk-FXBA6X3I.js → chunk-LOUQO73Y.js} +5 -5
- package/dist/{chunk-6AIEGDDI.js → chunk-PYXJTK3J.js} +1 -1
- package/dist/{chunk-TKHBDRU6.js → chunk-QGTMCIZ3.js} +2 -2
- package/dist/{chunk-WJHT663R.js → chunk-U6KNPJQ3.js} +1 -1
- package/dist/{chunk-Q2NCP72I.js → chunk-UWGOLGKA.js} +8 -8
- package/dist/{chunk-WGQV5OG3.js → chunk-WOQ6DNU2.js} +3 -3
- package/dist/{chunk-NF3XHNJH.js → chunk-XSYOVYGF.js} +3 -3
- package/dist/{chunk-Q3IC6GTF.js → chunk-YGYWUPFH.js} +266 -112
- package/dist/{doctor-WFGKN5ZB.js → doctor-3X5OIY5A.js} +8 -8
- package/dist/index.js +244 -53
- package/dist/{launch-QWDD4WLN.js → launch-YMPZUCU6.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +109 -2
- package/dist/{read-auth-JKSDOSKI.js → read-auth-7HZZGCWW.js} +3 -3
- package/dist/{reconcile-B33L7D3M.js → reconcile-KV6XDQVM.js} +4 -4
- package/dist/{status-CBGRCJQO.js → status-JBJOPZQO.js} +8 -8
- package/dist/{sync-pull-EA6TBOHC.js → sync-pull-EJMIUSC6.js} +4 -4
- package/dist/{task-access-grants-JF7LGUWX.js → task-access-grants-BIPLWENT.js} +2 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -1523,7 +1524,17 @@ var TaskDropGetInputSchema = z7.object({
|
|
|
1523
1524
|
});
|
|
1524
1525
|
var TaskDropDirectoryInputSchema = z7.object({
|
|
1525
1526
|
cursor: z7.string().min(1).max(2048).optional(),
|
|
1526
|
-
limit: z7.number().int().min(1).max(48).optional().default(24)
|
|
1527
|
+
limit: z7.number().int().min(1).max(48).optional().default(24),
|
|
1528
|
+
/**
|
|
1529
|
+
* `ended` lists only drops with no task accepting work, newest first (the Past drops tab).
|
|
1530
|
+
* Omitted, every public drop is listed with the ones accepting work first.
|
|
1531
|
+
*/
|
|
1532
|
+
status: z7.enum(["ended"]).optional(),
|
|
1533
|
+
/**
|
|
1534
|
+
* Keeps only drops this wallet entered: it submitted work, pitched or bid on one of the drop's
|
|
1535
|
+
* tasks (the "Drops I entered" filter). Per wallet, so it is never cached.
|
|
1536
|
+
*/
|
|
1537
|
+
worker: EthAddress.optional()
|
|
1527
1538
|
});
|
|
1528
1539
|
var TaskDropSummarySchema = z7.object({
|
|
1529
1540
|
id: z7.string().min(1),
|
|
@@ -1560,7 +1571,13 @@ var TaskDropDirectoryItemSchema = z7.object({
|
|
|
1560
1571
|
taskCount: z7.number().int().positive(),
|
|
1561
1572
|
resolvedTaskCount: z7.number().int().nonnegative(),
|
|
1562
1573
|
totalReward: z7.string().regex(/^\d+$/),
|
|
1574
|
+
/** Sum of the rewards of the drop's completed tasks: what the drop has paid out. */
|
|
1575
|
+
paidReward: z7.string().regex(/^\d+$/),
|
|
1576
|
+
/** Submissions across the drop's listed tasks. */
|
|
1577
|
+
entryCount: z7.number().int().nonnegative(),
|
|
1563
1578
|
nextExpiryTime: z7.string().datetime().nullable(),
|
|
1579
|
+
/** The latest task deadline in the drop: when an ended drop closed. */
|
|
1580
|
+
lastExpiryTime: z7.string().datetime(),
|
|
1564
1581
|
latestTaskAt: z7.string().datetime()
|
|
1565
1582
|
});
|
|
1566
1583
|
var TaskDropDirectoryResponseSchema = z7.object({
|
|
@@ -18279,6 +18296,8 @@ var BugReportCommentSchema = z101.object({
|
|
|
18279
18296
|
authorAgentId: z101.string().nullable(),
|
|
18280
18297
|
/** The comment is by the report's reporter. */
|
|
18281
18298
|
isReporter: z101.boolean(),
|
|
18299
|
+
/** Taskmarket staff wrote it; `authorAddress` is then not a wallet. */
|
|
18300
|
+
isStaff: z101.boolean(),
|
|
18282
18301
|
body: z101.string(),
|
|
18283
18302
|
createdAt: z101.string()
|
|
18284
18303
|
});
|
|
@@ -18360,80 +18379,209 @@ function bugReportMeTooWriteChange(reportId) {
|
|
|
18360
18379
|
return { action: "me-too", reportId: reportId.toLowerCase() };
|
|
18361
18380
|
}
|
|
18362
18381
|
|
|
18363
|
-
// ../../packages/shared/dist/schemas/
|
|
18382
|
+
// ../../packages/shared/dist/schemas/listing-submission.schemas.js
|
|
18364
18383
|
import { z as z102 } from "zod";
|
|
18384
|
+
var LISTING_SUBMISSION_KINDS = ["catalog", "hook"];
|
|
18385
|
+
var LISTING_SUBMISSION_STATUSES = ["pending", "approved", "rejected"];
|
|
18386
|
+
var LISTING_SUBMISSION_REJECTION_MAX_CHARS = 2e3;
|
|
18387
|
+
var LISTING_SUBMISSION_MAX_BYTES = 64 * 1024;
|
|
18388
|
+
var CatalogSubmissionEntrySchema = CatalogX402EndpointEntrySchema.omit({
|
|
18389
|
+
trust: true,
|
|
18390
|
+
status: true,
|
|
18391
|
+
addedAt: true
|
|
18392
|
+
}).strict();
|
|
18393
|
+
var HookSubmissionManifestSchema = z102.string().min(2).max(LISTING_SUBMISSION_MAX_BYTES);
|
|
18394
|
+
var SubmitCatalogEntryInputSchema = z102.object({
|
|
18395
|
+
chainId: z102.number().int().positive().optional(),
|
|
18396
|
+
entry: CatalogSubmissionEntrySchema
|
|
18397
|
+
}).extend(WalletWriteProofSchema.shape);
|
|
18398
|
+
var SubmitHookListingInputSchema = z102.object({
|
|
18399
|
+
chainId: z102.number().int().positive().optional(),
|
|
18400
|
+
manifest: HookSubmissionManifestSchema
|
|
18401
|
+
}).extend(WalletWriteProofSchema.shape);
|
|
18402
|
+
var ListingSubmissionCheckSchema = z102.object({
|
|
18403
|
+
name: z102.string(),
|
|
18404
|
+
outcome: z102.enum(["pass", "fail", "inconclusive"]),
|
|
18405
|
+
detail: z102.string().nullable()
|
|
18406
|
+
});
|
|
18407
|
+
var ListingSubmissionSchema = z102.object({
|
|
18408
|
+
id: z102.string().uuid(),
|
|
18409
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS),
|
|
18410
|
+
/** The catalog entry id, or `<chainId>:<lowercase hook address>`. */
|
|
18411
|
+
subject: z102.string(),
|
|
18412
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES),
|
|
18413
|
+
/** Null until the automatic checks have run. */
|
|
18414
|
+
checks: z102.array(ListingSubmissionCheckSchema).nullable(),
|
|
18415
|
+
rejectionReason: z102.string().nullable(),
|
|
18416
|
+
/** True once the entry is in the snapshot this deployment serves. */
|
|
18417
|
+
listed: z102.boolean(),
|
|
18418
|
+
createdAt: z102.string(),
|
|
18419
|
+
updatedAt: z102.string()
|
|
18420
|
+
});
|
|
18421
|
+
var ListMyListingSubmissionsInputSchema = z102.object({
|
|
18422
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS),
|
|
18423
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES).optional(),
|
|
18424
|
+
limit: z102.number().int().min(1).max(100).default(50)
|
|
18425
|
+
});
|
|
18426
|
+
var ListMyListingSubmissionsOutputSchema = z102.object({
|
|
18427
|
+
submissions: z102.array(ListingSubmissionSchema)
|
|
18428
|
+
});
|
|
18429
|
+
var ListingSubmissionStaffViewSchema = ListingSubmissionSchema.extend({
|
|
18430
|
+
submitterAddress: z102.string(),
|
|
18431
|
+
submitterAgentId: z102.string().nullable(),
|
|
18432
|
+
chainId: z102.number().int(),
|
|
18433
|
+
/** The submitted file, untrusted: show it as data. */
|
|
18434
|
+
payload: z102.record(z102.string(), z102.unknown()),
|
|
18435
|
+
reviewedBy: z102.string().nullable(),
|
|
18436
|
+
reviewedAt: z102.string().nullable(),
|
|
18437
|
+
prNumber: z102.number().int().nullable()
|
|
18438
|
+
});
|
|
18439
|
+
var ListStaffListingSubmissionsInputSchema = z102.object({
|
|
18440
|
+
kind: z102.enum(LISTING_SUBMISSION_KINDS).optional(),
|
|
18441
|
+
status: z102.enum(LISTING_SUBMISSION_STATUSES).optional(),
|
|
18442
|
+
limit: z102.number().int().min(1).max(200).default(50),
|
|
18443
|
+
offset: z102.number().int().min(0).max(1e5).default(0)
|
|
18444
|
+
}).default({});
|
|
18445
|
+
var ListStaffListingSubmissionsOutputSchema = z102.object({
|
|
18446
|
+
submissions: z102.array(ListingSubmissionStaffViewSchema),
|
|
18447
|
+
total: z102.number().int()
|
|
18448
|
+
});
|
|
18449
|
+
var GetListingSubmissionInputSchema = z102.object({ id: z102.string().uuid() });
|
|
18450
|
+
var ApproveListingSubmissionInputSchema = z102.object({ id: z102.string().uuid() });
|
|
18451
|
+
var RecordListingSubmissionPrInputSchema = z102.object({
|
|
18452
|
+
id: z102.string().uuid(),
|
|
18453
|
+
prNumber: z102.number().int().positive()
|
|
18454
|
+
});
|
|
18455
|
+
var ListingSubmissionPrClosedInputSchema = RecordListingSubmissionPrInputSchema.extend({
|
|
18456
|
+
merged: z102.boolean()
|
|
18457
|
+
});
|
|
18458
|
+
var RejectListingSubmissionInputSchema = z102.object({
|
|
18459
|
+
id: z102.string().uuid(),
|
|
18460
|
+
reason: z102.string().trim().min(1).max(LISTING_SUBMISSION_REJECTION_MAX_CHARS)
|
|
18461
|
+
});
|
|
18462
|
+
var HIDDEN_CHARACTERS = (
|
|
18463
|
+
// eslint-disable-next-line no-control-regex
|
|
18464
|
+
/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/
|
|
18465
|
+
);
|
|
18466
|
+
function findHiddenCharacters(value, path3 = "$") {
|
|
18467
|
+
if (typeof value === "string")
|
|
18468
|
+
return HIDDEN_CHARACTERS.test(value) ? path3 : null;
|
|
18469
|
+
if (Array.isArray(value)) {
|
|
18470
|
+
for (let i = 0; i < value.length; i++) {
|
|
18471
|
+
const found = findHiddenCharacters(value[i], `${path3}[${i}]`);
|
|
18472
|
+
if (found)
|
|
18473
|
+
return found;
|
|
18474
|
+
}
|
|
18475
|
+
return null;
|
|
18476
|
+
}
|
|
18477
|
+
if (value && typeof value === "object") {
|
|
18478
|
+
for (const [key, child] of Object.entries(value)) {
|
|
18479
|
+
if (HIDDEN_CHARACTERS.test(key))
|
|
18480
|
+
return `${path3}.${key}`;
|
|
18481
|
+
const found = findHiddenCharacters(child, `${path3}.${key}`);
|
|
18482
|
+
if (found)
|
|
18483
|
+
return found;
|
|
18484
|
+
}
|
|
18485
|
+
}
|
|
18486
|
+
return null;
|
|
18487
|
+
}
|
|
18488
|
+
|
|
18489
|
+
// ../../packages/shared/dist/lib/catalog-probe.js
|
|
18490
|
+
var CATALOG_PROBE_MAX_BODY_CHARS = 64 * 1024;
|
|
18491
|
+
|
|
18492
|
+
// ../../packages/shared/dist/lib/listing-submission-write.js
|
|
18493
|
+
import { keccak256 as keccak2563, stringToBytes as stringToBytes2 } from "viem";
|
|
18494
|
+
function listingSubmissionContentHash(payload) {
|
|
18495
|
+
return keccak2563(stringToBytes2(canonicalSubmissionReviewValue(payload)));
|
|
18496
|
+
}
|
|
18497
|
+
function hookListingSubject(manifest) {
|
|
18498
|
+
const deployments = manifest.deployments;
|
|
18499
|
+
if (!Array.isArray(deployments) || deployments.length !== 1)
|
|
18500
|
+
return null;
|
|
18501
|
+
const deployment = deployments[0];
|
|
18502
|
+
if (!deployment || !Number.isSafeInteger(deployment.chainId) || typeof deployment.hook !== "string" || !/^0x[0-9a-fA-F]{40}$/.test(deployment.hook)) {
|
|
18503
|
+
return null;
|
|
18504
|
+
}
|
|
18505
|
+
return `${deployment.chainId}:${deployment.hook.toLowerCase()}`;
|
|
18506
|
+
}
|
|
18507
|
+
function listingSubmissionWriteChange(kind, subject, payload) {
|
|
18508
|
+
return { action: "submit", kind, subject, contentHash: listingSubmissionContentHash(payload) };
|
|
18509
|
+
}
|
|
18510
|
+
|
|
18511
|
+
// ../../packages/shared/dist/schemas/user-skill-agent.schemas.js
|
|
18512
|
+
import { z as z103 } from "zod";
|
|
18365
18513
|
var AGENT_SKILL_REQUEST_BODY_LIMIT_BYTES = 1048576;
|
|
18366
18514
|
var agentSkillWriteBase = {
|
|
18367
18515
|
/** The owner's swarm wallet that signs; the backend resolves the owner from it. */
|
|
18368
18516
|
walletAddress: EthAddressSchema,
|
|
18369
18517
|
/** The hosted agent the write is made as; it must be one of that owner's live agents. */
|
|
18370
|
-
agentId:
|
|
18371
|
-
skillId:
|
|
18518
|
+
agentId: z103.string().uuid(),
|
|
18519
|
+
skillId: z103.string().uuid(),
|
|
18372
18520
|
/** One logical write: a resend with the same key and input returns the first result. */
|
|
18373
|
-
requestKey:
|
|
18521
|
+
requestKey: z103.string().uuid()
|
|
18374
18522
|
};
|
|
18375
|
-
var AgentUserSkillBundleWriteSchema =
|
|
18523
|
+
var AgentUserSkillBundleWriteSchema = z103.object({
|
|
18376
18524
|
...agentSkillWriteBase,
|
|
18377
18525
|
bundle: UserSkillDraftBundleSchema,
|
|
18378
|
-
note:
|
|
18526
|
+
note: z103.string().trim().max(500).default("")
|
|
18379
18527
|
});
|
|
18380
|
-
var AgentUserSkillArchiveWriteSchema =
|
|
18528
|
+
var AgentUserSkillArchiveWriteSchema = z103.object({
|
|
18381
18529
|
...agentSkillWriteBase,
|
|
18382
|
-
removeAssignments:
|
|
18530
|
+
removeAssignments: z103.boolean().default(false)
|
|
18383
18531
|
});
|
|
18384
18532
|
var AgentUserSkillCreateInputSchema = AgentUserSkillBundleWriteSchema.extend(WalletWriteProofSchema.shape).strict();
|
|
18385
18533
|
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 =
|
|
18534
|
+
var AgentUserSkillVersionResultSchema = z103.object({
|
|
18535
|
+
skillId: z103.string().uuid(),
|
|
18536
|
+
version: z103.number().int().positive(),
|
|
18537
|
+
revision: z103.number().int().nonnegative()
|
|
18538
|
+
});
|
|
18539
|
+
var AgentUserSkillArchiveResultSchema = z103.object({
|
|
18540
|
+
skillId: z103.string().uuid(),
|
|
18541
|
+
archived: z103.literal(true),
|
|
18542
|
+
revision: z103.number().int().nonnegative()
|
|
18543
|
+
});
|
|
18544
|
+
var hostedAgentId = z103.string().uuid().optional();
|
|
18545
|
+
var HostedSkillCreateInputSchema = z103.object({
|
|
18398
18546
|
agentId: hostedAgentId,
|
|
18399
|
-
skillId:
|
|
18547
|
+
skillId: z103.string().uuid().optional(),
|
|
18400
18548
|
bundle: UserSkillDraftBundleSchema,
|
|
18401
|
-
note:
|
|
18549
|
+
note: z103.string().trim().max(500).optional()
|
|
18402
18550
|
}).strict();
|
|
18403
|
-
var HostedSkillVersionInputSchema =
|
|
18551
|
+
var HostedSkillVersionInputSchema = z103.object({
|
|
18404
18552
|
agentId: hostedAgentId,
|
|
18405
|
-
skillId:
|
|
18553
|
+
skillId: z103.string().uuid(),
|
|
18406
18554
|
bundle: UserSkillDraftBundleSchema,
|
|
18407
|
-
note:
|
|
18555
|
+
note: z103.string().trim().max(500).optional()
|
|
18408
18556
|
}).strict();
|
|
18409
|
-
var HostedSkillArchiveInputSchema =
|
|
18557
|
+
var HostedSkillArchiveInputSchema = z103.object({
|
|
18410
18558
|
agentId: hostedAgentId,
|
|
18411
|
-
skillId:
|
|
18412
|
-
removeAssignments:
|
|
18559
|
+
skillId: z103.string().uuid(),
|
|
18560
|
+
removeAssignments: z103.boolean().optional()
|
|
18413
18561
|
}).strict();
|
|
18414
18562
|
var HostedSkillImportInputSchema = UserSkillImportPreviewInputSchema.extend({
|
|
18415
18563
|
agentId: hostedAgentId,
|
|
18416
|
-
skillId:
|
|
18417
|
-
confirmExclusions:
|
|
18418
|
-
note:
|
|
18564
|
+
skillId: z103.string().uuid().optional(),
|
|
18565
|
+
confirmExclusions: z103.boolean().optional(),
|
|
18566
|
+
note: z103.string().trim().max(500).optional()
|
|
18419
18567
|
}).strict();
|
|
18420
|
-
var HostedSkillUpdateInputSchema =
|
|
18568
|
+
var HostedSkillUpdateInputSchema = z103.object({
|
|
18421
18569
|
agentId: hostedAgentId,
|
|
18422
|
-
skillId:
|
|
18423
|
-
confirmExclusions:
|
|
18424
|
-
note:
|
|
18570
|
+
skillId: z103.string().uuid(),
|
|
18571
|
+
confirmExclusions: z103.boolean().optional(),
|
|
18572
|
+
note: z103.string().trim().max(500).optional()
|
|
18425
18573
|
}).strict();
|
|
18426
|
-
var HostedSkillListInputSchema =
|
|
18427
|
-
var HostedSkillShowInputSchema =
|
|
18574
|
+
var HostedSkillListInputSchema = z103.object({ agentId: hostedAgentId }).strict();
|
|
18575
|
+
var HostedSkillShowInputSchema = z103.object({
|
|
18428
18576
|
agentId: hostedAgentId,
|
|
18429
|
-
skillId:
|
|
18430
|
-
version:
|
|
18431
|
-
path:
|
|
18432
|
-
offset:
|
|
18577
|
+
skillId: z103.string().uuid(),
|
|
18578
|
+
version: z103.number().int().positive().optional(),
|
|
18579
|
+
path: z103.string().min(1).max(240).optional(),
|
|
18580
|
+
offset: z103.number().int().nonnegative().optional()
|
|
18433
18581
|
}).strict();
|
|
18434
|
-
var HostedSkillSourceSummarySchema =
|
|
18435
|
-
|
|
18436
|
-
|
|
18582
|
+
var HostedSkillSourceSummarySchema = z103.discriminatedUnion("kind", [
|
|
18583
|
+
z103.object({ kind: z103.literal("upload") }),
|
|
18584
|
+
z103.object({ kind: z103.literal("agent"), agentId: z103.string().uuid() }),
|
|
18437
18585
|
UserSkillGithubSourceSchema.pick({
|
|
18438
18586
|
kind: true,
|
|
18439
18587
|
repo: true,
|
|
@@ -18443,38 +18591,38 @@ var HostedSkillSourceSummarySchema = z102.discriminatedUnion("kind", [
|
|
|
18443
18591
|
license: true
|
|
18444
18592
|
})
|
|
18445
18593
|
]);
|
|
18446
|
-
var HostedSkillShareInputSchema =
|
|
18594
|
+
var HostedSkillShareInputSchema = z103.object({
|
|
18447
18595
|
agentId: hostedAgentId,
|
|
18448
|
-
skillId:
|
|
18449
|
-
version:
|
|
18596
|
+
skillId: z103.string().uuid(),
|
|
18597
|
+
version: z103.number().int().positive().optional(),
|
|
18450
18598
|
/** The receiving agent: this agent's own ID, or another live agent of the same owner. */
|
|
18451
|
-
toAgentId:
|
|
18599
|
+
toAgentId: z103.string().uuid()
|
|
18452
18600
|
}).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:
|
|
18601
|
+
var AgentUserSkillShareWriteSchema = z103.object({
|
|
18602
|
+
agentId: z103.string().uuid(),
|
|
18603
|
+
skillId: z103.string().uuid(),
|
|
18604
|
+
version: z103.number().int().positive().optional(),
|
|
18605
|
+
toAgentId: z103.string().uuid(),
|
|
18606
|
+
requestKey: z103.string().uuid()
|
|
18607
|
+
});
|
|
18608
|
+
var AgentUserSkillShareResultSchema = z103.object({
|
|
18609
|
+
skillId: z103.string().uuid(),
|
|
18610
|
+
version: z103.number().int().positive(),
|
|
18611
|
+
toAgentId: z103.string().uuid(),
|
|
18612
|
+
status: z103.enum(["assigned", "pending"]),
|
|
18613
|
+
requestId: z103.string().uuid().nullable(),
|
|
18466
18614
|
/**
|
|
18467
18615
|
* Issue #4461: true when the version holds text from outside the owner (imported from GitHub, or
|
|
18468
18616
|
* saved in a turn that handled untrusted content), so even a share with the agent itself or a
|
|
18469
18617
|
* share in free mode waits for the owner's approval.
|
|
18470
18618
|
*/
|
|
18471
|
-
untrustedContent:
|
|
18619
|
+
untrustedContent: z103.literal(true).optional()
|
|
18472
18620
|
});
|
|
18473
18621
|
|
|
18474
18622
|
// ../../packages/shared/dist/lib/user-skill-write.js
|
|
18475
|
-
import { keccak256 as
|
|
18623
|
+
import { keccak256 as keccak2564, stringToBytes as stringToBytes3 } from "viem";
|
|
18476
18624
|
function contentHash2(value) {
|
|
18477
|
-
return
|
|
18625
|
+
return keccak2564(stringToBytes3(canonicalSubmissionReviewValue(value)));
|
|
18478
18626
|
}
|
|
18479
18627
|
function bundleChange(action, input2) {
|
|
18480
18628
|
const parsed = AgentUserSkillBundleWriteSchema.parse(input2);
|
|
@@ -19159,7 +19307,7 @@ function piCodingAgentTools(options) {
|
|
|
19159
19307
|
}
|
|
19160
19308
|
|
|
19161
19309
|
// ../../packages/shared/dist/task-templates/templates.js
|
|
19162
|
-
import { z as
|
|
19310
|
+
import { z as z104 } from "zod";
|
|
19163
19311
|
|
|
19164
19312
|
// ../../packages/shared/dist/task-templates/catalogue.js
|
|
19165
19313
|
var taskTemplateCatalogue = [
|
|
@@ -20491,38 +20639,38 @@ var BRIEF_HEADINGS = [
|
|
|
20491
20639
|
"Boundaries",
|
|
20492
20640
|
"How selection works"
|
|
20493
20641
|
];
|
|
20494
|
-
var tokenSchema =
|
|
20495
|
-
key:
|
|
20496
|
-
label:
|
|
20497
|
-
placeholder:
|
|
20498
|
-
defaultValue:
|
|
20499
|
-
required:
|
|
20642
|
+
var tokenSchema = z104.object({
|
|
20643
|
+
key: z104.string().regex(/^[a-z][a-zA-Z0-9]*$/),
|
|
20644
|
+
label: z104.string().min(1),
|
|
20645
|
+
placeholder: z104.string().min(1),
|
|
20646
|
+
defaultValue: z104.string().min(1).optional(),
|
|
20647
|
+
required: z104.boolean()
|
|
20500
20648
|
}).strict();
|
|
20501
|
-
var readinessItemSchema =
|
|
20502
|
-
key:
|
|
20503
|
-
label:
|
|
20504
|
-
help:
|
|
20505
|
-
input:
|
|
20506
|
-
placeholder:
|
|
20507
|
-
defaultValue:
|
|
20508
|
-
publicAccess:
|
|
20509
|
-
required:
|
|
20649
|
+
var readinessItemSchema = z104.object({
|
|
20650
|
+
key: z104.string().regex(/^[a-z][a-zA-Z0-9]*$/),
|
|
20651
|
+
label: z104.string().min(1),
|
|
20652
|
+
help: z104.string().min(1),
|
|
20653
|
+
input: z104.enum(["shortText", "longText", "url"]),
|
|
20654
|
+
placeholder: z104.string().min(1),
|
|
20655
|
+
defaultValue: z104.string().min(1).optional(),
|
|
20656
|
+
publicAccess: z104.enum(["required", "notApplicable"]),
|
|
20657
|
+
required: z104.boolean()
|
|
20510
20658
|
}).strict().superRefine((item, ctx) => {
|
|
20511
20659
|
if (item.publicAccess === "required" && item.input !== "url") {
|
|
20512
20660
|
ctx.addIssue({
|
|
20513
|
-
code:
|
|
20661
|
+
code: z104.ZodIssueCode.custom,
|
|
20514
20662
|
message: "Public-access readiness items must use a URL input.",
|
|
20515
20663
|
path: ["input"]
|
|
20516
20664
|
});
|
|
20517
20665
|
}
|
|
20518
20666
|
});
|
|
20519
|
-
var briefSectionSchemas = BRIEF_HEADINGS.map((heading) =>
|
|
20520
|
-
var baseTemplateSchema =
|
|
20521
|
-
id:
|
|
20522
|
-
label:
|
|
20523
|
-
shortDescription:
|
|
20524
|
-
titleTemplate:
|
|
20525
|
-
icon:
|
|
20667
|
+
var briefSectionSchemas = BRIEF_HEADINGS.map((heading) => z104.object({ heading: z104.literal(heading), body: z104.string().min(1) }).strict());
|
|
20668
|
+
var baseTemplateSchema = z104.object({
|
|
20669
|
+
id: z104.enum(TASK_TEMPLATE_IDS),
|
|
20670
|
+
label: z104.string().min(1),
|
|
20671
|
+
shortDescription: z104.string().min(1),
|
|
20672
|
+
titleTemplate: z104.string().min(1),
|
|
20673
|
+
icon: z104.enum([
|
|
20526
20674
|
"activity",
|
|
20527
20675
|
"bug",
|
|
20528
20676
|
"chart",
|
|
@@ -20540,37 +20688,37 @@ var baseTemplateSchema = z103.object({
|
|
|
20540
20688
|
"sparkles",
|
|
20541
20689
|
"transfer"
|
|
20542
20690
|
]),
|
|
20543
|
-
motif:
|
|
20544
|
-
durationHours:
|
|
20545
|
-
tags:
|
|
20546
|
-
bestFor:
|
|
20547
|
-
details:
|
|
20548
|
-
tokens:
|
|
20549
|
-
readiness:
|
|
20550
|
-
brief:
|
|
20691
|
+
motif: z104.enum(["grid", "rays", "rings", "signal", "steps"]),
|
|
20692
|
+
durationHours: z104.number().int().min(24).max(720),
|
|
20693
|
+
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."),
|
|
20694
|
+
bestFor: z104.tuple([z104.string().min(1), z104.string().min(1), z104.string().min(1)]),
|
|
20695
|
+
details: z104.object({ includes: z104.string().min(1), success: z104.string().min(1) }).strict(),
|
|
20696
|
+
tokens: z104.array(tokenSchema).min(2).max(3),
|
|
20697
|
+
readiness: z104.array(readinessItemSchema).min(1).max(3),
|
|
20698
|
+
brief: z104.tuple(briefSectionSchemas).readonly()
|
|
20551
20699
|
}).strict();
|
|
20552
|
-
var catalogueSchema =
|
|
20553
|
-
baseTemplateSchema.extend({ mode:
|
|
20700
|
+
var catalogueSchema = z104.array(z104.discriminatedUnion("mode", [
|
|
20701
|
+
baseTemplateSchema.extend({ mode: z104.literal("bounty") }),
|
|
20554
20702
|
baseTemplateSchema.extend({
|
|
20555
|
-
mode:
|
|
20556
|
-
modeDefaults:
|
|
20703
|
+
mode: z104.literal("claim"),
|
|
20704
|
+
modeDefaults: z104.object({ stakeRequired: z104.literal(false), stakeBps: z104.literal("0") }).strict()
|
|
20557
20705
|
}),
|
|
20558
20706
|
baseTemplateSchema.extend({
|
|
20559
|
-
mode:
|
|
20560
|
-
modeDefaults:
|
|
20707
|
+
mode: z104.literal("pitch"),
|
|
20708
|
+
modeDefaults: z104.object({ pitchDeadline: z104.string().regex(/^[1-9]\d*$/) }).strict()
|
|
20561
20709
|
}),
|
|
20562
20710
|
baseTemplateSchema.extend({
|
|
20563
|
-
mode:
|
|
20564
|
-
modeDefaults:
|
|
20565
|
-
metricDescription:
|
|
20566
|
-
metricTarget:
|
|
20711
|
+
mode: z104.literal("benchmark"),
|
|
20712
|
+
modeDefaults: z104.object({
|
|
20713
|
+
metricDescription: z104.string().min(1),
|
|
20714
|
+
metricTarget: z104.string().min(1)
|
|
20567
20715
|
}).strict()
|
|
20568
20716
|
}),
|
|
20569
20717
|
baseTemplateSchema.extend({
|
|
20570
|
-
mode:
|
|
20571
|
-
modeDefaults:
|
|
20572
|
-
auctionType:
|
|
20573
|
-
bidDeadline:
|
|
20718
|
+
mode: z104.literal("auction"),
|
|
20719
|
+
modeDefaults: z104.object({
|
|
20720
|
+
auctionType: z104.enum(["english", "reverse_english"]),
|
|
20721
|
+
bidDeadline: z104.string().regex(/^[1-9]\d*$/)
|
|
20574
20722
|
}).strict()
|
|
20575
20723
|
})
|
|
20576
20724
|
]));
|
|
@@ -20946,6 +21094,12 @@ export {
|
|
|
20946
21094
|
bugReportCommentWriteChange,
|
|
20947
21095
|
bugReportVisibilityWriteChange,
|
|
20948
21096
|
bugReportMeTooWriteChange,
|
|
21097
|
+
LISTING_SUBMISSION_STATUSES,
|
|
21098
|
+
LISTING_SUBMISSION_MAX_BYTES,
|
|
21099
|
+
CatalogSubmissionEntrySchema,
|
|
21100
|
+
findHiddenCharacters,
|
|
21101
|
+
hookListingSubject,
|
|
21102
|
+
listingSubmissionWriteChange,
|
|
20949
21103
|
AGENT_SKILL_REQUEST_BODY_LIMIT_BYTES,
|
|
20950
21104
|
AgentUserSkillBundleWriteSchema,
|
|
20951
21105
|
AgentUserSkillArchiveWriteSchema,
|
|
@@ -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-LOUQO73Y.js";
|
|
5
|
+
import "./chunk-XSYOVYGF.js";
|
|
6
|
+
import "./chunk-3VNJBJSK.js";
|
|
7
|
+
import "./chunk-HF6T5WRD.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-WOQ6DNU2.js";
|
|
20
20
|
import {
|
|
21
21
|
getX402PolicyPath,
|
|
22
22
|
loadX402Policy,
|
|
23
23
|
rpcUrlForNetwork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6JQ7KVVK.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-U6KNPJQ3.js";
|
|
31
|
+
import "./chunk-YGYWUPFH.js";
|
|
32
32
|
import "./chunk-YM4S6IE4.js";
|
|
33
33
|
import {
|
|
34
34
|
AGENT_VIEW_VERSION
|