@malloy-publisher/server 0.9.8 → 0.9.9
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/app/api-doc.yaml +531 -0
- package/dist/app/assets/{EnvironmentPage-1dxk_vne.js → EnvironmentPage-DaNUmaHg.js} +1 -1
- package/dist/app/assets/{HomePage-DOCeWyiv.js → HomePage-CRLoVDIs.js} +1 -1
- package/dist/app/assets/{MainPage-Baqv8q6B.js → MainPage-BsV5UnlK.js} +1 -1
- package/dist/app/assets/{ModelPage-BuMKFY0Q.js → ModelPage-DOOiyJAE.js} +2 -2
- package/dist/app/assets/{PackagePage-DMRAjKE6.js → PackagePage-QHG55rBw.js} +1 -1
- package/dist/app/assets/{RenderedResult-DZj-FnOJ.es-8Pxk7Ln2.js → RenderedResult-BHuJpdSn.es-C37LMpwi.js} +2 -2
- package/dist/app/assets/{RouteError-CXf8Frkp.js → RouteError-ziodz3bt.js} +1 -1
- package/dist/app/assets/ThemeEditorPage-Cs3rIs4e.js +1 -0
- package/dist/app/assets/ToggleButtonGroup-BrygJ1WP.js +1 -0
- package/dist/app/assets/{documentRoutes-B2MDvZ3y.js → documentRoutes-1Qgo5Pvl.js} +1 -1
- package/dist/app/assets/index-BK0mbcyQ.js +483 -0
- package/dist/app/assets/{index-Buv5Qzfs.js → index-Bwc6-9Dc.js} +1 -1
- package/dist/app/assets/{index-CvMqTqVr.js → index-CA5a5gJj.js} +1 -1
- package/dist/app/assets/{index-BuyzVBLU.js → index-CXJpj7He.js} +1 -1
- package/dist/app/assets/{index.es-CECvOvgr.js → index.es-CxcPJdYO.js} +33 -33
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.mjs +23 -24
- package/dist/package_load_worker.mjs +9131 -6901
- package/dist/server.mjs +120365 -119669
- package/package.json +1 -1
- package/dist/app/assets/ThemeEditorPage-BzjDFaw6.js +0 -1
- package/dist/app/assets/ToggleButtonGroup-o0Gqmq5F.js +0 -1
- package/dist/app/assets/index-CDTd6FbM.js +0 -483
package/dist/app/api-doc.yaml
CHANGED
|
@@ -78,6 +78,15 @@ tags:
|
|
|
78
78
|
description:
|
|
79
79
|
In-package HTML data apps (static pages served from a package's public/
|
|
80
80
|
directory)
|
|
81
|
+
- name: skills
|
|
82
|
+
description:
|
|
83
|
+
Agent skills in force for a package - the bundled guides plus the package's
|
|
84
|
+
own `skills/`, with the package's copy replacing a bundled one of the same
|
|
85
|
+
name
|
|
86
|
+
- name: agents
|
|
87
|
+
description:
|
|
88
|
+
Agents a package declares in `publisher.json`, resolved to their
|
|
89
|
+
instructions, skill files and schedules (served, never run)
|
|
81
90
|
- name: databases
|
|
82
91
|
description: Embedded database management and access
|
|
83
92
|
- name: watch-mode
|
|
@@ -2170,6 +2179,288 @@ paths:
|
|
|
2170
2179
|
"503":
|
|
2171
2180
|
$ref: "#/components/responses/ServiceUnavailable"
|
|
2172
2181
|
|
|
2182
|
+
/environments/{environmentName}/packages/{packageName}/skills:
|
|
2183
|
+
get:
|
|
2184
|
+
tags:
|
|
2185
|
+
- skills
|
|
2186
|
+
operationId: list-skills
|
|
2187
|
+
summary: List the agent skills in force for a package
|
|
2188
|
+
description: |
|
|
2189
|
+
Lists the agent skills that apply to this package: the guides bundled
|
|
2190
|
+
with this server, plus any the package ships under `skills/`.
|
|
2191
|
+
|
|
2192
|
+
Resolution is name shadowing. A package skill whose `name` matches a
|
|
2193
|
+
bundled skill REPLACES it for this package; one with a new name is
|
|
2194
|
+
added. Nothing is merged, because the server does not know which guides
|
|
2195
|
+
the calling agent already holds and so cannot patch one. Read `origin`
|
|
2196
|
+
on each entry to tell a replaced skill from the original.
|
|
2197
|
+
|
|
2198
|
+
Bodies are not returned here. Fetch one with
|
|
2199
|
+
`GET .../skills/{skillName}`. An entry whose `name` contains a slash
|
|
2200
|
+
(`<skill>/<stem>`) is a skill's on-demand reference file, addressed by
|
|
2201
|
+
the pointer at the end of its parent's body.
|
|
2202
|
+
|
|
2203
|
+
The REST half of the `get_skill` MCP tool, for callers running
|
|
2204
|
+
unattended.
|
|
2205
|
+
parameters:
|
|
2206
|
+
- name: environmentName
|
|
2207
|
+
in: path
|
|
2208
|
+
description: Name of the environment
|
|
2209
|
+
required: true
|
|
2210
|
+
schema:
|
|
2211
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2212
|
+
- name: packageName
|
|
2213
|
+
in: path
|
|
2214
|
+
description: Name of the package
|
|
2215
|
+
required: true
|
|
2216
|
+
schema:
|
|
2217
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2218
|
+
responses:
|
|
2219
|
+
"200":
|
|
2220
|
+
description: The skills in force for the package
|
|
2221
|
+
content:
|
|
2222
|
+
application/json:
|
|
2223
|
+
schema:
|
|
2224
|
+
type: array
|
|
2225
|
+
items:
|
|
2226
|
+
$ref: "#/components/schemas/SkillSummary"
|
|
2227
|
+
"401":
|
|
2228
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2229
|
+
"404":
|
|
2230
|
+
$ref: "#/components/responses/NotFound"
|
|
2231
|
+
"500":
|
|
2232
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2233
|
+
"503":
|
|
2234
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2235
|
+
|
|
2236
|
+
/environments/{environmentName}/packages/{packageName}/skills/{skillName}:
|
|
2237
|
+
get:
|
|
2238
|
+
tags:
|
|
2239
|
+
- skills
|
|
2240
|
+
operationId: get-skill
|
|
2241
|
+
summary: Get one agent skill, with its body
|
|
2242
|
+
description: |
|
|
2243
|
+
Returns one skill in force for this package, including its full
|
|
2244
|
+
Markdown. `skillName` is a name from the listing, exactly as spelled
|
|
2245
|
+
there; a reference file is addressed as `<skill>/<stem>`. The slash may
|
|
2246
|
+
be sent literally or as `%2F`; a literal `%` in a name must be sent as
|
|
2247
|
+
`%25`.
|
|
2248
|
+
|
|
2249
|
+
404 when no skill of that name is in force.
|
|
2250
|
+
parameters:
|
|
2251
|
+
- name: environmentName
|
|
2252
|
+
in: path
|
|
2253
|
+
description: Name of the environment
|
|
2254
|
+
required: true
|
|
2255
|
+
schema:
|
|
2256
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2257
|
+
- name: packageName
|
|
2258
|
+
in: path
|
|
2259
|
+
description: Name of the package
|
|
2260
|
+
required: true
|
|
2261
|
+
schema:
|
|
2262
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2263
|
+
- name: skillName
|
|
2264
|
+
in: path
|
|
2265
|
+
description: >-
|
|
2266
|
+
Skill name as returned by the listing. A reference file is
|
|
2267
|
+
`<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
2268
|
+
required: true
|
|
2269
|
+
schema:
|
|
2270
|
+
type: string
|
|
2271
|
+
responses:
|
|
2272
|
+
"200":
|
|
2273
|
+
description: The skill and its body
|
|
2274
|
+
content:
|
|
2275
|
+
application/json:
|
|
2276
|
+
schema:
|
|
2277
|
+
$ref: "#/components/schemas/Skill"
|
|
2278
|
+
"401":
|
|
2279
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2280
|
+
"404":
|
|
2281
|
+
$ref: "#/components/responses/NotFound"
|
|
2282
|
+
"500":
|
|
2283
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2284
|
+
"503":
|
|
2285
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2286
|
+
|
|
2287
|
+
/environments/{environmentName}/packages/{packageName}/agents:
|
|
2288
|
+
get:
|
|
2289
|
+
tags:
|
|
2290
|
+
- agents
|
|
2291
|
+
operationId: list-agents
|
|
2292
|
+
summary: List the agents a package declares
|
|
2293
|
+
description: |
|
|
2294
|
+
Lists the agents declared under `agents` in the package's
|
|
2295
|
+
`publisher.json` that passed validation, without instructions or
|
|
2296
|
+
skills. An agent that failed validation is not listed; the package's
|
|
2297
|
+
`warnings` say why. Empty when the manifest declares none.
|
|
2298
|
+
|
|
2299
|
+
The REST half of the `get_agent` MCP tool.
|
|
2300
|
+
parameters:
|
|
2301
|
+
- name: environmentName
|
|
2302
|
+
in: path
|
|
2303
|
+
description: Name of the environment
|
|
2304
|
+
required: true
|
|
2305
|
+
schema:
|
|
2306
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2307
|
+
- name: packageName
|
|
2308
|
+
in: path
|
|
2309
|
+
description: Name of the package
|
|
2310
|
+
required: true
|
|
2311
|
+
schema:
|
|
2312
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2313
|
+
responses:
|
|
2314
|
+
"200":
|
|
2315
|
+
description: The agents the package declares
|
|
2316
|
+
content:
|
|
2317
|
+
application/json:
|
|
2318
|
+
schema:
|
|
2319
|
+
type: array
|
|
2320
|
+
items:
|
|
2321
|
+
$ref: "#/components/schemas/AgentSummary"
|
|
2322
|
+
"401":
|
|
2323
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2324
|
+
"404":
|
|
2325
|
+
$ref: "#/components/responses/NotFound"
|
|
2326
|
+
"500":
|
|
2327
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2328
|
+
"503":
|
|
2329
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2330
|
+
|
|
2331
|
+
/environments/{environmentName}/packages/{packageName}/agents/{agentName}:
|
|
2332
|
+
get:
|
|
2333
|
+
tags:
|
|
2334
|
+
- agents
|
|
2335
|
+
operationId: get-agent
|
|
2336
|
+
summary: Get one agent, resolved
|
|
2337
|
+
description: |
|
|
2338
|
+
Returns one agent with its instructions, its own skill files and each
|
|
2339
|
+
schedule's task text, plus `source`, which pins the package load and the
|
|
2340
|
+
agent's own content so a runner can prove which bytes ran. Publisher
|
|
2341
|
+
serves the definition and runs nothing: the caller's own harness
|
|
2342
|
+
executes it, and schedules are never fired by the server.
|
|
2343
|
+
|
|
2344
|
+
404 when no agent of that name is served.
|
|
2345
|
+
parameters:
|
|
2346
|
+
- name: environmentName
|
|
2347
|
+
in: path
|
|
2348
|
+
description: Name of the environment
|
|
2349
|
+
required: true
|
|
2350
|
+
schema:
|
|
2351
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2352
|
+
- name: packageName
|
|
2353
|
+
in: path
|
|
2354
|
+
description: Name of the package
|
|
2355
|
+
required: true
|
|
2356
|
+
schema:
|
|
2357
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2358
|
+
- name: agentName
|
|
2359
|
+
in: path
|
|
2360
|
+
description: >-
|
|
2361
|
+
Agent name as returned by the listing. Names are 1-64 lowercase
|
|
2362
|
+
letters, digits and single hyphens; any other value is a 404, not a
|
|
2363
|
+
400.
|
|
2364
|
+
required: true
|
|
2365
|
+
schema:
|
|
2366
|
+
type: string
|
|
2367
|
+
pattern: "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
2368
|
+
maxLength: 64
|
|
2369
|
+
- name: skills
|
|
2370
|
+
in: query
|
|
2371
|
+
description: >-
|
|
2372
|
+
`full` (the default) returns every skill file with its text.
|
|
2373
|
+
`summary` returns each file's `relative_filepath` and `bytes`, plus
|
|
2374
|
+
`name` and `description` for a `SKILL.md`, and no `file_contents`;
|
|
2375
|
+
fetch a file with `GET .../agents/{agentName}/skills/{path}`. The
|
|
2376
|
+
`source` pin is identical in both. Any other value, including an
|
|
2377
|
+
empty one, is a 400.
|
|
2378
|
+
required: false
|
|
2379
|
+
schema:
|
|
2380
|
+
type: string
|
|
2381
|
+
enum: [full, summary]
|
|
2382
|
+
default: full
|
|
2383
|
+
responses:
|
|
2384
|
+
"200":
|
|
2385
|
+
description: The resolved agent
|
|
2386
|
+
content:
|
|
2387
|
+
application/json:
|
|
2388
|
+
schema:
|
|
2389
|
+
$ref: "#/components/schemas/Agent"
|
|
2390
|
+
"400":
|
|
2391
|
+
$ref: "#/components/responses/BadRequest"
|
|
2392
|
+
"401":
|
|
2393
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2394
|
+
"404":
|
|
2395
|
+
$ref: "#/components/responses/NotFound"
|
|
2396
|
+
"500":
|
|
2397
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2398
|
+
"503":
|
|
2399
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2400
|
+
|
|
2401
|
+
/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}:
|
|
2402
|
+
get:
|
|
2403
|
+
tags:
|
|
2404
|
+
- agents
|
|
2405
|
+
operationId: get-agent-skill-file
|
|
2406
|
+
summary: Get one of an agent's skill files
|
|
2407
|
+
description: |
|
|
2408
|
+
Returns one file from the agent's resolved skill set, named by a
|
|
2409
|
+
`relative_filepath` from `GET .../agents/{agentName}?skills=summary`
|
|
2410
|
+
(for example `analyst-conventions/SKILL.md`), with the same `source`
|
|
2411
|
+
pin as the full definition. The path is looked up in the resolved set,
|
|
2412
|
+
never joined onto the filesystem.
|
|
2413
|
+
|
|
2414
|
+
404 when the agent or the file is not served.
|
|
2415
|
+
parameters:
|
|
2416
|
+
- name: environmentName
|
|
2417
|
+
in: path
|
|
2418
|
+
description: Name of the environment
|
|
2419
|
+
required: true
|
|
2420
|
+
schema:
|
|
2421
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2422
|
+
- name: packageName
|
|
2423
|
+
in: path
|
|
2424
|
+
description: Name of the package
|
|
2425
|
+
required: true
|
|
2426
|
+
schema:
|
|
2427
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
2428
|
+
- name: agentName
|
|
2429
|
+
in: path
|
|
2430
|
+
description: >-
|
|
2431
|
+
Agent name as returned by the listing. Names are 1-64 lowercase
|
|
2432
|
+
letters, digits and single hyphens; any other value is a 404, not a
|
|
2433
|
+
400.
|
|
2434
|
+
required: true
|
|
2435
|
+
schema:
|
|
2436
|
+
type: string
|
|
2437
|
+
pattern: "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
2438
|
+
maxLength: 64
|
|
2439
|
+
- name: relativeFilepath
|
|
2440
|
+
in: path
|
|
2441
|
+
description: >-
|
|
2442
|
+
A `relative_filepath` from the agent's skill summary. Slashes may be
|
|
2443
|
+
sent literally or as `%2F`; a literal `%` in a name must be sent as
|
|
2444
|
+
`%25`.
|
|
2445
|
+
required: true
|
|
2446
|
+
schema:
|
|
2447
|
+
type: string
|
|
2448
|
+
responses:
|
|
2449
|
+
"200":
|
|
2450
|
+
description: The skill file
|
|
2451
|
+
content:
|
|
2452
|
+
application/json:
|
|
2453
|
+
schema:
|
|
2454
|
+
$ref: "#/components/schemas/AgentSkillRead"
|
|
2455
|
+
"401":
|
|
2456
|
+
$ref: "#/components/responses/Unauthorized"
|
|
2457
|
+
"404":
|
|
2458
|
+
$ref: "#/components/responses/NotFound"
|
|
2459
|
+
"500":
|
|
2460
|
+
$ref: "#/components/responses/InternalServerError"
|
|
2461
|
+
"503":
|
|
2462
|
+
$ref: "#/components/responses/ServiceUnavailable"
|
|
2463
|
+
|
|
2173
2464
|
# ── DEPRECATED ──────────────────────────────────────────────────────────
|
|
2174
2465
|
# The `…/dashboards*` and `…/notebooks*` routes, kept for clients that still
|
|
2175
2466
|
# read them, until a later release removes them. Use `…/reports*` above.
|
|
@@ -3686,6 +3977,14 @@ components:
|
|
|
3686
3977
|
`grid` or `linear`). The rest are `warn` (a mistyped `(markdown)`
|
|
3687
3978
|
opener, `report-layout-implicit` for a tag that names no layout and lists
|
|
3688
3979
|
no tiles, a block that never closes, and similar).
|
|
3980
|
+
Skill and agent findings, all `warn`: a package skill under
|
|
3981
|
+
`skills/` that is not served (unreadable or linked-out `SKILL.md`,
|
|
3982
|
+
a frontmatter `name` that is not its directory name, a `skills/`
|
|
3983
|
+
directory that links out of the package) or served with a gap (no
|
|
3984
|
+
`description`, a `reference/` that cannot be listed or read); and
|
|
3985
|
+
each agent the manifest declares that is not served, or is served
|
|
3986
|
+
with a finding (an agent skill with no `description`, a skills
|
|
3987
|
+
directory with no skills, an unreadable reference).
|
|
3689
3988
|
Deprecated-format findings, all `warn`: each `.malloynb` notebook
|
|
3690
3989
|
(`model` is its path), and each source a file declares deprecated
|
|
3691
3990
|
`#(filter)` annotations on (`model` is that file, `subject` the
|
|
@@ -4128,6 +4427,238 @@ components:
|
|
|
4128
4427
|
discovery index, which is what `get_context` ranks against
|
|
4129
4428
|
when an embedding provider is configured. `status: lexical` when
|
|
4130
4429
|
the server has no provider, because there is no index to describe.
|
|
4430
|
+
servedRevision:
|
|
4431
|
+
type: string
|
|
4432
|
+
readOnly: true
|
|
4433
|
+
description: >-
|
|
4434
|
+
Server-computed, read-only: an identifier for the load that produced
|
|
4435
|
+
what this package is currently serving. Minted fresh per load, so
|
|
4436
|
+
two loads of byte-identical files carry different revisions. Use it
|
|
4437
|
+
to tell one load from another, NOT to tell whether content changed:
|
|
4438
|
+
it moves on every reload regardless. `sourceContentSha` answers that.
|
|
4439
|
+
sourceContentSha:
|
|
4440
|
+
type: string
|
|
4441
|
+
readOnly: true
|
|
4442
|
+
description: >-
|
|
4443
|
+
Server-computed, read-only: SHA-256 over the package-relative path
|
|
4444
|
+
and bytes of every file the package is serving: each model file,
|
|
4445
|
+
each package skill file under `skills/`, and, when the manifest
|
|
4446
|
+
declares `agents`, the canonical form of that `agents` object plus
|
|
4447
|
+
every instructions, task and skill file those agents read.
|
|
4448
|
+
|
|
4449
|
+
This is the reload receipt. Publisher serves a COPY of a package
|
|
4450
|
+
under `publisher_data/<env>/<pkg>/` unless the environment was
|
|
4451
|
+
started with `--watch-env`, so an edit to the original source
|
|
4452
|
+
directory reaches nothing and the reload still reports success.
|
|
4453
|
+
Comparing this value across a reload is what distinguishes "the
|
|
4454
|
+
server recompiled my edit" from "the server recompiled the same
|
|
4455
|
+
bytes it already had".
|
|
4456
|
+
|
|
4457
|
+
It covers EVERY model path in the package, so an edit to an imported
|
|
4458
|
+
file moves it where a hash of one model path would not. It covers
|
|
4459
|
+
nothing outside the list above: a data file, a `public/` asset, a
|
|
4460
|
+
`version` bump or any other key in publisher.json (`retrieval`,
|
|
4461
|
+
`explores`, `queryableSources`, `scope`) all leave it unchanged,
|
|
4462
|
+
although some of those do change what is served. An unchanged value
|
|
4463
|
+
therefore proves an edit to a hashed file did not reach the served
|
|
4464
|
+
copy, and says nothing about an edit to anything else.
|
|
4465
|
+
agents:
|
|
4466
|
+
type: array
|
|
4467
|
+
readOnly: true
|
|
4468
|
+
description: >-
|
|
4469
|
+
Server-computed, read-only: the agents this package's
|
|
4470
|
+
`publisher.json` declares and the server accepted, without their
|
|
4471
|
+
instructions. Absent when the manifest declares no `agents`. An
|
|
4472
|
+
agent that failed validation is left out and named in `warnings`.
|
|
4473
|
+
Fetch one with `GET .../agents/{agentName}`.
|
|
4474
|
+
items:
|
|
4475
|
+
$ref: "#/components/schemas/AgentSummary"
|
|
4476
|
+
|
|
4477
|
+
AgentSchedule:
|
|
4478
|
+
type: object
|
|
4479
|
+
readOnly: true
|
|
4480
|
+
description: >-
|
|
4481
|
+
A cron schedule an agent declares. Validated and exposed only: the
|
|
4482
|
+
server never runs it.
|
|
4483
|
+
properties:
|
|
4484
|
+
cron:
|
|
4485
|
+
type: string
|
|
4486
|
+
description: A 5-field UNIX cron expression, evaluated in UTC.
|
|
4487
|
+
task:
|
|
4488
|
+
type: string
|
|
4489
|
+
description: Package-relative path of the task file, as written in the manifest.
|
|
4490
|
+
taskContent:
|
|
4491
|
+
type: string
|
|
4492
|
+
description: >-
|
|
4493
|
+
The task file's Markdown. Only on the resolved agent, not the
|
|
4494
|
+
listing.
|
|
4495
|
+
|
|
4496
|
+
AgentSummary:
|
|
4497
|
+
type: object
|
|
4498
|
+
readOnly: true
|
|
4499
|
+
description: One agent a package declares, without its instructions or skills.
|
|
4500
|
+
properties:
|
|
4501
|
+
name:
|
|
4502
|
+
type: string
|
|
4503
|
+
description: The agent's name (its key in the manifest's `agents` object).
|
|
4504
|
+
description:
|
|
4505
|
+
type: string
|
|
4506
|
+
model:
|
|
4507
|
+
type: string
|
|
4508
|
+
description: The model the agent asks for; `inherit` when the manifest sets none.
|
|
4509
|
+
schedules:
|
|
4510
|
+
type: array
|
|
4511
|
+
items:
|
|
4512
|
+
$ref: "#/components/schemas/AgentSchedule"
|
|
4513
|
+
|
|
4514
|
+
AgentSkillFile:
|
|
4515
|
+
type: object
|
|
4516
|
+
readOnly: true
|
|
4517
|
+
description: >-
|
|
4518
|
+
One of an agent's skill files. The snake_case keys
|
|
4519
|
+
(`relative_filepath`, `file_contents`) mirror the MCP `get_agent` tool
|
|
4520
|
+
the shape is shared with, unlike the camelCase used elsewhere in this
|
|
4521
|
+
API.
|
|
4522
|
+
properties:
|
|
4523
|
+
relative_filepath:
|
|
4524
|
+
type: string
|
|
4525
|
+
description: >-
|
|
4526
|
+
Path relative to the agent's skills directory, for example
|
|
4527
|
+
`analyst-conventions/SKILL.md` or
|
|
4528
|
+
`analyst-conventions/reference/glossary.md`.
|
|
4529
|
+
file_contents:
|
|
4530
|
+
type: string
|
|
4531
|
+
description: >-
|
|
4532
|
+
A `SKILL.md` is re-emitted with only a quoted `name` and
|
|
4533
|
+
`description` in its frontmatter; reference files are served raw.
|
|
4534
|
+
Absent when the agent was fetched with `skills=summary`.
|
|
4535
|
+
name:
|
|
4536
|
+
type: string
|
|
4537
|
+
description: A `SKILL.md`'s name. Only in the `skills=summary` view.
|
|
4538
|
+
description:
|
|
4539
|
+
type: string
|
|
4540
|
+
description: A `SKILL.md`'s description. Only in the `skills=summary` view.
|
|
4541
|
+
bytes:
|
|
4542
|
+
type: integer
|
|
4543
|
+
description: Size of `file_contents` in UTF-8 bytes. Only in the `skills=summary` view.
|
|
4544
|
+
|
|
4545
|
+
AgentSkillRead:
|
|
4546
|
+
type: object
|
|
4547
|
+
readOnly: true
|
|
4548
|
+
description: One agent skill file, with the pin of the definition it belongs to.
|
|
4549
|
+
properties:
|
|
4550
|
+
relative_filepath:
|
|
4551
|
+
type: string
|
|
4552
|
+
file_contents:
|
|
4553
|
+
type: string
|
|
4554
|
+
source:
|
|
4555
|
+
$ref: "#/components/schemas/AgentSource"
|
|
4556
|
+
|
|
4557
|
+
AgentSource:
|
|
4558
|
+
type: object
|
|
4559
|
+
readOnly: true
|
|
4560
|
+
description: What a resolved agent was read from, so a runner can prove which bytes ran.
|
|
4561
|
+
properties:
|
|
4562
|
+
environment:
|
|
4563
|
+
type: string
|
|
4564
|
+
package:
|
|
4565
|
+
type: string
|
|
4566
|
+
sourceContentSha:
|
|
4567
|
+
type: string
|
|
4568
|
+
description: The package's `sourceContentSha` at the load this definition came from.
|
|
4569
|
+
definitionSha:
|
|
4570
|
+
type: string
|
|
4571
|
+
description: >-
|
|
4572
|
+
SHA-256 over this agent's canonical config, instructions, skill
|
|
4573
|
+
files and task files. Editing another agent, or a model, does not
|
|
4574
|
+
move it.
|
|
4575
|
+
servedRevision:
|
|
4576
|
+
type: string
|
|
4577
|
+
description: The package's `servedRevision` at the load this definition came from.
|
|
4578
|
+
|
|
4579
|
+
Agent:
|
|
4580
|
+
type: object
|
|
4581
|
+
readOnly: true
|
|
4582
|
+
description: >-
|
|
4583
|
+
An agent a package declares, resolved to its instructions, skill files
|
|
4584
|
+
and schedules. Adopt it only when the user asks for it by name.
|
|
4585
|
+
properties:
|
|
4586
|
+
name:
|
|
4587
|
+
type: string
|
|
4588
|
+
description:
|
|
4589
|
+
type: string
|
|
4590
|
+
model:
|
|
4591
|
+
type: string
|
|
4592
|
+
description: The model the agent asks for; `inherit` when the manifest sets none.
|
|
4593
|
+
instructions:
|
|
4594
|
+
type: string
|
|
4595
|
+
description: The instructions file's Markdown, at most 16 KB.
|
|
4596
|
+
skills:
|
|
4597
|
+
type: array
|
|
4598
|
+
description: The agent's own skill files, sorted by `relative_filepath`.
|
|
4599
|
+
items:
|
|
4600
|
+
$ref: "#/components/schemas/AgentSkillFile"
|
|
4601
|
+
schedules:
|
|
4602
|
+
type: array
|
|
4603
|
+
items:
|
|
4604
|
+
$ref: "#/components/schemas/AgentSchedule"
|
|
4605
|
+
warnings:
|
|
4606
|
+
type: array
|
|
4607
|
+
items:
|
|
4608
|
+
type: string
|
|
4609
|
+
source:
|
|
4610
|
+
$ref: "#/components/schemas/AgentSource"
|
|
4611
|
+
|
|
4612
|
+
SkillSummary:
|
|
4613
|
+
type: object
|
|
4614
|
+
readOnly: true
|
|
4615
|
+
description: >-
|
|
4616
|
+
One agent skill in force for a package, without its body. This is what
|
|
4617
|
+
a caller reads to decide which skill to fetch.
|
|
4618
|
+
properties:
|
|
4619
|
+
name:
|
|
4620
|
+
type: string
|
|
4621
|
+
description: >-
|
|
4622
|
+
The skill's name, and the identifier for fetching it. A name
|
|
4623
|
+
containing a slash (`<skill>/<stem>`) is one skill's on-demand
|
|
4624
|
+
reference file rather than a skill in its own right.
|
|
4625
|
+
description:
|
|
4626
|
+
type: string
|
|
4627
|
+
description: >-
|
|
4628
|
+
One line saying when to read this skill. Empty when the package
|
|
4629
|
+
author omitted it, which is also reported as a package warning.
|
|
4630
|
+
origin:
|
|
4631
|
+
type: string
|
|
4632
|
+
enum:
|
|
4633
|
+
- bundled
|
|
4634
|
+
- package
|
|
4635
|
+
description: >-
|
|
4636
|
+
`bundled` = shipped with this server. `package` = shipped by the
|
|
4637
|
+
package under `skills/`, which includes a package skill whose name
|
|
4638
|
+
matches a bundled one and therefore REPLACES it for this package.
|
|
4639
|
+
Present so a caller can tell a replaced skill from the original,
|
|
4640
|
+
which is otherwise invisible.
|
|
4641
|
+
|
|
4642
|
+
Skill:
|
|
4643
|
+
type: object
|
|
4644
|
+
readOnly: true
|
|
4645
|
+
description: An agent skill with its full Markdown body.
|
|
4646
|
+
properties:
|
|
4647
|
+
name:
|
|
4648
|
+
type: string
|
|
4649
|
+
description: The skill's name.
|
|
4650
|
+
description:
|
|
4651
|
+
type: string
|
|
4652
|
+
description: One line saying when to read this skill.
|
|
4653
|
+
content:
|
|
4654
|
+
type: string
|
|
4655
|
+
description: The skill's full guidance, Markdown.
|
|
4656
|
+
origin:
|
|
4657
|
+
type: string
|
|
4658
|
+
enum:
|
|
4659
|
+
- bundled
|
|
4660
|
+
- package
|
|
4661
|
+
description: Where this skill came from. See SkillSummary.origin.
|
|
4131
4662
|
|
|
4132
4663
|
PackageEmbeddingIndex:
|
|
4133
4664
|
type: object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as r,D as t,j as e,ab as i,ax as o}from"./index-BK0mbcyQ.js";function m(){const s=r(),{environmentName:n}=t();if(n){const a=i({environmentName:n});return e.jsx(o,{onSelectPackage:s,resourceUri:a})}else return e.jsx("div",{children:e.jsx("h2",{children:"Missing environment name"})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as t,j as o,A as a}from"./index-BK0mbcyQ.js";function s(){const n=t();return o.jsx(a,{onClickEnvironment:n})}export{s as default};
|