@evalops/maestro 0.10.17 → 0.10.20
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/README.md +56 -1
- package/dist/agent/action-approval.d.ts +12 -2
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js +19 -32
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +1 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +26 -0
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts +2 -0
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +4 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +56 -4
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +163 -2
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/prompt-recovery.d.ts.map +1 -1
- package/dist/agent/prompt-recovery.js +1 -3
- package/dist/agent/prompt-recovery.js.map +1 -1
- package/dist/agent/providers/anthropic.d.ts.map +1 -1
- package/dist/agent/providers/anthropic.js +9 -1
- package/dist/agent/providers/anthropic.js.map +1 -1
- package/dist/agent/providers/codex-app-server.d.ts +12 -0
- package/dist/agent/providers/codex-app-server.d.ts.map +1 -0
- package/dist/agent/providers/codex-app-server.js +788 -0
- package/dist/agent/providers/codex-app-server.js.map +1 -0
- package/dist/agent/providers/google-gemini-cli.js +14 -3
- package/dist/agent/providers/google.js +22 -3
- package/dist/agent/providers/scripted.d.ts +11 -0
- package/dist/agent/providers/scripted.d.ts.map +1 -0
- package/dist/agent/providers/scripted.js +399 -0
- package/dist/agent/providers/scripted.js.map +1 -0
- package/dist/agent/providers/vertex.js +14 -3
- package/dist/agent/scenario-source.d.ts +19 -0
- package/dist/agent/scenario-source.d.ts.map +1 -0
- package/dist/agent/scenario-source.js +112 -0
- package/dist/agent/scenario-source.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +1 -1
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/swarm/executor.d.ts +25 -0
- package/dist/agent/swarm/executor.d.ts.map +1 -1
- package/dist/agent/swarm/executor.js +795 -20
- package/dist/agent/swarm/executor.js.map +1 -1
- package/dist/agent/swarm/runtime-events.d.ts +11 -0
- package/dist/agent/swarm/runtime-events.d.ts.map +1 -0
- package/dist/agent/swarm/runtime-events.js +26 -0
- package/dist/agent/swarm/runtime-events.js.map +1 -0
- package/dist/agent/swarm/types.d.ts +78 -0
- package/dist/agent/swarm/types.d.ts.map +1 -1
- package/dist/agent/swarm/types.js.map +1 -1
- package/dist/agent/tracing.d.ts +1 -1
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +17 -9
- package/dist/agent/tracing.js.map +1 -1
- package/dist/agent/transport/create-provider-stream.d.ts.map +1 -1
- package/dist/agent/transport/create-provider-stream.js +14 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/stable-stringify.d.ts +2 -0
- package/dist/agent/transport/stable-stringify.d.ts.map +1 -0
- package/dist/agent/transport/stable-stringify.js +14 -0
- package/dist/agent/transport/stable-stringify.js.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.js +2 -15
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +5 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +184 -36
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport.d.ts +8 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +1613 -68
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +170 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/enterprise-routes.d.ts.map +1 -1
- package/dist/api/enterprise-routes.js +34 -3
- package/dist/api/enterprise-routes.js.map +1 -1
- package/dist/app-server/in-process-client.d.ts +32 -0
- package/dist/app-server/in-process-client.d.ts.map +1 -0
- package/dist/app-server/in-process-client.js +73 -0
- package/dist/app-server/in-process-client.js.map +1 -0
- package/dist/app-server/session-api.d.ts +36 -0
- package/dist/app-server/session-api.d.ts.map +1 -0
- package/dist/app-server/session-api.js +713 -0
- package/dist/app-server/session-api.js.map +1 -0
- package/dist/approvals/platform-action-approval.d.ts +3 -1
- package/dist/approvals/platform-action-approval.d.ts.map +1 -1
- package/dist/approvals/platform-action-approval.js +16 -9
- package/dist/approvals/platform-action-approval.js.map +1 -1
- package/dist/approvals/service-client.d.ts.map +1 -1
- package/dist/approvals/service-client.js +7 -7
- package/dist/approvals/service-client.js.map +1 -1
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/agent-creation-setup.d.ts +4 -0
- package/dist/bootstrap/agent-creation-setup.d.ts.map +1 -1
- package/dist/bootstrap/agent-creation-setup.js +3 -1
- package/dist/bootstrap/agent-creation-setup.js.map +1 -1
- package/dist/bootstrap/auth-setup.js +1 -1
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.d.ts +6 -0
- package/dist/bootstrap/event-subscriptions-setup.d.ts.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.js +26 -2
- package/dist/bootstrap/event-subscriptions-setup.js.map +1 -1
- package/dist/bootstrap/model-resolution-setup.d.ts.map +1 -1
- package/dist/bootstrap/model-resolution-setup.js +4 -1
- package/dist/bootstrap/model-resolution-setup.js.map +1 -1
- package/dist/bootstrap/tools-setup.d.ts +2 -1
- package/dist/bootstrap/tools-setup.d.ts.map +1 -1
- package/dist/bootstrap/tools-setup.js +5 -1
- package/dist/bootstrap/tools-setup.js.map +1 -1
- package/dist/cli/args.d.ts +9 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +130 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/a2a.d.ts +9 -0
- package/dist/cli/commands/a2a.d.ts.map +1 -0
- package/dist/cli/commands/a2a.js +1714 -0
- package/dist/cli/commands/a2a.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +16 -2
- package/dist/cli/commands/agents.d.ts.map +1 -1
- package/dist/cli/commands/agents.js +223 -35
- package/dist/cli/commands/agents.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +1 -1
- package/dist/cli/commands/codex.d.ts.map +1 -1
- package/dist/cli/commands/codex.js +145 -39
- package/dist/cli/commands/codex.js.map +1 -1
- package/dist/cli/commands/context.d.ts +10 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +176 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +1 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -1
- package/dist/cli/commands/hosted-runner.js +9 -1
- package/dist/cli/commands/hosted-runner.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +6 -0
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/modes.d.ts +8 -0
- package/dist/cli/commands/modes.d.ts.map +1 -0
- package/dist/cli/commands/modes.js +151 -0
- package/dist/cli/commands/modes.js.map +1 -0
- package/dist/cli/commands/operating-plane.d.ts +14 -0
- package/dist/cli/commands/operating-plane.d.ts.map +1 -0
- package/dist/cli/commands/operating-plane.js +160 -0
- package/dist/cli/commands/operating-plane.js.map +1 -0
- package/dist/cli/commands/run.d.ts +87 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +356 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/scenario.d.ts +7 -0
- package/dist/cli/commands/scenario.d.ts.map +1 -0
- package/dist/cli/commands/scenario.js +195 -0
- package/dist/cli/commands/scenario.js.map +1 -0
- package/dist/cli/commands/skill.d.ts +7 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +286 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +55 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +446 -7
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless-runtime-selection.d.ts +38 -0
- package/dist/cli/headless-runtime-selection.d.ts.map +1 -0
- package/dist/cli/headless-runtime-selection.js +48 -0
- package/dist/cli/headless-runtime-selection.js.map +1 -0
- package/dist/cli/headless.d.ts +5 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +11 -1
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts +3 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +136 -30
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/system-prompt.d.ts +22 -4
- package/dist/cli/system-prompt.d.ts.map +1 -1
- package/dist/cli/system-prompt.js +224 -127
- package/dist/cli/system-prompt.js.map +1 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +7 -0
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/a2a-handlers.js +160 -0
- package/dist/cli-tui/commands/a2a-handlers.js.map +1 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -1
- package/dist/cli-tui/commands/command-catalog.js +15 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +10 -1
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +22 -10
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.js +6 -5
- package/dist/cli-tui/commands/mcp-handlers.js.map +1 -1
- package/dist/cli-tui/commands/types.d.ts +1 -0
- package/dist/cli-tui/commands/types.d.ts.map +1 -1
- package/dist/cli-tui/commands/types.js.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +4 -0
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.js +45 -6
- package/dist/cli-tui/commands/utility-handlers.js.map +1 -1
- package/dist/cli-tui/run/run-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/run-shell-command.js +14 -5
- package/dist/cli-tui/run/run-shell-command.js.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.js +14 -5
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +1 -0
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +6 -2
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +5 -0
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +8 -3
- package/dist/cli-tui/utils/commands/review-prompt.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +1 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +7 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +1 -0
- package/dist/cli-tui/utils/text-formatting.d.ts.map +1 -1
- package/dist/cli-tui/utils/text-formatting.js +5 -0
- package/dist/cli-tui/utils/text-formatting.js.map +1 -1
- package/dist/cli.js +49209 -26165
- package/dist/cli.js.map +1 -1
- package/dist/codex/app-server-client.d.ts +139 -0
- package/dist/codex/app-server-client.d.ts.map +1 -0
- package/dist/codex/app-server-client.js +352 -0
- package/dist/codex/app-server-client.js.map +1 -0
- package/dist/codex/compatibility.d.ts +48 -0
- package/dist/codex/compatibility.d.ts.map +1 -0
- package/dist/codex/compatibility.js +344 -0
- package/dist/codex/compatibility.js.map +1 -0
- package/dist/codex/subagent-dispatch-table.d.ts +66 -0
- package/dist/codex/subagent-dispatch-table.d.ts.map +1 -0
- package/dist/codex/subagent-dispatch-table.js +127 -0
- package/dist/codex/subagent-dispatch-table.js.map +1 -0
- package/dist/codex/subagent-workgraph.d.ts +56 -0
- package/dist/codex/subagent-workgraph.d.ts.map +1 -0
- package/dist/codex/subagent-workgraph.js +89 -0
- package/dist/codex/subagent-workgraph.js.map +1 -0
- package/dist/config/constants.d.ts +3 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +9 -0
- package/dist/config/constants.js.map +1 -1
- package/dist/config/feature-flags.d.ts +10 -1
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +17 -6
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/toml-config.d.ts +32 -0
- package/dist/config/toml-config.d.ts.map +1 -1
- package/dist/config/toml-config.js +152 -43
- package/dist/config/toml-config.js.map +1 -1
- package/dist/connectors/service-client.d.ts.map +1 -1
- package/dist/connectors/service-client.js +4 -7
- package/dist/connectors/service-client.js.map +1 -1
- package/dist/context/manifest-types.d.ts +59 -0
- package/dist/context/manifest-types.d.ts.map +1 -0
- package/dist/context/manifest-types.js +2 -0
- package/dist/context/manifest-types.js.map +1 -0
- package/dist/context/manifest.d.ts +16 -0
- package/dist/context/manifest.d.ts.map +1 -0
- package/dist/context/manifest.js +503 -0
- package/dist/context/manifest.js.map +1 -0
- package/dist/db/schema.d.ts +10 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/agent-bootstrap.d.ts +1 -0
- package/dist/evalops/agent-bootstrap.d.ts.map +1 -1
- package/dist/evalops/agent-bootstrap.js +41 -1
- package/dist/evalops/agent-bootstrap.js.map +1 -1
- package/dist/evalops/env-aliases.d.ts +13 -0
- package/dist/evalops/env-aliases.d.ts.map +1 -0
- package/dist/evalops/env-aliases.js +60 -0
- package/dist/evalops/env-aliases.js.map +1 -0
- package/dist/evalops/managed-context.d.ts.map +1 -1
- package/dist/evalops/managed-context.js +28 -62
- package/dist/evalops/managed-context.js.map +1 -1
- package/dist/guardian/config.d.ts.map +1 -1
- package/dist/guardian/config.js +1 -0
- package/dist/guardian/config.js.map +1 -1
- package/dist/guardian/runner.d.ts +2 -0
- package/dist/guardian/runner.d.ts.map +1 -1
- package/dist/guardian/runner.js +105 -2
- package/dist/guardian/runner.js.map +1 -1
- package/dist/guardian/types.d.ts +1 -0
- package/dist/guardian/types.d.ts.map +1 -1
- package/dist/guardian/types.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +267 -55
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +89 -7
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/manager.d.ts +5 -1
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +159 -4
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts.map +1 -1
- package/dist/mcp/platform-plugin.js +9 -26
- package/dist/mcp/platform-plugin.js.map +1 -1
- package/dist/mcp/schema.d.ts +15 -0
- package/dist/mcp/schema.d.ts.map +1 -1
- package/dist/mcp/schema.js +24 -0
- package/dist/mcp/schema.js.map +1 -1
- package/dist/mcp/tool-bridge.d.ts +39 -10
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +101 -24
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/mcp/types.d.ts +27 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/workspace-trust.d.ts +10 -0
- package/dist/mcp/workspace-trust.d.ts.map +1 -0
- package/dist/mcp/workspace-trust.js +295 -0
- package/dist/mcp/workspace-trust.js.map +1 -0
- package/dist/memory/service-client.d.ts +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +194 -9
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +66 -25
- package/dist/models/builtin.js.map +1 -1
- package/dist/models/config-loader.d.ts +10 -10
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +2 -0
- package/dist/models/config-loader.js.map +1 -1
- package/dist/models/registry.d.ts +1 -0
- package/dist/models/registry.d.ts.map +1 -1
- package/dist/models/registry.js +1 -0
- package/dist/models/registry.js.map +1 -1
- package/dist/oauth/device-identity.d.ts.map +1 -1
- package/dist/oauth/device-identity.js +1 -3
- package/dist/oauth/device-identity.js.map +1 -1
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +2 -5
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +12 -12
- package/dist/opentelemetry.js.map +1 -1
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +11 -0
- package/dist/package-version.js.map +1 -0
- package/dist/packages/constants.d.ts +3 -0
- package/dist/packages/constants.d.ts.map +1 -0
- package/dist/packages/constants.js +3 -0
- package/dist/packages/constants.js.map +1 -0
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +2 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/search.d.ts.map +1 -1
- package/dist/packages/search.js +1 -1
- package/dist/packages/search.js.map +1 -1
- package/dist/platform/a2a-capability-market.d.ts +21 -0
- package/dist/platform/a2a-capability-market.d.ts.map +1 -0
- package/dist/platform/a2a-capability-market.js +176 -0
- package/dist/platform/a2a-capability-market.js.map +1 -0
- package/dist/platform/a2a-client.d.ts +217 -0
- package/dist/platform/a2a-client.d.ts.map +1 -0
- package/dist/platform/a2a-client.js +589 -0
- package/dist/platform/a2a-client.js.map +1 -0
- package/dist/platform/a2a-fleet.d.ts +41 -0
- package/dist/platform/a2a-fleet.d.ts.map +1 -0
- package/dist/platform/a2a-fleet.js +109 -0
- package/dist/platform/a2a-fleet.js.map +1 -0
- package/dist/platform/a2a-maestro-peer.d.ts +20 -0
- package/dist/platform/a2a-maestro-peer.d.ts.map +1 -0
- package/dist/platform/a2a-maestro-peer.js +176 -0
- package/dist/platform/a2a-maestro-peer.js.map +1 -0
- package/dist/platform/a2a-peer-pairing.d.ts +107 -0
- package/dist/platform/a2a-peer-pairing.d.ts.map +1 -0
- package/dist/platform/a2a-peer-pairing.js +489 -0
- package/dist/platform/a2a-peer-pairing.js.map +1 -0
- package/dist/platform/a2a-peer-registry.d.ts +68 -0
- package/dist/platform/a2a-peer-registry.d.ts.map +1 -0
- package/dist/platform/a2a-peer-registry.js +320 -0
- package/dist/platform/a2a-peer-registry.js.map +1 -0
- package/dist/platform/a2a-task-ledger.d.ts +86 -0
- package/dist/platform/a2a-task-ledger.d.ts.map +1 -0
- package/dist/platform/a2a-task-ledger.js +546 -0
- package/dist/platform/a2a-task-ledger.js.map +1 -0
- package/dist/platform/a2a-work-graph.d.ts +43 -0
- package/dist/platform/a2a-work-graph.d.ts.map +1 -0
- package/dist/platform/a2a-work-graph.js +267 -0
- package/dist/platform/a2a-work-graph.js.map +1 -0
- package/dist/platform/agent-registry-client.d.ts +327 -0
- package/dist/platform/agent-registry-client.d.ts.map +1 -0
- package/dist/platform/agent-registry-client.js +803 -0
- package/dist/platform/agent-registry-client.js.map +1 -0
- package/dist/platform/agent-runtime-client.d.ts +135 -1
- package/dist/platform/agent-runtime-client.d.ts.map +1 -1
- package/dist/platform/agent-runtime-client.js +467 -10
- package/dist/platform/agent-runtime-client.js.map +1 -1
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -1
- package/dist/platform/cerebro-facts-client.js +4 -7
- package/dist/platform/cerebro-facts-client.js.map +1 -1
- package/dist/platform/client.d.ts +2 -0
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +7 -14
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +68 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +68 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/fermata-eval-client.d.ts +195 -0
- package/dist/platform/fermata-eval-client.d.ts.map +1 -0
- package/dist/platform/fermata-eval-client.js +146 -0
- package/dist/platform/fermata-eval-client.js.map +1 -0
- package/dist/platform/fermata-scenario-suite.d.ts +99 -0
- package/dist/platform/fermata-scenario-suite.d.ts.map +1 -0
- package/dist/platform/fermata-scenario-suite.js +459 -0
- package/dist/platform/fermata-scenario-suite.js.map +1 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -1
- package/dist/platform/maestro-timeline-client.js +5 -11
- package/dist/platform/maestro-timeline-client.js.map +1 -1
- package/dist/platform/operating-plane-client.d.ts +156 -0
- package/dist/platform/operating-plane-client.d.ts.map +1 -0
- package/dist/platform/operating-plane-client.js +131 -0
- package/dist/platform/operating-plane-client.js.map +1 -0
- package/dist/platform/operating-plane-summary.d.ts +47 -0
- package/dist/platform/operating-plane-summary.d.ts.map +1 -0
- package/dist/platform/operating-plane-summary.js +209 -0
- package/dist/platform/operating-plane-summary.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -1
- package/dist/platform/tool-execution-client.js +4 -11
- package/dist/platform/tool-execution-client.js.map +1 -1
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +3 -5
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/prompts/system-prompt.d.ts +3 -0
- package/dist/prompts/system-prompt.d.ts.map +1 -1
- package/dist/prompts/system-prompt.js +13 -3
- package/dist/prompts/system-prompt.js.map +1 -1
- package/dist/prompts/types.d.ts +2 -0
- package/dist/prompts/types.d.ts.map +1 -1
- package/dist/prompts/types.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -1
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +2 -1
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +48 -25
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts.map +1 -1
- package/dist/remote-runner/attach-client.js +1 -0
- package/dist/remote-runner/attach-client.js.map +1 -1
- package/dist/remote-runner/client.d.ts.map +1 -1
- package/dist/remote-runner/client.js +4 -7
- package/dist/remote-runner/client.js.map +1 -1
- package/dist/rpc/rpc-types.d.ts.map +1 -1
- package/dist/rpc/rpc-types.js +1 -0
- package/dist/rpc/rpc-types.js.map +1 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +69 -6
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/attack-patterns.d.ts.map +1 -1
- package/dist/safety/attack-patterns.js +31 -14
- package/dist/safety/attack-patterns.js.map +1 -1
- package/dist/safety/bash-parser.d.ts.map +1 -1
- package/dist/safety/bash-parser.js +4 -3
- package/dist/safety/bash-parser.js.map +1 -1
- package/dist/safety/execpolicy.d.ts +15 -3
- package/dist/safety/execpolicy.d.ts.map +1 -1
- package/dist/safety/execpolicy.js +248 -37
- package/dist/safety/execpolicy.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts.map +1 -1
- package/dist/safety/governance-service-client.js +4 -7
- package/dist/safety/governance-service-client.js.map +1 -1
- package/dist/safety/guarded-files.d.ts +34 -0
- package/dist/safety/guarded-files.d.ts.map +1 -0
- package/dist/safety/guarded-files.js +372 -0
- package/dist/safety/guarded-files.js.map +1 -0
- package/dist/safety/loop-detector.d.ts.map +1 -1
- package/dist/safety/loop-detector.js +6 -1
- package/dist/safety/loop-detector.js.map +1 -1
- package/dist/safety/permission-profile.d.ts +47 -0
- package/dist/safety/permission-profile.d.ts.map +1 -0
- package/dist/safety/permission-profile.js +349 -0
- package/dist/safety/permission-profile.js.map +1 -0
- package/dist/safety/safety-middleware.d.ts +5 -1
- package/dist/safety/safety-middleware.d.ts.map +1 -1
- package/dist/safety/safety-middleware.js +3 -2
- package/dist/safety/safety-middleware.js.map +1 -1
- package/dist/safety/suspicious-patterns.d.ts.map +1 -1
- package/dist/safety/suspicious-patterns.js +12 -7
- package/dist/safety/suspicious-patterns.js.map +1 -1
- package/dist/safety/tool-categorization.js +1 -1
- package/dist/safety/tool-categorization.js.map +1 -1
- package/dist/safety/validators/path-policy-validator.d.ts.map +1 -1
- package/dist/safety/validators/path-policy-validator.js +7 -0
- package/dist/safety/validators/path-policy-validator.js.map +1 -1
- package/dist/sandbox/index.d.ts +6 -1
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +30 -4
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/native-sandbox.d.ts +3 -0
- package/dist/sandbox/native-sandbox.d.ts.map +1 -1
- package/dist/sandbox/native-sandbox.js +139 -18
- package/dist/sandbox/native-sandbox.js.map +1 -1
- package/dist/sentry.d.ts +17 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +91 -0
- package/dist/sentry.js.map +1 -0
- package/dist/server/agent-runtime-ledger.d.ts +141 -0
- package/dist/server/agent-runtime-ledger.d.ts.map +1 -0
- package/dist/server/agent-runtime-ledger.js +334 -0
- package/dist/server/agent-runtime-ledger.js.map +1 -0
- package/dist/server/agent-trajectory-inspection.d.ts +104 -0
- package/dist/server/agent-trajectory-inspection.d.ts.map +1 -0
- package/dist/server/agent-trajectory-inspection.js +168 -0
- package/dist/server/agent-trajectory-inspection.js.map +1 -0
- package/dist/server/agent-trajectory-replay.d.ts +56 -0
- package/dist/server/agent-trajectory-replay.d.ts.map +1 -0
- package/dist/server/agent-trajectory-replay.js +214 -0
- package/dist/server/agent-trajectory-replay.js.map +1 -0
- package/dist/server/agent-trajectory-scenarios.d.ts +109 -0
- package/dist/server/agent-trajectory-scenarios.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scenarios.js +822 -0
- package/dist/server/agent-trajectory-scenarios.js.map +1 -0
- package/dist/server/agent-trajectory-scorers.d.ts +61 -0
- package/dist/server/agent-trajectory-scorers.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scorers.js +162 -0
- package/dist/server/agent-trajectory-scorers.js.map +1 -0
- package/dist/server/agent-trajectory-validation.d.ts +7 -0
- package/dist/server/agent-trajectory-validation.d.ts.map +1 -0
- package/dist/server/agent-trajectory-validation.js +101 -0
- package/dist/server/agent-trajectory-validation.js.map +1 -0
- package/dist/server/agent-trajectory.d.ts +50 -0
- package/dist/server/agent-trajectory.d.ts.map +1 -0
- package/dist/server/agent-trajectory.js +159 -0
- package/dist/server/agent-trajectory.js.map +1 -0
- package/dist/server/app-context.d.ts +18 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +64 -27
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +6 -0
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +6 -0
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +69 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.js +309 -18
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.d.ts +16 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.js +43 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -1
- package/dist/server/handlers/mode.d.ts.map +1 -1
- package/dist/server/handlers/mode.js +3 -1
- package/dist/server/handlers/mode.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts.map +1 -1
- package/dist/server/handlers/pending-requests.js +336 -51
- package/dist/server/handlers/pending-requests.js.map +1 -1
- package/dist/server/handlers/platform-a2a-push.d.ts +6 -0
- package/dist/server/handlers/platform-a2a-push.d.ts.map +1 -0
- package/dist/server/handlers/platform-a2a-push.js +136 -0
- package/dist/server/handlers/platform-a2a-push.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +21 -1
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +9 -2
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +39 -0
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-agent-runtime-progress.d.ts +144 -0
- package/dist/server/hosted-agent-runtime-progress.d.ts.map +1 -0
- package/dist/server/hosted-agent-runtime-progress.js +1650 -0
- package/dist/server/hosted-agent-runtime-progress.js.map +1 -0
- package/dist/server/hosted-runner-lease.d.ts +41 -0
- package/dist/server/hosted-runner-lease.d.ts.map +1 -0
- package/dist/server/hosted-runner-lease.js +140 -0
- package/dist/server/hosted-runner-lease.js.map +1 -0
- package/dist/server/hosted-session-manager.d.ts +16 -8
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +98 -76
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/junit-xml.d.ts +2 -0
- package/dist/server/junit-xml.d.ts.map +1 -0
- package/dist/server/junit-xml.js +9 -0
- package/dist/server/junit-xml.js.map +1 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +6 -0
- package/dist/server/routes.js.map +1 -1
- package/dist/server/scenario-recorder.d.ts +56 -0
- package/dist/server/scenario-recorder.d.ts.map +1 -0
- package/dist/server/scenario-recorder.js +109 -0
- package/dist/server/scenario-recorder.js.map +1 -0
- package/dist/server/scripted-scenario-runner.d.ts +46 -0
- package/dist/server/scripted-scenario-runner.d.ts.map +1 -0
- package/dist/server/scripted-scenario-runner.js +190 -0
- package/dist/server/scripted-scenario-runner.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +6 -2
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +8 -2
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +9 -1
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +49 -4
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +2 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +4 -0
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/service-authority.d.ts +25 -0
- package/dist/services/service-authority.d.ts.map +1 -0
- package/dist/services/service-authority.js +143 -0
- package/dist/services/service-authority.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +2 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -1
- package/dist/services/workspace-config/service.js +4 -0
- package/dist/services/workspace-config/service.js.map +1 -1
- package/dist/session/manager.d.ts +8 -2
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +19 -4
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-branch.d.ts.map +1 -1
- package/dist/session/session-branch.js +5 -1
- package/dist/session/session-branch.js.map +1 -1
- package/dist/session/session-catalog.d.ts +7 -2
- package/dist/session/session-catalog.d.ts.map +1 -1
- package/dist/session/session-catalog.js +13 -2
- package/dist/session/session-catalog.js.map +1 -1
- package/dist/session/session-context.d.ts +6 -2
- package/dist/session/session-context.d.ts.map +1 -1
- package/dist/session/session-context.js +44 -4
- package/dist/session/session-context.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +32 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -0
- package/dist/session/session-graph-projection.js +133 -0
- package/dist/session/session-graph-projection.js.map +1 -0
- package/dist/session/types.d.ts +18 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +8 -0
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.generated.d.ts +3 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -1
- package/dist/session/wire-format.generated.js +20 -0
- package/dist/session/wire-format.generated.js.map +1 -1
- package/dist/skills/eval-harness.d.ts +38 -0
- package/dist/skills/eval-harness.d.ts.map +1 -0
- package/dist/skills/eval-harness.js +112 -0
- package/dist/skills/eval-harness.js.map +1 -0
- package/dist/skills/index.d.ts +5 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +5 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/linter.d.ts +36 -0
- package/dist/skills/linter.d.ts.map +1 -0
- package/dist/skills/linter.js +398 -0
- package/dist/skills/linter.js.map +1 -0
- package/dist/skills/loader.d.ts +36 -6
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +169 -86
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/package-contract.d.ts +45 -0
- package/dist/skills/package-contract.d.ts.map +1 -0
- package/dist/skills/package-contract.js +153 -0
- package/dist/skills/package-contract.js.map +1 -0
- package/dist/skills/runtime-activation.d.ts +68 -0
- package/dist/skills/runtime-activation.d.ts.map +1 -0
- package/dist/skills/runtime-activation.js +228 -0
- package/dist/skills/runtime-activation.js.map +1 -0
- package/dist/skills/service-client.d.ts.map +1 -1
- package/dist/skills/service-client.js +3 -4
- package/dist/skills/service-client.js.map +1 -1
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +2 -0
- package/dist/skills/tool.js.map +1 -1
- package/dist/skills/types.d.ts +14 -0
- package/dist/skills/types.d.ts.map +1 -1
- package/dist/skills/types.js.map +1 -1
- package/dist/telemetry/agent-operating-plane-context.d.ts +24 -0
- package/dist/telemetry/agent-operating-plane-context.d.ts.map +1 -0
- package/dist/telemetry/agent-operating-plane-context.js +54 -0
- package/dist/telemetry/agent-operating-plane-context.js.map +1 -0
- package/dist/telemetry/beacon.d.ts +24 -0
- package/dist/telemetry/beacon.d.ts.map +1 -0
- package/dist/telemetry/beacon.js +115 -0
- package/dist/telemetry/beacon.js.map +1 -0
- package/dist/telemetry/cli-command-aggregator.d.ts +36 -0
- package/dist/telemetry/cli-command-aggregator.d.ts.map +1 -0
- package/dist/telemetry/cli-command-aggregator.js +251 -0
- package/dist/telemetry/cli-command-aggregator.js.map +1 -0
- package/dist/telemetry/cli-startup.d.ts +21 -0
- package/dist/telemetry/cli-startup.d.ts.map +1 -0
- package/dist/telemetry/cli-startup.js +83 -0
- package/dist/telemetry/cli-startup.js.map +1 -0
- package/dist/telemetry/disablement.d.ts +13 -0
- package/dist/telemetry/disablement.d.ts.map +1 -0
- package/dist/telemetry/disablement.js +19 -0
- package/dist/telemetry/disablement.js.map +1 -0
- package/dist/telemetry/index.d.ts +6 -2
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +6 -2
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +52 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js +179 -3
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-event-catalog.d.ts +3 -1
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-catalog.js +2 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.js +74 -9
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +46 -11
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/mcp-beacon.d.ts +20 -0
- package/dist/telemetry/mcp-beacon.d.ts.map +1 -0
- package/dist/telemetry/mcp-beacon.js +54 -0
- package/dist/telemetry/mcp-beacon.js.map +1 -0
- package/dist/telemetry/metadata-normalization.d.ts +7 -0
- package/dist/telemetry/metadata-normalization.d.ts.map +1 -0
- package/dist/telemetry/metadata-normalization.js +189 -0
- package/dist/telemetry/metadata-normalization.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +5 -10
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/metrics.d.ts +123 -0
- package/dist/telemetry/metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics.js +184 -0
- package/dist/telemetry/metrics.js.map +1 -0
- package/dist/telemetry/turn-tracker.d.ts +1 -0
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +22 -1
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +31 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +229 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +39 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +160 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/testing/test-verification-hook.d.ts.map +1 -1
- package/dist/testing/test-verification-hook.js +34 -21
- package/dist/testing/test-verification-hook.js.map +1 -1
- package/dist/tools/apply-patch-parser.d.ts +26 -0
- package/dist/tools/apply-patch-parser.d.ts.map +1 -0
- package/dist/tools/apply-patch-parser.js +146 -0
- package/dist/tools/apply-patch-parser.js.map +1 -0
- package/dist/tools/apply-patch.d.ts +42 -0
- package/dist/tools/apply-patch.d.ts.map +1 -0
- package/dist/tools/apply-patch.js +648 -0
- package/dist/tools/apply-patch.js.map +1 -0
- package/dist/tools/ask-user.d.ts +1 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/background/tool-handler.d.ts +1 -0
- package/dist/tools/background/tool-handler.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -0
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/codesearch.d.ts +1 -0
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/conductor-client.d.ts +1 -0
- package/dist/tools/conductor-client.d.ts.map +1 -1
- package/dist/tools/conductor-client.js +63 -0
- package/dist/tools/conductor-client.js.map +1 -1
- package/dist/tools/diff.d.ts +1 -0
- package/dist/tools/diff.d.ts.map +1 -1
- package/dist/tools/edit.d.ts +1 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/extract-document.d.ts +1 -0
- package/dist/tools/extract-document.d.ts.map +1 -1
- package/dist/tools/find.d.ts +10 -0
- package/dist/tools/find.d.ts.map +1 -1
- package/dist/tools/find.js +236 -27
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/gh.d.ts +3 -0
- package/dist/tools/gh.d.ts.map +1 -1
- package/dist/tools/index.d.ts +50 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list.d.ts +1 -0
- package/dist/tools/list.d.ts.map +1 -1
- package/dist/tools/notebook.d.ts +1 -0
- package/dist/tools/notebook.d.ts.map +1 -1
- package/dist/tools/oracle.d.ts +1 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +17 -32
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/parallel-execution.d.ts +13 -2
- package/dist/tools/parallel-execution.d.ts.map +1 -1
- package/dist/tools/parallel-execution.js +178 -7
- package/dist/tools/parallel-execution.js.map +1 -1
- package/dist/tools/parallel-ripgrep.d.ts +1 -0
- package/dist/tools/parallel-ripgrep.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts +4 -0
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/read.d.ts +1 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/search.d.ts +1 -0
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/status.d.ts +1 -0
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/todo.d.ts +1 -0
- package/dist/tools/todo.d.ts.map +1 -1
- package/dist/tools/tool-dsl.d.ts +5 -1
- package/dist/tools/tool-dsl.d.ts.map +1 -1
- package/dist/tools/tool-dsl.js +1 -0
- package/dist/tools/tool-dsl.js.map +1 -1
- package/dist/tools/tool-result-cache.d.ts.map +1 -1
- package/dist/tools/tool-result-cache.js +1 -0
- package/dist/tools/tool-result-cache.js.map +1 -1
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +3 -0
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/tools/webfetch.d.ts +1 -0
- package/dist/tools/webfetch.d.ts.map +1 -1
- package/dist/tools/websearch.d.ts +1 -0
- package/dist/tools/websearch.d.ts.map +1 -1
- package/dist/tools/write.d.ts +1 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/utils/abort-error.d.ts +2 -0
- package/dist/utils/abort-error.d.ts.map +1 -0
- package/dist/utils/abort-error.js +7 -0
- package/dist/utils/abort-error.js.map +1 -0
- package/dist/utils/downstream.d.ts.map +1 -1
- package/dist/utils/downstream.js +4 -0
- package/dist/utils/downstream.js.map +1 -1
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +14 -3
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path-containment.d.ts +2 -0
- package/dist/utils/path-containment.d.ts.map +1 -0
- package/dist/utils/path-containment.js +14 -0
- package/dist/utils/path-containment.js.map +1 -0
- package/dist/utils/prompt-safe-text.d.ts +7 -0
- package/dist/utils/prompt-safe-text.d.ts.map +1 -0
- package/dist/utils/prompt-safe-text.js +44 -0
- package/dist/utils/prompt-safe-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +32 -7
- package/dist/web-server.js.map +1 -1
- package/dist/workspace/root-resolver.d.ts +4 -1
- package/dist/workspace/root-resolver.d.ts.map +1 -1
- package/dist/workspace/root-resolver.js +16 -6
- package/dist/workspace/root-resolver.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/advisor-effort.d.ts +8 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js +35 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts +10 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js +48 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts +20 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js +147 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +280 -5
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +36 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +15 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +6 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +593 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js +218 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +91 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +92 -61
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +3 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts +28 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js +71 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +7 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +2 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/scenario.d.ts +191 -0
- package/node_modules/@evalops/contracts/dist/scenario.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/scenario.js +4 -0
- package/node_modules/@evalops/contracts/dist/scenario.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +17 -3
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +16 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/package.json +41 -7
- package/skills/incident-triage/SKILL.md +40 -0
- package/skills/incident-triage/mcp.json +14 -0
- package/skills/incident-triage/reference/triage.md +20 -0
- package/skills/incident-triage/toolbox/incident-timeline +22 -0
- package/skills/incident-triage/toolbox/incident-timeline.cmd +16 -0
- package/skills/pr-review/SKILL.md +40 -0
- package/skills/pr-review/mcp.json +14 -0
- package/skills/pr-review/reference/rubric.md +20 -0
- package/skills/pr-review/toolbox/review-summary +20 -0
- package/skills/pr-review/toolbox/review-summary.cmd +14 -0
- package/skills/release-verification/SKILL.md +40 -0
- package/skills/release-verification/mcp.json +15 -0
- package/skills/release-verification/reference/checklist.md +21 -0
- package/skills/release-verification/toolbox/release-readiness +18 -0
- package/skills/release-verification/toolbox/release-readiness.cmd +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAA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AW,qBAAqB;IACrC,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;CACd;AAED,OAAO,EACN,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,mCAAmC,EACnC,oBAAoB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,YAAY,GACjB,KAAK,IAAI,kBAAkB,CAE7B;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,YAAY,GACjB,KAAK,IAAI,gBAAgB,CAM3B"}
|
package/dist/session/types.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export const CURRENT_SESSION_VERSION = 2;
|
|
2
|
+
function resolveSessionPromptContextManifest(header) {
|
|
3
|
+
return (header?.promptContextManifest ?? header?.unifiedContextManifest?.projectDocs);
|
|
4
|
+
}
|
|
5
|
+
export function getPersistedSessionPromptContextManifest(header) {
|
|
6
|
+
return header?.unifiedContextManifest
|
|
7
|
+
? undefined
|
|
8
|
+
: resolveSessionPromptContextManifest(header);
|
|
9
|
+
}
|
|
2
10
|
export { normalizeSessionEntry, normalizeStopReasonValue, parseSessionEntry, isSessionWireCompactionContextEntry, tryParseSessionEntry, } from "./wire-format.js";
|
|
3
11
|
export function isSessionHeaderEntry(entry) {
|
|
4
12
|
return entry.type === "session";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAuCzC,SAAS,mCAAmC,CAC3C,MAMY;IAEZ,OAAO,CACN,MAAM,EAAE,qBAAqB,IAAI,MAAM,EAAE,sBAAsB,EAAE,WAAW,CAC5E,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wCAAwC,CACvD,MAMY;IAEZ,OAAO,MAAM,EAAE,sBAAsB;QACpC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,mCAAmC,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAwKD,OAAO,EACN,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,mCAAmC,EACnC,oBAAoB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,UAAU,oBAAoB,CACnC,KAAmB;IAEnB,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,kBAAkB,CACjC,KAAmB;IAEnB,OAAO,CACN,KAAK,CAAC,IAAI,KAAK,SAAS;QACxB,KAAK,CAAC,IAAI,KAAK,cAAc;QAC7B,KAAK,CAAC,IAAI,KAAK,oBAAoB,CACnC,CAAC;AACH,CAAC","sourcesContent":["import type { AppMessage, ImageContent, TextContent } from \"../agent/types.js\";\nimport type { PromptProjectDocManifest } from \"../config/index.js\";\nimport type { UnifiedContextManifest } from \"../context/manifest-types.js\";\nimport type { PromptMetadata } from \"../prompts/types.js\";\n\nexport const CURRENT_SESSION_VERSION = 2;\n\nexport interface SessionModelMetadata {\n\tprovider: string;\n\tmodelId: string;\n\tproviderName?: string;\n\tname?: string;\n\tbaseUrl?: string;\n\treasoning?: boolean;\n\tcontextWindow?: number;\n\tmaxTokens?: number;\n\tsource?: \"builtin\" | \"custom\";\n}\n\nexport interface SessionToolInfo {\n\tname: string;\n\tlabel?: string;\n\tdescription?: string;\n}\n\nexport interface SessionHeaderEntry {\n\ttype: \"session\";\n\tversion?: number;\n\tid: string;\n\ttimestamp: string;\n\tcwd: string;\n\tsubject?: string;\n\tmodel?: string;\n\tmodelMetadata?: SessionModelMetadata;\n\tthinkingLevel?: string;\n\tsystemPrompt?: string;\n\tpromptMetadata?: PromptMetadata;\n\tpromptContextManifest?: PromptProjectDocManifest;\n\tunifiedContextManifest?: UnifiedContextManifest;\n\ttools?: SessionToolInfo[];\n\tbranchedFrom?: string;\n\tparentSession?: string;\n}\n\nfunction resolveSessionPromptContextManifest(\n\theader:\n\t\t| Pick<\n\t\t\t\tSessionHeaderEntry,\n\t\t\t\t\"promptContextManifest\" | \"unifiedContextManifest\"\n\t\t >\n\t\t| null\n\t\t| undefined,\n): PromptProjectDocManifest | undefined {\n\treturn (\n\t\theader?.promptContextManifest ?? header?.unifiedContextManifest?.projectDocs\n\t);\n}\n\nexport function getPersistedSessionPromptContextManifest(\n\theader:\n\t\t| Pick<\n\t\t\t\tSessionHeaderEntry,\n\t\t\t\t\"promptContextManifest\" | \"unifiedContextManifest\"\n\t\t >\n\t\t| null\n\t\t| undefined,\n): PromptProjectDocManifest | undefined {\n\treturn header?.unifiedContextManifest\n\t\t? undefined\n\t\t: resolveSessionPromptContextManifest(header);\n}\n\nexport interface SessionEntryBase {\n\ttype: string;\n\tid: string;\n\tparentId: string | null;\n\ttimestamp: string;\n}\n\nexport interface SessionMessageEntry extends SessionEntryBase {\n\ttype: \"message\";\n\tmessage: AppMessage;\n}\n\nexport interface AttachmentExtractedEntry {\n\ttype: \"attachment_extract\";\n\ttimestamp: string;\n\tattachmentId: string;\n\textractedText: string;\n}\n\nexport interface ThinkingLevelChangeEntry extends SessionEntryBase {\n\ttype: \"thinking_level_change\";\n\tthinkingLevel: string;\n}\n\nexport interface ModelChangeEntry extends SessionEntryBase {\n\ttype: \"model_change\";\n\tmodel: string;\n\tmodelMetadata?: SessionModelMetadata;\n}\n\nexport interface SessionMetaEntry {\n\ttype: \"session_meta\";\n\ttimestamp: string;\n\tsummary?: string;\n\tresumeSummary?: string;\n\tmemoryExtractionHash?: string;\n\tfavorite?: boolean;\n\ttitle?: string;\n\ttags?: string[];\n\tappServerGoal?: {\n\t\tobjective: string;\n\t\tstatus: \"active\" | \"complete\" | \"cancelled\";\n\t\ttokenBudget?: number;\n\t\tcreatedAt: string;\n\t\tupdatedAt: string;\n\t} | null;\n}\n\nexport interface CompactionEntry<T = unknown> extends SessionEntryBase {\n\ttype: \"compaction\";\n\tsummary: string;\n\tfirstKeptEntryId: string;\n\ttokensBefore: number;\n\tdetails?: T;\n\tfromHook?: boolean;\n\tauto?: boolean;\n\tcustomInstructions?: string;\n\t/** Legacy compaction index (v1 sessions). */\n\tfirstKeptEntryIndex?: number;\n}\n\nexport interface BranchSummaryEntry<T = unknown> extends SessionEntryBase {\n\ttype: \"branch_summary\";\n\tfromId: string;\n\tsummary: string;\n\tdetails?: T;\n\tfromHook?: boolean;\n}\n\nexport interface CustomEntry<T = unknown> extends SessionEntryBase {\n\ttype: \"custom\";\n\tcustomType: string;\n\tdata?: T;\n}\n\nexport interface CustomMessageEntry<T = unknown> extends SessionEntryBase {\n\ttype: \"custom_message\";\n\tcustomType: string;\n\tcontent: string | (TextContent | ImageContent)[];\n\tdetails?: T;\n\tdisplay: boolean;\n}\n\nexport interface LabelEntry extends SessionEntryBase {\n\ttype: \"label\";\n\ttargetId: string;\n\tlabel: string | undefined;\n}\n\nexport type SessionTreeEntry =\n\t| SessionMessageEntry\n\t| ThinkingLevelChangeEntry\n\t| ModelChangeEntry\n\t| CompactionEntry\n\t| BranchSummaryEntry\n\t| CustomEntry\n\t| CustomMessageEntry\n\t| LabelEntry;\n\nexport type SessionEntry =\n\t| SessionHeaderEntry\n\t| SessionTreeEntry\n\t| SessionMetaEntry\n\t| AttachmentExtractedEntry;\n\nexport interface SessionTreeNode {\n\tentry: SessionTreeEntry;\n\tchildren: SessionTreeNode[];\n\tlabel?: string;\n}\n\nexport interface SessionMetadata {\n\tpath: string;\n\tid: string;\n\tsubject?: string;\n\ttitle?: string;\n\tcreated: Date;\n\tmodified: Date;\n\tsize: number;\n\tmessageCount: number;\n\tfirstMessage: string;\n\tsummary: string;\n\tresumeSummary?: string;\n\tmemoryExtractionHash?: string;\n\tfavorite: boolean;\n\ttags?: string[];\n\tallMessagesText: string;\n}\n\nexport type SessionMessagesView = \"full\" | \"summary\" | \"notLoaded\";\n\nexport interface SessionSummary {\n\tid: string;\n\tsubject?: string;\n\ttitle?: string;\n\tsummary?: string;\n\tresumeSummary?: string;\n\tmemoryExtractionHash?: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tmessageCount: number;\n\tfavorite: boolean;\n\ttags?: string[];\n}\n\n/**\n * Tracks the state of session migrations across the session directory.\n * Persisted to disk to avoid re-running migrations on every startup.\n */\nexport interface SessionMigrationState {\n\t/** Migration version that was run */\n\tversion: number;\n\t/** ISO timestamp of when migration last ran */\n\tlastRun: string;\n\t/** Number of sessions successfully migrated */\n\tsuccesses: number;\n\t/** Number of sessions that failed migration */\n\tfailures: number;\n\t/** Number of sessions that required normalization */\n\tnormalized: number;\n\t/** Number of sessions skipped (already up to date) */\n\tskipped: number;\n\t/** Total sessions processed */\n\ttotal: number;\n}\n\nexport {\n\tnormalizeSessionEntry,\n\tnormalizeStopReasonValue,\n\tparseSessionEntry,\n\tisSessionWireCompactionContextEntry,\n\ttryParseSessionEntry,\n} from \"./wire-format.js\";\n\nexport function isSessionHeaderEntry(\n\tentry: SessionEntry,\n): entry is SessionHeaderEntry {\n\treturn entry.type === \"session\";\n}\n\nexport function isSessionTreeEntry(\n\tentry: SessionEntry,\n): entry is SessionTreeEntry {\n\treturn (\n\t\tentry.type !== \"session\" &&\n\t\tentry.type !== \"session_meta\" &&\n\t\tentry.type !== \"attachment_extract\"\n\t);\n}\n"]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Do not edit manually; update `src/session/wire-format.manifest.json` instead.
|
|
4
4
|
*/
|
|
5
5
|
export declare const sessionWireFormatVersion: "session-wire-format.v1";
|
|
6
|
+
export declare const sessionWireSessionHeaderFields: readonly ["type", "version", "id", "timestamp", "cwd", "subject", "model", "modelMetadata", "thinkingLevel", "systemPrompt", "promptMetadata", "promptContextManifest", "unifiedContextManifest", "tools", "branchedFrom", "parentSession"];
|
|
6
7
|
export declare const sessionWireStopReasonAliases: {
|
|
7
8
|
readonly tool_use: "toolUse";
|
|
8
9
|
readonly tool_calls: "toolUse";
|
|
@@ -23,6 +24,8 @@ export declare const sessionWireFieldAliases: {
|
|
|
23
24
|
readonly thinking_level: "thinkingLevel";
|
|
24
25
|
readonly system_prompt: "systemPrompt";
|
|
25
26
|
readonly prompt_metadata: "promptMetadata";
|
|
27
|
+
readonly prompt_context_manifest: "promptContextManifest";
|
|
28
|
+
readonly unified_context_manifest: "unifiedContextManifest";
|
|
26
29
|
readonly branched_from: "branchedFrom";
|
|
27
30
|
readonly parent_session: "parentSession";
|
|
28
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-format.generated.d.ts","sourceRoot":"","sources":["../../src/session/wire-format.generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAC;AAE1E,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AAEX,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"wire-format.generated.d.ts","sourceRoot":"","sources":["../../src/session/wire-format.generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAC;AAE1E,eAAO,MAAM,8BAA8B,6OAiBjC,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D1B,CAAC;AAEX,eAAO,MAAM,kCAAkC;;CAErC,CAAC;AAEX,eAAO,MAAM,mCAAmC;;;;;;;;CAQtC,CAAC;AAEX,eAAO,MAAM,sCAAsC,0DAIzC,CAAC;AAEX,eAAO,MAAM,gDAAgD,yBAEnD,CAAC;AAaX,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,MAAM;;;;;cAElE;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI7E;AAED,wBAAgB,0CAA0C,CACzD,IAAI,EAAE,MAAM,GACV,OAAO,CAIT"}
|
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
* Do not edit manually; update `src/session/wire-format.manifest.json` instead.
|
|
4
4
|
*/
|
|
5
5
|
export const sessionWireFormatVersion = "session-wire-format.v1";
|
|
6
|
+
export const sessionWireSessionHeaderFields = [
|
|
7
|
+
"type",
|
|
8
|
+
"version",
|
|
9
|
+
"id",
|
|
10
|
+
"timestamp",
|
|
11
|
+
"cwd",
|
|
12
|
+
"subject",
|
|
13
|
+
"model",
|
|
14
|
+
"modelMetadata",
|
|
15
|
+
"thinkingLevel",
|
|
16
|
+
"systemPrompt",
|
|
17
|
+
"promptMetadata",
|
|
18
|
+
"promptContextManifest",
|
|
19
|
+
"unifiedContextManifest",
|
|
20
|
+
"tools",
|
|
21
|
+
"branchedFrom",
|
|
22
|
+
"parentSession",
|
|
23
|
+
];
|
|
6
24
|
export const sessionWireStopReasonAliases = {
|
|
7
25
|
tool_use: "toolUse",
|
|
8
26
|
tool_calls: "toolUse",
|
|
@@ -23,6 +41,8 @@ export const sessionWireFieldAliases = {
|
|
|
23
41
|
thinking_level: "thinkingLevel",
|
|
24
42
|
system_prompt: "systemPrompt",
|
|
25
43
|
prompt_metadata: "promptMetadata",
|
|
44
|
+
prompt_context_manifest: "promptContextManifest",
|
|
45
|
+
unified_context_manifest: "unifiedContextManifest",
|
|
26
46
|
branched_from: "branchedFrom",
|
|
27
47
|
parent_session: "parentSession",
|
|
28
48
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-format.generated.js","sourceRoot":"","sources":["../../src/session/wire-format.generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAiC,CAAC;AAE1E,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,MAAM;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC,aAAa,EAAE;QACd,QAAQ,EAAE,SAAS;QACnB,aAAa,EAAE,cAAc;QAC7B,QAAQ,EAAE,SAAS;QACnB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,WAAW;KACvB;IACD,OAAO,EAAE;QACR,cAAc,EAAE,eAAe;QAC/B,cAAc,EAAE,eAAe;QAC/B,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,gBAAgB;QACjC,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,eAAe;KAC/B;IACD,WAAW,EAAE;QACZ,cAAc,EAAE,eAAe;QAC/B,sBAAsB,EAAE,sBAAsB;KAC9C;IACD,iBAAiB,EAAE;QAClB,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,eAAe;KAC/B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE,YAAY;KACzB;IACD,iBAAiB,EAAE;QAClB,YAAY,EAAE,YAAY;QAC1B,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,SAAS;KACnB;IACD,mBAAmB,EAAE;QACpB,cAAc,EAAE,eAAe;KAC/B;IACD,WAAW,EAAE;QACZ,cAAc,EAAE,eAAe;KAC/B;IACD,UAAU,EAAE;QACX,mBAAmB,EAAE,kBAAkB;QACvC,sBA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E,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAY;IACnE,OAAO,sCAAsC,CAAC,QAAQ,CACrD,IAA+D,CAC/D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0CAA0C,CACzD,IAAY;IAEZ,OAAO,gDAAgD,CAAC,QAAQ,CAC/D,IAAyE,CACzE,CAAC;AACH,CAAC","sourcesContent":["/**\n * Auto-generated by `scripts/session-wire-format-codegen.mjs`.\n * Do not edit manually; update `src/session/wire-format.manifest.json` instead.\n */\n\nexport const sessionWireFormatVersion = \"session-wire-format.v1\" as const;\n\nexport const sessionWireStopReasonAliases = {\n\ttool_use: \"toolUse\",\n\ttool_calls: \"toolUse\",\n\tmax_tokens: \"length\",\n\tend_turn: \"stop\",\n\tstop_sequence: \"stop\",\n} as const;\n\nexport const sessionWireFieldAliases = {\n\tmodelMetadata: {\n\t\tmodel_id: \"modelId\",\n\t\tprovider_name: \"providerName\",\n\t\tbase_url: \"baseUrl\",\n\t\tcontext_window: \"contextWindow\",\n\t\tmax_tokens: \"maxTokens\",\n\t},\n\tsession: {\n\t\tmodel_metadata: \"modelMetadata\",\n\t\tthinking_level: \"thinkingLevel\",\n\t\tsystem_prompt: \"systemPrompt\",\n\t\tprompt_metadata: \"promptMetadata\",\n\t\tbranched_from: \"branchedFrom\",\n\t\tparent_session: \"parentSession\",\n\t},\n\tsessionMeta: {\n\t\tresume_summary: \"resumeSummary\",\n\t\tmemory_extraction_hash: \"memoryExtractionHash\",\n\t},\n\tattachmentExtract: {\n\t\tattachment_id: \"attachmentId\",\n\t\textracted_text: \"extractedText\",\n\t},\n\tassistantMessage: {\n\t\tstop_reason: \"stopReason\",\n\t},\n\ttoolResultMessage: {\n\t\ttool_call_id: \"toolCallId\",\n\t\ttool_name: \"toolName\",\n\t\tis_error: \"isError\",\n\t},\n\tthinkingLevelChange: {\n\t\tthinking_level: \"thinkingLevel\",\n\t},\n\tmodelChange: {\n\t\tmodel_metadata: \"modelMetadata\",\n\t},\n\tcompaction: {\n\t\tfirst_kept_entry_id: \"firstKeptEntryId\",\n\t\tfirst_kept_entry_index: \"firstKeptEntryIndex\",\n\t\ttokens_before: \"tokensBefore\",\n\t\tcustom_instructions: \"customInstructions\",\n\t},\n\tbranchSummary: {\n\t\tfrom_id: \"fromId\",\n\t\tfrom_hook: \"fromHook\",\n\t},\n\tcustom: {\n\t\tcustom_type: \"customType\",\n\t},\n\tcustomMessage: {\n\t\tcustom_type: \"customType\",\n\t},\n\tlabel: {\n\t\ttarget_id: \"targetId\",\n\t},\n} as const;\n\nexport const sessionWireContentBlockTypeAliases = {\n\ttool_call: \"toolCall\",\n} as const;\n\nexport const sessionWireContentBlockFieldAliases = {\n\ttoolCall: {\n\t\targs: \"arguments\",\n\t},\n\tthinking: {\n\t\ttext: \"thinking\",\n\t\tsignature: \"thinkingSignature\",\n\t},\n} as const;\n\nexport const sessionWireCompactionContextEntryTypes = [\n\t\"message\",\n\t\"custom_message\",\n\t\"branch_summary\",\n] as const;\n\nexport const sessionWireCompactionContextExcludedMessageRoles = [\n\t\"toolResult\",\n] as const;\n\ntype SessionWireAliasSource = Readonly<Record<string, unknown>>;\n\nfunction getSessionWireAlias<T extends SessionWireAliasSource>(\n\taliases: T,\n\tkey: string,\n): T[keyof T] | undefined {\n\treturn Object.prototype.hasOwnProperty.call(aliases, key)\n\t\t? aliases[key as keyof T]\n\t\t: undefined;\n}\n\nexport function canonicalSessionWireStopReason(reason: string): string {\n\treturn getSessionWireAlias(sessionWireStopReasonAliases, reason) ?? reason;\n}\n\nexport function canonicalSessionWireContentBlockType(type: string): string {\n\treturn getSessionWireAlias(sessionWireContentBlockTypeAliases, type) ?? type;\n}\n\nexport function getSessionWireContentBlockFieldAliases(type: string) {\n\treturn getSessionWireAlias(sessionWireContentBlockFieldAliases, type);\n}\n\nexport function isSessionWireCompactionContextEntryType(type: string): boolean {\n\treturn sessionWireCompactionContextEntryTypes.includes(\n\t\ttype as (typeof sessionWireCompactionContextEntryTypes)[number],\n\t);\n}\n\nexport function isSessionWireCompactionExcludedMessageRole(\n\trole: string,\n): boolean {\n\treturn sessionWireCompactionContextExcludedMessageRoles.includes(\n\t\trole as (typeof sessionWireCompactionContextExcludedMessageRoles)[number],\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"wire-format.generated.js","sourceRoot":"","sources":["../../src/session/wire-format.generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAiC,CAAC;AAE1E,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC7C,MAAM;IACN,SAAS;IACT,IAAI;IACJ,WAAW;IACX,KAAK;IACL,SAAS;IACT,OAAO;IACP,eAAe;IACf,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,uBAAuB;IACvB,wBAAwB;IACxB,OAAO;IACP,cAAc;IACd,eAAe;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,MAAM;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC,aAAa,EAAE;QACd,QAAQ,EAAE,SAAS;QACnB,aAAa,EAAE,cAAc;QAC7B,QAAQ,EAAE,SAAS;QACnB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,WAAW;KACvB;IACD,OAAO,EAAE;QACR,cAAc,EAAE,eAAe;QAC/B,cAAc,EAAE,eAAe;QAC/B,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,gBAAgB;QACjC,uBAAuB,EAAE,uBAAuB;QAChD,wBAAwB,EAAE,wBAAwB;QAClD,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,eAAe;KAC/B;IACD,WAAW,EAAE;QACZ,cAAc,EAAE,eAAe;QAC/B,sBAAsB,EAAE,sBAA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AC,OAAO,CAAC,GAAc,CAAC;QACzB,CAAC,CAAC,SAAS,CAAC;AACd,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,MAAc;IAC5D,OAAO,mBAAmB,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,IAAY;IAChE,OAAO,mBAAmB,CAAC,kCAAkC,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,sCAAsC,CAAC,IAAY;IAClE,OAAO,mBAAmB,CAAC,mCAAmC,EAAE,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAY;IACnE,OAAO,sCAAsC,CAAC,QAAQ,CACrD,IAA+D,CAC/D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0CAA0C,CACzD,IAAY;IAEZ,OAAO,gDAAgD,CAAC,QAAQ,CAC/D,IAAyE,CACzE,CAAC;AACH,CAAC","sourcesContent":["/**\n * Auto-generated by `scripts/session-wire-format-codegen.mjs`.\n * Do not edit manually; update `src/session/wire-format.manifest.json` instead.\n */\n\nexport const sessionWireFormatVersion = \"session-wire-format.v1\" as const;\n\nexport const sessionWireSessionHeaderFields = [\n\t\"type\",\n\t\"version\",\n\t\"id\",\n\t\"timestamp\",\n\t\"cwd\",\n\t\"subject\",\n\t\"model\",\n\t\"modelMetadata\",\n\t\"thinkingLevel\",\n\t\"systemPrompt\",\n\t\"promptMetadata\",\n\t\"promptContextManifest\",\n\t\"unifiedContextManifest\",\n\t\"tools\",\n\t\"branchedFrom\",\n\t\"parentSession\",\n] as const;\n\nexport const sessionWireStopReasonAliases = {\n\ttool_use: \"toolUse\",\n\ttool_calls: \"toolUse\",\n\tmax_tokens: \"length\",\n\tend_turn: \"stop\",\n\tstop_sequence: \"stop\",\n} as const;\n\nexport const sessionWireFieldAliases = {\n\tmodelMetadata: {\n\t\tmodel_id: \"modelId\",\n\t\tprovider_name: \"providerName\",\n\t\tbase_url: \"baseUrl\",\n\t\tcontext_window: \"contextWindow\",\n\t\tmax_tokens: \"maxTokens\",\n\t},\n\tsession: {\n\t\tmodel_metadata: \"modelMetadata\",\n\t\tthinking_level: \"thinkingLevel\",\n\t\tsystem_prompt: \"systemPrompt\",\n\t\tprompt_metadata: \"promptMetadata\",\n\t\tprompt_context_manifest: \"promptContextManifest\",\n\t\tunified_context_manifest: \"unifiedContextManifest\",\n\t\tbranched_from: \"branchedFrom\",\n\t\tparent_session: \"parentSession\",\n\t},\n\tsessionMeta: {\n\t\tresume_summary: \"resumeSummary\",\n\t\tmemory_extraction_hash: \"memoryExtractionHash\",\n\t},\n\tattachmentExtract: {\n\t\tattachment_id: \"attachmentId\",\n\t\textracted_text: \"extractedText\",\n\t},\n\tassistantMessage: {\n\t\tstop_reason: \"stopReason\",\n\t},\n\ttoolResultMessage: {\n\t\ttool_call_id: \"toolCallId\",\n\t\ttool_name: \"toolName\",\n\t\tis_error: \"isError\",\n\t},\n\tthinkingLevelChange: {\n\t\tthinking_level: \"thinkingLevel\",\n\t},\n\tmodelChange: {\n\t\tmodel_metadata: \"modelMetadata\",\n\t},\n\tcompaction: {\n\t\tfirst_kept_entry_id: \"firstKeptEntryId\",\n\t\tfirst_kept_entry_index: \"firstKeptEntryIndex\",\n\t\ttokens_before: \"tokensBefore\",\n\t\tcustom_instructions: \"customInstructions\",\n\t},\n\tbranchSummary: {\n\t\tfrom_id: \"fromId\",\n\t\tfrom_hook: \"fromHook\",\n\t},\n\tcustom: {\n\t\tcustom_type: \"customType\",\n\t},\n\tcustomMessage: {\n\t\tcustom_type: \"customType\",\n\t},\n\tlabel: {\n\t\ttarget_id: \"targetId\",\n\t},\n} as const;\n\nexport const sessionWireContentBlockTypeAliases = {\n\ttool_call: \"toolCall\",\n} as const;\n\nexport const sessionWireContentBlockFieldAliases = {\n\ttoolCall: {\n\t\targs: \"arguments\",\n\t},\n\tthinking: {\n\t\ttext: \"thinking\",\n\t\tsignature: \"thinkingSignature\",\n\t},\n} as const;\n\nexport const sessionWireCompactionContextEntryTypes = [\n\t\"message\",\n\t\"custom_message\",\n\t\"branch_summary\",\n] as const;\n\nexport const sessionWireCompactionContextExcludedMessageRoles = [\n\t\"toolResult\",\n] as const;\n\ntype SessionWireAliasSource = Readonly<Record<string, unknown>>;\n\nfunction getSessionWireAlias<T extends SessionWireAliasSource>(\n\taliases: T,\n\tkey: string,\n): T[keyof T] | undefined {\n\treturn Object.prototype.hasOwnProperty.call(aliases, key)\n\t\t? aliases[key as keyof T]\n\t\t: undefined;\n}\n\nexport function canonicalSessionWireStopReason(reason: string): string {\n\treturn getSessionWireAlias(sessionWireStopReasonAliases, reason) ?? reason;\n}\n\nexport function canonicalSessionWireContentBlockType(type: string): string {\n\treturn getSessionWireAlias(sessionWireContentBlockTypeAliases, type) ?? type;\n}\n\nexport function getSessionWireContentBlockFieldAliases(type: string) {\n\treturn getSessionWireAlias(sessionWireContentBlockFieldAliases, type);\n}\n\nexport function isSessionWireCompactionContextEntryType(type: string): boolean {\n\treturn sessionWireCompactionContextEntryTypes.includes(\n\t\ttype as (typeof sessionWireCompactionContextEntryTypes)[number],\n\t);\n}\n\nexport function isSessionWireCompactionExcludedMessageRole(\n\trole: string,\n): boolean {\n\treturn sessionWireCompactionContextExcludedMessageRoles.includes(\n\t\trole as (typeof sessionWireCompactionContextExcludedMessageRoles)[number],\n\t);\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type SkillLintIssue, lintSkillPaths } from "./linter.js";
|
|
2
|
+
type SkillEvalOptions = NonNullable<Parameters<typeof lintSkillPaths>[1]>;
|
|
3
|
+
export type SkillEvalOutcome = "pass" | "fail";
|
|
4
|
+
export type SkillEvalAssertionStatus = "pass" | "fail";
|
|
5
|
+
export interface SkillEvalCase {
|
|
6
|
+
id?: string;
|
|
7
|
+
path: string;
|
|
8
|
+
expectedOutcome?: SkillEvalOutcome;
|
|
9
|
+
}
|
|
10
|
+
export interface SkillEvalAssertion {
|
|
11
|
+
code: string;
|
|
12
|
+
status: SkillEvalAssertionStatus;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SkillEvalResult {
|
|
16
|
+
id: string;
|
|
17
|
+
path: string;
|
|
18
|
+
expectedOutcome: SkillEvalOutcome;
|
|
19
|
+
observedOutcome: SkillEvalOutcome;
|
|
20
|
+
matchedExpectation: boolean;
|
|
21
|
+
assertions: SkillEvalAssertion[];
|
|
22
|
+
issues: SkillLintIssue[];
|
|
23
|
+
}
|
|
24
|
+
export interface SkillEvalReport {
|
|
25
|
+
schemaVersion: "evalops.maestro.skill-package-eval.v1";
|
|
26
|
+
summary: {
|
|
27
|
+
total: number;
|
|
28
|
+
passed: number;
|
|
29
|
+
failed: number;
|
|
30
|
+
score: number;
|
|
31
|
+
};
|
|
32
|
+
results: SkillEvalResult[];
|
|
33
|
+
}
|
|
34
|
+
export declare function evaluateSkillPackages(cases: SkillEvalCase[], options?: SkillEvalOptions): Promise<SkillEvalReport>;
|
|
35
|
+
export declare function hasSkillEvalFailures(report: SkillEvalReport): boolean;
|
|
36
|
+
export declare function formatSkillEvalText(report: SkillEvalReport): string;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=eval-harness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-harness.d.ts","sourceRoot":"","sources":["../../src/skills/eval-harness.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,cAAc,EAGnB,cAAc,EACd,MAAM,aAAa,CAAC;AAErB,KAAK,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAC/C,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,gBAAgB,CAAC;IAClC,eAAe,EAAE,gBAAgB,CAAC;IAClC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,MAAM,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC/B,aAAa,EAAE,uCAAuC,CAAC;IACvD,OAAO,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,OAAO,EAAE,eAAe,EAAE,CAAC;CAC3B;AA4FD,wBAAsB,qBAAqB,CAC1C,KAAK,EAAE,aAAa,EAAE,EACtB,OAAO,GAAE,gBAAqB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAkC1B;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAErE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAuBnE"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { basename } from "node:path";
|
|
2
|
+
import { hasSkillLintErrors, lintSkillPaths, } from "./linter.js";
|
|
3
|
+
function assertion(code, status, message) {
|
|
4
|
+
return { code, status, message };
|
|
5
|
+
}
|
|
6
|
+
function hasIssue(result, codes) {
|
|
7
|
+
const wanted = new Set(codes);
|
|
8
|
+
return result.issues.some((issue) => wanted.has(issue.code));
|
|
9
|
+
}
|
|
10
|
+
function hasIssuePrefix(result, prefixes) {
|
|
11
|
+
return result.issues.some((issue) => prefixes.some((prefix) => issue.code.startsWith(prefix)));
|
|
12
|
+
}
|
|
13
|
+
function assertionsFor(result) {
|
|
14
|
+
const lintPasses = !hasSkillLintErrors([result]);
|
|
15
|
+
const loadable = !hasIssue(result, [
|
|
16
|
+
"missing_skill_md",
|
|
17
|
+
"invalid_skill_md",
|
|
18
|
+
"missing_name",
|
|
19
|
+
"invalid_name",
|
|
20
|
+
"name_mismatch",
|
|
21
|
+
"missing_description",
|
|
22
|
+
]);
|
|
23
|
+
const boundedMcp = !hasIssue(result, [
|
|
24
|
+
"mcp_tools_unfiltered",
|
|
25
|
+
"invalid_mcp_include_tools",
|
|
26
|
+
"invalid_mcp_json",
|
|
27
|
+
"invalid_mcp_server",
|
|
28
|
+
"invalid_mcp_command",
|
|
29
|
+
"invalid_mcp_args",
|
|
30
|
+
"invalid_mcp_env",
|
|
31
|
+
]);
|
|
32
|
+
const toolboxRunnable = !hasIssuePrefix(result, ["toolbox_"]);
|
|
33
|
+
const bodyWithinBudget = !hasIssue(result, ["skill_oversize"]);
|
|
34
|
+
return [
|
|
35
|
+
assertion("lint_passes", lintPasses ? "pass" : "fail", lintPasses
|
|
36
|
+
? "Package has no blocking lint issues."
|
|
37
|
+
: "Package has blocking lint issues."),
|
|
38
|
+
assertion("skill_md_loadable", loadable ? "pass" : "fail", loadable
|
|
39
|
+
? "SKILL.md frontmatter is loadable."
|
|
40
|
+
: "SKILL.md frontmatter is not loadable."),
|
|
41
|
+
assertion("mcp_tools_bounded", boundedMcp ? "pass" : "fail", boundedMcp
|
|
42
|
+
? "Bundled MCP servers are filtered and well-formed."
|
|
43
|
+
: "Bundled MCP servers are missing bounded includeTools or are malformed."),
|
|
44
|
+
assertion("toolbox_runnable", toolboxRunnable ? "pass" : "fail", toolboxRunnable
|
|
45
|
+
? "Toolbox entries are executable for the target platform."
|
|
46
|
+
: "Toolbox entries are not executable or fail describe checks."),
|
|
47
|
+
assertion("progressive_disclosure_budget", bodyWithinBudget ? "pass" : "fail", bodyWithinBudget
|
|
48
|
+
? "SKILL.md stays within progressive-disclosure budget."
|
|
49
|
+
: "SKILL.md exceeds progressive-disclosure budget."),
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
function resultId(evalCase, lintResult, resultCount) {
|
|
53
|
+
if (evalCase.id && resultCount === 1)
|
|
54
|
+
return evalCase.id;
|
|
55
|
+
if (evalCase.id)
|
|
56
|
+
return `${evalCase.id}:${basename(lintResult.path)}`;
|
|
57
|
+
return basename(lintResult.path);
|
|
58
|
+
}
|
|
59
|
+
export async function evaluateSkillPackages(cases, options = {}) {
|
|
60
|
+
const results = [];
|
|
61
|
+
for (const evalCase of cases) {
|
|
62
|
+
const lintResults = await lintSkillPaths([evalCase.path], options);
|
|
63
|
+
for (const lintResult of lintResults) {
|
|
64
|
+
const assertions = assertionsFor(lintResult);
|
|
65
|
+
const observedOutcome = assertions.some((item) => item.status === "fail")
|
|
66
|
+
? "fail"
|
|
67
|
+
: "pass";
|
|
68
|
+
const expectedOutcome = evalCase.expectedOutcome ?? "pass";
|
|
69
|
+
results.push({
|
|
70
|
+
id: resultId(evalCase, lintResult, lintResults.length),
|
|
71
|
+
path: lintResult.path,
|
|
72
|
+
expectedOutcome,
|
|
73
|
+
observedOutcome,
|
|
74
|
+
matchedExpectation: observedOutcome === expectedOutcome,
|
|
75
|
+
assertions,
|
|
76
|
+
issues: lintResult.issues,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const passed = results.filter((result) => result.matchedExpectation).length;
|
|
81
|
+
const failed = results.length - passed;
|
|
82
|
+
return {
|
|
83
|
+
schemaVersion: "evalops.maestro.skill-package-eval.v1",
|
|
84
|
+
summary: {
|
|
85
|
+
total: results.length,
|
|
86
|
+
passed,
|
|
87
|
+
failed,
|
|
88
|
+
score: results.length === 0 ? 1 : passed / results.length,
|
|
89
|
+
},
|
|
90
|
+
results,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export function hasSkillEvalFailures(report) {
|
|
94
|
+
return report.summary.failed > 0;
|
|
95
|
+
}
|
|
96
|
+
export function formatSkillEvalText(report) {
|
|
97
|
+
const lines = [];
|
|
98
|
+
for (const result of report.results) {
|
|
99
|
+
const status = result.matchedExpectation ? "PASS" : "FAIL";
|
|
100
|
+
lines.push(`${status} ${result.id} expected=${result.expectedOutcome} observed=${result.observedOutcome}`);
|
|
101
|
+
for (const assertionResult of result.assertions) {
|
|
102
|
+
lines.push(` ${assertionResult.status.toUpperCase()} ${assertionResult.code}: ${assertionResult.message}`);
|
|
103
|
+
}
|
|
104
|
+
for (const issue of result.issues) {
|
|
105
|
+
lines.push(` ${issue.severity.toUpperCase()} ${issue.code}: ${issue.message}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
lines.push("");
|
|
109
|
+
lines.push(`${report.summary.passed} passed, ${report.summary.failed} failed, score ${report.summary.score.toFixed(2)}`);
|
|
110
|
+
return lines.join("\n");
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=eval-harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-harness.js","sourceRoot":"","sources":["../../src/skills/eval-harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAGN,kBAAkB,EAClB,cAAc,GACd,MAAM,aAAa,CAAC;AAwCrB,SAAS,SAAS,CACjB,IAAY,EACZ,MAAgC,EAChC,OAAe;IAEf,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAClC,CAAC;AAED,SAAS,QAAQ,CAAC,MAAuB,EAAE,KAAe;IACzD,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,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,CAAC,OAAO,EAAE,CAAC;QACrC,MAAM,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3D,KAAK,CAAC,IAAI,CACT,GAAG,MAAM,IAAI,MAAM,CAAC,EAAE,aAAa,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,EAAE,CAC9F,CAAC;QACF,KAAK,MAAM,eAAe,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACjD,KAAK,CAAC,IAAI,CACT,KAAK,eAAe,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,eAAe,CAAC,IAAI,KAAK,eAAe,CAAC,OAAO,EAAE,CAC/F,CAAC;QACH,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YACnC,KAAK,CAAC,IAAI,CACT,KAAK,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CACnE,CAAC;QACH,CAAC;IACF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CACT,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,YAAY,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAC5G,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC","sourcesContent":["import { basename } from \"node:path\";\nimport {\n\ttype SkillLintIssue,\n\ttype SkillLintResult,\n\thasSkillLintErrors,\n\tlintSkillPaths,\n} from \"./linter.js\";\n\ntype SkillEvalOptions = NonNullable<Parameters<typeof lintSkillPaths>[1]>;\n\nexport type SkillEvalOutcome = \"pass\" | \"fail\";\nexport type SkillEvalAssertionStatus = \"pass\" | \"fail\";\n\nexport interface SkillEvalCase {\n\tid?: string;\n\tpath: string;\n\texpectedOutcome?: SkillEvalOutcome;\n}\n\nexport interface SkillEvalAssertion {\n\tcode: string;\n\tstatus: SkillEvalAssertionStatus;\n\tmessage: string;\n}\n\nexport interface SkillEvalResult {\n\tid: string;\n\tpath: string;\n\texpectedOutcome: SkillEvalOutcome;\n\tobservedOutcome: SkillEvalOutcome;\n\tmatchedExpectation: boolean;\n\tassertions: SkillEvalAssertion[];\n\tissues: SkillLintIssue[];\n}\n\nexport interface SkillEvalReport {\n\tschemaVersion: \"evalops.maestro.skill-package-eval.v1\";\n\tsummary: {\n\t\ttotal: number;\n\t\tpassed: number;\n\t\tfailed: number;\n\t\tscore: number;\n\t};\n\tresults: SkillEvalResult[];\n}\n\nfunction assertion(\n\tcode: string,\n\tstatus: SkillEvalAssertionStatus,\n\tmessage: string,\n): SkillEvalAssertion {\n\treturn { code, status, message };\n}\n\nfunction hasIssue(result: SkillLintResult, codes: string[]): boolean {\n\tconst wanted = new Set(codes);\n\treturn result.issues.some((issue) => wanted.has(issue.code));\n}\n\nfunction hasIssuePrefix(result: SkillLintResult, prefixes: string[]): boolean {\n\treturn result.issues.some((issue) =>\n\t\tprefixes.some((prefix) => issue.code.startsWith(prefix)),\n\t);\n}\n\nfunction assertionsFor(result: SkillLintResult): SkillEvalAssertion[] {\n\tconst lintPasses = !hasSkillLintErrors([result]);\n\tconst loadable = !hasIssue(result, [\n\t\t\"missing_skill_md\",\n\t\t\"invalid_skill_md\",\n\t\t\"missing_name\",\n\t\t\"invalid_name\",\n\t\t\"name_mismatch\",\n\t\t\"missing_description\",\n\t]);\n\tconst boundedMcp = !hasIssue(result, [\n\t\t\"mcp_tools_unfiltered\",\n\t\t\"invalid_mcp_include_tools\",\n\t\t\"invalid_mcp_json\",\n\t\t\"invalid_mcp_server\",\n\t\t\"invalid_mcp_command\",\n\t\t\"invalid_mcp_args\",\n\t\t\"invalid_mcp_env\",\n\t]);\n\tconst toolboxRunnable = !hasIssuePrefix(result, [\"toolbox_\"]);\n\tconst bodyWithinBudget = !hasIssue(result, [\"skill_oversize\"]);\n\n\treturn [\n\t\tassertion(\n\t\t\t\"lint_passes\",\n\t\t\tlintPasses ? \"pass\" : \"fail\",\n\t\t\tlintPasses\n\t\t\t\t? \"Package has no blocking lint issues.\"\n\t\t\t\t: \"Package has blocking lint issues.\",\n\t\t),\n\t\tassertion(\n\t\t\t\"skill_md_loadable\",\n\t\t\tloadable ? \"pass\" : \"fail\",\n\t\t\tloadable\n\t\t\t\t? \"SKILL.md frontmatter is loadable.\"\n\t\t\t\t: \"SKILL.md frontmatter is not loadable.\",\n\t\t),\n\t\tassertion(\n\t\t\t\"mcp_tools_bounded\",\n\t\t\tboundedMcp ? \"pass\" : \"fail\",\n\t\t\tboundedMcp\n\t\t\t\t? \"Bundled MCP servers are filtered and well-formed.\"\n\t\t\t\t: \"Bundled MCP servers are missing bounded includeTools or are malformed.\",\n\t\t),\n\t\tassertion(\n\t\t\t\"toolbox_runnable\",\n\t\t\ttoolboxRunnable ? \"pass\" : \"fail\",\n\t\t\ttoolboxRunnable\n\t\t\t\t? \"Toolbox entries are executable for the target platform.\"\n\t\t\t\t: \"Toolbox entries are not executable or fail describe checks.\",\n\t\t),\n\t\tassertion(\n\t\t\t\"progressive_disclosure_budget\",\n\t\t\tbodyWithinBudget ? \"pass\" : \"fail\",\n\t\t\tbodyWithinBudget\n\t\t\t\t? \"SKILL.md stays within progressive-disclosure budget.\"\n\t\t\t\t: \"SKILL.md exceeds progressive-disclosure budget.\",\n\t\t),\n\t];\n}\n\nfunction resultId(\n\tevalCase: SkillEvalCase,\n\tlintResult: SkillLintResult,\n\tresultCount: number,\n): string {\n\tif (evalCase.id && resultCount === 1) return evalCase.id;\n\tif (evalCase.id) return `${evalCase.id}:${basename(lintResult.path)}`;\n\treturn basename(lintResult.path);\n}\n\nexport async function evaluateSkillPackages(\n\tcases: SkillEvalCase[],\n\toptions: SkillEvalOptions = {},\n): Promise<SkillEvalReport> {\n\tconst results: SkillEvalResult[] = [];\n\tfor (const evalCase of cases) {\n\t\tconst lintResults = await lintSkillPaths([evalCase.path], options);\n\t\tfor (const lintResult of lintResults) {\n\t\t\tconst assertions = assertionsFor(lintResult);\n\t\t\tconst observedOutcome = assertions.some((item) => item.status === \"fail\")\n\t\t\t\t? \"fail\"\n\t\t\t\t: \"pass\";\n\t\t\tconst expectedOutcome = evalCase.expectedOutcome ?? \"pass\";\n\t\t\tresults.push({\n\t\t\t\tid: resultId(evalCase, lintResult, lintResults.length),\n\t\t\t\tpath: lintResult.path,\n\t\t\t\texpectedOutcome,\n\t\t\t\tobservedOutcome,\n\t\t\t\tmatchedExpectation: observedOutcome === expectedOutcome,\n\t\t\t\tassertions,\n\t\t\t\tissues: lintResult.issues,\n\t\t\t});\n\t\t}\n\t}\n\n\tconst passed = results.filter((result) => result.matchedExpectation).length;\n\tconst failed = results.length - passed;\n\treturn {\n\t\tschemaVersion: \"evalops.maestro.skill-package-eval.v1\",\n\t\tsummary: {\n\t\t\ttotal: results.length,\n\t\t\tpassed,\n\t\t\tfailed,\n\t\t\tscore: results.length === 0 ? 1 : passed / results.length,\n\t\t},\n\t\tresults,\n\t};\n}\n\nexport function hasSkillEvalFailures(report: SkillEvalReport): boolean {\n\treturn report.summary.failed > 0;\n}\n\nexport function formatSkillEvalText(report: SkillEvalReport): string {\n\tconst lines: string[] = [];\n\tfor (const result of report.results) {\n\t\tconst status = result.matchedExpectation ? \"PASS\" : \"FAIL\";\n\t\tlines.push(\n\t\t\t`${status} ${result.id} expected=${result.expectedOutcome} observed=${result.observedOutcome}`,\n\t\t);\n\t\tfor (const assertionResult of result.assertions) {\n\t\t\tlines.push(\n\t\t\t\t` ${assertionResult.status.toUpperCase()} ${assertionResult.code}: ${assertionResult.message}`,\n\t\t\t);\n\t\t}\n\t\tfor (const issue of result.issues) {\n\t\t\tlines.push(\n\t\t\t\t` ${issue.severity.toUpperCase()} ${issue.code}: ${issue.message}`,\n\t\t\t);\n\t\t}\n\t}\n\tlines.push(\"\");\n\tlines.push(\n\t\t`${report.summary.passed} passed, ${report.summary.failed} failed, score ${report.summary.score.toFixed(2)}`,\n\t);\n\treturn lines.join(\"\\n\");\n}\n"]}
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
* const summary = getSkillsSummary(skills);
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export { type LoadedSkill, type SkillDefinition, type SkillResource, findSkill, formatSkillForInjection, formatSkillListItem, formatSkillMetadataOnly, formatSkillsForSystemPrompt, getSkillsSummary, loadSkills, searchSkills, } from "./loader.js";
|
|
32
|
+
export { type LoadedSkill, type SkillDefinition, type SkillResource, findSkill, findSkillMd, formatSkillForInjection, formatSkillListItem, formatSkillMetadataOnly, formatSkillsForSystemPrompt, getSkillsSummary, loadSkills, parseFrontmatter, searchSkills, skillToDict, skillToJson, skillsToPrompt, stringArrayValue, } from "./loader.js";
|
|
33
33
|
export { createSkillTool, invalidateSkillCache } from "./tool.js";
|
|
34
|
+
export { type SkillRuntimeActivation, type SkillRuntimeActivationOptions, type SkillRuntimeMcpActivation, type SkillRuntimeMcpServer, type SkillRuntimeResource, type SkillRuntimeResourceDirectories, type SkillRuntimeToolboxActivation, type SkillRuntimeToolboxEntry, buildSkillRuntimeActivation, } from "./runtime-activation.js";
|
|
35
|
+
export { type SkillLintIssue, type SkillLintResult, type SkillScaffoldOptions, SKILL_BODY_MAX_CHARS, SKILL_BODY_MAX_LINES, formatSkillLintText, hasSkillLintErrors, isWindowsRunnableToolboxEntry, lintSkillDirectory, lintSkillPaths, scaffoldSkill, shouldUseShellForToolboxDescribe, toolboxDescribeSpawnCommand, } from "./linter.js";
|
|
36
|
+
export { type SkillEvalAssertion, type SkillEvalCase, type SkillEvalOutcome, type SkillEvalReport, type SkillEvalResult, evaluateSkillPackages, formatSkillEvalText, hasSkillEvalFailures, } from "./eval-harness.js";
|
|
37
|
+
export { MAESTRO_PACKAGE_KEYWORD, MAESTRO_SKILL_PACKAGE_KEYWORD, SKILL_PACKAGE_CONTRACT_SCHEMA, type BuildSkillPackagePublishContractOptions, type SkillPackageContractIssue, type SkillPackageInstallCommandSet, type SkillPackagePublishContract, buildSkillPackagePublishContract, formatSkillPackageInstallSource, formatSkillPackagePublishContract, } from "./package-contract.js";
|
|
34
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,SAAS,EACT,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,GAChB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,2BAA2B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,6BAA6B,EAC7B,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gCAAgC,EAChC,2BAA2B,GAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,KAAK,uCAAuC,EAC5C,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,GACjC,MAAM,uBAAuB,CAAC"}
|
package/dist/skills/index.js
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
* const summary = getSkillsSummary(skills);
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export { findSkill, formatSkillForInjection, formatSkillListItem, formatSkillMetadataOnly, formatSkillsForSystemPrompt, getSkillsSummary, loadSkills, searchSkills, } from "./loader.js";
|
|
32
|
+
export { findSkill, findSkillMd, formatSkillForInjection, formatSkillListItem, formatSkillMetadataOnly, formatSkillsForSystemPrompt, getSkillsSummary, loadSkills, parseFrontmatter, searchSkills, skillToDict, skillToJson, skillsToPrompt, stringArrayValue, } from "./loader.js";
|
|
33
33
|
export { createSkillTool, invalidateSkillCache } from "./tool.js";
|
|
34
|
+
export { buildSkillRuntimeActivation, } from "./runtime-activation.js";
|
|
35
|
+
export { SKILL_BODY_MAX_CHARS, SKILL_BODY_MAX_LINES, formatSkillLintText, hasSkillLintErrors, isWindowsRunnableToolboxEntry, lintSkillDirectory, lintSkillPaths, scaffoldSkill, shouldUseShellForToolboxDescribe, toolboxDescribeSpawnCommand, } from "./linter.js";
|
|
36
|
+
export { evaluateSkillPackages, formatSkillEvalText, hasSkillEvalFailures, } from "./eval-harness.js";
|
|
37
|
+
export { MAESTRO_PACKAGE_KEYWORD, MAESTRO_SKILL_PACKAGE_KEYWORD, SKILL_PACKAGE_CONTRACT_SCHEMA, buildSkillPackagePublishContract, formatSkillPackageInstallSource, formatSkillPackagePublishContract, } from "./package-contract.js";
|
|
34
38
|
//# sourceMappingURL=index.js.map
|
package/dist/skills/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAIN,SAAS,EACT,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAIN,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,GAChB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EASN,2BAA2B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIN,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,6BAA6B,EAC7B,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gCAAgC,EAChC,2BAA2B,GAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAMN,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAK7B,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,GACjC,MAAM,uBAAuB,CAAC","sourcesContent":["/**\n * Skills System - Dynamic skill discovery and loading.\n *\n * Skills are domain-specific instruction sets that can be loaded\n * dynamically by the agent when it recognizes a matching task.\n *\n * ## Progressive Skill Disclosure (#857)\n *\n * Skills use a two-phase loading system for context efficiency:\n *\n * 1. **System Prompt**: Only inject metadata (name + description) using\n * `formatSkillsForSystemPrompt()` - ~10 tokens per skill\n * 2. **On-Demand**: Agent uses `read` tool to load full SKILL.md when needed\n * - ~500+ tokens per skill, only when relevant\n *\n * This scales to 20+ skills without degrading conversation quality.\n *\n * @example\n * ```typescript\n * import { loadSkills, formatSkillsForSystemPrompt } from \"./skills\";\n *\n * // Load all available skills\n * const { skills } = loadSkills(process.cwd());\n *\n * // Get lightweight metadata for system prompt (progressive disclosure)\n * const systemPromptSkills = formatSkillsForSystemPrompt(skills);\n *\n * // Or use legacy full-content approach (not recommended)\n * const summary = getSkillsSummary(skills);\n * ```\n */\n\nexport {\n\ttype LoadedSkill,\n\ttype SkillDefinition,\n\ttype SkillResource,\n\tfindSkill,\n\tfindSkillMd,\n\tformatSkillForInjection,\n\tformatSkillListItem,\n\tformatSkillMetadataOnly,\n\tformatSkillsForSystemPrompt,\n\tgetSkillsSummary,\n\tloadSkills,\n\tparseFrontmatter,\n\tsearchSkills,\n\tskillToDict,\n\tskillToJson,\n\tskillsToPrompt,\n\tstringArrayValue,\n} from \"./loader.js\";\n\nexport { createSkillTool, invalidateSkillCache } from \"./tool.js\";\nexport {\n\ttype SkillRuntimeActivation,\n\ttype SkillRuntimeActivationOptions,\n\ttype SkillRuntimeMcpActivation,\n\ttype SkillRuntimeMcpServer,\n\ttype SkillRuntimeResource,\n\ttype SkillRuntimeResourceDirectories,\n\ttype SkillRuntimeToolboxActivation,\n\ttype SkillRuntimeToolboxEntry,\n\tbuildSkillRuntimeActivation,\n} from \"./runtime-activation.js\";\nexport {\n\ttype SkillLintIssue,\n\ttype SkillLintResult,\n\ttype SkillScaffoldOptions,\n\tSKILL_BODY_MAX_CHARS,\n\tSKILL_BODY_MAX_LINES,\n\tformatSkillLintText,\n\thasSkillLintErrors,\n\tisWindowsRunnableToolboxEntry,\n\tlintSkillDirectory,\n\tlintSkillPaths,\n\tscaffoldSkill,\n\tshouldUseShellForToolboxDescribe,\n\ttoolboxDescribeSpawnCommand,\n} from \"./linter.js\";\n\nexport {\n\ttype SkillEvalAssertion,\n\ttype SkillEvalCase,\n\ttype SkillEvalOutcome,\n\ttype SkillEvalReport,\n\ttype SkillEvalResult,\n\tevaluateSkillPackages,\n\tformatSkillEvalText,\n\thasSkillEvalFailures,\n} from \"./eval-harness.js\";\nexport {\n\tMAESTRO_PACKAGE_KEYWORD,\n\tMAESTRO_SKILL_PACKAGE_KEYWORD,\n\tSKILL_PACKAGE_CONTRACT_SCHEMA,\n\ttype BuildSkillPackagePublishContractOptions,\n\ttype SkillPackageContractIssue,\n\ttype SkillPackageInstallCommandSet,\n\ttype SkillPackagePublishContract,\n\tbuildSkillPackagePublishContract,\n\tformatSkillPackageInstallSource,\n\tformatSkillPackagePublishContract,\n} from \"./package-contract.js\";\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type SkillLintSeverity = "error" | "warning";
|
|
2
|
+
export interface SkillLintIssue {
|
|
3
|
+
code: string;
|
|
4
|
+
severity: SkillLintSeverity;
|
|
5
|
+
message: string;
|
|
6
|
+
path: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SkillLintResult {
|
|
9
|
+
path: string;
|
|
10
|
+
issues: SkillLintIssue[];
|
|
11
|
+
}
|
|
12
|
+
export interface SkillScaffoldOptions {
|
|
13
|
+
description?: string;
|
|
14
|
+
force?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface SkillScaffoldResult {
|
|
17
|
+
name: string;
|
|
18
|
+
directory: string;
|
|
19
|
+
files: string[];
|
|
20
|
+
}
|
|
21
|
+
type SkillLintOptions = {
|
|
22
|
+
describeToolbox?: boolean;
|
|
23
|
+
platform?: NodeJS.Platform;
|
|
24
|
+
};
|
|
25
|
+
export declare const SKILL_BODY_MAX_LINES = 500;
|
|
26
|
+
export declare const SKILL_BODY_MAX_CHARS = 20000;
|
|
27
|
+
export declare function isWindowsRunnableToolboxEntry(path: string, pathExt?: string | undefined): boolean;
|
|
28
|
+
export declare function shouldUseShellForToolboxDescribe(platform?: NodeJS.Platform): boolean;
|
|
29
|
+
export declare function toolboxDescribeSpawnCommand(path: string, platform?: NodeJS.Platform): string;
|
|
30
|
+
export declare function lintSkillDirectory(skillDir: string, options?: SkillLintOptions): Promise<SkillLintResult>;
|
|
31
|
+
export declare function lintSkillPaths(paths: string[], options?: SkillLintOptions): Promise<SkillLintResult[]>;
|
|
32
|
+
export declare function formatSkillLintText(results: SkillLintResult[]): string;
|
|
33
|
+
export declare function hasSkillLintErrors(results: SkillLintResult[]): boolean;
|
|
34
|
+
export declare function scaffoldSkill(baseDir: string, name: string, options?: SkillScaffoldOptions): SkillScaffoldResult;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=linter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/skills/linter.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM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