@pikku/core 0.12.83 → 0.12.84
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/CHANGELOG.md +68 -0
- package/README.md +1 -1
- package/dist/ecosystem/agent-scorer.d.ts +12 -0
- package/dist/ecosystem/agent-scorer.js +5 -0
- package/dist/ecosystem/agent.d.ts +18 -0
- package/dist/ecosystem/agent.js +6 -0
- package/dist/ecosystem/ai-agent.d.ts +18 -0
- package/dist/ecosystem/ai-agent.js +6 -0
- package/dist/ecosystem/ai-scorer.d.ts +12 -0
- package/dist/ecosystem/ai-scorer.js +5 -0
- package/dist/ecosystem/channel/local.d.ts +1 -0
- package/dist/ecosystem/channel/local.js +1 -0
- package/dist/ecosystem/channel.d.ts +12 -0
- package/dist/ecosystem/channel.js +4 -0
- package/dist/ecosystem/cli/channel.d.ts +16 -0
- package/dist/ecosystem/cli/channel.js +2 -0
- package/dist/ecosystem/cli.d.ts +9 -0
- package/dist/ecosystem/cli.js +2 -0
- package/dist/ecosystem/credential.d.ts +9 -0
- package/dist/ecosystem/credential.js +1 -0
- package/dist/ecosystem/dev.d.ts +8 -0
- package/dist/ecosystem/dev.js +1 -0
- package/dist/ecosystem/function.d.ts +13 -0
- package/dist/ecosystem/function.js +2 -0
- package/dist/ecosystem/gateway.d.ts +1 -0
- package/dist/ecosystem/gateway.js +1 -0
- package/dist/ecosystem/hmac.d.ts +1 -0
- package/dist/ecosystem/hmac.js +1 -0
- package/dist/ecosystem/http.d.ts +11 -0
- package/dist/ecosystem/http.js +3 -0
- package/dist/ecosystem/mcp.d.ts +3 -0
- package/dist/ecosystem/mcp.js +2 -0
- package/dist/ecosystem/middleware.d.ts +17 -0
- package/dist/ecosystem/middleware.js +6 -0
- package/dist/ecosystem/node-host-resolver.d.ts +1 -0
- package/dist/ecosystem/node-host-resolver.js +1 -0
- package/dist/ecosystem/node.d.ts +1 -0
- package/dist/ecosystem/node.js +1 -0
- package/dist/ecosystem/oauth2.d.ts +1 -0
- package/dist/ecosystem/oauth2.js +1 -0
- package/dist/ecosystem/persona.d.ts +15 -0
- package/dist/ecosystem/persona.js +4 -0
- package/dist/ecosystem/queue.d.ts +11 -0
- package/dist/ecosystem/queue.js +2 -0
- package/dist/ecosystem/remote.d.ts +8 -0
- package/dist/ecosystem/remote.js +1 -0
- package/dist/ecosystem/role.d.ts +3 -0
- package/dist/ecosystem/role.js +2 -0
- package/dist/ecosystem/rpc.d.ts +4 -0
- package/dist/ecosystem/rpc.js +2 -0
- package/dist/ecosystem/safe-fetch.d.ts +7 -0
- package/dist/ecosystem/safe-fetch.js +1 -0
- package/dist/ecosystem/scenario.d.ts +15 -0
- package/dist/ecosystem/scenario.js +4 -0
- package/dist/ecosystem/scheduler.d.ts +2 -0
- package/dist/ecosystem/scheduler.js +1 -0
- package/dist/ecosystem/schema.d.ts +1 -0
- package/dist/ecosystem/schema.js +1 -0
- package/dist/ecosystem/scope.d.ts +3 -0
- package/dist/ecosystem/scope.js +2 -0
- package/dist/ecosystem/secret.d.ts +9 -0
- package/dist/ecosystem/secret.js +1 -0
- package/dist/ecosystem/services/istanbul-coverage.d.ts +1 -0
- package/dist/ecosystem/services/istanbul-coverage.js +1 -0
- package/dist/ecosystem/services/local-content-request-handler.d.ts +9 -0
- package/dist/ecosystem/services/local-content-request-handler.js +1 -0
- package/dist/ecosystem/services/local-content.d.ts +1 -0
- package/dist/ecosystem/services/local-content.js +1 -0
- package/dist/ecosystem/services/v8-coverage.d.ts +1 -0
- package/dist/ecosystem/services/v8-coverage.js +1 -0
- package/dist/ecosystem/services.d.ts +28 -0
- package/dist/ecosystem/services.js +6 -0
- package/dist/ecosystem/testing.d.ts +7 -0
- package/dist/ecosystem/testing.js +1 -0
- package/dist/ecosystem/trigger.d.ts +1 -0
- package/dist/ecosystem/trigger.js +1 -0
- package/dist/ecosystem/types.d.ts +9 -0
- package/dist/ecosystem/types.js +5 -0
- package/dist/ecosystem/variable.d.ts +8 -0
- package/dist/ecosystem/variable.js +1 -0
- package/dist/ecosystem/virtual-user.d.ts +21 -0
- package/dist/ecosystem/virtual-user.js +5 -0
- package/dist/ecosystem/workflow.d.ts +18 -0
- package/dist/ecosystem/workflow.js +4 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/middleware/auth-apikey.d.ts +1 -1
- package/dist/middleware/auth-bearer.d.ts +1 -1
- package/dist/middleware/auth-cookie.d.ts +1 -1
- package/dist/middleware/cors.d.ts +1 -1
- package/dist/middleware/remote-auth.d.ts +1 -1
- package/dist/middleware/telemetry.d.ts +2 -2
- package/dist/services/agent-run-state-service.d.ts +29 -0
- package/dist/services/agent-run-state-service.js +1 -0
- package/dist/services/agent-runner-service.d.ts +220 -0
- package/dist/services/agent-runner-service.js +1 -0
- package/dist/services/agent-storage-service.d.ts +18 -0
- package/dist/services/agent-storage-service.js +1 -0
- package/dist/services/http-personas.d.ts +1 -1
- package/dist/services/http-personas.js +3 -3
- package/dist/services/in-memory-agent-run-state-service.d.ts +19 -0
- package/dist/services/in-memory-agent-run-state-service.js +54 -0
- package/dist/services/index.d.ts +4 -4
- package/dist/services/index.js +1 -1
- package/dist/services/meta-service.d.ts +3 -3
- package/dist/testing/service-tests/agent-run-service-tests.d.ts +1 -1
- package/dist/testing/service-tests/agent-run-service-tests.js +3 -3
- package/dist/testing/service-tests/agent-storage-service-tests.d.ts +3 -0
- package/dist/testing/service-tests/agent-storage-service-tests.js +302 -0
- package/dist/testing/service-tests.d.ts +4 -4
- package/dist/testing/service-tests.js +4 -4
- package/dist/types/core.types.d.ts +10 -10
- package/dist/types/core.types.js +1 -1
- package/dist/types/state.types.d.ts +5 -5
- package/dist/wirings/actor-flow/run-conversation.d.ts +2 -2
- package/dist/wirings/agent/agent-agui.d.ts +79 -0
- package/dist/wirings/agent/agent-agui.js +327 -0
- package/dist/wirings/agent/agent-finalize.d.ts +58 -0
- package/dist/wirings/agent/agent-finalize.js +138 -0
- package/dist/wirings/agent/agent-helpers.d.ts +35 -0
- package/dist/wirings/agent/agent-helpers.js +47 -0
- package/dist/wirings/agent/agent-interrupt.d.ts +153 -0
- package/dist/wirings/agent/agent-interrupt.js +257 -0
- package/dist/wirings/agent/agent-memory.d.ts +42 -0
- package/dist/wirings/agent/agent-memory.js +333 -0
- package/dist/wirings/agent/agent-model-config.d.ts +16 -0
- package/dist/wirings/agent/agent-model-config.js +51 -0
- package/dist/wirings/agent/agent-prepare.d.ts +117 -0
- package/dist/wirings/agent/agent-prepare.js +728 -0
- package/dist/wirings/agent/agent-registry.d.ts +16 -0
- package/dist/wirings/agent/agent-registry.js +51 -0
- package/dist/wirings/agent/agent-rpc.d.ts +15 -0
- package/dist/wirings/agent/agent-rpc.js +53 -0
- package/dist/wirings/agent/agent-runner.d.ts +7 -0
- package/dist/wirings/agent/agent-runner.js +580 -0
- package/dist/wirings/agent/agent-stream.d.ts +41 -0
- package/dist/wirings/agent/agent-stream.js +1029 -0
- package/dist/wirings/agent/agent-turn.d.ts +57 -0
- package/dist/wirings/agent/agent-turn.js +82 -0
- package/dist/wirings/agent/agent-utils.d.ts +1 -0
- package/dist/wirings/agent/agent-utils.js +1 -0
- package/dist/wirings/agent/agent.types.d.ts +625 -0
- package/dist/wirings/agent/agent.types.js +1 -0
- package/dist/wirings/agent/index.d.ts +12 -0
- package/dist/wirings/agent/index.js +10 -0
- package/dist/wirings/agent/voice-input.d.ts +69 -0
- package/dist/wirings/agent/voice-input.js +150 -0
- package/dist/wirings/agent/voice-output.d.ts +85 -0
- package/dist/wirings/agent/voice-output.js +196 -0
- package/dist/wirings/agent-scorer/agent-scorer-grade.d.ts +26 -0
- package/dist/wirings/agent-scorer/agent-scorer-grade.js +33 -0
- package/dist/wirings/agent-scorer/agent-scorer-judge.d.ts +17 -0
- package/dist/wirings/agent-scorer/agent-scorer-judge.js +92 -0
- package/dist/wirings/agent-scorer/agent-scorer-live.d.ts +15 -0
- package/dist/wirings/agent-scorer/agent-scorer-live.js +38 -0
- package/dist/wirings/agent-scorer/agent-scorer-registry.d.ts +18 -0
- package/dist/wirings/agent-scorer/agent-scorer-registry.js +46 -0
- package/dist/wirings/agent-scorer/agent-scorer-sampling.d.ts +8 -0
- package/dist/wirings/agent-scorer/agent-scorer-sampling.js +31 -0
- package/dist/wirings/agent-scorer/agent-scorer-snapshots.d.ts +10 -0
- package/dist/wirings/agent-scorer/agent-scorer-snapshots.js +40 -0
- package/dist/wirings/agent-scorer/agent-scorer-worker.d.ts +15 -0
- package/dist/wirings/agent-scorer/agent-scorer-worker.js +60 -0
- package/dist/wirings/agent-scorer/agent-scorer.d.ts +39 -0
- package/dist/wirings/agent-scorer/agent-scorer.js +40 -0
- package/dist/wirings/agent-scorer/agent-scorer.types.d.ts +90 -0
- package/dist/wirings/agent-scorer/agent-scorer.types.js +4 -0
- package/dist/wirings/agent-scorer/index.d.ts +6 -0
- package/dist/wirings/agent-scorer/index.js +5 -0
- package/dist/wirings/ai-agent/voice-output.d.ts +1 -2
- package/dist/wirings/channel/channel-rpc.types.d.ts +2 -2
- package/dist/wirings/rpc/rpc-runner.d.ts +1 -1
- package/dist/wirings/rpc/rpc-runner.js +2 -2
- package/dist/wirings/rpc/rpc-types.d.ts +1 -1
- package/dist/wirings/virtual-user/prepare-virtual-user-run.js +1 -1
- package/dist/wirings/virtual-user/virtual-user-agents.d.ts +1 -1
- package/dist/wirings/workflow/run-timeline.d.ts +1 -2
- package/knowledge/decisions/internals/{a-non-streaming-agent-run-registers-with-airunstate-too.md → a-non-streaming-agent-run-registers-with-agentrunstate-too.md} +6 -6
- package/knowledge/decisions/internals/a-resumed-agent-turn-is-as-interruptible-as-the-first.md +1 -1
- package/knowledge/decisions/internals/actor-flow-drives-the-target-through-a-transport-seam.md +1 -1
- package/knowledge/decisions/internals/{ai-agent-agui-bridge-obeys-the-client-ordering-contract.md → agent-agui-bridge-obeys-the-client-ordering-contract.md} +5 -5
- package/knowledge/decisions/internals/{ai-agent-audio-chunks-carry-the-format-the-provider-returned.md → agent-audio-chunks-carry-the-format-the-provider-returned.md} +2 -2
- package/knowledge/decisions/internals/agent-context-waits-for-a-tool-result-still-being-written.md +1 -1
- package/knowledge/decisions/internals/{ai-agent-credential-suspensions-hide-the-tool-result.md → agent-credential-suspensions-hide-the-tool-result.md} +2 -2
- package/knowledge/decisions/internals/{ai-agent-delegate-and-supervise-hide-different-text.md → agent-delegate-and-supervise-hide-different-text.md} +4 -4
- package/knowledge/decisions/internals/{ai-agent-llm-tool-arguments-have-nulls-stripped.md → agent-llm-tool-arguments-have-nulls-stripped.md} +3 -3
- package/knowledge/decisions/internals/{ai-agent-model-config-stays-a-single-resolution-seam.md → agent-model-config-stays-a-single-resolution-seam.md} +3 -3
- package/knowledge/decisions/internals/{ai-agent-onerror-hooks-cannot-change-the-failure.md → agent-onerror-hooks-cannot-change-the-failure.md} +6 -6
- package/knowledge/decisions/internals/{ai-agent-runner-methods-must-keep-their-receiver.md → agent-runner-methods-must-keep-their-receiver.md} +4 -4
- package/knowledge/decisions/internals/agent-speech-travels-as-a-custom-agui-event.md +1 -1
- package/knowledge/decisions/internals/{ai-agent-stream-persistence-is-best-effort.md → agent-stream-persistence-is-best-effort.md} +4 -4
- package/knowledge/decisions/internals/{ai-agent-sub-agents-inherit-the-parent-context-block.md → agent-sub-agents-inherit-the-parent-context-block.md} +3 -3
- package/knowledge/decisions/internals/{ai-agent-tool-execute-failures-are-logged-unconditionally.md → agent-tool-execute-failures-are-logged-unconditionally.md} +3 -3
- package/knowledge/decisions/internals/{ai-agent-voice-input-transcribes-audio-parts-in-place.md → agent-voice-input-transcribes-audio-parts-in-place.md} +2 -2
- package/knowledge/decisions/internals/{ai-agent-working-memory-is-persisted-only-when-valid.md → agent-working-memory-is-persisted-only-when-valid.md} +2 -2
- package/knowledge/decisions/internals/an-agent-interrupt-is-not-a-failure.md +2 -2
- package/knowledge/decisions/internals/an-agent-run-owned-by-another-instance-says-so.md +3 -3
- package/knowledge/decisions/internals/an-agent-stream-send-must-return-the-inner-sends-promise.md +2 -2
- package/knowledge/decisions/internals/an-empty-text-part-is-omitted-from-an-agent-message.md +1 -1
- package/knowledge/decisions/internals/an-empty-transcript-is-not-recorded.md +1 -1
- package/knowledge/decisions/internals/speech-synthesis-picks-a-voice-per-sentence-and-warns-once.md +1 -1
- package/knowledge/decisions/internals/the-agent-done-event-goes-through-the-middleware-and-is-awaited.md +1 -1
- package/knowledge/decisions/internals/the-embedding-model-is-pinned-per-service-and-doc-query-embedding-is-split.md +1 -1
- package/knowledge/decisions/internals/the-per-invocation-rpc-view-is-a-class.md +5 -5
- package/knowledge/decisions/internals/the-transcript-event-is-sent-ahead-of-the-run.md +2 -2
- package/knowledge/decisions/internals/thread-history-records-the-transcript-not-the-audio.md +2 -2
- package/knowledge/decisions/internals/voice-output-speaks-unless-voice-input-explicitly-says-otherwise.md +1 -1
- package/knowledge/decisions/security/{ai-agent-approval-forwarding-requires-a-symbol-brand.md → agent-approval-forwarding-requires-a-symbol-brand.md} +3 -3
- package/knowledge/decisions/security/{ai-agent-credential-requests-are-symbol-branded.md → agent-credential-requests-are-symbol-branded.md} +4 -4
- package/knowledge/decisions/security/{ai-agent-gate-requires-a-session-only-when-auth-is-true.md → agent-gate-requires-a-session-only-when-auth-is-true.md} +3 -3
- package/knowledge/decisions/security/{ai-agent-ownership-failures-never-echo-the-resource.md → agent-ownership-failures-never-echo-the-resource.md} +2 -2
- package/knowledge/decisions/security/{ai-agent-resume-re-runs-the-authorization-gate.md → agent-resume-re-runs-the-authorization-gate.md} +4 -4
- package/knowledge/decisions/security/{ai-agent-sessionless-deployments-have-no-thread-ownership.md → agent-sessionless-deployments-have-no-thread-ownership.md} +5 -5
- package/knowledge/decisions/security/{ai-agent-thread-ownership-composes-the-session-principal.md → agent-thread-ownership-composes-the-session-principal.md} +2 -2
- package/knowledge/decisions/security/{ai-agent-tool-filtering-reads-the-live-function-config.md → agent-tool-filtering-reads-the-live-function-config.md} +2 -2
- package/knowledge/decisions/security/an-agent-approval-is-claimed-before-the-tool-runs.md +3 -3
- package/knowledge/decisions/security/an-empty-owners-constraint-matches-nothing.md +3 -3
- package/knowledge/decisions/security/console-addon-privileged-functions-gate-themselves.md +20 -13
- package/knowledge/decisions/security/index.md +1 -2
- package/package.json +4 -3
- package/scripts/generate-api-report.mts +32 -8
- package/src/agent-naming.test.ts +68 -0
- package/src/ecosystem/agent-scorer.ts +24 -0
- package/src/ecosystem/agent.ts +42 -0
- package/src/ecosystem/channel/local.ts +1 -0
- package/src/ecosystem/channel.ts +22 -0
- package/src/ecosystem/cli/channel.ts +25 -0
- package/src/ecosystem/cli.ts +21 -0
- package/src/ecosystem/credential.ts +10 -0
- package/src/ecosystem/dev.ts +12 -0
- package/src/ecosystem/function.ts +28 -0
- package/src/ecosystem/gateway.ts +4 -0
- package/src/ecosystem/hmac.ts +1 -0
- package/src/ecosystem/http.ts +22 -0
- package/src/ecosystem/mcp.ts +17 -0
- package/src/ecosystem/middleware.ts +27 -0
- package/src/ecosystem/node-host-resolver.ts +1 -0
- package/src/ecosystem/node.ts +5 -0
- package/src/ecosystem/oauth2.ts +4 -0
- package/src/ecosystem/persona.ts +30 -0
- package/src/ecosystem/queue.ts +23 -0
- package/src/ecosystem/remote.ts +9 -0
- package/src/ecosystem/role.ts +13 -0
- package/src/ecosystem/rpc.ts +7 -0
- package/src/ecosystem/safe-fetch.ts +8 -0
- package/src/ecosystem/scenario.ts +32 -0
- package/src/ecosystem/scheduler.ts +5 -0
- package/src/ecosystem/schema.ts +1 -0
- package/src/ecosystem/scope.ts +14 -0
- package/src/ecosystem/secret.ts +15 -0
- package/src/ecosystem/services/istanbul-coverage.ts +1 -0
- package/src/ecosystem/services/local-content-request-handler.ts +16 -0
- package/src/ecosystem/services/local-content.ts +1 -0
- package/src/ecosystem/services/v8-coverage.ts +1 -0
- package/src/ecosystem/services.ts +82 -0
- package/src/ecosystem/testing.ts +8 -0
- package/src/ecosystem/trigger.ts +7 -0
- package/src/ecosystem/types.ts +34 -0
- package/src/ecosystem/variable.ts +14 -0
- package/src/ecosystem/virtual-user.ts +48 -0
- package/src/ecosystem/workflow.ts +68 -0
- package/src/index.ts +8 -19
- package/src/pikku-state.ts +3 -3
- package/src/public-surface.json +173 -68
- package/src/public-surface.json.README +20 -2
- package/src/public-surface.test.ts +31 -3
- package/src/services/{ai-run-state-service.ts → agent-run-state-service.ts} +5 -5
- package/src/services/{ai-agent-runner-service.ts → agent-runner-service.ts} +18 -18
- package/src/services/{ai-storage-service.ts → agent-storage-service.ts} +7 -7
- package/src/services/http-personas-converse.test.ts +3 -3
- package/src/services/http-personas.ts +4 -4
- package/src/services/{in-memory-ai-run-state-service.ts → in-memory-agent-run-state-service.ts} +7 -7
- package/src/services/index.ts +9 -9
- package/src/services/meta-service.ts +3 -3
- package/src/testing/service-tests/agent-run-service-tests.ts +4 -4
- package/src/testing/service-tests/{ai-storage-service-tests.ts → agent-storage-service-tests.ts} +8 -8
- package/src/testing/service-tests.ts +10 -8
- package/src/types/core.types.ts +12 -12
- package/src/types/state.types.ts +6 -9
- package/src/wirings/actor-flow/run-conversation.test.ts +2 -2
- package/src/wirings/actor-flow/run-conversation.ts +7 -9
- package/src/wirings/{ai-agent/ai-agent-agui.test.ts → agent/agent-agui.test.ts} +126 -105
- package/src/wirings/{ai-agent/ai-agent-agui.ts → agent/agent-agui.ts} +7 -7
- package/src/wirings/{ai-agent/ai-agent-authorization.test.ts → agent/agent-authorization.test.ts} +6 -6
- package/src/wirings/{ai-agent/ai-agent-finalize.test.ts → agent/agent-finalize.test.ts} +17 -16
- package/src/wirings/{ai-agent/ai-agent-finalize.ts → agent/agent-finalize.ts} +22 -22
- package/src/wirings/{ai-agent/ai-agent-helpers.test.ts → agent/agent-helpers.test.ts} +1 -1
- package/src/wirings/{ai-agent/ai-agent-helpers.ts → agent/agent-helpers.ts} +1 -1
- package/src/wirings/{ai-agent/ai-agent-interrupt.test.ts → agent/agent-interrupt.test.ts} +67 -77
- package/src/wirings/{ai-agent/ai-agent-interrupt.ts → agent/agent-interrupt.ts} +5 -5
- package/src/wirings/{ai-agent/ai-agent-memory.test.ts → agent/agent-memory.test.ts} +12 -12
- package/src/wirings/{ai-agent/ai-agent-memory.ts → agent/agent-memory.ts} +36 -36
- package/src/wirings/{ai-agent/ai-agent-model-config.test.ts → agent/agent-model-config.test.ts} +2 -5
- package/src/wirings/{ai-agent/ai-agent-model-config.ts → agent/agent-model-config.ts} +1 -1
- package/src/wirings/{ai-agent/ai-agent-prepare.test.ts → agent/agent-prepare.test.ts} +18 -18
- package/src/wirings/{ai-agent/ai-agent-prepare.ts → agent/agent-prepare.ts} +52 -51
- package/src/wirings/{ai-agent/ai-agent-registry.test.ts → agent/agent-registry.test.ts} +49 -43
- package/src/wirings/{ai-agent/ai-agent-registry.ts → agent/agent-registry.ts} +14 -14
- package/src/wirings/{ai-agent/ai-agent-resume-authorization.test.ts → agent/agent-resume-authorization.test.ts} +18 -18
- package/src/wirings/{ai-agent → agent}/agent-rpc.ts +16 -20
- package/src/wirings/{ai-agent/ai-agent-runner.test.ts → agent/agent-runner.test.ts} +105 -106
- package/src/wirings/{ai-agent/ai-agent-runner.ts → agent/agent-runner.ts} +90 -80
- package/src/wirings/{ai-agent/ai-agent-stream-output-hooks.test.ts → agent/agent-stream-output-hooks.test.ts} +25 -25
- package/src/wirings/{ai-agent/ai-agent-stream.test.ts → agent/agent-stream.test.ts} +147 -143
- package/src/wirings/{ai-agent/ai-agent-stream.ts → agent/agent-stream.ts} +147 -146
- package/src/wirings/{ai-agent/ai-agent-thread-ownership.test.ts → agent/agent-thread-ownership.test.ts} +24 -28
- package/src/wirings/{ai-agent/ai-agent-turn.test.ts → agent/agent-turn.test.ts} +3 -5
- package/src/wirings/{ai-agent/ai-agent-turn.ts → agent/agent-turn.ts} +7 -7
- package/src/wirings/{ai-agent/ai-agent.types.ts → agent/agent.types.ts} +51 -48
- package/src/wirings/agent/index.ts +56 -0
- package/src/wirings/{ai-agent → agent}/voice-input.test.ts +15 -15
- package/src/wirings/{ai-agent → agent}/voice-input.ts +11 -11
- package/src/wirings/{ai-agent → agent}/voice-output.test.ts +23 -23
- package/src/wirings/{ai-agent → agent}/voice-output.ts +11 -11
- package/src/wirings/{ai-scorer/ai-scorer-grade.test.ts → agent-scorer/agent-scorer-grade.test.ts} +8 -8
- package/src/wirings/{ai-scorer/ai-scorer-grade.ts → agent-scorer/agent-scorer-grade.ts} +9 -9
- package/src/wirings/{ai-scorer/ai-scorer-judge.test.ts → agent-scorer/agent-scorer-judge.test.ts} +11 -14
- package/src/wirings/{ai-scorer/ai-scorer-judge.ts → agent-scorer/agent-scorer-judge.ts} +11 -11
- package/src/wirings/{ai-scorer/ai-scorer-live.test.ts → agent-scorer/agent-scorer-live.test.ts} +11 -11
- package/src/wirings/{ai-scorer/ai-scorer-live.ts → agent-scorer/agent-scorer-live.ts} +3 -3
- package/src/wirings/{ai-scorer/ai-scorer-registry.ts → agent-scorer/agent-scorer-registry.ts} +11 -8
- package/src/wirings/{ai-scorer/ai-scorer-sampling.test.ts → agent-scorer/agent-scorer-sampling.test.ts} +1 -1
- package/src/wirings/{ai-scorer/ai-scorer-snapshots.test.ts → agent-scorer/agent-scorer-snapshots.test.ts} +2 -2
- package/src/wirings/{ai-scorer/ai-scorer-snapshots.ts → agent-scorer/agent-scorer-snapshots.ts} +1 -1
- package/src/wirings/{ai-scorer/ai-scorer-worker.test.ts → agent-scorer/agent-scorer-worker.test.ts} +15 -15
- package/src/wirings/{ai-scorer/ai-scorer-worker.ts → agent-scorer/agent-scorer-worker.ts} +9 -7
- package/src/wirings/{ai-scorer/ai-scorer.ts → agent-scorer/agent-scorer.ts} +7 -7
- package/src/wirings/{ai-scorer/ai-scorer.types.ts → agent-scorer/agent-scorer.types.ts} +6 -6
- package/src/wirings/agent-scorer/index.ts +22 -0
- package/src/wirings/channel/channel-rpc.types.ts +2 -2
- package/src/wirings/rpc/rpc-runner.ts +2 -2
- package/src/wirings/rpc/rpc-types.ts +1 -1
- package/src/wirings/virtual-user/prepare-virtual-user-run.ts +1 -1
- package/src/wirings/virtual-user/run-virtual-user.test.ts +2 -2
- package/src/wirings/virtual-user/run-virtual-user.ts +3 -3
- package/src/wirings/virtual-user/virtual-user-agents.ts +1 -1
- package/src/wirings/workflow/run-timeline.ts +1 -1
- package/src/wirings-stay-decoupled.test.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/src/wirings/ai-agent/index.ts +0 -65
- package/src/wirings/ai-scorer/index.ts +0 -24
- /package/src/wirings/{ai-agent/ai-agent-utils.ts → agent/agent-utils.ts} +0 -0
- /package/src/wirings/{ai-scorer/ai-scorer-sampling.ts → agent-scorer/agent-scorer-sampling.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
## 0.12.84
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- 7406bfe: Rename the agent runtime from `AI*` to `Agent*` (#596)
|
|
6
|
+
|
|
7
|
+
`AI` described the model provider, not the thing being named. Every symbol that
|
|
8
|
+
belongs to the agent runtime now says `Agent`; the symbols that genuinely wrap a
|
|
9
|
+
model provider — `AIEmbeddingService`, `AIProviderOptions`, `AIEmbedParams`,
|
|
10
|
+
`AITranscriptionParams`, `AIGenerateImageParams` and their siblings, and the
|
|
11
|
+
`@pikku/ai-vercel` / `@pikku/ai-deepinfra` / `@pikku/ai-voice` packages — keep
|
|
12
|
+
their names.
|
|
13
|
+
|
|
14
|
+
**Wiring**
|
|
15
|
+
- `pikkuAIAgent` → `pikkuAgent`, `pikkuAIScorer` → `pikkuAgentScorer`,
|
|
16
|
+
`pikkuAIJudge` → `pikkuAgentJudge`
|
|
17
|
+
- `CoreAIAgent` → `CoreAgent`, `AIAgentInput` → `AgentInput`, `AIAgentStep` →
|
|
18
|
+
`AgentStep`, `AIMessage` → `AgentMessage`, and the rest of the agent types
|
|
19
|
+
- `AIAgentRunnerService` → `AgentRunnerService`, `AIStorageService` →
|
|
20
|
+
`AgentStorageService`, `AIRunStateService` → `AgentRunStateService`
|
|
21
|
+
|
|
22
|
+
**Entry points**
|
|
23
|
+
|
|
24
|
+
`@pikku/core/agent` → `@pikku/core/agent`, `@pikku/core/agent-scorer` →
|
|
25
|
+
`@pikku/core/agent-scorer`.
|
|
26
|
+
|
|
27
|
+
**Queues**
|
|
28
|
+
|
|
29
|
+
The scorer queues are now `agent-score-fast` and `agent-score-slow`. Drain the
|
|
30
|
+
old `ai-score-fast` / `ai-score-slow` queues before deploying — jobs still
|
|
31
|
+
sitting on them when the new workers start will never be picked up.
|
|
32
|
+
|
|
33
|
+
**Scaffolds**
|
|
34
|
+
|
|
35
|
+
The agent scaffold pikku wrote for your project — `<scaffold>/agent/agent.gen.ts`
|
|
36
|
+
and its schemas file — imports `@pikku/core/ai-agent`, which no longer exists. A
|
|
37
|
+
scaffold is normally written once and then left alone, so `pikku all` would find
|
|
38
|
+
it present and leave the broken import in place. It now deletes an agent scaffold
|
|
39
|
+
importing either removed entry point and regenerates it in the same run. Anything
|
|
40
|
+
you added to that file goes with it, so move local edits out first.
|
|
41
|
+
|
|
42
|
+
**Database**
|
|
43
|
+
|
|
44
|
+
The agent tables are renamed: `ai_threads`, `ai_message`, `ai_tool_call`,
|
|
45
|
+
`ai_working_memory`, `ai_run` and `ai_run_score` become `agent_threads`,
|
|
46
|
+
`agent_message`, `agent_tool_call`, `agent_working_memory`, `agent_run` and
|
|
47
|
+
`agent_run_score`, along with their indexes and the `ai_working_memory_pk`
|
|
48
|
+
constraint. The same rename applies to the MongoDB collections.
|
|
49
|
+
|
|
50
|
+
`ensurePikkuSchema` creates tables it cannot find, so an existing database will
|
|
51
|
+
get empty `agent_*` tables and leave the old data stranded in `ai_*`. Rename
|
|
52
|
+
them before the first boot on the new version:
|
|
53
|
+
|
|
54
|
+
```sql
|
|
55
|
+
ALTER TABLE ai_threads RENAME TO agent_threads;
|
|
56
|
+
ALTER TABLE ai_message RENAME TO agent_message;
|
|
57
|
+
ALTER TABLE ai_tool_call RENAME TO agent_tool_call;
|
|
58
|
+
ALTER TABLE ai_working_memory RENAME TO agent_working_memory;
|
|
59
|
+
ALTER TABLE ai_run RENAME TO agent_run;
|
|
60
|
+
ALTER TABLE ai_run_score RENAME TO agent_run_score;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- 6794681: Publish the ecosystem surface as per-area sub-barrels under `@pikku/core/ecosystem/*`, and point generated code, the CLI, the inspector and the runtime adapters at them.
|
|
64
|
+
|
|
65
|
+
348 names that only generated code, the toolchain or a runtime adapter ever imports now have a second home on `@pikku/core/ecosystem/<area>` — one sub-barrel per area, matching how core already publishes its entrypoints, so no single barrel grows without bound and a consumer only pulls in the area it uses.
|
|
66
|
+
|
|
67
|
+
This step is additive: every name is still exported from the entrypoint it was published from before, so nothing downstream breaks. Removing them from the app-facing barrels is a later change, and needs a release carrying `./ecosystem/*` first.
|
|
68
|
+
|
|
1
69
|
## 0.12.83
|
|
2
70
|
|
|
3
71
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Wire them to HTTP, queues, cron, channels or MCP, then run `npx pikku` to
|
|
|
30
30
|
regenerate the bootstrap files and typed clients.
|
|
31
31
|
|
|
32
32
|
Subpath exports cover the individual wiring types — `@pikku/core/http`,
|
|
33
|
-
`@pikku/core/workflow`, `@pikku/core/channel`, `@pikku/core/
|
|
33
|
+
`@pikku/core/workflow`, `@pikku/core/channel`, `@pikku/core/agent` and more.
|
|
34
34
|
|
|
35
35
|
## Docs
|
|
36
36
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { gradeRun } from '../wirings/agent-scorer/agent-scorer-grade.js';
|
|
2
|
+
export { addAgentScorer } from '../wirings/agent-scorer/agent-scorer-registry.js';
|
|
3
|
+
export { enableScoreSnapshots, getScoreSnapshot, } from '../wirings/agent-scorer/agent-scorer-snapshots.js';
|
|
4
|
+
export { wireAgentScorerQueueWorkers } from '../wirings/agent-scorer/agent-scorer-worker.js';
|
|
5
|
+
export { pikkuAgentJudge, pikkuAgentScorer, } from '../wirings/agent-scorer/agent-scorer.js';
|
|
6
|
+
export type { ScorerMeta } from '../wirings/agent-scorer/agent-scorer.types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Types the exports above mention but do not themselves export. Without
|
|
9
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
10
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
11
|
+
*/
|
|
12
|
+
export type { PikkuAgentScorer, ScoreJob, ScorerInput, ScorerOutput, } from '../wirings/agent-scorer/agent-scorer.types.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { gradeRun } from '../wirings/agent-scorer/agent-scorer-grade.js';
|
|
2
|
+
export { addAgentScorer } from '../wirings/agent-scorer/agent-scorer-registry.js';
|
|
3
|
+
export { enableScoreSnapshots, getScoreSnapshot, } from '../wirings/agent-scorer/agent-scorer-snapshots.js';
|
|
4
|
+
export { wireAgentScorerQueueWorkers } from '../wirings/agent-scorer/agent-scorer-worker.js';
|
|
5
|
+
export { pikkuAgentJudge, pikkuAgentScorer, } from '../wirings/agent-scorer/agent-scorer.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { agent, agentApprove, agentResume, agentStream, } from '../wirings/agent/agent-helpers.js';
|
|
2
|
+
export { resolveModelAlias } from '../wirings/agent/agent-model-config.js';
|
|
3
|
+
export { canAccessThread, isOwnedByPrincipal, threadOwnerConstraint, } from '../wirings/agent/agent-prepare.js';
|
|
4
|
+
export { addAgent } from '../wirings/agent/agent-registry.js';
|
|
5
|
+
export type { AgentInput, AgentMemoryConfig, AgentsMeta, AgentStep, AgentContentPart, AgentRunRow, AgentRunService, CoreAgent, PendingApproval, PikkuAgentMiddlewareHooks, } from '../wirings/agent/agent.types.js';
|
|
6
|
+
export { voiceInput } from '../wirings/agent/voice-input.js';
|
|
7
|
+
export { voiceOutput } from '../wirings/agent/voice-output.js';
|
|
8
|
+
/**
|
|
9
|
+
* Types the exports above mention but do not themselves export. Without
|
|
10
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
11
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
12
|
+
*/
|
|
13
|
+
export type { LogLevel } from '../services/logger.js';
|
|
14
|
+
export type { WebhookServiceConfig } from '../services/webhook-service.js';
|
|
15
|
+
export type { CoreSingletonServices, PostgresConfig, } from '../types/core.types.js';
|
|
16
|
+
export type { SpeakableScripts } from '../wirings/agent/voice-output.js';
|
|
17
|
+
export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js';
|
|
18
|
+
export type { VoiceOutputState } from '../wirings/agent/voice-output.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { agent, agentApprove, agentResume, agentStream, } from '../wirings/agent/agent-helpers.js';
|
|
2
|
+
export { resolveModelAlias } from '../wirings/agent/agent-model-config.js';
|
|
3
|
+
export { canAccessThread, isOwnedByPrincipal, threadOwnerConstraint, } from '../wirings/agent/agent-prepare.js';
|
|
4
|
+
export { addAgent } from '../wirings/agent/agent-registry.js';
|
|
5
|
+
export { voiceInput } from '../wirings/agent/voice-input.js';
|
|
6
|
+
export { voiceOutput } from '../wirings/agent/voice-output.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { agent, agentApprove, agentResume, agentStream, } from '../wirings/ai-agent/ai-agent-helpers.js';
|
|
2
|
+
export { resolveModelAlias } from '../wirings/ai-agent/ai-agent-model-config.js';
|
|
3
|
+
export { canAccessThread, isOwnedByPrincipal, threadOwnerConstraint, } from '../wirings/ai-agent/ai-agent-prepare.js';
|
|
4
|
+
export { addAIAgent } from '../wirings/ai-agent/ai-agent-registry.js';
|
|
5
|
+
export type { AIAgentInput, AIAgentMemoryConfig, AIAgentMeta, AIAgentStep, AIContentPart, AgentRunRow, AgentRunService, CoreAIAgent, PendingApproval, PikkuAIMiddlewareHooks, } from '../wirings/ai-agent/ai-agent.types.js';
|
|
6
|
+
export { voiceInput } from '../wirings/ai-agent/voice-input.js';
|
|
7
|
+
export { voiceOutput } from '../wirings/ai-agent/voice-output.js';
|
|
8
|
+
/**
|
|
9
|
+
* Types the exports above mention but do not themselves export. Without
|
|
10
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
11
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
12
|
+
*/
|
|
13
|
+
export type { LogLevel } from '../services/logger.js';
|
|
14
|
+
export type { WebhookServiceConfig } from '../services/webhook-service.js';
|
|
15
|
+
export type { CoreSingletonServices, PostgresConfig, } from '../types/core.types.js';
|
|
16
|
+
export type { SpeakableScripts } from '../wirings/ai-agent/voice-output.js';
|
|
17
|
+
export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js';
|
|
18
|
+
export type { VoiceOutputState } from '../wirings/ai-agent/voice-output.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { agent, agentApprove, agentResume, agentStream, } from '../wirings/ai-agent/ai-agent-helpers.js';
|
|
2
|
+
export { resolveModelAlias } from '../wirings/ai-agent/ai-agent-model-config.js';
|
|
3
|
+
export { canAccessThread, isOwnedByPrincipal, threadOwnerConstraint, } from '../wirings/ai-agent/ai-agent-prepare.js';
|
|
4
|
+
export { addAIAgent } from '../wirings/ai-agent/ai-agent-registry.js';
|
|
5
|
+
export { voiceInput } from '../wirings/ai-agent/voice-input.js';
|
|
6
|
+
export { voiceOutput } from '../wirings/ai-agent/voice-output.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { gradeRun } from '../wirings/ai-scorer/ai-scorer-grade.js';
|
|
2
|
+
export { addAIScorer } from '../wirings/ai-scorer/ai-scorer-registry.js';
|
|
3
|
+
export { enableScoreSnapshots, getScoreSnapshot, } from '../wirings/ai-scorer/ai-scorer-snapshots.js';
|
|
4
|
+
export { wireAIScorerQueueWorkers } from '../wirings/ai-scorer/ai-scorer-worker.js';
|
|
5
|
+
export { pikkuAIJudge, pikkuAIScorer } from '../wirings/ai-scorer/ai-scorer.js';
|
|
6
|
+
export type { ScorerMeta } from '../wirings/ai-scorer/ai-scorer.types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Types the exports above mention but do not themselves export. Without
|
|
9
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
10
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
11
|
+
*/
|
|
12
|
+
export type { PikkuAIScorer, ScoreJob, ScorerInput, ScorerOutput, } from '../wirings/ai-scorer/ai-scorer.types.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { gradeRun } from '../wirings/ai-scorer/ai-scorer-grade.js';
|
|
2
|
+
export { addAIScorer } from '../wirings/ai-scorer/ai-scorer-registry.js';
|
|
3
|
+
export { enableScoreSnapshots, getScoreSnapshot, } from '../wirings/ai-scorer/ai-scorer-snapshots.js';
|
|
4
|
+
export { wireAIScorerQueueWorkers } from '../wirings/ai-scorer/ai-scorer-worker.js';
|
|
5
|
+
export { pikkuAIJudge, pikkuAIScorer } from '../wirings/ai-scorer/ai-scorer.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PikkuLocalChannelHandler } from '../../wirings/channel/local/local-channel-handler.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PikkuLocalChannelHandler } from '../../wirings/channel/local/local-channel-handler.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { addChannelMiddleware } from '../wirings/channel/channel-middleware-runner.js';
|
|
2
|
+
export type { Capabilities } from '../wirings/channel/channel-rpc.types.js';
|
|
3
|
+
export type { BinaryData, ChannelMessageMeta, ChannelMeta, ChannelsMeta, CoreChannel, CorePikkuChannelMiddleware, CorePikkuChannelMiddlewareFactory, PikkuChannelHandlerFactory, } from '../wirings/channel/channel.types.js';
|
|
4
|
+
export { EventHubStore } from '../wirings/channel/eventhub-store.js';
|
|
5
|
+
export { logChannels } from '../wirings/channel/log-channels.js';
|
|
6
|
+
export { PikkuAbstractChannelHandler } from '../wirings/channel/pikku-abstract-channel-handler.js';
|
|
7
|
+
/**
|
|
8
|
+
* Types the exports above mention but do not themselves export. Without
|
|
9
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
10
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
11
|
+
*/
|
|
12
|
+
export type { Logger } from '../services/logger.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { addChannelMiddleware } from '../wirings/channel/channel-middleware-runner.js';
|
|
2
|
+
export { EventHubStore } from '../wirings/channel/eventhub-store.js';
|
|
3
|
+
export { logChannels } from '../wirings/channel/log-channels.js';
|
|
4
|
+
export { PikkuAbstractChannelHandler } from '../wirings/channel/pikku-abstract-channel-handler.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { handleRawCLI } from '../../wirings/cli/channel/cli-raw-channel-runner.js';
|
|
2
|
+
export type { RawCLIFrame } from '../../wirings/cli/channel/cli-raw-channel-runner.js';
|
|
3
|
+
export { executeRawCLIViaChannel } from '../../wirings/cli/channel/cli-raw-client-runner.js';
|
|
4
|
+
export type { CorePikkuCLIClientRender } from '../../wirings/cli/channel/cli-raw-client-runner.js';
|
|
5
|
+
/**
|
|
6
|
+
* Types the exports above mention but do not themselves export. Without
|
|
7
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
8
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
9
|
+
*/
|
|
10
|
+
export type { LogLevel } from '../../services/logger.js';
|
|
11
|
+
export type { WebhookServiceConfig } from '../../services/webhook-service.js';
|
|
12
|
+
export type { CoreSingletonServices, CoreUserSession, CreateWireServices, PostgresConfig, } from '../../types/core.types.js';
|
|
13
|
+
export type { ApprovalRequester, Capabilities, } from '../../wirings/channel/channel-rpc.types.js';
|
|
14
|
+
export type { PikkuChannel } from '../../wirings/channel/channel.types.js';
|
|
15
|
+
export type { RawCLIResult } from '../../wirings/cli/channel/cli-raw-channel-runner.js';
|
|
16
|
+
export type { WorkflowServiceConfig } from '../../wirings/workflow/workflow.types.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { CLIError, executeCLI } from '../wirings/cli/cli-runner.js';
|
|
2
|
+
export type { CLICommandMeta, CLIMeta, CLIProgramMeta, CoreCLI, CoreCLICommandConfig, CorePikkuCLIRender, } from '../wirings/cli/cli.types.js';
|
|
3
|
+
export { generateCommandHelp } from '../wirings/cli/command-parser.js';
|
|
4
|
+
/**
|
|
5
|
+
* Types the exports above mention but do not themselves export. Without
|
|
6
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
7
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
8
|
+
*/
|
|
9
|
+
export type { CreateConfig, CreateSingletonServices, CreateWireServices, } from '../types/core.types.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { CredentialDefinitions } from '../wirings/credential/credential.types.js';
|
|
2
|
+
export { validateAndBuildCredentialDefinitionsMeta } from '../wirings/credential/validate-credential-definitions.js';
|
|
3
|
+
/**
|
|
4
|
+
* Types the exports above mention but do not themselves export. Without
|
|
5
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
6
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
7
|
+
*/
|
|
8
|
+
export type { SchemaRefLike } from '../types/core.types.js';
|
|
9
|
+
export type { CredentialDefinitionsMeta } from '../wirings/credential/credential.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { validateAndBuildCredentialDefinitionsMeta } from '../wirings/credential/validate-credential-definitions.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { reconcileAddonRegistry, reloadGeneratedMeta, } from '../dev/reload-meta.js';
|
|
2
|
+
/**
|
|
3
|
+
* Types the exports above mention but do not themselves export. Without
|
|
4
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
5
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
6
|
+
*/
|
|
7
|
+
export type { ReloadGeneratedMetaOptions } from '../dev/reload-meta.js';
|
|
8
|
+
export type { Logger } from '../services/logger.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { reconcileAddonRegistry, reloadGeneratedMeta, } from '../dev/reload-meta.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { getAllFunctionNames } from '../function/function-runner.js';
|
|
2
|
+
export { pikkuAuth } from '../function/functions.types.js';
|
|
3
|
+
export type { CorePikkuAuth, CorePikkuAuthConfig, CorePikkuFunction, CorePikkuFunctionConfig, CorePikkuFunctionSessionless, CorePikkuPermission, CorePikkuSessionlessFunctionConfig, } from '../function/functions.types.js';
|
|
4
|
+
export type { ListInput, ListOutput } from '../function/list.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Types the exports above mention but do not themselves export. Without
|
|
7
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
8
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
9
|
+
*/
|
|
10
|
+
export type { LogLevel } from '../services/logger.js';
|
|
11
|
+
export type { WebhookServiceConfig } from '../services/webhook-service.js';
|
|
12
|
+
export type { CoreSecretlessSingletonServices, CoreSingletonServices, CoreUserSession, PostgresConfig, SecretlessServices, } from '../types/core.types.js';
|
|
13
|
+
export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GatewayTransportType, GatewaysMeta, } from '../wirings/gateway/gateway.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { hmacSha256Hex, timingSafeStringEqual } from '../utils/hmac.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { hmacSha256Hex, timingSafeStringEqual } from '../utils/hmac.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { AssertHTTPWiringParams, CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig, HTTPWiringsMeta, PikkuHTTP, PikkuHTTPResponse, PikkuQuery, RunHTTPWiringOptions, } from '../wirings/http/http.types.js';
|
|
2
|
+
export { logRoutes } from '../wirings/http/log-http-routes.js';
|
|
3
|
+
export { DEFAULT_MAX_BODY_SIZE } from '../wirings/http/pikku-fetch-http-request.js';
|
|
4
|
+
export { toWebRequest } from '../wirings/http/web-request.js';
|
|
5
|
+
/**
|
|
6
|
+
* Types the exports above mention but do not themselves export. Without
|
|
7
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
8
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
9
|
+
*/
|
|
10
|
+
export type { Logger } from '../services/logger.js';
|
|
11
|
+
export type { PikkuHTTPRequest } from '../wirings/http/http.types.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MCPEndpointRegistry } from '../wirings/mcp/mcp-endpoint-registry.js';
|
|
2
|
+
export { MCPError, getMCPPromptsMeta, getMCPResourcesMeta, getMCPToolsMeta, } from '../wirings/mcp/mcp-runner.js';
|
|
3
|
+
export type { AssertMCPResourceURIParams, CoreMCPPrompt, CoreMCPResource, MCPPromptMeta, MCPResourceMeta, MCPToolMeta, MCPToolResponse, PikkuMCP, } from '../wirings/mcp/mcp.types.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { runMiddleware } from '../middleware-runner.js';
|
|
2
|
+
export { authAPIKey } from '../middleware/auth-apikey.js';
|
|
3
|
+
export { authCookie } from '../middleware/auth-cookie.js';
|
|
4
|
+
export { pikkuRemoteAuthMiddleware } from '../middleware/remote-auth.js';
|
|
5
|
+
export { telemetryInner, telemetryOuter } from '../middleware/telemetry.js';
|
|
6
|
+
export { addGlobalPermission } from '../permissions.js';
|
|
7
|
+
/**
|
|
8
|
+
* Types the exports above mention but do not themselves export. Without
|
|
9
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
10
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
11
|
+
*/
|
|
12
|
+
export type { CorePermissionGroup, CorePikkuPermission, } from '../function/functions.types.js';
|
|
13
|
+
export type { LogLevel } from '../services/logger.js';
|
|
14
|
+
export type { WebhookServiceConfig } from '../services/webhook-service.js';
|
|
15
|
+
export type { RelativeTimeInput } from '../time-utils.js';
|
|
16
|
+
export type { CorePikkuMiddleware, CorePikkuMiddlewareFactory, CoreSingletonServices, CoreUserSession, PostgresConfig, } from '../types/core.types.js';
|
|
17
|
+
export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { runMiddleware } from '../middleware-runner.js';
|
|
2
|
+
export { authAPIKey } from '../middleware/auth-apikey.js';
|
|
3
|
+
export { authCookie } from '../middleware/auth-cookie.js';
|
|
4
|
+
export { pikkuRemoteAuthMiddleware } from '../middleware/remote-auth.js';
|
|
5
|
+
export { telemetryInner, telemetryOuter } from '../middleware/telemetry.js';
|
|
6
|
+
export { addGlobalPermission } from '../permissions.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { installNodeHostResolver } from '../utils/node-host-resolver.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { installNodeHostResolver } from '../utils/node-host-resolver.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CoreNodeConfig, NodeType, NodesMeta, } from '../wirings/node/node.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { OAuth2AppCredential, OAuth2Token, } from '../wirings/oauth2/oauth2.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { HttpPersona, createHttpPersonas } from '../services/http-personas.js';
|
|
2
|
+
export type { HttpPersonasConfig } from '../services/http-personas.js';
|
|
3
|
+
export { personaEmails } from '../wirings/persona/persona-email.js';
|
|
4
|
+
export { personaEnvironmentErrors, personaEnvironmentRefusal, } from '../wirings/persona/persona-environments.js';
|
|
5
|
+
export type { CorePersona, PersonaAccountMeta, PersonaDefinitions, } from '../wirings/persona/persona.types.js';
|
|
6
|
+
export { roleMismatchMessage, validateAndBuildPersonasMeta, verifyPersonaRoles, } from '../wirings/persona/validate-personas.js';
|
|
7
|
+
/**
|
|
8
|
+
* Types the exports above mention but do not themselves export. Without
|
|
9
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
10
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
11
|
+
*/
|
|
12
|
+
export type { ScenarioPersonas } from '../services/personas-service.js';
|
|
13
|
+
export type { PersonaEnvironment, PersonaEnvironmentSubject, } from '../wirings/persona/persona-environments.js';
|
|
14
|
+
export type { PersonasMeta } from '../wirings/persona/persona.types.js';
|
|
15
|
+
export type { RoleVerification } from '../wirings/persona/validate-personas.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { HttpPersona, createHttpPersonas } from '../services/http-personas.js';
|
|
2
|
+
export { personaEmails } from '../wirings/persona/persona-email.js';
|
|
3
|
+
export { personaEnvironmentErrors, personaEnvironmentRefusal, } from '../wirings/persona/persona-environments.js';
|
|
4
|
+
export { roleMismatchMessage, validateAndBuildPersonasMeta, verifyPersonaRoles, } from '../wirings/persona/validate-personas.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { QueueJobDiscardedError, QueueJobFailedError, } from '../wirings/queue/queue-runner.js';
|
|
2
|
+
export type { ConfigValidationResult, CoreQueueWorker, JobOptions, PikkuJobConfig, PikkuWorkerConfig, QueueWorkers, QueueWorkersMeta, } from '../wirings/queue/queue.types.js';
|
|
3
|
+
export { registerQueueWorkers } from '../wirings/queue/register-queue-helper.js';
|
|
4
|
+
export type { QueueConfigMapping } from '../wirings/queue/validate-worker-config.js';
|
|
5
|
+
/**
|
|
6
|
+
* Types the exports above mention but do not themselves export. Without
|
|
7
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
8
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
9
|
+
*/
|
|
10
|
+
export type { Logger } from '../services/logger.js';
|
|
11
|
+
export type { QueueRegistrationCallback } from '../wirings/queue/register-queue-helper.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { buildRemoteHeaders } from '../remote.js';
|
|
2
|
+
/**
|
|
3
|
+
* Types the exports above mention but do not themselves export. Without
|
|
4
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
5
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
6
|
+
*/
|
|
7
|
+
export type { JWTService } from '../services/jwt-service.js';
|
|
8
|
+
export type { SecretService } from '../services/secret-service.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { buildRemoteHeaders } from '../remote.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { defineSystemRole } from '../wirings/role/define-system-role.js';
|
|
2
|
+
export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitions, SystemRoleDefinitionsMeta, } from '../wirings/role/role.types.js';
|
|
3
|
+
export { flattenSystemRoleDefinitions, validateAndBuildSystemRoleDefinitionsMeta, } from '../wirings/role/validate-role-definitions.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { wireAddon } from '../wirings/rpc/wire-addon.js';
|
|
2
|
+
export type { WireAddonConfig } from '../wirings/rpc/wire-addon.js';
|
|
3
|
+
export { wireRemoteAddon } from '../wirings/rpc/wire-remote-addon.js';
|
|
4
|
+
export type { RemoteAddonAuth, WireRemoteAddonConfig, } from '../wirings/rpc/wire-remote-addon.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { safeFetch } from '../utils/safe-fetch.js';
|
|
2
|
+
/**
|
|
3
|
+
* Types the exports above mention but do not themselves export. Without
|
|
4
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
5
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
6
|
+
*/
|
|
7
|
+
export type { SafeFetchOptions } from '../utils/safe-fetch.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { safeFetch } from '../utils/safe-fetch.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { PikkuScenarioWire, ScenarioStepMeta, } from '../wirings/workflow/dsl/workflow-dsl.types.js';
|
|
2
|
+
export { addFeature, resolveFeatureScenarios, } from '../wirings/workflow/feature.js';
|
|
3
|
+
export { PikkuScenarioService } from '../wirings/workflow/pikku-scenario-service.js';
|
|
4
|
+
export { composeStepProse } from '../wirings/workflow/scenario-prose.js';
|
|
5
|
+
export { SCENARIO_SURFACES } from '../wirings/workflow/scenario-step.types.js';
|
|
6
|
+
export type { PikkuBrowserWire, ScenarioBrowserFailure, ScenarioBrowserProvider, ScenarioStepKind, ScenarioStepOptions, ScenarioStepPhase, } from '../wirings/workflow/scenario-step.types.js';
|
|
7
|
+
export type { CoreFeature, FeaturesMeta, } from '../wirings/workflow/scenario.types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Types the exports above mention but do not themselves export. Without
|
|
10
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
11
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
12
|
+
*/
|
|
13
|
+
export type { ScenarioSurface } from '../wirings/workflow/scenario-step.types.js';
|
|
14
|
+
export type { FeaturePlanEntry } from '../wirings/workflow/scenario.types.js';
|
|
15
|
+
export type { CoreWorkflow } from '../wirings/workflow/workflow.types.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { addFeature, resolveFeatureScenarios, } from '../wirings/workflow/feature.js';
|
|
2
|
+
export { PikkuScenarioService } from '../wirings/workflow/pikku-scenario-service.js';
|
|
3
|
+
export { composeStepProse } from '../wirings/workflow/scenario-prose.js';
|
|
4
|
+
export { SCENARIO_SURFACES } from '../wirings/workflow/scenario-step.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getScheduledTasks } from '../wirings/scheduler/scheduler-runner.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { addSchema } from '../schema.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { addSchema } from '../schema.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { defineScope } from '../wirings/scope/define-scope.js';
|
|
2
|
+
export type { CoreScopeNode, CoreScopes, FlatScope, ScopeDefinitionMeta, ScopeDefinitions, ScopeDefinitionsMeta, ScopeNodeMeta, } from '../wirings/scope/scope.types.js';
|
|
3
|
+
export { flattenScopeDefinitions, validateAndBuildScopeDefinitionsMeta, } from '../wirings/scope/validate-scope-definitions.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { CoreSecret, OAuth2CredentialConfig, SecretDefinitionMeta, SecretDefinitions, } from '../wirings/secret/secret.types.js';
|
|
2
|
+
export { validateAndBuildSecretDefinitionsMeta } from '../wirings/secret/validate-secret-definitions.js';
|
|
3
|
+
/**
|
|
4
|
+
* Types the exports above mention but do not themselves export. Without
|
|
5
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
6
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
7
|
+
*/
|
|
8
|
+
export type { SchemaRefLike } from '../types/core.types.js';
|
|
9
|
+
export type { SecretDefinitionsMeta } from '../wirings/secret/secret.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { validateAndBuildSecretDefinitionsMeta } from '../wirings/secret/validate-secret-definitions.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IstanbulCoverageService } from '../../services/istanbul-coverage-service.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IstanbulCoverageService } from '../../services/istanbul-coverage-service.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createLocalContentRequestHandler, verifySignedContentRequest, } from '../../services/local-content-request-handler.js';
|
|
2
|
+
export type { LocalContentRequestHandler } from '../../services/local-content-request-handler.js';
|
|
3
|
+
/**
|
|
4
|
+
* Types the exports above mention but do not themselves export. Without
|
|
5
|
+
* them a consumer's declaration emit has no name for the type it infers,
|
|
6
|
+
* and fails with TS2883 rather than reaching for the original entry point.
|
|
7
|
+
*/
|
|
8
|
+
export type { JWTService } from '../../services/jwt-service.js';
|
|
9
|
+
export type { LocalContentRequestHandlerOptions, SignedContentVerification, } from '../../services/local-content-request-handler.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createLocalContentRequestHandler, verifySignedContentRequest, } from '../../services/local-content-request-handler.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { signedContentPath } from '../../services/local-content.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { signedContentPath } from '../../services/local-content.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { V8CoverageService } from '../../services/v8-coverage-service.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { V8CoverageService } from '../../services/v8-coverage-service.js';
|