@xrkseek/harness 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@xrkseek/attachment/dist/error.d.ts +1 -1
- package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/image-region.d.ts +45 -0
- package/node_modules/@xrkseek/attachment/dist/image-region.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment/dist/image-region.js +64 -0
- package/node_modules/@xrkseek/attachment/dist/image-region.js.map +1 -0
- package/node_modules/@xrkseek/attachment/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/index.js +1 -0
- package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/store.d.ts +7 -0
- package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/crop-region.d.ts +10 -0
- package/node_modules/@xrkseek/attachment-local/dist/crop-region.d.ts.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/crop-region.js +53 -0
- package/node_modules/@xrkseek/attachment-local/dist/crop-region.js.map +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/index.js +3 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/cordis/LICENSE +21 -0
- package/node_modules/@xrkseek/cordis/README.md +14 -0
- package/node_modules/@xrkseek/cordis/bin.js +16 -0
- package/node_modules/@xrkseek/cordis/lib/index.js +1828 -0
- package/node_modules/@xrkseek/cordis/lib/types/context.d.ts +101 -0
- package/node_modules/@xrkseek/cordis/lib/types/context.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/events.d.ts +240 -0
- package/node_modules/@xrkseek/cordis/lib/types/events.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/fiber.d.ts +202 -0
- package/node_modules/@xrkseek/cordis/lib/types/fiber.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/index.d.ts +15 -0
- package/node_modules/@xrkseek/cordis/lib/types/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/logger.d.ts +105 -0
- package/node_modules/@xrkseek/cordis/lib/types/logger.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/reflect.d.ts +186 -0
- package/node_modules/@xrkseek/cordis/lib/types/reflect.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/registry.d.ts +201 -0
- package/node_modules/@xrkseek/cordis/lib/types/registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/service.d.ts +55 -0
- package/node_modules/@xrkseek/cordis/lib/types/service.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/lib/types/utils.d.ts +62 -0
- package/node_modules/@xrkseek/cordis/lib/types/utils.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/package.json +49 -0
- package/node_modules/@xrkseek/cordis/src/context.d.ts +101 -0
- package/node_modules/@xrkseek/cordis/src/context.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/context.js +99 -0
- package/node_modules/@xrkseek/cordis/src/context.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/context.ts +146 -0
- package/node_modules/@xrkseek/cordis/src/events.d.ts +240 -0
- package/node_modules/@xrkseek/cordis/src/events.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/events.js +199 -0
- package/node_modules/@xrkseek/cordis/src/events.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/events.ts +352 -0
- package/node_modules/@xrkseek/cordis/src/fiber.d.ts +202 -0
- package/node_modules/@xrkseek/cordis/src/fiber.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/fiber.js +677 -0
- package/node_modules/@xrkseek/cordis/src/fiber.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/fiber.ts +754 -0
- package/node_modules/@xrkseek/cordis/src/index.d.ts +15 -0
- package/node_modules/@xrkseek/cordis/src/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/index.js +15 -0
- package/node_modules/@xrkseek/cordis/src/index.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/index.ts +14 -0
- package/node_modules/@xrkseek/cordis/src/logger.d.ts +105 -0
- package/node_modules/@xrkseek/cordis/src/logger.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/logger.js +193 -0
- package/node_modules/@xrkseek/cordis/src/logger.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/logger.ts +270 -0
- package/node_modules/@xrkseek/cordis/src/reflect.d.ts +186 -0
- package/node_modules/@xrkseek/cordis/src/reflect.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/reflect.js +311 -0
- package/node_modules/@xrkseek/cordis/src/reflect.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/reflect.ts +418 -0
- package/node_modules/@xrkseek/cordis/src/registry.d.ts +201 -0
- package/node_modules/@xrkseek/cordis/src/registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/registry.js +218 -0
- package/node_modules/@xrkseek/cordis/src/registry.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/registry.ts +337 -0
- package/node_modules/@xrkseek/cordis/src/service.d.ts +55 -0
- package/node_modules/@xrkseek/cordis/src/service.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/service.js +113 -0
- package/node_modules/@xrkseek/cordis/src/service.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/service.ts +115 -0
- package/node_modules/@xrkseek/cordis/src/utils.d.ts +62 -0
- package/node_modules/@xrkseek/cordis/src/utils.d.ts.map +1 -0
- package/node_modules/@xrkseek/cordis/src/utils.js +271 -0
- package/node_modules/@xrkseek/cordis/src/utils.js.map +1 -0
- package/node_modules/@xrkseek/cordis/src/utils.ts +287 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +52 -73
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +4 -3
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +2 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +3 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.d.ts +25 -0
- package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.js +107 -0
- package/node_modules/@xrkseek/exec-fs/dist/present-deliverable.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +5 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +55 -7
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/README.md +3 -3
- package/node_modules/@xrkseek/exec-image-gen/dist/catalog.d.ts +16 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/catalog.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/catalog.js +152 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/catalog.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.d.ts +9 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.js +21 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/deepinfra-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.js +189 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/fal-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +10 -5
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +174 -18
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.js +144 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/krea-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.d.ts +9 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.js +21 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/meta-ai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +4 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +7 -5
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.d.ts +14 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.js +117 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openrouter-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +43 -6
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.js +137 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/xai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.d.ts +52 -0
- package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.js +216 -0
- package/node_modules/@xrkseek/exec-memory/dist/consolidate-pipeline.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/tools.js +20 -7
- package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-analyze/README.md +11 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/format.d.ts +3 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/format.js +10 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/index.d.ts +39 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/index.js +64 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.d.ts +22 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.js +70 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/materialize.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/memory.d.ts +8 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/memory.js +21 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/mime.d.ts +13 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/mime.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/mime.js +44 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/mime.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.d.ts +15 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.js +102 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/tools.d.ts +24 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/tools.js +120 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/types.d.ts +30 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/types.js +16 -0
- package/node_modules/@xrkseek/exec-video-analyze/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-analyze/package.json +26 -0
- package/node_modules/@xrkseek/exec-video-gen/README.md +3 -4
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts +14 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js +99 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/catalog.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.d.ts +9 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.js +17 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/deepinfra-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.d.ts +14 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.js +342 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/fal-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +8 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js +122 -19
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +4 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +21 -15
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.d.ts +9 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.js +18 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openrouter-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +26 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.d.ts +18 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.js +263 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/xai-http.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +14 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +48 -3
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-harness/package.json +1 -0
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +12 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +23 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +24 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +12 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +32 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.d.ts +6 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.js +8 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/tool-view.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +15 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts +6 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js +16 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts +31 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js +125 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/approval-category.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/approval-category.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/approval-category.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +19 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +3 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js +25 -3
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.js +11 -5
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +8 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts +16 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +44 -5
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +9 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +55 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.js +44 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +34 -3
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +191 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +8 -0
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +7 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +165 -23
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +6 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.d.ts +32 -0
- package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.js +134 -0
- package/node_modules/@xrkseek/server-host/dist/workflow-engine-mount.js.map +1 -0
- package/node_modules/@xrkseek/server-host/package.json +3 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +20 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts +10 -2
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-workflow/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-workflow/README.md +73 -0
- package/node_modules/@xrkseek/xrk-workflow/README.zh.md +72 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/index.d.ts +177 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/index.js +730 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/invariant.d.ts +13 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/invariant.js +118 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/runtime-types.d.ts +45 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/runtime-types.js +9 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/types.d.ts +118 -0
- package/node_modules/@xrkseek/xrk-workflow/lib/types/types.js +16 -0
- package/node_modules/@xrkseek/xrk-workflow/package.json +53 -0
- package/node_modules/@xrkseek/xrk-workflow/src/index.ts +947 -0
- package/package.json +7 -1
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { defineProperty, isNullable } from '@xrkseek/cosmokit'
|
|
2
|
+
import type { Dict } from '@xrkseek/cosmokit'
|
|
3
|
+
import { Context } from './context.ts'
|
|
4
|
+
import { getTraceable, symbols, withProps } from './utils.ts'
|
|
5
|
+
import { Fiber, FiberState } from './fiber.ts'
|
|
6
|
+
|
|
7
|
+
declare module './context.ts' {
|
|
8
|
+
interface Context {
|
|
9
|
+
/**
|
|
10
|
+
* Read a service from the store without the inject requirement.
|
|
11
|
+
*
|
|
12
|
+
* @param name — the service name.
|
|
13
|
+
* @param strict — when `true` (default), only return implementations
|
|
14
|
+
* whose providing fiber is currently active.
|
|
15
|
+
* @returns the service value, or `undefined` when not (yet) provided.
|
|
16
|
+
*/
|
|
17
|
+
get<K extends string & keyof this>(name: K, strict?: boolean): undefined | this[K]
|
|
18
|
+
/** Same as above for service names outside the typed `Context` surface. */
|
|
19
|
+
get(name: string, strict?: boolean): any
|
|
20
|
+
/**
|
|
21
|
+
* Overwrite a provided service's value.
|
|
22
|
+
*
|
|
23
|
+
* Only the fiber that provided the service may set it; setting an
|
|
24
|
+
* unprovided name throws.
|
|
25
|
+
*
|
|
26
|
+
* @param name — the service name.
|
|
27
|
+
* @param value — the new service value.
|
|
28
|
+
*/
|
|
29
|
+
set<K extends string & keyof this>(name: K, value: undefined | this[K]): void
|
|
30
|
+
/** Same as above for service names outside the typed `Context` surface. */
|
|
31
|
+
set(name: string, value: any): void
|
|
32
|
+
/**
|
|
33
|
+
* Register a service implementation owned by the current fiber.
|
|
34
|
+
*
|
|
35
|
+
* The service becomes visible to dependents in the same isolation scope
|
|
36
|
+
* once the fiber is active; it is unregistered (waking dependents) when
|
|
37
|
+
* the returned disposer runs or the fiber unloads. Throws if the name is
|
|
38
|
+
* already provided in this scope or declared as an accessor.
|
|
39
|
+
*
|
|
40
|
+
* @param name — the service name.
|
|
41
|
+
* @param value — the service value.
|
|
42
|
+
* @returns a disposer that unregisters the service.
|
|
43
|
+
*/
|
|
44
|
+
provide<K extends string & keyof this>(name: K, value: undefined | this[K]): () => void
|
|
45
|
+
/** Same as above for service names outside the typed `Context` surface. */
|
|
46
|
+
provide(name: string, value?: any): () => void
|
|
47
|
+
/**
|
|
48
|
+
* Define a computed context property backed by get/set hooks.
|
|
49
|
+
*
|
|
50
|
+
* The accessor is removed when the current fiber unloads. Throws if the
|
|
51
|
+
* name is already declared.
|
|
52
|
+
*
|
|
53
|
+
* @param name — the context property name.
|
|
54
|
+
* @param options — the `get` hook and optional `set` hook.
|
|
55
|
+
*/
|
|
56
|
+
accessor(name: string, options: Omit<Property.Accessor, 'type'>): void
|
|
57
|
+
/**
|
|
58
|
+
* Expose selected members of a service directly on `ctx`.
|
|
59
|
+
*
|
|
60
|
+
* Each mixed-in key becomes an accessor that forwards to the service
|
|
61
|
+
* (binding methods to it), so e.g. `ctx.on` forwards to `ctx.events.on`.
|
|
62
|
+
* Mixins are removed when the current fiber unloads.
|
|
63
|
+
*
|
|
64
|
+
* @param name — the context property holding the source service.
|
|
65
|
+
* @param mixins — keys to forward, or a source-key → ctx-key map.
|
|
66
|
+
*/
|
|
67
|
+
mixin<K extends string & keyof this>(name: K, mixins: (keyof this & keyof this[K])[] | Dict<string>): void
|
|
68
|
+
/** Same as above with a source object instead of a context property name. */
|
|
69
|
+
mixin<T extends {}>(source: T, mixins: (keyof this & keyof T)[] | Dict<string>): void
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function enhanceError(error: Error) {
|
|
74
|
+
const lines = error.stack!.split('\n')
|
|
75
|
+
lines.splice(0, 2, `Error: ${error.message}`)
|
|
76
|
+
error.stack = lines.join('\n')
|
|
77
|
+
return error
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const RESERVED_WORDS = ['prototype', 'then']
|
|
81
|
+
|
|
82
|
+
// - is a symbol
|
|
83
|
+
// - is a reserved word (prototype, then)
|
|
84
|
+
// - is a number string (0, 1, 2, ...)
|
|
85
|
+
// - starts with `_`
|
|
86
|
+
function isSpecialProperty(prop: string | symbol): prop is symbol {
|
|
87
|
+
return typeof prop === 'symbol'
|
|
88
|
+
|| RESERVED_WORDS.includes(prop)
|
|
89
|
+
|| parseInt(prop).toString() === prop
|
|
90
|
+
|| prop.startsWith('_')
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Context property definition known by the reflection service. */
|
|
94
|
+
export type Property = Property.Service | Property.Accessor
|
|
95
|
+
|
|
96
|
+
/** Property definition variants understood by `ReflectService`. */
|
|
97
|
+
export namespace Property {
|
|
98
|
+
/** Service property backed by a provided implementation. */
|
|
99
|
+
export interface Service {
|
|
100
|
+
/** Discriminator. */
|
|
101
|
+
type: 'service'
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Computed context property backed by custom get/set hooks. */
|
|
105
|
+
export interface Accessor {
|
|
106
|
+
/** Discriminator. */
|
|
107
|
+
type: 'accessor'
|
|
108
|
+
/** Compute the property value; `error` carries the caller stack for diagnostics. */
|
|
109
|
+
get: (this: Context, receiver: any, error: Error) => any
|
|
110
|
+
/** Optional setter; return `false` to reject the write. */
|
|
111
|
+
set?: (this: Context, value: any, receiver: any, error: Error) => boolean
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Concrete service implementation record stored in the root reflect service. */
|
|
116
|
+
export interface Impl {
|
|
117
|
+
/** The service name. */
|
|
118
|
+
name: string
|
|
119
|
+
/** The fiber that provided the service (owns its lifetime). */
|
|
120
|
+
fiber: Fiber
|
|
121
|
+
/** The current service value. */
|
|
122
|
+
value?: any
|
|
123
|
+
/** Optional availability predicate consulted before dependents may load. */
|
|
124
|
+
check?: () => boolean
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Reflection and service-resolution layer installed as `ctx.reflect`.
|
|
129
|
+
*
|
|
130
|
+
* This service powers the context proxy, service registration, accessors, and
|
|
131
|
+
* the mixins that expose core service methods directly on `ctx`.
|
|
132
|
+
*/
|
|
133
|
+
export class ReflectService {
|
|
134
|
+
/** Proxy traps implementing service resolution for every context object. */
|
|
135
|
+
static handler: ProxyHandler<Context> = {
|
|
136
|
+
get: (target, prop, ctx: Context) => {
|
|
137
|
+
if (isSpecialProperty(prop)) {
|
|
138
|
+
return Reflect.get(target, prop, ctx)
|
|
139
|
+
}
|
|
140
|
+
if (Reflect.has(target, prop)) {
|
|
141
|
+
return getTraceable(ctx, Reflect.get(target, prop, ctx))
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const error = new Error(`cannot get property "${prop}" without inject`)
|
|
145
|
+
|
|
146
|
+
try {
|
|
147
|
+
const def = target.reflect.props[prop]
|
|
148
|
+
if (def?.type === 'accessor') {
|
|
149
|
+
return def.get.call(ctx, ctx[symbols.receiver], error)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (!ctx.fiber.runtime) return ctx.reflect.get(prop, false)
|
|
153
|
+
return ctx.events.waterfall('internal/get', ctx, prop, error, () => {
|
|
154
|
+
const key = target[symbols.isolate][prop]
|
|
155
|
+
let fiber = (ctx[symbols.shadow] as Context ?? ctx).fiber
|
|
156
|
+
while (true) {
|
|
157
|
+
const impl = fiber.store?.[prop]
|
|
158
|
+
if (impl) return getTraceable(ctx, impl.value)
|
|
159
|
+
if (prop in fiber.inject) {
|
|
160
|
+
error.message = `cannot get required service "${prop}" in inactive context`
|
|
161
|
+
throw error
|
|
162
|
+
}
|
|
163
|
+
if (!fiber.runtime) throw error
|
|
164
|
+
if (fiber.parent[symbols.isolate][prop] !== key) throw error
|
|
165
|
+
fiber = fiber.parent.fiber
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
} catch (e: any) {
|
|
169
|
+
throw e === error ? enhanceError(e) : e
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
set: (target, prop, value, ctx: Context) => {
|
|
174
|
+
if (isSpecialProperty(prop)) {
|
|
175
|
+
return Reflect.set(target, prop, value, ctx)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const error = new Error(`cannot set property "${prop}" without provide`)
|
|
179
|
+
const def = target.reflect.props[prop]
|
|
180
|
+
if (!def) {
|
|
181
|
+
if (!ctx.fiber.runtime) return Reflect.set(target, prop, value, ctx)
|
|
182
|
+
throw enhanceError(error)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
try {
|
|
186
|
+
if (def.type === 'accessor') {
|
|
187
|
+
if (!def.set) return false
|
|
188
|
+
return def.set.call(ctx, value, ctx[symbols.receiver], error)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return ctx.events.waterfall('internal/set', ctx, prop, value, error, () => {
|
|
192
|
+
return ctx.reflect.set(prop, value, error)
|
|
193
|
+
})
|
|
194
|
+
} catch (e: any) {
|
|
195
|
+
throw e === error ? enhanceError(e) : e
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
has: (target, prop) => {
|
|
200
|
+
if (isSpecialProperty(prop)) {
|
|
201
|
+
return Reflect.has(target, prop)
|
|
202
|
+
}
|
|
203
|
+
if (Reflect.has(target, prop)) return true
|
|
204
|
+
return !!target.reflect.props[prop]
|
|
205
|
+
},
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** Service implementations, keyed by isolation label. */
|
|
209
|
+
public store: Dict<Impl, symbol> = Object.create(null)
|
|
210
|
+
/** Declared context properties (services and accessors), by name. */
|
|
211
|
+
public props: Dict<Property> = Object.create(null)
|
|
212
|
+
|
|
213
|
+
constructor(public ctx: Context) {
|
|
214
|
+
defineProperty(this, symbols.tracker, {
|
|
215
|
+
property: 'ctx',
|
|
216
|
+
noShadow: true,
|
|
217
|
+
})
|
|
218
|
+
|
|
219
|
+
this.mixin('reflect', ['get', 'set', 'provide', 'accessor', 'mixin'])
|
|
220
|
+
this.mixin('fiber', ['runtime', 'effect'])
|
|
221
|
+
this.mixin('registry', ['inject', 'plugin'])
|
|
222
|
+
this.mixin('events', ['on', 'once', 'parallel', 'emit', 'serial', 'bail', 'waterfall'])
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Read a service from the store without the inject requirement.
|
|
227
|
+
*
|
|
228
|
+
* @param name — the service name.
|
|
229
|
+
* @param strict — when `true`, only return implementations whose providing
|
|
230
|
+
* fiber is currently active.
|
|
231
|
+
* @returns the service value, or `undefined` when not (yet) provided.
|
|
232
|
+
*/
|
|
233
|
+
get(name: string, strict = true) {
|
|
234
|
+
return getTraceable(this.ctx, this._getImpl(name, strict)?.value)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
_getImpl(name: string, strict = true) {
|
|
238
|
+
const key = this.ctx[symbols.isolate][name]
|
|
239
|
+
const impl = key && this.store[key]
|
|
240
|
+
if (!impl) return
|
|
241
|
+
if (strict && impl.fiber.state !== FiberState.ACTIVE) return
|
|
242
|
+
return impl
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Overwrite a provided service's value.
|
|
247
|
+
*
|
|
248
|
+
* @param name — the service name.
|
|
249
|
+
* @param value — the new service value.
|
|
250
|
+
* @param error — carrier for the caller stack in diagnostics.
|
|
251
|
+
* @returns `true` on success.
|
|
252
|
+
* @throws when `name` was never provided, or was provided by another fiber.
|
|
253
|
+
*/
|
|
254
|
+
set(name: string, value: any, error?: Error) {
|
|
255
|
+
const key = this.ctx[symbols.isolate][name]
|
|
256
|
+
const impl = this.store[key]
|
|
257
|
+
if (!impl) {
|
|
258
|
+
throw new Error(`cannot set property "${name}" without provide`)
|
|
259
|
+
}
|
|
260
|
+
if (impl.fiber !== this.ctx.fiber) {
|
|
261
|
+
throw new Error(`cannot set property "${name}" in multiple fibers`)
|
|
262
|
+
}
|
|
263
|
+
impl.value = value
|
|
264
|
+
return true
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Register a service implementation owned by the current fiber.
|
|
269
|
+
*
|
|
270
|
+
* See the `ctx.provide()` overload above for the full contract.
|
|
271
|
+
*
|
|
272
|
+
* @param name — the service name.
|
|
273
|
+
* @param value — the service value.
|
|
274
|
+
* @param check — optional availability predicate for dependents.
|
|
275
|
+
* @returns a disposer that unregisters the service.
|
|
276
|
+
*/
|
|
277
|
+
provide(name: string, value?: any, check?: () => boolean) {
|
|
278
|
+
return this.ctx.fiber.effect(() => {
|
|
279
|
+
if (!this.props[name]) {
|
|
280
|
+
this.props[name] ??= { type: 'service' }
|
|
281
|
+
} else if (this.props[name].type !== 'service') {
|
|
282
|
+
throw new Error(`property "${name}" is already declared as ${this.props[name].type}`)
|
|
283
|
+
}
|
|
284
|
+
this.props[name] = { type: 'service' }
|
|
285
|
+
|
|
286
|
+
this.ctx.root[symbols.isolate][name] ??= Symbol(name)
|
|
287
|
+
const key = this.ctx[symbols.isolate][name]
|
|
288
|
+
const impl: Impl = { name, value, fiber: this.ctx.fiber, check }
|
|
289
|
+
if (this.store[key]) {
|
|
290
|
+
throw new Error(`service "${name}" has been registered at <${this.store[key].fiber.name}>`)
|
|
291
|
+
}
|
|
292
|
+
this.store[key] = impl
|
|
293
|
+
this.ctx.fiber.store![name] = impl
|
|
294
|
+
if (this.ctx.fiber.state === FiberState.ACTIVE) {
|
|
295
|
+
this.notify([name])
|
|
296
|
+
}
|
|
297
|
+
return async () => {
|
|
298
|
+
delete this.store[key]
|
|
299
|
+
const fibers = this.notify([name])
|
|
300
|
+
await Promise.allSettled(fibers.map(fiber => fiber.await()))
|
|
301
|
+
// ensure self access before dependencies cleanup
|
|
302
|
+
delete this.ctx.fiber.store![name]
|
|
303
|
+
}
|
|
304
|
+
}, `ctx.provide(${JSON.stringify(name)})`)
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Re-evaluate every fiber that requires one of the given services.
|
|
309
|
+
*
|
|
310
|
+
* @param names — the service names that changed.
|
|
311
|
+
* @param filter — restricts notification to matching isolation scopes.
|
|
312
|
+
* @returns the fibers whose dependency state was refreshed.
|
|
313
|
+
*/
|
|
314
|
+
notify(names: string[], filter = (ctx: Context, name: string) => ctx[symbols.isolate][name] === this.ctx[symbols.isolate][name]) {
|
|
315
|
+
const fibers: Fiber[] = []
|
|
316
|
+
for (const runtime of this.ctx.registry.values()) {
|
|
317
|
+
for (const fiber of runtime.fibers) {
|
|
318
|
+
let hasUpdate = false
|
|
319
|
+
for (const name of names) {
|
|
320
|
+
if (!(name in fiber.inject)) continue
|
|
321
|
+
if (!filter(fiber.ctx, name)) continue
|
|
322
|
+
hasUpdate = true
|
|
323
|
+
fiber._checkImpl(name)
|
|
324
|
+
}
|
|
325
|
+
if (!hasUpdate) continue
|
|
326
|
+
fiber._refresh()
|
|
327
|
+
fibers.push(fiber)
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
for (const name of names) {
|
|
331
|
+
const self: Context = Object.create(this.ctx)
|
|
332
|
+
self[symbols.filter] = (target: Context) => filter(target, name)
|
|
333
|
+
this.ctx.events.emit(self, 'internal/service', name, this._getImpl(name, false)?.value)
|
|
334
|
+
}
|
|
335
|
+
return fibers
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Define a computed context property backed by get/set hooks.
|
|
340
|
+
*
|
|
341
|
+
* @param name — the context property name.
|
|
342
|
+
* @param options — the `get` hook and optional `set` hook.
|
|
343
|
+
* @returns a disposer that removes the accessor.
|
|
344
|
+
*/
|
|
345
|
+
accessor(name: string, options: Omit<Property.Accessor, 'type'>) {
|
|
346
|
+
return this.ctx.fiber.effect(() => {
|
|
347
|
+
if (name in this.props) {
|
|
348
|
+
throw new Error(`property "${name}" is already declared as ${this.props[name].type}`)
|
|
349
|
+
}
|
|
350
|
+
this.props[name] = { type: 'accessor', ...options }
|
|
351
|
+
return () => delete this.props[name]
|
|
352
|
+
}, `ctx.accessor(${JSON.stringify(name)})`)
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Expose selected members of a service directly on `ctx`.
|
|
357
|
+
*
|
|
358
|
+
* See the `ctx.mixin()` overload above for the full contract.
|
|
359
|
+
*
|
|
360
|
+
* @param source — a context property name or a source object.
|
|
361
|
+
* @param mixins — keys to forward, or a source-key → ctx-key map.
|
|
362
|
+
* @returns a disposer that removes all created accessors.
|
|
363
|
+
*/
|
|
364
|
+
mixin(source: any, mixins: string[] | Dict<string>) {
|
|
365
|
+
const self = this
|
|
366
|
+
return this.ctx.fiber.effect(function* () {
|
|
367
|
+
const entries = Array.isArray(mixins) ? mixins.map(key => [key, key]) : Object.entries(mixins)
|
|
368
|
+
const getTarget = (ctx: Context, error: Error) => {
|
|
369
|
+
// TODO enhance error message
|
|
370
|
+
return ctx[source]
|
|
371
|
+
}
|
|
372
|
+
for (const [key, value] of entries) {
|
|
373
|
+
yield self.accessor(value, {
|
|
374
|
+
get(receiver, error) {
|
|
375
|
+
const service = getTarget(this, error)
|
|
376
|
+
if (isNullable(service)) return service
|
|
377
|
+
const mixin = receiver ? withProps(receiver, service) : service
|
|
378
|
+
const value = Reflect.get(service, key, mixin)
|
|
379
|
+
if (typeof value !== 'function') return value
|
|
380
|
+
return value.bind(mixin ?? service)
|
|
381
|
+
},
|
|
382
|
+
set(value, receiver, error) {
|
|
383
|
+
const service = getTarget(this, error)
|
|
384
|
+
const mixin = receiver ? withProps(receiver, service) : service
|
|
385
|
+
return Reflect.set(service, key, value, mixin)
|
|
386
|
+
},
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
}, `ctx.mixin(${JSON.stringify(source)})`)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Attach this context's tracing wrapper to a value.
|
|
394
|
+
*
|
|
395
|
+
* @param value — the value to wrap.
|
|
396
|
+
* @returns the traceable wrapper (or the value itself when not applicable).
|
|
397
|
+
*/
|
|
398
|
+
trace<T>(value: T) {
|
|
399
|
+
return getTraceable(this.ctx, value)
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Wrap a callback so calls trace `this` and arguments to this context.
|
|
404
|
+
*
|
|
405
|
+
* @param callback — the function to wrap.
|
|
406
|
+
* @returns a proxy delegating to `callback` with traced values.
|
|
407
|
+
*/
|
|
408
|
+
bind<T extends Function>(callback: T) {
|
|
409
|
+
return new Proxy(callback, {
|
|
410
|
+
apply: (target, thisArg, args) => {
|
|
411
|
+
return Reflect.apply(target, this.trace(thisArg), args.map(arg => this.trace(arg)))
|
|
412
|
+
},
|
|
413
|
+
construct: (target, args, newTarget) => {
|
|
414
|
+
return Reflect.construct(target, args.map(arg => this.trace(arg)), newTarget)
|
|
415
|
+
},
|
|
416
|
+
})
|
|
417
|
+
}
|
|
418
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { Dict } from '@xrkseek/cosmokit';
|
|
2
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
+
import { Context } from './context.ts';
|
|
4
|
+
import { Fiber } from './fiber.ts';
|
|
5
|
+
import { DisposableList, symbols } from './utils.ts';
|
|
6
|
+
/**
|
|
7
|
+
* Service dependency declaration accepted by plugins and the `@Inject`
|
|
8
|
+
* decorator.
|
|
9
|
+
*
|
|
10
|
+
* Array form requests services without intercept config. Object form maps each
|
|
11
|
+
* service name to optional intercept config for the plugin context.
|
|
12
|
+
*/
|
|
13
|
+
export type Inject<M = Dict> = (keyof M)[] | {
|
|
14
|
+
[K in keyof M]?: M[K];
|
|
15
|
+
};
|
|
16
|
+
/** Context keys that correspond to services with typed intercept config. */
|
|
17
|
+
export type InjectKey = keyof {
|
|
18
|
+
[K in keyof Context & string as Context[K] extends {
|
|
19
|
+
[symbols.config]: any;
|
|
20
|
+
} ? K : never]: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Decorator for declaring service dependencies on classes or class methods.
|
|
24
|
+
*
|
|
25
|
+
* On classes it contributes to the plugin's static `inject` map. On methods it
|
|
26
|
+
* delays the method call until the declared services are available.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @param name — the required service name.
|
|
30
|
+
* @param config — optional intercept config applied for that service.
|
|
31
|
+
* @returns the class or method decorator.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Inject<K extends InjectKey>(name: K, config?: Context[K] extends {
|
|
34
|
+
[symbols.config]: infer T;
|
|
35
|
+
} ? T : never): (value: any, decorator: ClassDecoratorContext<any> | ClassMethodDecoratorContext<any>) => void;
|
|
36
|
+
/** Utilities for normalizing plugin dependency declarations. */
|
|
37
|
+
export declare namespace Inject {
|
|
38
|
+
/**
|
|
39
|
+
* Convert array/object/class-inherited inject metadata into a plain map.
|
|
40
|
+
*
|
|
41
|
+
* @param inject — the declaration to normalize; `null`/`undefined` add nothing.
|
|
42
|
+
* @param result — the map to fill (service name → intercept config or `null`).
|
|
43
|
+
* @returns `result`.
|
|
44
|
+
*/
|
|
45
|
+
function resolve(inject: Inject | null | undefined, result?: Dict): Dict;
|
|
46
|
+
}
|
|
47
|
+
/** Supported plugin entrypoint shapes. */
|
|
48
|
+
export type Plugin<T = any> = Plugin.Function<T> | Plugin.Constructor<T> | Plugin.Object<T>;
|
|
49
|
+
/** Types associated with plugin entrypoints and runtime records. */
|
|
50
|
+
export declare namespace Plugin {
|
|
51
|
+
/** Shared metadata understood by the plugin registry and related tooling. */
|
|
52
|
+
interface Base<T = any> {
|
|
53
|
+
/** Display name used for fiber diagnostics and logger names. */
|
|
54
|
+
name?: string;
|
|
55
|
+
/** Standard-schema validator applied to config before the plugin starts. */
|
|
56
|
+
Config?: StandardSchemaV1<any, T>;
|
|
57
|
+
/** Services the plugin requires; it only loads while all are available. */
|
|
58
|
+
inject?: Inject;
|
|
59
|
+
/** Service name(s) the plugin provides (read by `Service` and by loaders). */
|
|
60
|
+
provide?: string | string[];
|
|
61
|
+
/** Service names whose intercept config the plugin declares it consumes. */
|
|
62
|
+
intercept?: Dict<boolean>;
|
|
63
|
+
}
|
|
64
|
+
interface Transform<S, T> {
|
|
65
|
+
/** Marks the transform object as a schema/config transform. */
|
|
66
|
+
schema?: true;
|
|
67
|
+
/** Convert user-facing config to runtime config. */
|
|
68
|
+
Config: (config: S) => T;
|
|
69
|
+
}
|
|
70
|
+
/** Function plugin called with `(ctx, config)`. */
|
|
71
|
+
interface Function<T = any> extends Base<T> {
|
|
72
|
+
(ctx: Context, config: T): any;
|
|
73
|
+
}
|
|
74
|
+
/** Class plugin constructed with `(ctx, config)`. */
|
|
75
|
+
interface Constructor<T = any> extends Base<T> {
|
|
76
|
+
new (ctx: Context, config: T): any;
|
|
77
|
+
}
|
|
78
|
+
/** Object plugin with an `apply(ctx, config)` method. */
|
|
79
|
+
interface Object<T = any> extends Base<T> {
|
|
80
|
+
apply(ctx: Context, config: T): any;
|
|
81
|
+
}
|
|
82
|
+
/** Mutable registry record shared by all fibers of one plugin callback. */
|
|
83
|
+
interface Runtime {
|
|
84
|
+
/** Display name copied from the first registered plugin shape. */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** Every live fiber of this plugin (one per `ctx.plugin()` call). */
|
|
87
|
+
fibers: DisposableList<Fiber>;
|
|
88
|
+
/** The executable entrypoint all fibers share (registry identity key). */
|
|
89
|
+
callback: globalThis.Function;
|
|
90
|
+
/** Standard-schema validator applied to each fiber's config. */
|
|
91
|
+
Config?: StandardSchemaV1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
type Spread<T> = undefined extends T ? [config?: T] : [config: T];
|
|
95
|
+
type GetPluginParameters<P> = P extends (ctx: Context, ...args: infer R) => any ? R : P extends new (ctx: Context, ...args: infer R) => any ? R : P extends {
|
|
96
|
+
apply(ctx: Context, ...args: infer R): any;
|
|
97
|
+
} ? R : never;
|
|
98
|
+
type GetPluginConfig<P> = P extends Plugin.Transform<infer S, any> ? S : GetPluginParameters<P>[0];
|
|
99
|
+
declare module './context.ts' {
|
|
100
|
+
interface Context {
|
|
101
|
+
/**
|
|
102
|
+
* Run a callback once the requested services are available.
|
|
103
|
+
*
|
|
104
|
+
* Shorthand for `ctx.plugin({ inject, apply: callback })`: the callback
|
|
105
|
+
* is unloaded and re-run whenever a required service changes.
|
|
106
|
+
*
|
|
107
|
+
* @param deps — required services, as an array or a name → config map.
|
|
108
|
+
* @param callback — plugin body called with `(ctx, config)`.
|
|
109
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
110
|
+
*/
|
|
111
|
+
inject(deps: Inject, callback: Plugin.Function<void>): Fiber & PromiseLike<Fiber>;
|
|
112
|
+
/**
|
|
113
|
+
* Load a plugin in the current context.
|
|
114
|
+
*
|
|
115
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
116
|
+
* @param args — the plugin config, validated against its `Config` schema.
|
|
117
|
+
* @returns the fiber; awaiting it settles once loading finished
|
|
118
|
+
* (rejecting on config or startup errors).
|
|
119
|
+
*/
|
|
120
|
+
plugin<P extends Plugin>(plugin: P, ...args: Spread<GetPluginConfig<P>>): Fiber & PromiseLike<Fiber>;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Plugin registry installed as `ctx.registry` and mixed into every context.
|
|
125
|
+
*
|
|
126
|
+
* It normalizes plugin shapes, tracks plugin runtimes, starts fibers, and
|
|
127
|
+
* exposes map-like inspection over active plugin callbacks.
|
|
128
|
+
*/
|
|
129
|
+
export declare class RegistryService {
|
|
130
|
+
ctx: Context;
|
|
131
|
+
private _counter;
|
|
132
|
+
private _internal;
|
|
133
|
+
constructor(ctx: Context);
|
|
134
|
+
/** Allocate the next fiber uid (increments on every read). */
|
|
135
|
+
get counter(): number;
|
|
136
|
+
/** Number of registered plugin runtimes. */
|
|
137
|
+
get size(): number;
|
|
138
|
+
/**
|
|
139
|
+
* Resolve a supported plugin shape to its executable callback.
|
|
140
|
+
*
|
|
141
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
142
|
+
* @returns the callback identifying the plugin, or `undefined` if invalid.
|
|
143
|
+
*/
|
|
144
|
+
resolve(plugin: Plugin): Function | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Look up the runtime record for a plugin.
|
|
147
|
+
*
|
|
148
|
+
* @param plugin — any supported plugin shape.
|
|
149
|
+
* @returns the runtime, or `undefined` when the plugin is not registered.
|
|
150
|
+
*/
|
|
151
|
+
get(plugin: Plugin): Plugin.Runtime | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Check whether a plugin has a registered runtime.
|
|
154
|
+
*
|
|
155
|
+
* @param plugin — any supported plugin shape.
|
|
156
|
+
* @returns `true` when at least one fiber of the plugin exists.
|
|
157
|
+
*/
|
|
158
|
+
has(plugin: Plugin): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Dispose every running fiber for a plugin and remove its runtime record.
|
|
161
|
+
*
|
|
162
|
+
* @param plugin — any supported plugin shape.
|
|
163
|
+
* @returns the removed runtime, or `undefined` when none was registered.
|
|
164
|
+
*/
|
|
165
|
+
delete(plugin: Plugin): Plugin.Runtime | undefined;
|
|
166
|
+
/** Iterate the registered plugin callbacks. */
|
|
167
|
+
keys(): MapIterator<Function>;
|
|
168
|
+
/** Iterate the registered plugin runtimes. */
|
|
169
|
+
values(): MapIterator<Plugin.Runtime>;
|
|
170
|
+
/** Iterate `[callback, runtime]` pairs. */
|
|
171
|
+
entries(): MapIterator<[Function, Plugin.Runtime]>;
|
|
172
|
+
/**
|
|
173
|
+
* Visit every registered runtime.
|
|
174
|
+
*
|
|
175
|
+
* @param callback — receives each runtime and its identifying callback.
|
|
176
|
+
*/
|
|
177
|
+
forEach(callback: (value: Plugin.Runtime, key: Function) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* Start a callback once the requested dependencies are available.
|
|
180
|
+
*
|
|
181
|
+
* @param inject — required services, as an array or a name → config map.
|
|
182
|
+
* @param callback — plugin body called with `(ctx, config)`.
|
|
183
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
184
|
+
*/
|
|
185
|
+
inject(inject: Inject, callback: Plugin.Function<void>): Fiber & PromiseLike<Fiber>;
|
|
186
|
+
/**
|
|
187
|
+
* Start a plugin in the current context and return its fiber.
|
|
188
|
+
*
|
|
189
|
+
* Creates (or reuses) the plugin's runtime record, then starts a new fiber
|
|
190
|
+
* under the current context. Throws if `plugin` is not a supported shape or
|
|
191
|
+
* if the current fiber is already disposed.
|
|
192
|
+
*
|
|
193
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
194
|
+
* @param config — the plugin config, validated against its `Config` schema.
|
|
195
|
+
* @param getOuterStack — captures the caller stack for effect diagnostics.
|
|
196
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
197
|
+
*/
|
|
198
|
+
plugin(plugin: Plugin, config?: any, getOuterStack?: () => string[]): Fiber & Promise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