@playthecut/agent 0.0.0-stage → 0.1.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,79 @@
1
+ import { isAddress } from "viem";
2
+ import { z } from "zod";
3
+ const NAME_MAX_LENGTH = 80;
4
+ const DESCRIPTION_MAX_LENGTH = 2000;
5
+ const hexSchema = z.string().regex(/^0x[0-9a-fA-F]*$/);
6
+ const uintSchema = z.string().regex(/^\d+$/);
7
+ const ethAddress = z.string().regex(/^0x[a-fA-F0-9]{40}$/, "Invalid address");
8
+ const bps = z.number().int().min(0).max(10000);
9
+ export const contestSettingsSchema = z
10
+ .object({
11
+ contestType: z.string().max(32).optional(),
12
+ chainId: z.number().optional(),
13
+ paymentTokenAddress: ethAddress.optional(),
14
+ paymentTokenSymbol: z.string().max(16).optional(),
15
+ operator: ethAddress.optional(),
16
+ expiryTimestamp: z.number().optional(),
17
+ primaryDeposit: z.number().min(0).optional(),
18
+ referralNetworkBps: bps.optional(),
19
+ oracleFeeBps: bps.optional(),
20
+ referralGroupId: z.string().optional(),
21
+ primaryDepositSecondarySubsidyBps: bps.optional(),
22
+ primaryEntryInvestmentShareBps: bps.optional(),
23
+ positionBonusShareBps: bps.optional(),
24
+ targetPrimaryShareBps: bps.optional(),
25
+ maxCrossSubsidyBps: bps.optional(),
26
+ maxPlayers: z.number().int().positive().optional(),
27
+ scoringType: z.enum(["STABLEFORD", "STROKE_PLAY"]).optional(),
28
+ })
29
+ .optional();
30
+ export const userOpSchema = z.object({
31
+ sender: z.string().refine((value) => isAddress(value), "Invalid user operation sender"),
32
+ nonce: uintSchema,
33
+ callData: hexSchema,
34
+ callGasLimit: uintSchema,
35
+ verificationGasLimit: uintSchema,
36
+ preVerificationGas: uintSchema,
37
+ maxFeePerGas: uintSchema,
38
+ maxPriorityFeePerGas: uintSchema,
39
+ paymaster: z.string().optional(),
40
+ paymasterData: hexSchema.optional(),
41
+ paymasterVerificationGasLimit: uintSchema.optional(),
42
+ paymasterPostOpGasLimit: uintSchema.optional(),
43
+ factory: z.string().optional(),
44
+ factoryData: hexSchema.optional(),
45
+ });
46
+ export const playActionSchema = z.object({
47
+ chainId: z.number().int(),
48
+ action: z.enum(["lineupUpsert", "join", "leave"]),
49
+ smartWallet: z.string(),
50
+ contestId: z.string().min(1),
51
+ lineupId: z.string().default(""),
52
+ candidates: z.array(z.string().min(1)).optional(),
53
+ prediction: z.unknown().optional(),
54
+ userOpSignature: hexSchema.optional(),
55
+ userOp: userOpSchema.optional(),
56
+ });
57
+ export const createContestActionSchema = z.object({
58
+ chainId: z.number().int(),
59
+ action: z.literal("createContest"),
60
+ smartWallet: z.string(),
61
+ name: z.string().trim().min(1).max(NAME_MAX_LENGTH),
62
+ description: z.string().max(DESCRIPTION_MAX_LENGTH).optional(),
63
+ eventId: z.string().cuid(),
64
+ userGroupId: z.string().cuid().optional(),
65
+ endDate: z.union([z.string().datetime(), z.number()]),
66
+ settings: contestSettingsSchema,
67
+ notifyLeagueMembers: z.boolean().optional(),
68
+ userOpSignature: hexSchema.optional(),
69
+ userOp: userOpSchema.optional(),
70
+ });
71
+ export const actionSchema = z.discriminatedUnion("action", [
72
+ playActionSchema,
73
+ createContestActionSchema,
74
+ ]);
75
+ export const registerSchema = z.object({
76
+ email: z.string().trim().email("A valid email is required"),
77
+ name: z.string().trim().min(1).max(NAME_MAX_LENGTH).optional(),
78
+ referralCode: z.string().trim().min(1).max(32).optional(),
79
+ });
@@ -0,0 +1,4 @@
1
+ export { createCutAgent, generateDelegateKey, CutAgentError } from "./client.js";
2
+ export type { CreateContestInput, CutAgent, CutAgentOptions, CutChainId, LineupRef, LineupUpsertInput, } from "./client.js";
3
+ export type { BotCandidate, BotContest, ContestCreated, ContestList, LineupResult, RegisteredAgent, } from "./contract.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjF,YAAY,EACV,kBAAkB,EAClB,QAAQ,EACR,eAAe,EACf,UAAU,EACV,SAAS,EACT,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,YAAY,EACZ,UAAU,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,MAAM,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { createCutAgent, generateDelegateKey, CutAgentError } from "./client.js";
package/docs/agents.md ADDED
@@ -0,0 +1,186 @@
1
+ # Agents
2
+
3
+ ## SDK
4
+
5
+ `@playthecut/agent` signs and sends the routes on this page. This page ships as the package README. Install and revoke stay on the Privy session. `generateDelegateKey` returns `{ privateKey, address }`. The address is what the user pastes in Settings. The private key stays with the caller.
6
+
7
+ `createCutAgent({ privateKey, smartWallet, chainId, origin })`. `origin` defaults to `https://playthecut.com`. `chainId` is `8453` or `84532`. Omit `smartWallet` when the signer is the wallet.
8
+
9
+ `contests` lists contests. `lineupUpsert` saves a lineup. `join` and `leave` enter and exit. `register` creates the account. `createContest` deploys a paid contest. `join`, `leave`, and `createContest` sign a prepared user operation and send it on a second request.
10
+
11
+ ```ts
12
+ import { createCutAgent, generateDelegateKey } from "@playthecut/agent";
13
+
14
+ const key = generateDelegateKey();
15
+ const agent = createCutAgent({
16
+ privateKey: key.privateKey,
17
+ smartWallet: "0x…",
18
+ chainId: 8453,
19
+ });
20
+
21
+ const { contests } = await agent.contests();
22
+ const { lineupId } = await agent.lineupUpsert({
23
+ contestId: contests[0].contestId,
24
+ candidates: [contests[0].candidates[0].eventParticipantId],
25
+ });
26
+ await agent.join({ contestId: contests[0].contestId, lineupId });
27
+ ```
28
+
29
+ The account is one wallet. A person signs in with Privy in the browser, installs or revokes a delegate, and can enter a contest from the app. An agent can register that wallet itself and sign the same player routes. The route list is `spec/server/api.md`. This page is how to sign, and how the play actions work.
30
+
31
+ A delegate is a key the user installs on that wallet so another client can act for them. The delegate signs this API. The server may hold the key, or the caller may hold it. Both are the same kind of key.
32
+
33
+ Three ways to sign a contest entry:
34
+
35
+ 1. **The user, in the browser.** The logged-in client signs the chain transaction. These routes do not apply.
36
+ 2. **A delegate the server holds.** The user allows that address in Settings. The server can submit a join or leave while the user is away. Stored as `kind` `cut_bot`.
37
+ 3. **A delegate the caller holds.** The user pastes a public address and approves the same install. That key signs requests and user operations. The private key never comes to Play The Cut. Stored as `kind` `external`.
38
+
39
+ A delegate is a Kernel v3.1 session key on EntryPoint 0.7, installed on the user's wallet. It can submit any call the wallet can. The action API still rejects a join unless `approve` spends the contest deposit to that contest and the next call is `addPrimaryPosition` on the same contest. A key that skips the API is not limited by that check.
40
+
41
+ The user can also sign the HTTP request as the smart wallet. The server checks that signature with ERC-1271. Contest reads and lineup saves need no delegate. Join and leave still go out through an active server-held delegate.
42
+
43
+ ## Authentication
44
+
45
+ Player routes accept a Privy bearer token or an [ERC-8128](https://erc8128.org) signature. `GET /api/bot/contests` and `POST /api/bot/actions` are signature-only. There is no signature field in the query or body. A request that sends both a bearer token and a signature is rejected.
46
+
47
+ Sign with `@slicekit/erc8128` `signRequest`. The signature is Request-Bound and Non-Replayable. `@slicekit/erc8128` covers `@scheme`, `@authority`, `@method`, `@path`, and `@query`, plus `content-digest` and `content-type` when the request has a body. Parameters are `keyid`, `created`, `expires`, `nonce`, and `tag="erc8128"`.
48
+
49
+ A delegate names the account with `smartWallet` in the query, because the signature covers `@query`. When the signer is the wallet, omit that query. `user.address` is the wallet. When `X-Cut-Chain-Id` is present it must match the signature chain.
50
+
51
+ These stay on a Privy session: `POST /api/auth/session`, `POST /api/auth/sync-wallets`, delegate install and revoke, and `/api/admin`. Public sport, event, and field routes stay unsigned. `AGENT` is a player type. It is not staff, so an agent signature on an admin route is rejected and an agent cannot create a public contest.
52
+
53
+ `keyid` is `eip8128:<chainId>:0x<signer>`. The chain is `8453` or `84532` and must equal `chainId` on the request. `created` and `expires` are unix seconds. `expires - created` is at most one hour. `nonce` is a single-use ASCII string of at most 128 bytes. The server stores `(keyid, nonce)` until `expires`.
54
+
55
+ The signer is the delegate address, or the smart wallet when the user signs. A signature over a changed method, path, query, or body is rejected.
56
+
57
+ `server/src/scripts/signBotRequest.ts` signs one contest list and one lineup save:
58
+
59
+ ```
60
+ BOT_DELEGATE_PRIVATE_KEY=0x… SMART_WALLET=0x… pnpm --filter server run script:sign-bot-request
61
+ ```
62
+
63
+ ## Account
64
+
65
+ `POST /api/auth/register` creates the account. The wallet signs. A `smartWallet` query that is not the signer is rejected. Body: `email` (required), optional `name`, optional `referralCode`. A new account is `userType` `AGENT`. Registering the same wallet again returns that account and does not change the email or type. Email already on another account is `EMAIL_ALREADY_BOUND`.
66
+
67
+ Response: `userId`, `email`, `userType`, `name`, `referralCode`, `smartWallet`, `created`. `201` when the account is new, `200` when the wallet already has one.
68
+
69
+ `GET /api/auth/me`, `PUT /api/auth/update`, and `PUT /api/auth/settings` then read and write that account. League routes, lineup save, contest reads, `$0` contest create, and recording a paid contest the caller already deployed are the existing `/api/userGroups`, `/api/lineups`, and `/api/contests` routes with the same signature. Directory and lobby membership for an account with no Privy id uses the Cut user id.
70
+
71
+ ## Contests
72
+
73
+ `GET /api/bot/contests` returns the contests this signer can enter, each with its field.
74
+
75
+ Query: `chainId`, `smartWallet`. Optional `eventId` limits the list to one event.
76
+
77
+ Visibility matches `GET /api/contests`: public contests, plus league contests in leagues the signer's user belongs to.
78
+
79
+ ```json
80
+ {
81
+ "contests": [
82
+ {
83
+ "contestId": "contest id",
84
+ "name": "Contest",
85
+ "eventId": "event id",
86
+ "sportId": "pga-golf",
87
+ "chainId": 8453,
88
+ "status": "OPEN",
89
+ "address": "0x…",
90
+ "userGroupId": null,
91
+ "userGroupName": null,
92
+ "primaryDeposit": 5,
93
+ "endTime": "2026-11-16T00:00:00.000Z",
94
+ "candidates": [
95
+ {
96
+ "eventParticipantId": "id sent back in lineupUpsert",
97
+ "participantId": "stable participant id",
98
+ "displayName": "Name",
99
+ "sortKeys": {},
100
+ "metadata": {}
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ }
106
+ ```
107
+
108
+ Contests on the same event share one candidate pool. `lineupUpsert` sends the chosen `eventParticipantId`s.
109
+
110
+ ## POST /api/bot/actions
111
+
112
+ One signed request does one thing. Save the lineup first. Join and leave use that lineup id and do not change its picks.
113
+
114
+ `candidates` is an ordered array of `eventParticipantId` values. Order is the lineup order. Only `lineupUpsert` sends it. `join` and `leave` omit it.
115
+
116
+ ### 1. lineupUpsert
117
+
118
+ Creates a lineup when `lineupId` is `""`. Updates that lineup when `lineupId` is set. Same picks for the same contest return the existing id. No transaction.
119
+
120
+ ```json
121
+ {
122
+ "chainId": 8453,
123
+ "action": "lineupUpsert",
124
+ "smartWallet": "0x…",
125
+ "contestId": "contest id",
126
+ "lineupId": "",
127
+ "candidates": ["eventParticipantId", "eventParticipantId"],
128
+ "prediction": { "type": "winningLineupTotal", "value": 142 }
129
+ }
130
+ ```
131
+
132
+ `prediction` is optional. Omit it and the server stores a random integer inside that sport's prediction range. For golf the number is the winning-score tiebreaker. Send `{ "type": "winningLineupTotal", "value": 142 }` to choose it. `value` is an integer. A value outside the sport's range is rejected. The HTTP signature covers `prediction` because it covers the body.
133
+
134
+ The response is `{ ok: true, lineupId }`.
135
+
136
+ ### 2. join
137
+
138
+ Open contests only. Requires the `lineupId` from `lineupUpsert`. The server builds `approve` of the contest deposit and `addPrimaryPosition` for that lineup. It does not read `candidates`.
139
+
140
+ A server-held delegate signs the user operation, including when the user signed the HTTP request and that delegate is installed. The response is `{ ok: true, lineupId }`. A user with no active server-held delegate receives `403`.
141
+
142
+ A caller-held delegate omits `userOpSignature` on the first join. The response is `{ preparedUserOp: true, lineupId, userOpHash, userOp }`. Sign `userOpHash` and POST the same body again with `userOpSignature` and that `userOp`. That second request needs its own nonce. The server submits that user operation only when its call data is still the join for this lineup.
143
+
144
+ ### 3. leave
145
+
146
+ Open or cancelled contests. Same request shape as join, with `action` `leave` and the lineup id. The server submits `removePrimaryPosition`. A caller-held delegate uses the same `preparedUserOp` step. A server-held delegate signs leave the same way it signs join.
147
+
148
+ ```json
149
+ {
150
+ "chainId": 8453,
151
+ "action": "join",
152
+ "smartWallet": "0x…",
153
+ "contestId": "contest id",
154
+ "lineupId": "lineup id",
155
+ "userOpSignature": "0x…",
156
+ "userOp": {}
157
+ }
158
+ ```
159
+
160
+ `userOpSignature` and `userOp` are only on the second join or leave of a caller-held delegate. A server-held delegate, and the user signing as the wallet, omit both.
161
+
162
+ `userOpSignature` is the delegate's EIP-191 signature of the raw 32-byte `userOpHash`: `signMessage({ message: { raw: userOpHash } })`. Do not prefix it. The server adds the permission-plugin prefix and submits the returned `userOp` unchanged.
163
+
164
+ ### 4. createContest
165
+
166
+ Paid contest the server deploys. A league admin, or staff, may create one. An `AGENT` creating a public contest is rejected. The body has `name`, `eventId`, `endDate`, and `settings` with `primaryDeposit` greater than zero. Optional `description`, `userGroupId`, and `notifyLeagueMembers`. There is no transaction hash.
167
+
168
+ The server builds `ContestFactory.createContest` and submits it the same way as join: a server-held delegate returns `{ ok: true, contestId, address }`, and a caller-held delegate first receives `{ preparedUserOp: true, userOpHash, userOp }`. A self-registered wallet that sends its own factory transaction records it on `POST /api/contests` instead. A `$0` contest is that same route and stays in the database.
169
+
170
+ A failed join is logged as `error` and does not create an entry. The log stores the action and the time. The lineup, contest entry, and transaction hash stay on their own records.
171
+
172
+ ## Settings
173
+
174
+ `GET /api/bot/delegate-address` returns the public address of the server-held delegate, or `null` when that key is unset. No signature.
175
+
176
+ The signed-in user records an approval with `POST /api/bot/delegates`. Install and revoke use the Privy bearer token. The first approval is the user's enable signature on the wallet. Kernel installs the key and grants `execute` on the first `join` or `leave`. Allowing the same key again after a revoke sends an install transaction:
177
+
178
+ - `kind`: `cut_bot` (the server holds the key) or `external` (the caller holds the key)
179
+ - `delegateAddress`
180
+ - `smartWallet`
181
+ - `approval`: serialized permission account
182
+ - `permissionId`: the 4-byte Kernel permission id
183
+
184
+ `POST /api/bot/delegates/revoke` with `delegateAddress` records the revoke. When the key is already on the wallet, that request follows the on-chain uninstall.
185
+
186
+ `GET /api/bot/delegates` lists the signed-in user's delegates.
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@playthecut/agent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Sign and send Play The Cut agent requests",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./contract": {
14
+ "types": "./dist/contract.d.ts",
15
+ "import": "./dist/contract.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "docs",
21
+ "README.md"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "build": "tsc -p tsconfig.json",
28
+ "prepare": "pnpm run build",
29
+ "test": "vitest run"
30
+ },
31
+ "dependencies": {
32
+ "@slicekit/erc8128": "0.4.1",
33
+ "viem": "^2.47.4",
34
+ "zod": "^3.24.2"
35
+ },
36
+ "devDependencies": {
37
+ "typescript": "^5.7.3",
38
+ "vitest": "^3.0.5"
39
+ }
40
+ }