@0xinsider/mcp 3.9.0 → 3.10.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/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/product-cli/index.d.ts.map +1 -1
- package/dist/product-cli/index.js +2 -0
- package/dist/product-cli/index.js.map +1 -1
- package/dist/product-cli/operations.js +1 -1
- package/dist/product-cli/operations.js.map +1 -1
- package/dist/sdk/client.d.ts +9 -0
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/client.js +11 -0
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/schema.d.ts +8 -2
- package/dist/sdk/schema.d.ts.map +1 -1
- package/dist/tools/pick-of-the-day.d.ts.map +1 -1
- package/dist/tools/pick-of-the-day.js +21 -11
- package/dist/tools/pick-of-the-day.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pick-of-the-day.d.ts","sourceRoot":"","sources":["../../src/tools/pick-of-the-day.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"pick-of-the-day.d.ts","sourceRoot":"","sources":["../../src/tools/pick-of-the-day.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBzC,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAmClF;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAsBzF;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAsBvF;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAoB7F"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { fail, ok, withMeta } from "./result.js";
|
|
3
|
-
// Pick of the Day over stdio (#10657).
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// scripts/mcp-catalog-parity.mjs
|
|
3
|
+
// Pick of the Day over stdio (#10657). The pick takes an optional past `date`
|
|
4
|
+
// (#32381); the archive and stats are argument-free. Each read mirrors the
|
|
5
|
+
// remote entries in backend/src/mcp/tools/contract.rs; the description text
|
|
6
|
+
// is kept in step with that file by hand, and scripts/mcp-catalog-parity.mjs
|
|
7
|
+
// proves the two tool lists match.
|
|
7
8
|
//
|
|
8
9
|
// The pre-release 404 (error.reason pick_not_released) and its retry_at reach the
|
|
9
10
|
// agent through ApiClient.decodeResponse, which already appends the Retry-After
|
|
@@ -17,20 +18,29 @@ const readAnnotations = {
|
|
|
17
18
|
export function registerGetPickOfTheDay(server, client) {
|
|
18
19
|
server.registerTool("get_pick_of_the_day", {
|
|
19
20
|
title: "Get Pick of the Day",
|
|
20
|
-
description: `Get
|
|
21
|
+
description: `Get the published Pick of the Day selections for today, or for a past product day with \`date\`, and their recorded facts. Pro opens five selections in total: the explicitly designated free selection plus the first four non-free selections in publication order. Max opens every available daily selection, up to twenty-five. Read entitled \`picks\` in \`publication_order\` order; use stable decimal-string \`pick_id\` for identity, not deprecated \`pick_rank\`. \`is_free_selection\` designates account access; \`supersedes_pick_id\` is deprecated and always null. \`locked_picks\` lists extra unresolved slots with only pick_rank and required_tier=max; game identity, identifying clocks and backed facts are omitted. Each full pick carries the matchup, backed side (pick_outcome_label), recorded publication price and return on the flat $1,000 stake (\`stake_usd\`, \`return_usd\`; \`return_per_100\` keeps the literal $100 basis), available holder facts, top grade, CLV capture status and backend-provided thesis. \`scheduled_picks\` contains entitled scheduled slots with release_at and kickoff; unauthorized slots appear in identity-free locked_picks instead. No market identity is revealed before publication. Withdrawn picks are omitted from current and dated recommendations, the archive and its statistics, even after market settlement. The public ledger retains every published commitment under its original identity and proof bytes.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
With \`date\`, the tool reads that past day's slate as the dated web page shows it, under the same tier rule, with no scheduled_picks. A past day with no published pick returns not_found with param date; a past day does not change, so do not retry it. A date after today is a bad_request.
|
|
24
|
+
|
|
25
|
+
For today, when no active pick is available, the tool returns reason pick_not_released and retry_at. Schedule the next read from the returned retry guidance or an entitled scheduled slot's release_at instead of polling. An entitled published pick whose holder proof is not readable appears in \`proof_pending_picks\` (pick_rank, release_at, kickoff, retry_at), while \`picks\` contains readable picks. The tool returns read_model_warming only when no entitled published pick has readable proof. If only Max-locked selections have published, a successful state=none response carries picks=[], pick_count=0, locked_picks and an upgrade action.
|
|
23
26
|
|
|
24
27
|
For automated entry, require a present, matching, unexpired entry_authorization. Honor its returned max_entry_price and expires_at, quote a current executable book for the actual stake and retain any stricter local limits. Fees are separate; authorization guarantees neither liquidity nor execution.
|
|
25
28
|
|
|
26
|
-
Args:
|
|
29
|
+
Args:
|
|
30
|
+
- date (string, optional): Product day (America/New_York) in YYYY-MM-DD format, on or before today; omit for today's slate
|
|
27
31
|
|
|
28
|
-
Returns: The published pick set for the current product day (America/New_York),
|
|
29
|
-
inputSchema: z.object({
|
|
32
|
+
Returns: The published pick set for the current or requested product day (America/New_York); for today, a pick_not_released error with retry_at before the first pick publishes.`,
|
|
33
|
+
inputSchema: z.object({
|
|
34
|
+
date: z
|
|
35
|
+
.string()
|
|
36
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/)
|
|
37
|
+
.optional()
|
|
38
|
+
.describe("Product day (America/New_York) in YYYY-MM-DD format, on or before today; omit for today's slate"),
|
|
39
|
+
}),
|
|
30
40
|
annotations: readAnnotations,
|
|
31
|
-
}, async (
|
|
41
|
+
}, async ({ date }, ctx) => {
|
|
32
42
|
try {
|
|
33
|
-
const response = await client.request("/api/v1/pick-of-the-day",
|
|
43
|
+
const response = await client.request("/api/v1/pick-of-the-day", { date }, undefined, { signal: ctx.mcpReq.signal });
|
|
34
44
|
return ok(withMeta(response.data, response.meta));
|
|
35
45
|
}
|
|
36
46
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pick-of-the-day.js","sourceRoot":"","sources":["../../src/tools/pick-of-the-day.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"pick-of-the-day.js","sourceRoot":"","sources":["../../src/tools/pick-of-the-day.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,8EAA8E;AAC9E,2EAA2E;AAC3E,4EAA4E;AAC5E,6EAA6E;AAC7E,mCAAmC;AACnC,EAAE;AACF,kFAAkF;AAClF,gFAAgF;AAChF,+DAA+D;AAE/D,MAAM,eAAe,GAAG;IACtB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,MAAM,UAAU,uBAAuB,CAAC,MAAiB,EAAE,MAAiB;IAC1E,MAAM,CAAC,YAAY,CACjB,qBAAqB,EACrB;QACE,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE;;;;;;;;;;;iLAW8J;QAC3K,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,IAAI,EAAE,CAAC;iBACJ,MAAM,EAAE;iBACR,KAAK,CAAC,qBAAqB,C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