@superdoc/sdk 2.11.0-next.4 → 2.11.0-next.6
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/actions/define.cjs +788 -0
- package/dist/actions/define.d.ts +142 -0
- package/dist/actions/define.js +781 -0
- package/dist/agent/catalog.cjs +1 -0
- package/dist/agent/catalog.d.ts +8 -0
- package/dist/agent/catalog.js +1 -1
- package/dist/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/client.cjs +2 -0
- package/dist/generated/client.d.ts +108 -0
- package/dist/generated/client.js +2 -0
- package/dist/generated/contract.cjs +1230 -772
- package/dist/generated/contract.js +1230 -772
- package/dist/generated/intent-dispatch.generated.cjs +1 -0
- package/dist/generated/intent-dispatch.generated.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/presets.cjs +2 -2
- package/dist/presets.js +2 -2
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/dist/tools.cjs +49 -1
- package/dist/tools.d.ts +18 -1
- package/dist/tools.js +49 -1
- package/package.json +9 -9
- package/tools/catalog.json +225 -131
- package/tools/intent_dispatch_generated.py +2 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +209 -131
- package/tools/tools.generic.json +211 -132
- package/tools/tools.openai.json +209 -131
- package/tools/tools.vercel.json +209 -131
package/dist/agent/catalog.cjs
CHANGED
|
@@ -586,6 +586,7 @@ exports.LIST_ITEM_SCHEMA = LIST_ITEM_SCHEMA;
|
|
|
586
586
|
exports.PUBLIC_AGENT_TOOL_NAMES = PUBLIC_AGENT_TOOL_NAMES;
|
|
587
587
|
exports.RUN_MARKS_SCHEMA = RUN_MARKS_SCHEMA;
|
|
588
588
|
exports.SELECTOR_SCHEMA = SELECTOR_SCHEMA;
|
|
589
|
+
exports.buildPerformActionDefinition = buildPerformActionDefinition;
|
|
589
590
|
exports.isAgentToolName = isAgentToolName;
|
|
590
591
|
exports.listAgentTools = listAgentTools;
|
|
591
592
|
exports.validateExclusions = validateExclusions;
|
package/dist/agent/catalog.d.ts
CHANGED
|
@@ -317,6 +317,14 @@ export declare const CELL_SCHEMA: {
|
|
|
317
317
|
* tool advertises those after `action`.
|
|
318
318
|
*/
|
|
319
319
|
export declare const ACTION_ARG_SCHEMA: Record<string, unknown>;
|
|
320
|
+
/**
|
|
321
|
+
* Build the `superdoc_perform_action` tool definition for a given action set.
|
|
322
|
+
* The default (all actions) is what `AGENT_TOOL_DEFINITIONS` carries; callers
|
|
323
|
+
* excluding actions get a coherently narrowed definition: enum, grouped
|
|
324
|
+
* description, AND the advertised argument properties all shrink together
|
|
325
|
+
* (an arg no remaining action declares is not advertised).
|
|
326
|
+
*/
|
|
327
|
+
export declare function buildPerformActionDefinition(includedActions: readonly string[]): AgentToolDefinition;
|
|
320
328
|
export declare const AGENT_TOOL_DEFINITIONS: readonly AgentToolDefinition[];
|
|
321
329
|
/** Customer-facing narrowing of the advertised tool surface. */
|
|
322
330
|
export interface ListAgentToolsOptions {
|
package/dist/agent/catalog.js
CHANGED
|
@@ -306,7 +306,7 @@ function buildActionDescription(included) {
|
|
|
306
306
|
* description, AND the advertised argument properties all shrink together
|
|
307
307
|
* (an arg no remaining action declares is not advertised).
|
|
308
308
|
*/
|
|
309
|
-
function buildPerformActionDefinition(includedActions) {
|
|
309
|
+
export function buildPerformActionDefinition(includedActions) {
|
|
310
310
|
const included = new Set(includedActions);
|
|
311
311
|
return {
|
|
312
312
|
name: 'superdoc_perform_action',
|