@malloy-publisher/sdk 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/{RenderedResult-DZj-FnOJ.es.js → RenderedResult-BHuJpdSn.es.js} +2 -2
- package/dist/{RenderedResult-BrvrMDAP.cjs.js → RenderedResult-Bw7EQc42.cjs.js} +1 -1
- package/dist/ServerProvider-B0dUY8be.cjs.js +1 -0
- package/dist/{ServerProvider-B_bPAsu2.es.js → ServerProvider-CQy4jVYK.es.js} +1394 -1051
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +412 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +125 -114
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -3
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +2112 -2063
- package/dist/{useCompiledDocument-x0B2RAH3.es.js → useCompiledDocument-1dgF5CC9.es.js} +2 -2
- package/dist/{useCompiledDocument-oocN5cGE.cjs.js → useCompiledDocument-BKyRnXmA.cjs.js} +2 -2
- package/package.json +1 -1
- package/src/components/Package/ContentTypeIcon.tsx +16 -3
- package/src/components/Package/Package.agents.spec.tsx +76 -0
- package/src/components/Package/Package.tsx +44 -1
- package/dist/ServerProvider-DuEOzwPc.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -1,6 +1,112 @@
|
|
|
1
1
|
import { Configuration } from './configuration';
|
|
2
2
|
import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
import { RequestArgs, BaseAPI } from './base';
|
|
4
|
+
/**
|
|
5
|
+
* An agent a package declares, resolved to its instructions, skill files and schedules. Adopt it only when the user asks for it by name.
|
|
6
|
+
*/
|
|
7
|
+
export interface Agent {
|
|
8
|
+
'name'?: string;
|
|
9
|
+
'description'?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The model the agent asks for; `inherit` when the manifest sets none.
|
|
12
|
+
*/
|
|
13
|
+
'model'?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The instructions file\'s Markdown, at most 16 KB.
|
|
16
|
+
*/
|
|
17
|
+
'instructions'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The agent\'s own skill files, sorted by `relative_filepath`.
|
|
20
|
+
*/
|
|
21
|
+
'skills'?: Array<AgentSkillFile>;
|
|
22
|
+
'schedules'?: Array<AgentSchedule>;
|
|
23
|
+
'warnings'?: Array<string>;
|
|
24
|
+
'source'?: AgentSource;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A cron schedule an agent declares. Validated and exposed only: the server never runs it.
|
|
28
|
+
*/
|
|
29
|
+
export interface AgentSchedule {
|
|
30
|
+
/**
|
|
31
|
+
* A 5-field UNIX cron expression, evaluated in UTC.
|
|
32
|
+
*/
|
|
33
|
+
'cron'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Package-relative path of the task file, as written in the manifest.
|
|
36
|
+
*/
|
|
37
|
+
'task'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The task file\'s Markdown. Only on the resolved agent, not the listing.
|
|
40
|
+
*/
|
|
41
|
+
'taskContent'?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* One of an agent\'s skill files. The snake_case keys (`relative_filepath`, `file_contents`) mirror the MCP `get_agent` tool the shape is shared with, unlike the camelCase used elsewhere in this API.
|
|
45
|
+
*/
|
|
46
|
+
export interface AgentSkillFile {
|
|
47
|
+
/**
|
|
48
|
+
* Path relative to the agent\'s skills directory, for example `analyst-conventions/SKILL.md` or `analyst-conventions/reference/glossary.md`.
|
|
49
|
+
*/
|
|
50
|
+
'relative_filepath'?: string;
|
|
51
|
+
/**
|
|
52
|
+
* A `SKILL.md` is re-emitted with only a quoted `name` and `description` in its frontmatter; reference files are served raw. Absent when the agent was fetched with `skills=summary`.
|
|
53
|
+
*/
|
|
54
|
+
'file_contents'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* A `SKILL.md`\'s name. Only in the `skills=summary` view.
|
|
57
|
+
*/
|
|
58
|
+
'name'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A `SKILL.md`\'s description. Only in the `skills=summary` view.
|
|
61
|
+
*/
|
|
62
|
+
'description'?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Size of `file_contents` in UTF-8 bytes. Only in the `skills=summary` view.
|
|
65
|
+
*/
|
|
66
|
+
'bytes'?: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* One agent skill file, with the pin of the definition it belongs to.
|
|
70
|
+
*/
|
|
71
|
+
export interface AgentSkillRead {
|
|
72
|
+
'relative_filepath'?: string;
|
|
73
|
+
'file_contents'?: string;
|
|
74
|
+
'source'?: AgentSource;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* What a resolved agent was read from, so a runner can prove which bytes ran.
|
|
78
|
+
*/
|
|
79
|
+
export interface AgentSource {
|
|
80
|
+
'environment'?: string;
|
|
81
|
+
'package'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The package\'s `sourceContentSha` at the load this definition came from.
|
|
84
|
+
*/
|
|
85
|
+
'sourceContentSha'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* SHA-256 over this agent\'s canonical config, instructions, skill files and task files. Editing another agent, or a model, does not move it.
|
|
88
|
+
*/
|
|
89
|
+
'definitionSha'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The package\'s `servedRevision` at the load this definition came from.
|
|
92
|
+
*/
|
|
93
|
+
'servedRevision'?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* One agent a package declares, without its instructions or skills.
|
|
97
|
+
*/
|
|
98
|
+
export interface AgentSummary {
|
|
99
|
+
/**
|
|
100
|
+
* The agent\'s name (its key in the manifest\'s `agents` object).
|
|
101
|
+
*/
|
|
102
|
+
'name'?: string;
|
|
103
|
+
'description'?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The model the agent asks for; `inherit` when the manifest sets none.
|
|
106
|
+
*/
|
|
107
|
+
'model'?: string;
|
|
108
|
+
'schedules'?: Array<AgentSchedule>;
|
|
109
|
+
}
|
|
4
110
|
/**
|
|
5
111
|
* Attached DuckDB database
|
|
6
112
|
*/
|
|
@@ -1551,7 +1657,7 @@ export interface Package {
|
|
|
1551
1657
|
*/
|
|
1552
1658
|
'exploresWarnings'?: Array<string>;
|
|
1553
1659
|
/**
|
|
1554
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, `report-layout-implicit` for a tag that names no layout and lists no tiles, a block that never closes, and similar). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1660
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, `report-layout-implicit` for a tag that names no layout and lists no tiles, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1555
1661
|
*/
|
|
1556
1662
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1557
1663
|
/**
|
|
@@ -1598,6 +1704,18 @@ export interface Package {
|
|
|
1598
1704
|
* Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe.
|
|
1599
1705
|
*/
|
|
1600
1706
|
'embeddingIndex'?: PackageEmbeddingIndex | null;
|
|
1707
|
+
/**
|
|
1708
|
+
* Server-computed, read-only: an identifier for the load that produced what this package is currently serving. Minted fresh per load, so two loads of byte-identical files carry different revisions. Use it to tell one load from another, NOT to tell whether content changed: it moves on every reload regardless. `sourceContentSha` answers that.
|
|
1709
|
+
*/
|
|
1710
|
+
'servedRevision'?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* Server-computed, read-only: SHA-256 over the package-relative path and bytes of every file the package is serving: each model file, each package skill file under `skills/`, and, when the manifest declares `agents`, the canonical form of that `agents` object plus every instructions, task and skill file those agents read. This is the reload receipt. Publisher serves a COPY of a package under `publisher_data/<env>/<pkg>/` unless the environment was started with `--watch-env`, so an edit to the original source directory reaches nothing and the reload still reports success. Comparing this value across a reload is what distinguishes \"the server recompiled my edit\" from \"the server recompiled the same bytes it already had\". It covers EVERY model path in the package, so an edit to an imported file moves it where a hash of one model path would not. It covers nothing outside the list above: a data file, a `public/` asset, a `version` bump or any other key in publisher.json (`retrieval`, `explores`, `queryableSources`, `scope`) all leave it unchanged, although some of those do change what is served. An unchanged value therefore proves an edit to a hashed file did not reach the served copy, and says nothing about an edit to anything else.
|
|
1713
|
+
*/
|
|
1714
|
+
'sourceContentSha'?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
1717
|
+
*/
|
|
1718
|
+
'agents'?: Array<AgentSummary>;
|
|
1601
1719
|
}
|
|
1602
1720
|
export declare const PackageScopeEnum: {
|
|
1603
1721
|
readonly Version: "version";
|
|
@@ -2623,6 +2741,54 @@ export interface ServerStatusLoadErrorsInner {
|
|
|
2623
2741
|
*/
|
|
2624
2742
|
'failedAt'?: string;
|
|
2625
2743
|
}
|
|
2744
|
+
/**
|
|
2745
|
+
* An agent skill with its full Markdown body.
|
|
2746
|
+
*/
|
|
2747
|
+
export interface Skill {
|
|
2748
|
+
/**
|
|
2749
|
+
* The skill\'s name.
|
|
2750
|
+
*/
|
|
2751
|
+
'name'?: string;
|
|
2752
|
+
/**
|
|
2753
|
+
* One line saying when to read this skill.
|
|
2754
|
+
*/
|
|
2755
|
+
'description'?: string;
|
|
2756
|
+
/**
|
|
2757
|
+
* The skill\'s full guidance, Markdown.
|
|
2758
|
+
*/
|
|
2759
|
+
'content'?: string;
|
|
2760
|
+
/**
|
|
2761
|
+
* Where this skill came from. See SkillSummary.origin.
|
|
2762
|
+
*/
|
|
2763
|
+
'origin'?: SkillOriginEnum;
|
|
2764
|
+
}
|
|
2765
|
+
export declare const SkillOriginEnum: {
|
|
2766
|
+
readonly Bundled: "bundled";
|
|
2767
|
+
readonly Package: "package";
|
|
2768
|
+
};
|
|
2769
|
+
export type SkillOriginEnum = typeof SkillOriginEnum[keyof typeof SkillOriginEnum];
|
|
2770
|
+
/**
|
|
2771
|
+
* One agent skill in force for a package, without its body. This is what a caller reads to decide which skill to fetch.
|
|
2772
|
+
*/
|
|
2773
|
+
export interface SkillSummary {
|
|
2774
|
+
/**
|
|
2775
|
+
* The skill\'s name, and the identifier for fetching it. A name containing a slash (`<skill>/<stem>`) is one skill\'s on-demand reference file rather than a skill in its own right.
|
|
2776
|
+
*/
|
|
2777
|
+
'name'?: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* One line saying when to read this skill. Empty when the package author omitted it, which is also reported as a package warning.
|
|
2780
|
+
*/
|
|
2781
|
+
'description'?: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* `bundled` = shipped with this server. `package` = shipped by the package under `skills/`, which includes a package skill whose name matches a bundled one and therefore REPLACES it for this package. Present so a caller can tell a replaced skill from the original, which is otherwise invisible.
|
|
2784
|
+
*/
|
|
2785
|
+
'origin'?: SkillSummaryOriginEnum;
|
|
2786
|
+
}
|
|
2787
|
+
export declare const SkillSummaryOriginEnum: {
|
|
2788
|
+
readonly Bundled: "bundled";
|
|
2789
|
+
readonly Package: "package";
|
|
2790
|
+
};
|
|
2791
|
+
export type SkillSummaryOriginEnum = typeof SkillSummaryOriginEnum[keyof typeof SkillSummaryOriginEnum];
|
|
2626
2792
|
/**
|
|
2627
2793
|
* Snowflake database connection configuration
|
|
2628
2794
|
*/
|
|
@@ -3060,6 +3226,155 @@ export interface WatchStatus {
|
|
|
3060
3226
|
*/
|
|
3061
3227
|
'watchingPath': string;
|
|
3062
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* AgentsApi - axios parameter creator
|
|
3231
|
+
*/
|
|
3232
|
+
export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3233
|
+
/**
|
|
3234
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3235
|
+
* @summary Get one agent, resolved
|
|
3236
|
+
* @param {string} environmentName Name of the environment
|
|
3237
|
+
* @param {string} packageName Name of the package
|
|
3238
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3239
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3240
|
+
* @param {*} [options] Override http request option.
|
|
3241
|
+
* @throws {RequiredError}
|
|
3242
|
+
*/
|
|
3243
|
+
getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3244
|
+
/**
|
|
3245
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3246
|
+
* @summary Get one of an agent\'s skill files
|
|
3247
|
+
* @param {string} environmentName Name of the environment
|
|
3248
|
+
* @param {string} packageName Name of the package
|
|
3249
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3250
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3251
|
+
* @param {*} [options] Override http request option.
|
|
3252
|
+
* @throws {RequiredError}
|
|
3253
|
+
*/
|
|
3254
|
+
getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3257
|
+
* @summary List the agents a package declares
|
|
3258
|
+
* @param {string} environmentName Name of the environment
|
|
3259
|
+
* @param {string} packageName Name of the package
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
*/
|
|
3263
|
+
listAgents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3264
|
+
};
|
|
3265
|
+
/**
|
|
3266
|
+
* AgentsApi - functional programming interface
|
|
3267
|
+
*/
|
|
3268
|
+
export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
3269
|
+
/**
|
|
3270
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3271
|
+
* @summary Get one agent, resolved
|
|
3272
|
+
* @param {string} environmentName Name of the environment
|
|
3273
|
+
* @param {string} packageName Name of the package
|
|
3274
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3275
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3276
|
+
* @param {*} [options] Override http request option.
|
|
3277
|
+
* @throws {RequiredError}
|
|
3278
|
+
*/
|
|
3279
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3280
|
+
/**
|
|
3281
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3282
|
+
* @summary Get one of an agent\'s skill files
|
|
3283
|
+
* @param {string} environmentName Name of the environment
|
|
3284
|
+
* @param {string} packageName Name of the package
|
|
3285
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3286
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3287
|
+
* @param {*} [options] Override http request option.
|
|
3288
|
+
* @throws {RequiredError}
|
|
3289
|
+
*/
|
|
3290
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
|
|
3291
|
+
/**
|
|
3292
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3293
|
+
* @summary List the agents a package declares
|
|
3294
|
+
* @param {string} environmentName Name of the environment
|
|
3295
|
+
* @param {string} packageName Name of the package
|
|
3296
|
+
* @param {*} [options] Override http request option.
|
|
3297
|
+
* @throws {RequiredError}
|
|
3298
|
+
*/
|
|
3299
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
|
|
3300
|
+
};
|
|
3301
|
+
/**
|
|
3302
|
+
* AgentsApi - factory interface
|
|
3303
|
+
*/
|
|
3304
|
+
export declare const AgentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3305
|
+
/**
|
|
3306
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3307
|
+
* @summary Get one agent, resolved
|
|
3308
|
+
* @param {string} environmentName Name of the environment
|
|
3309
|
+
* @param {string} packageName Name of the package
|
|
3310
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3311
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3312
|
+
* @param {*} [options] Override http request option.
|
|
3313
|
+
* @throws {RequiredError}
|
|
3314
|
+
*/
|
|
3315
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3316
|
+
/**
|
|
3317
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3318
|
+
* @summary Get one of an agent\'s skill files
|
|
3319
|
+
* @param {string} environmentName Name of the environment
|
|
3320
|
+
* @param {string} packageName Name of the package
|
|
3321
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3322
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3323
|
+
* @param {*} [options] Override http request option.
|
|
3324
|
+
* @throws {RequiredError}
|
|
3325
|
+
*/
|
|
3326
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
|
|
3327
|
+
/**
|
|
3328
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3329
|
+
* @summary List the agents a package declares
|
|
3330
|
+
* @param {string} environmentName Name of the environment
|
|
3331
|
+
* @param {string} packageName Name of the package
|
|
3332
|
+
* @param {*} [options] Override http request option.
|
|
3333
|
+
* @throws {RequiredError}
|
|
3334
|
+
*/
|
|
3335
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
|
|
3336
|
+
};
|
|
3337
|
+
/**
|
|
3338
|
+
* AgentsApi - object-oriented interface
|
|
3339
|
+
*/
|
|
3340
|
+
export declare class AgentsApi extends BaseAPI {
|
|
3341
|
+
/**
|
|
3342
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3343
|
+
* @summary Get one agent, resolved
|
|
3344
|
+
* @param {string} environmentName Name of the environment
|
|
3345
|
+
* @param {string} packageName Name of the package
|
|
3346
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3347
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
|
|
3352
|
+
/**
|
|
3353
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3354
|
+
* @summary Get one of an agent\'s skill files
|
|
3355
|
+
* @param {string} environmentName Name of the environment
|
|
3356
|
+
* @param {string} packageName Name of the package
|
|
3357
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3358
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
|
|
3363
|
+
/**
|
|
3364
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3365
|
+
* @summary List the agents a package declares
|
|
3366
|
+
* @param {string} environmentName Name of the environment
|
|
3367
|
+
* @param {string} packageName Name of the package
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
|
|
3372
|
+
}
|
|
3373
|
+
export declare const GetAgentSkillsEnum: {
|
|
3374
|
+
readonly Full: "full";
|
|
3375
|
+
readonly Summary: "summary";
|
|
3376
|
+
};
|
|
3377
|
+
export type GetAgentSkillsEnum = typeof GetAgentSkillsEnum[keyof typeof GetAgentSkillsEnum];
|
|
3063
3378
|
/**
|
|
3064
3379
|
* ConnectionsApi - axios parameter creator
|
|
3065
3380
|
*/
|
|
@@ -5361,6 +5676,102 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
5361
5676
|
*/
|
|
5362
5677
|
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Report[], any, {}, any>>;
|
|
5363
5678
|
}
|
|
5679
|
+
/**
|
|
5680
|
+
* SkillsApi - axios parameter creator
|
|
5681
|
+
*/
|
|
5682
|
+
export declare const SkillsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5683
|
+
/**
|
|
5684
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5685
|
+
* @summary Get one agent skill, with its body
|
|
5686
|
+
* @param {string} environmentName Name of the environment
|
|
5687
|
+
* @param {string} packageName Name of the package
|
|
5688
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5689
|
+
* @param {*} [options] Override http request option.
|
|
5690
|
+
* @throws {RequiredError}
|
|
5691
|
+
*/
|
|
5692
|
+
getSkill: (environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5693
|
+
/**
|
|
5694
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5695
|
+
* @summary List the agent skills in force for a package
|
|
5696
|
+
* @param {string} environmentName Name of the environment
|
|
5697
|
+
* @param {string} packageName Name of the package
|
|
5698
|
+
* @param {*} [options] Override http request option.
|
|
5699
|
+
* @throws {RequiredError}
|
|
5700
|
+
*/
|
|
5701
|
+
listSkills: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5702
|
+
};
|
|
5703
|
+
/**
|
|
5704
|
+
* SkillsApi - functional programming interface
|
|
5705
|
+
*/
|
|
5706
|
+
export declare const SkillsApiFp: (configuration?: Configuration) => {
|
|
5707
|
+
/**
|
|
5708
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5709
|
+
* @summary Get one agent skill, with its body
|
|
5710
|
+
* @param {string} environmentName Name of the environment
|
|
5711
|
+
* @param {string} packageName Name of the package
|
|
5712
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5713
|
+
* @param {*} [options] Override http request option.
|
|
5714
|
+
* @throws {RequiredError}
|
|
5715
|
+
*/
|
|
5716
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
|
|
5717
|
+
/**
|
|
5718
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5719
|
+
* @summary List the agent skills in force for a package
|
|
5720
|
+
* @param {string} environmentName Name of the environment
|
|
5721
|
+
* @param {string} packageName Name of the package
|
|
5722
|
+
* @param {*} [options] Override http request option.
|
|
5723
|
+
* @throws {RequiredError}
|
|
5724
|
+
*/
|
|
5725
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
|
|
5726
|
+
};
|
|
5727
|
+
/**
|
|
5728
|
+
* SkillsApi - factory interface
|
|
5729
|
+
*/
|
|
5730
|
+
export declare const SkillsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5731
|
+
/**
|
|
5732
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5733
|
+
* @summary Get one agent skill, with its body
|
|
5734
|
+
* @param {string} environmentName Name of the environment
|
|
5735
|
+
* @param {string} packageName Name of the package
|
|
5736
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5737
|
+
* @param {*} [options] Override http request option.
|
|
5738
|
+
* @throws {RequiredError}
|
|
5739
|
+
*/
|
|
5740
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
|
|
5741
|
+
/**
|
|
5742
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5743
|
+
* @summary List the agent skills in force for a package
|
|
5744
|
+
* @param {string} environmentName Name of the environment
|
|
5745
|
+
* @param {string} packageName Name of the package
|
|
5746
|
+
* @param {*} [options] Override http request option.
|
|
5747
|
+
* @throws {RequiredError}
|
|
5748
|
+
*/
|
|
5749
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
|
|
5750
|
+
};
|
|
5751
|
+
/**
|
|
5752
|
+
* SkillsApi - object-oriented interface
|
|
5753
|
+
*/
|
|
5754
|
+
export declare class SkillsApi extends BaseAPI {
|
|
5755
|
+
/**
|
|
5756
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5757
|
+
* @summary Get one agent skill, with its body
|
|
5758
|
+
* @param {string} environmentName Name of the environment
|
|
5759
|
+
* @param {string} packageName Name of the package
|
|
5760
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5761
|
+
* @param {*} [options] Override http request option.
|
|
5762
|
+
* @throws {RequiredError}
|
|
5763
|
+
*/
|
|
5764
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
|
|
5765
|
+
/**
|
|
5766
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5767
|
+
* @summary List the agent skills in force for a package
|
|
5768
|
+
* @param {string} environmentName Name of the environment
|
|
5769
|
+
* @param {string} packageName Name of the package
|
|
5770
|
+
* @param {*} [options] Override http request option.
|
|
5771
|
+
* @throws {RequiredError}
|
|
5772
|
+
*/
|
|
5773
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
|
|
5774
|
+
}
|
|
5364
5775
|
/**
|
|
5365
5776
|
* WatchModeApi - axios parameter creator
|
|
5366
5777
|
*/
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-B0dUY8be.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|