@nimiplatform/sdk 0.15.0 → 0.21.0
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 +430 -1
- package/README.md +125 -18
- package/dist/core/ai/capability-configuration.d.ts +15 -0
- package/dist/core/ai/capability-configuration.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration.js +36 -0
- package/dist/core/ai/capability-configuration.js.map +1 -1
- package/dist/core/ai/embeddings.d.ts +5 -0
- package/dist/core/ai/embeddings.d.ts.map +1 -1
- package/dist/core/ai/embeddings.js +30 -4
- package/dist/core/ai/embeddings.js.map +1 -1
- package/dist/core/ai/index.d.ts +4 -0
- package/dist/core/ai/index.d.ts.map +1 -1
- package/dist/core/ai/index.js +3 -0
- package/dist/core/ai/index.js.map +1 -1
- package/dist/core/ai/local-app-model.d.ts +15 -4
- package/dist/core/ai/local-app-model.d.ts.map +1 -1
- package/dist/core/ai/local-app-model.js +57 -18
- package/dist/core/ai/local-app-model.js.map +1 -1
- package/dist/core/ai/music-input-wire.d.ts +4 -0
- package/dist/core/ai/music-input-wire.d.ts.map +1 -0
- package/dist/core/ai/music-input-wire.js +9 -0
- package/dist/core/ai/music-input-wire.js.map +1 -0
- package/dist/core/ai/music-input.d.ts +44 -0
- package/dist/core/ai/music-input.d.ts.map +1 -0
- package/dist/core/ai/music-input.js +69 -0
- package/dist/core/ai/music-input.js.map +1 -0
- package/dist/core/ai/reasoning.d.ts +32 -0
- package/dist/core/ai/reasoning.d.ts.map +1 -0
- package/dist/core/ai/reasoning.js +74 -0
- package/dist/core/ai/reasoning.js.map +1 -0
- package/dist/core/ai/runtime-model.d.ts +2 -19
- package/dist/core/ai/runtime-model.d.ts.map +1 -1
- package/dist/core/ai/runtime-model.js +3 -47
- package/dist/core/ai/runtime-model.js.map +1 -1
- package/dist/core/ai/speech-input.d.ts +9 -0
- package/dist/core/ai/speech-input.d.ts.map +1 -0
- package/dist/core/ai/speech-input.js +16 -0
- package/dist/core/ai/speech-input.js.map +1 -0
- package/dist/core/ai/text-runner.js +11 -4
- package/dist/core/ai/text-runner.js.map +1 -1
- package/dist/core/app/desktop-open.d.ts +4 -1
- package/dist/core/app/desktop-open.d.ts.map +1 -1
- package/dist/core/app/desktop-open.js +5 -1
- package/dist/core/app/desktop-open.js.map +1 -1
- package/dist/core/app/index.d.ts +29 -4
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +18 -0
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-agent-introduction.d.ts +30 -0
- package/dist/core/app/local-app-agent-introduction.d.ts.map +1 -0
- package/dist/core/app/local-app-agent-introduction.js +64 -0
- package/dist/core/app/local-app-agent-introduction.js.map +1 -0
- package/dist/core/app/local-app-agent-work-input.d.ts +24 -0
- package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -0
- package/dist/core/app/local-app-agent-work-input.js +50 -0
- package/dist/core/app/local-app-agent-work-input.js.map +1 -0
- package/dist/core/app/local-app-audio-separation.d.ts +9 -0
- package/dist/core/app/local-app-audio-separation.d.ts.map +1 -1
- package/dist/core/app/local-app-audio-separation.js +64 -3
- package/dist/core/app/local-app-audio-separation.js.map +1 -1
- package/dist/core/app/local-app-bytes.d.ts +10 -0
- package/dist/core/app/local-app-bytes.d.ts.map +1 -0
- package/dist/core/app/local-app-bytes.js +27 -0
- package/dist/core/app/local-app-bytes.js.map +1 -0
- package/dist/core/app/local-app-music-transcription.d.ts +43 -0
- package/dist/core/app/local-app-music-transcription.d.ts.map +1 -0
- package/dist/core/app/local-app-music-transcription.js +94 -0
- package/dist/core/app/local-app-music-transcription.js.map +1 -0
- package/dist/core/app/local-app-music.d.ts +50 -0
- package/dist/core/app/local-app-music.d.ts.map +1 -0
- package/dist/core/app/local-app-music.js +135 -0
- package/dist/core/app/local-app-music.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +59 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.js +283 -0
- package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity.d.ts +219 -0
- package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-activity.js +749 -0
- package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-agent-references.d.ts +4 -0
- package/dist/core/app/local-app-runtime-platform-agent-references.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-references.js +21 -9
- package/dist/core/app/local-app-runtime-platform-agent-references.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-agent-work.d.ts +88 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.js +165 -0
- package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.js +55 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts +154 -36
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +738 -121
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-assets.js +37 -12
- package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-configure.js +10 -10
- package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts +7 -4
- package/dist/core/app/local-app-runtime-platform-conversation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-conversation.js +15 -10
- package/dist/core/app/local-app-runtime-platform-conversation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts +5 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.js +38 -0
- package/dist/core/app/local-app-runtime-platform-direct-agent-work.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-direct-conversation.js +6 -6
- package/dist/core/app/local-app-runtime-platform-direct-conversation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-integration.d.ts +128 -0
- package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-integration.js +263 -0
- package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-validation.d.ts +2 -0
- package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.js +42 -3
- package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.js +5 -5
- package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform.d.ts +19 -15
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js +17 -6
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core/app/local-app-speaker-embedding.d.ts +6 -0
- package/dist/core/app/local-app-speaker-embedding.d.ts.map +1 -0
- package/dist/core/app/local-app-speaker-embedding.js +14 -0
- package/dist/core/app/local-app-speaker-embedding.js.map +1 -0
- package/dist/core/app/local-app-text-decision.d.ts +114 -0
- package/dist/core/app/local-app-text-decision.d.ts.map +1 -0
- package/dist/core/app/local-app-text-decision.js +444 -0
- package/dist/core/app/local-app-text-decision.js.map +1 -0
- package/dist/core/app/local-app-text.d.ts +7 -1
- package/dist/core/app/local-app-text.d.ts.map +1 -1
- package/dist/core/app/local-app-text.js +16 -15
- package/dist/core/app/local-app-text.js.map +1 -1
- package/dist/core/app/local-app-transcription.d.ts +11 -0
- package/dist/core/app/local-app-transcription.d.ts.map +1 -1
- package/dist/core/app/local-app-transcription.js +22 -2
- package/dist/core/app/local-app-transcription.js.map +1 -1
- package/dist/core/app/local-app-voice-convert.d.ts +61 -0
- package/dist/core/app/local-app-voice-convert.d.ts.map +1 -0
- package/dist/core/app/local-app-voice-convert.js +133 -0
- package/dist/core/app/local-app-voice-convert.js.map +1 -0
- package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts +2 -2
- package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts.map +1 -1
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js +5 -3
- package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
- package/dist/core/text-stream-cleanup.d.ts +3 -0
- package/dist/core/text-stream-cleanup.d.ts.map +1 -0
- package/dist/core/text-stream-cleanup.js +19 -0
- package/dist/core/text-stream-cleanup.js.map +1 -0
- package/dist/core-generated/realm-client.d.ts.map +1 -1
- package/dist/core-generated/realm-client.js +10 -4
- package/dist/core-generated/realm-client.js.map +1 -1
- package/dist/core-generated/realm-typed-client.d.ts +86 -29
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +19 -8
- package/dist/core-generated/realm-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-client.js +312 -0
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +21 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.js +41 -5
- package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +158 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +299 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts +5 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts +625 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js +1369 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +1872 -106
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +4718 -1513
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +40 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +72 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts +859 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js +1663 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +20 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +38 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +456 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +869 -6
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +146 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +145 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts +43 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js +88 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts +53 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.js +118 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/development.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +1293 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +2898 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +166 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +217 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +8 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +9 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +69 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js +120 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js.map +1 -1
- package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-client.js +296 -8
- package/dist/core-generated/runtime-public-client.js.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js +37 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +44 -5
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +44 -5
- package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js +39 -0
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +66 -16
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +398 -3
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +47 -5
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +47 -5
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/features/generation/index.d.ts +14 -2
- package/dist/features/generation/index.d.ts.map +1 -1
- package/dist/features/generation/index.js +14 -1
- package/dist/features/generation/index.js.map +1 -1
- package/dist/features/generation/media-params.d.ts +0 -3
- package/dist/features/generation/media-params.d.ts.map +1 -1
- package/dist/features/generation/media-params.js +8 -6
- package/dist/features/generation/media-params.js.map +1 -1
- package/dist/features/generation/runtime-generation-build.d.ts +0 -1
- package/dist/features/generation/runtime-generation-build.d.ts.map +1 -1
- package/dist/features/generation/runtime-generation-build.js +6 -1
- package/dist/features/generation/runtime-generation-build.js.map +1 -1
- package/dist/features/generation/runtime-image-generation.d.ts +5 -1
- package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
- package/dist/features/generation/runtime-image-generation.js +4 -0
- package/dist/features/generation/runtime-image-generation.js.map +1 -1
- package/dist/features/generation/runtime-job-builders.d.ts +0 -1
- package/dist/features/generation/runtime-job-builders.d.ts.map +1 -1
- package/dist/features/generation/runtime-job-builders.js +8 -10
- package/dist/features/generation/runtime-job-builders.js.map +1 -1
- package/dist/realm/index.d.ts +1 -1
- package/dist/realm/index.d.ts.map +1 -1
- package/dist/realm/index.js +3 -2
- package/dist/realm/index.js.map +1 -1
- package/dist/runtime/chatgpt-plan.d.ts +7 -0
- package/dist/runtime/chatgpt-plan.d.ts.map +1 -0
- package/dist/runtime/chatgpt-plan.js +15 -0
- package/dist/runtime/chatgpt-plan.js.map +1 -0
- package/dist/runtime/config-projections.d.ts +2 -0
- package/dist/runtime/config-projections.d.ts.map +1 -1
- package/dist/runtime/config-projections.js +3 -0
- package/dist/runtime/config-projections.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition-client.d.ts +3 -6
- package/dist/runtime/connector-auth-acquisition-client.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition-client.js +18 -11
- package/dist/runtime/connector-auth-acquisition-client.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts +10 -11
- package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition-profiles.generated.js +13 -14
- package/dist/runtime/connector-auth-acquisition-profiles.generated.js.map +1 -1
- package/dist/runtime/connector-auth-acquisition.d.ts +26 -19
- package/dist/runtime/connector-auth-acquisition.d.ts.map +1 -1
- package/dist/runtime/connector-auth-acquisition.js +352 -269
- package/dist/runtime/connector-auth-acquisition.js.map +1 -1
- package/dist/runtime/connector-auth-profiles.generated.d.ts +1 -1
- package/dist/runtime/connector-auth-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/connector-auth-profiles.generated.js +4 -4
- package/dist/runtime/connector-auth-profiles.generated.js.map +1 -1
- package/dist/runtime/connector-inventory.d.ts +11 -2
- package/dist/runtime/connector-inventory.d.ts.map +1 -1
- package/dist/runtime/connector-inventory.js +10 -1
- package/dist/runtime/connector-inventory.js.map +1 -1
- package/dist/runtime/desktop-audit.js +4 -1
- package/dist/runtime/desktop-audit.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +130 -2
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +34 -2
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
- package/dist/runtime/generated.d.ts +2 -2
- package/dist/runtime/generated.d.ts.map +1 -1
- package/dist/runtime/generated.js +1 -1
- package/dist/runtime/generated.js.map +1 -1
- package/dist/runtime/host.d.ts +3 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/host.js +4 -0
- package/dist/runtime/host.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/machine-loadouts.d.ts +18 -0
- package/dist/runtime/machine-loadouts.d.ts.map +1 -1
- package/dist/runtime/machine-loadouts.js +26 -0
- package/dist/runtime/machine-loadouts.js.map +1 -1
- package/dist/runtime/node-grpc-errors.js +3 -3
- package/dist/runtime/node-grpc-errors.js.map +1 -1
- package/dist/runtime/product-control-projection.d.ts.map +1 -1
- package/dist/runtime/product-control-projection.js +11 -2
- package/dist/runtime/product-control-projection.js.map +1 -1
- package/dist/runtime/product-control-types.d.ts +13 -2
- package/dist/runtime/product-control-types.d.ts.map +1 -1
- package/dist/runtime/product-control-types.js.map +1 -1
- package/dist/runtime/reason-messages.d.ts +3 -0
- package/dist/runtime/reason-messages.d.ts.map +1 -1
- package/dist/runtime/reason-messages.js +11 -2
- package/dist/runtime/reason-messages.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.js +19 -19
- package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +42 -20
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-values.d.ts +3 -1
- package/dist/runtime/runtime-local-environment-client-values.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-values.js +43 -0
- package/dist/runtime/runtime-local-environment-client-values.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +7 -2
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/runtime-local-recommendation-types.d.ts +3 -0
- package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.js +1 -0
- package/dist/runtime/runtime-local-recommendation.js.map +1 -1
- package/dist/runtime/scenario-jobs.d.ts +23 -1
- package/dist/runtime/scenario-jobs.d.ts.map +1 -1
- package/dist/runtime/scenario-jobs.js +227 -264
- package/dist/runtime/scenario-jobs.js.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.js +3 -0
- package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-enums.d.ts +2 -1
- package/dist/runtime/wire-types/agent-participation-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/agent-participation-enums.js +2 -1
- package/dist/runtime/wire-types/agent-participation-enums.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +4 -2
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +112 -3
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +128 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +8 -6
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.d.ts +47 -0
- package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.js +55 -0
- package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +6 -4
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts +31 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.js +34 -0
- package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +28 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +27 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -2
- package/dist/types/errors.js.map +1 -1
- package/dist/types/reason-code.d.ts +2 -0
- package/dist/types/reason-code.d.ts.map +1 -1
- package/dist/types/reason-code.js +2 -0
- package/dist/types/reason-code.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { NimiAppActivityChange, NimiAppActivityFilter, NimiAppActivityRecord, NimiLocalAppActivityClient } from './local-app-runtime-platform-activity.js';
|
|
2
|
+
export type NimiAppActivityViewStatus = 'loading' | 'ready' | 'unavailable';
|
|
3
|
+
export type NimiAppActivityViewSnapshot = Readonly<{
|
|
4
|
+
status: NimiAppActivityViewStatus;
|
|
5
|
+
/** Records currently matching the view filter, newest first. */
|
|
6
|
+
records: readonly NimiAppActivityRecord[];
|
|
7
|
+
/** True once every page of the current baseline has been merged. */
|
|
8
|
+
complete: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* True when listing paused at the `maxRecords` bound while older pages of
|
|
11
|
+
* the same baseline remain; `loadMore` continues it. The records are then a
|
|
12
|
+
* truncated projection and never the complete set.
|
|
13
|
+
*/
|
|
14
|
+
hasMore: boolean;
|
|
15
|
+
error: unknown;
|
|
16
|
+
}>;
|
|
17
|
+
export type NimiAppActivityViewOptions = {
|
|
18
|
+
readonly activity: Pick<NimiLocalAppActivityClient, 'list' | 'subscribe'>;
|
|
19
|
+
readonly filter?: NimiAppActivityFilter;
|
|
20
|
+
readonly pageSize?: number;
|
|
21
|
+
/** Records merged per listing step; listing pauses with `hasMore` once reached. */
|
|
22
|
+
readonly maxRecords?: number;
|
|
23
|
+
readonly onUpdate: (snapshot: NimiAppActivityViewSnapshot) => void;
|
|
24
|
+
};
|
|
25
|
+
export type NimiAppActivityView = {
|
|
26
|
+
readonly start: () => void;
|
|
27
|
+
readonly stop: () => Promise<void>;
|
|
28
|
+
readonly relist: () => void;
|
|
29
|
+
/** Continues a paused listing of the same baseline by up to another `maxRecords` records. */
|
|
30
|
+
readonly loadMore: () => void;
|
|
31
|
+
readonly snapshot: () => NimiAppActivityViewSnapshot;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Pure merge state: highest change sequence per id wins, filter membership is
|
|
35
|
+
* evaluated after the merge, and removed or filtered-out ids keep their
|
|
36
|
+
* highest sequence so an older page or in-flight change cannot resurrect or
|
|
37
|
+
* regress them. The state lives for one listing baseline only.
|
|
38
|
+
*/
|
|
39
|
+
export declare class NimiAppActivityMergeState {
|
|
40
|
+
private readonly filter;
|
|
41
|
+
private readonly records;
|
|
42
|
+
private readonly retired;
|
|
43
|
+
constructor(filter?: NimiAppActivityFilter);
|
|
44
|
+
private highest;
|
|
45
|
+
/** Merges a listed or changed projection; returns true when visible state changed. */
|
|
46
|
+
mergeRecord(record: NimiAppActivityRecord): boolean;
|
|
47
|
+
mergeRemove(activityId: string, changeSeq: string): boolean;
|
|
48
|
+
mergeChange(change: NimiAppActivityChange): boolean;
|
|
49
|
+
list(): readonly NimiAppActivityRecord[];
|
|
50
|
+
}
|
|
51
|
+
export declare function matchesNimiAppActivityFilter(record: NimiAppActivityRecord, filter: NimiAppActivityFilter): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Maintains one filtered activity projection from the public list and
|
|
54
|
+
* subscribe operations. It never marks records read. A new filter requires a
|
|
55
|
+
* new view. Any ended or failed subscription, including an expired cursor,
|
|
56
|
+
* is recovered by a fresh listing baseline.
|
|
57
|
+
*/
|
|
58
|
+
export declare function createNimiAppActivityView(options: NimiAppActivityViewOptions): NimiAppActivityView;
|
|
59
|
+
//# sourceMappingURL=local-app-runtime-platform-activity-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-app-runtime-platform-activity-view.d.ts","sourceRoot":"","sources":["../../../core/app/local-app-runtime-platform-activity-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAA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AAQ,CAAC,OAAO,CAA4C;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;gBAExB,MAAM,GAAE,qBAA0B;IAE/D,OAAO,CAAC,OAAO;IAOf,sFAAsF;IACtF,WAAW,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO;IAanD,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAQ3D,WAAW,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO;IAMnD,IAAI,IAAI,SAAS,qBAAqB,EAAE;CAKzC;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CASlH;AAaD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,GAAG,mBAAmB,CAgLlG"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { extractNimiErrorFields } from '../../types/errors.js';
|
|
2
|
+
const cursorValue = (value) => BigInt(value);
|
|
3
|
+
/**
|
|
4
|
+
* Pure merge state: highest change sequence per id wins, filter membership is
|
|
5
|
+
* evaluated after the merge, and removed or filtered-out ids keep their
|
|
6
|
+
* highest sequence so an older page or in-flight change cannot resurrect or
|
|
7
|
+
* regress them. The state lives for one listing baseline only.
|
|
8
|
+
*/
|
|
9
|
+
export class NimiAppActivityMergeState {
|
|
10
|
+
filter;
|
|
11
|
+
records = new Map();
|
|
12
|
+
retired = new Map();
|
|
13
|
+
constructor(filter = {}) {
|
|
14
|
+
this.filter = filter;
|
|
15
|
+
}
|
|
16
|
+
highest(activityId) {
|
|
17
|
+
const current = this.records.get(activityId);
|
|
18
|
+
const retired = this.retired.get(activityId);
|
|
19
|
+
const candidates = [current ? cursorValue(current.changeSeq) : -1n, retired ?? -1n];
|
|
20
|
+
return candidates[0] > candidates[1] ? candidates[0] : candidates[1];
|
|
21
|
+
}
|
|
22
|
+
/** Merges a listed or changed projection; returns true when visible state changed. */
|
|
23
|
+
mergeRecord(record) {
|
|
24
|
+
const seq = cursorValue(record.changeSeq);
|
|
25
|
+
if (seq <= this.highest(record.activityId))
|
|
26
|
+
return false;
|
|
27
|
+
if (matchesNimiAppActivityFilter(record, this.filter)) {
|
|
28
|
+
this.records.set(record.activityId, record);
|
|
29
|
+
this.retired.delete(record.activityId);
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
const wasVisible = this.records.delete(record.activityId);
|
|
33
|
+
this.retired.set(record.activityId, seq);
|
|
34
|
+
return wasVisible;
|
|
35
|
+
}
|
|
36
|
+
mergeRemove(activityId, changeSeq) {
|
|
37
|
+
const seq = cursorValue(changeSeq);
|
|
38
|
+
if (seq <= this.highest(activityId))
|
|
39
|
+
return false;
|
|
40
|
+
const wasVisible = this.records.delete(activityId);
|
|
41
|
+
this.retired.set(activityId, seq);
|
|
42
|
+
return wasVisible;
|
|
43
|
+
}
|
|
44
|
+
mergeChange(change) {
|
|
45
|
+
return change.kind === 'upsert'
|
|
46
|
+
? this.mergeRecord(change.record)
|
|
47
|
+
: this.mergeRemove(change.activityId, change.changeSeq);
|
|
48
|
+
}
|
|
49
|
+
list() {
|
|
50
|
+
return [...this.records.values()].sort((left, right) => (right.occurredAt.localeCompare(left.occurredAt) || right.activityId.localeCompare(left.activityId)));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export function matchesNimiAppActivityFilter(record, filter) {
|
|
54
|
+
if (filter.sourceRef !== undefined && record.source.sourceRef !== filter.sourceRef)
|
|
55
|
+
return false;
|
|
56
|
+
if (filter.kind !== undefined && record.kind !== filter.kind)
|
|
57
|
+
return false;
|
|
58
|
+
if (filter.todoStates !== undefined && filter.todoStates.length > 0 &&
|
|
59
|
+
(record.todoState === null || !filter.todoStates.includes(record.todoState)))
|
|
60
|
+
return false;
|
|
61
|
+
if (filter.agentRef !== undefined && record.agent?.agentRef !== filter.agentRef)
|
|
62
|
+
return false;
|
|
63
|
+
if (filter.occurredAfter !== undefined && Date.parse(record.occurredAt) < Date.parse(filter.occurredAfter))
|
|
64
|
+
return false;
|
|
65
|
+
if (filter.occurredBefore !== undefined && Date.parse(record.occurredAt) >= Date.parse(filter.occurredBefore))
|
|
66
|
+
return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
function cursorProblem(error) {
|
|
70
|
+
if (!error || typeof error !== 'object')
|
|
71
|
+
return false;
|
|
72
|
+
const record = error;
|
|
73
|
+
return [record.code, record.reasonCode].some((value) => {
|
|
74
|
+
const token = String(value ?? '').toLowerCase();
|
|
75
|
+
return token === 'invalid-cursor' || token === 'app_activity_cursor_expired' || token === 'app_activity_page_token_invalid';
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
// @nimi-authority: rule.nimi.platform.core-protocol.p-actv-003
|
|
79
|
+
// @nimi-authority: rule.nimi.sdks.feature-clients.r113
|
|
80
|
+
/**
|
|
81
|
+
* Maintains one filtered activity projection from the public list and
|
|
82
|
+
* subscribe operations. It never marks records read. A new filter requires a
|
|
83
|
+
* new view. Any ended or failed subscription, including an expired cursor,
|
|
84
|
+
* is recovered by a fresh listing baseline.
|
|
85
|
+
*/
|
|
86
|
+
export function createNimiAppActivityView(options) {
|
|
87
|
+
const filter = options.filter ?? {};
|
|
88
|
+
const pageSize = options.pageSize ?? 100;
|
|
89
|
+
const maxRecords = options.maxRecords ?? 500;
|
|
90
|
+
let generation = 0;
|
|
91
|
+
let state = new NimiAppActivityMergeState(filter);
|
|
92
|
+
let current = { status: 'loading', complete: false, hasMore: false, error: null };
|
|
93
|
+
let subscription;
|
|
94
|
+
let retryTimer;
|
|
95
|
+
let running = false;
|
|
96
|
+
let failures = 0;
|
|
97
|
+
// The paused continuation of the current listing baseline, if any.
|
|
98
|
+
let continuation = null;
|
|
99
|
+
let pagingGeneration = 0;
|
|
100
|
+
const publish = () => {
|
|
101
|
+
options.onUpdate(Object.freeze({ ...current, records: Object.freeze(state.list()) }));
|
|
102
|
+
};
|
|
103
|
+
const closeSubscription = async () => {
|
|
104
|
+
const active = subscription;
|
|
105
|
+
subscription = undefined;
|
|
106
|
+
await active?.cancel().catch(() => undefined);
|
|
107
|
+
};
|
|
108
|
+
const scheduleRetry = (action, delayMs) => {
|
|
109
|
+
if (!running)
|
|
110
|
+
return;
|
|
111
|
+
if (retryTimer !== undefined)
|
|
112
|
+
clearTimeout(retryTimer);
|
|
113
|
+
retryTimer = setTimeout(() => {
|
|
114
|
+
retryTimer = undefined;
|
|
115
|
+
if (running)
|
|
116
|
+
action();
|
|
117
|
+
}, delayMs);
|
|
118
|
+
};
|
|
119
|
+
const follow = async (listingGeneration, afterChangeSeq) => {
|
|
120
|
+
let openedAt;
|
|
121
|
+
let expired = false;
|
|
122
|
+
try {
|
|
123
|
+
const active = await options.activity.subscribe({ afterChangeSeq });
|
|
124
|
+
if (!running || listingGeneration !== generation) {
|
|
125
|
+
await active.cancel().catch(() => undefined);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
subscription = active;
|
|
129
|
+
openedAt = Date.now();
|
|
130
|
+
for await (const change of active) {
|
|
131
|
+
if (!running || listingGeneration !== generation)
|
|
132
|
+
return;
|
|
133
|
+
if (state.mergeChange(change))
|
|
134
|
+
publish();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
if (!running || listingGeneration !== generation)
|
|
139
|
+
return;
|
|
140
|
+
if (cursorProblem(error))
|
|
141
|
+
expired = true;
|
|
142
|
+
else
|
|
143
|
+
current = { ...current, error };
|
|
144
|
+
}
|
|
145
|
+
if (!running || listingGeneration !== generation)
|
|
146
|
+
return;
|
|
147
|
+
// The ended stream may belong to a previous account. Invalidate pending
|
|
148
|
+
// pages and clear its projection before waiting for a new baseline.
|
|
149
|
+
generation += 1;
|
|
150
|
+
state = new NimiAppActivityMergeState(filter);
|
|
151
|
+
continuation = null;
|
|
152
|
+
current = { status: 'loading', complete: false, hasMore: false, error: current.error };
|
|
153
|
+
void closeSubscription();
|
|
154
|
+
publish();
|
|
155
|
+
// Change cursors are not bound to an account, and an ended subscription
|
|
156
|
+
// may belong to a session that was replaced by another account or a
|
|
157
|
+
// restarted Runtime. Recovery therefore starts a fresh listing baseline
|
|
158
|
+
// instead of replaying from the last processed change.
|
|
159
|
+
// A long-lived subscription that ends starts a new backoff series.
|
|
160
|
+
failures = openedAt !== undefined && Date.now() - openedAt >= 30_000 ? 1 : failures + 1;
|
|
161
|
+
// A first expired cursor is an explicit relist requirement, not a fault.
|
|
162
|
+
const delay = expired && failures === 1 ? 0 : Math.min(250 * 2 ** (failures - 1), 5_000);
|
|
163
|
+
scheduleRetry(() => startListing(), delay);
|
|
164
|
+
};
|
|
165
|
+
// Merges continuation pages of one baseline until the step budget is spent;
|
|
166
|
+
// a remaining token pauses the listing with hasMore instead of claiming it
|
|
167
|
+
// complete.
|
|
168
|
+
const continueListing = async (listingGeneration, token, budget) => {
|
|
169
|
+
pagingGeneration = listingGeneration;
|
|
170
|
+
try {
|
|
171
|
+
let next = token;
|
|
172
|
+
let merged = 0;
|
|
173
|
+
while (next !== null && merged < budget) {
|
|
174
|
+
const page = await options.activity.list({ filter, pageSize, pageToken: next });
|
|
175
|
+
if (!running || listingGeneration !== generation)
|
|
176
|
+
return;
|
|
177
|
+
for (const record of page.records)
|
|
178
|
+
state.mergeRecord(record);
|
|
179
|
+
merged += page.records.length;
|
|
180
|
+
next = page.nextPageToken;
|
|
181
|
+
if (next !== null)
|
|
182
|
+
publish();
|
|
183
|
+
}
|
|
184
|
+
continuation = next === null ? null : { generation: listingGeneration, token: next };
|
|
185
|
+
current = { ...current, complete: next === null, hasMore: next !== null, error: null };
|
|
186
|
+
publish();
|
|
187
|
+
}
|
|
188
|
+
finally {
|
|
189
|
+
if (pagingGeneration === listingGeneration)
|
|
190
|
+
pagingGeneration = 0;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const startListing = ({ keepVisible = false, background = false } = {}) => {
|
|
194
|
+
if (retryTimer !== undefined)
|
|
195
|
+
clearTimeout(retryTimer);
|
|
196
|
+
retryTimer = undefined;
|
|
197
|
+
generation += 1;
|
|
198
|
+
const listingGeneration = generation;
|
|
199
|
+
const next = new NimiAppActivityMergeState(filter);
|
|
200
|
+
// A relist may keep the previous projection visible until its first page
|
|
201
|
+
// arrives; the projection is replaced, never merged, with the new baseline.
|
|
202
|
+
if (!keepVisible)
|
|
203
|
+
state = next;
|
|
204
|
+
// Automatic recovery keeps the read failure visible until a new baseline
|
|
205
|
+
// succeeds. Returning to initial loading on every retry makes consumers
|
|
206
|
+
// repeatedly remove their error/empty state and flash a loading skeleton.
|
|
207
|
+
if (!background)
|
|
208
|
+
current = { status: 'loading', complete: false, hasMore: false, error: null };
|
|
209
|
+
continuation = null;
|
|
210
|
+
void closeSubscription();
|
|
211
|
+
if (!background)
|
|
212
|
+
publish();
|
|
213
|
+
void (async () => {
|
|
214
|
+
try {
|
|
215
|
+
const first = await options.activity.list({ filter, pageSize });
|
|
216
|
+
if (!running || listingGeneration !== generation)
|
|
217
|
+
return;
|
|
218
|
+
state = next;
|
|
219
|
+
for (const record of first.records)
|
|
220
|
+
state.mergeRecord(record);
|
|
221
|
+
current = { status: 'ready', complete: first.nextPageToken === null, hasMore: false, error: null };
|
|
222
|
+
publish();
|
|
223
|
+
void follow(listingGeneration, first.baselineChangeSeq);
|
|
224
|
+
if (first.nextPageToken !== null) {
|
|
225
|
+
await continueListing(listingGeneration, first.nextPageToken, maxRecords - first.records.length);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
if (!running || listingGeneration !== generation)
|
|
230
|
+
return;
|
|
231
|
+
// Without a current listing the previous projection may belong to a
|
|
232
|
+
// session that no longer exists; drop it rather than show it as current.
|
|
233
|
+
state = new NimiAppActivityMergeState(filter);
|
|
234
|
+
current = { status: 'unavailable', complete: false, hasMore: false, error };
|
|
235
|
+
continuation = null;
|
|
236
|
+
publish();
|
|
237
|
+
if (extractNimiErrorFields(error).retryable !== false) {
|
|
238
|
+
scheduleRetry(() => startListing({ background: true }), 3_000);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
})();
|
|
242
|
+
};
|
|
243
|
+
const loadMore = () => {
|
|
244
|
+
const paused = continuation;
|
|
245
|
+
if (!running || !paused || paused.generation !== generation || pagingGeneration === generation)
|
|
246
|
+
return;
|
|
247
|
+
void continueListing(paused.generation, paused.token, maxRecords).catch((error) => {
|
|
248
|
+
if (!running || paused.generation !== generation)
|
|
249
|
+
return;
|
|
250
|
+
// A continuation that no longer belongs to this account or baseline
|
|
251
|
+
// requires a fresh listing; other failures keep the paused position.
|
|
252
|
+
if (cursorProblem(error)) {
|
|
253
|
+
startListing({ keepVisible: true });
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
current = { ...current, error };
|
|
257
|
+
publish();
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
return Object.freeze({
|
|
261
|
+
start: () => {
|
|
262
|
+
if (running)
|
|
263
|
+
return;
|
|
264
|
+
running = true;
|
|
265
|
+
startListing();
|
|
266
|
+
},
|
|
267
|
+
stop: async () => {
|
|
268
|
+
running = false;
|
|
269
|
+
generation += 1;
|
|
270
|
+
if (retryTimer !== undefined)
|
|
271
|
+
clearTimeout(retryTimer);
|
|
272
|
+
retryTimer = undefined;
|
|
273
|
+
await closeSubscription();
|
|
274
|
+
},
|
|
275
|
+
relist: () => {
|
|
276
|
+
if (running)
|
|
277
|
+
startListing({ keepVisible: true });
|
|
278
|
+
},
|
|
279
|
+
loadMore,
|
|
280
|
+
snapshot: () => Object.freeze({ ...current, records: Object.freeze(state.list()) }),
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=local-app-runtime-platform-activity-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-app-runtime-platform-activity-view.js","sourceRoot":"","sources":["../../../core/app/local-app-runtime-platform-activity-view.ts"],"names":[],"mappings":"AAAA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,UAAU,KAAK,UAAU;gBAAE,OAAO;YACzD,oEAAoE;YACpE,qEAAqE;YACrE,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;gBACpC,OAAO;YACT,CAAC;YACD,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC;YAChC,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,KAAK,EAAE,GAAG,EAAE;YACV,IAAI,OAAO;gBAAE,OAAO;YACpB,OAAO,GAAG,IAAI,CAAC;YACf,YAAY,EAAE,CAAC;QACjB,CAAC;QACD,IAAI,EAAE,KAAK,IAAI,EAAE;YACf,OAAO,GAAG,KAAK,CAAC;YAChB,UAAU,IAAI,CAAC,CAAC;YAChB,IAAI,UAAU,KAAK,SAAS;gBAAE,YAAY,CAAC,UAAU,CAAC,CAAC;YACvD,UAAU,GAAG,SAAS,CAAC;YACvB,MAAM,iBAAiB,EAAE,CAAC;QAC5B,CAAC;QACD,MAAM,EAAE,GAAG,EAAE;YACX,IAAI,OAAO;gBAAE,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,CAAC;QACD,QAAQ;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;KACpF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { JsonObject } from '../../types/json.js';
|
|
2
|
+
import type { NimiLocalAppAgentHandle } from './local-app-agent-selector.js';
|
|
3
|
+
import type { AppActivityRecord as RuntimeAppActivityRecord, CompleteAppActivityOpenRequestRequest, CompleteAppActivityOpenRequestResponse, ListAppActivitiesRequest, ListAppActivitiesResponse, MarkAppActivityReadRequest, MarkAppActivityReadResponse, OpenAppActivityRequest, OpenAppActivityResponse, PutAppActivityRequest, PutAppActivityResponse, SubscribeAppActivityChangesRequest, SubscribeAppActivityChangesResponse, SubscribeAppActivityOpenRequestsRequest, SubscribeAppActivityOpenRequestsResponse } from '../../core-generated/runtime-protobuf/runtime/v1/app_activity.js';
|
|
4
|
+
import { AppActivityOpenOutcome, AppActivityOpenReason } from '../../core-generated/runtime-protobuf/runtime/v1/app_activity.js';
|
|
5
|
+
export declare const NIMI_APP_ACTIVITY_RUNTIME_TURN_TYPE = "nimi.runtime.agent-conversation.turn-completed.v1";
|
|
6
|
+
export type NimiAppActivityKind = 'activity' | 'todo';
|
|
7
|
+
export type NimiAppActivityTodoState = 'open' | 'completed' | 'cancelled';
|
|
8
|
+
export type NimiAppActivitySource = Readonly<{
|
|
9
|
+
kind: 'app' | 'runtime-agent';
|
|
10
|
+
/** Account-scoped, non-authorizing grouping and filter reference. */
|
|
11
|
+
sourceRef: string;
|
|
12
|
+
appId: string | null;
|
|
13
|
+
displayName: string | null;
|
|
14
|
+
available: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export type NimiAppActivityAgent = Readonly<{
|
|
17
|
+
/** Non-authorizing grouping reference; never an Agent handle. */
|
|
18
|
+
agentRef: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
}>;
|
|
21
|
+
export type NimiAppActivityUserView = Readonly<{
|
|
22
|
+
readThroughRevision: number;
|
|
23
|
+
unread: boolean;
|
|
24
|
+
needsAttention: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
export type NimiAppActivityRecord = Readonly<{
|
|
27
|
+
activityId: string;
|
|
28
|
+
source: NimiAppActivitySource;
|
|
29
|
+
key: string;
|
|
30
|
+
revision: number;
|
|
31
|
+
kind: NimiAppActivityKind;
|
|
32
|
+
todoState: NimiAppActivityTodoState | null;
|
|
33
|
+
attention: boolean;
|
|
34
|
+
title: string;
|
|
35
|
+
summary: string | null;
|
|
36
|
+
objectRef: string | null;
|
|
37
|
+
type: string;
|
|
38
|
+
/** Publisher-owned product content; never authority. */
|
|
39
|
+
data: Readonly<JsonObject> | null;
|
|
40
|
+
agent: NimiAppActivityAgent | null;
|
|
41
|
+
occurredAt: string;
|
|
42
|
+
publishedAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
/** Account change sequence of this projection. */
|
|
45
|
+
changeSeq: string;
|
|
46
|
+
userView: NimiAppActivityUserView;
|
|
47
|
+
}>;
|
|
48
|
+
export type NimiAppActivityPutInput = {
|
|
49
|
+
readonly key: string;
|
|
50
|
+
readonly revision: number;
|
|
51
|
+
readonly kind: NimiAppActivityKind;
|
|
52
|
+
readonly todoState?: NimiAppActivityTodoState;
|
|
53
|
+
readonly attention: boolean;
|
|
54
|
+
readonly title: string;
|
|
55
|
+
readonly summary?: string;
|
|
56
|
+
readonly objectRef?: string;
|
|
57
|
+
readonly type: string;
|
|
58
|
+
readonly data?: JsonObject;
|
|
59
|
+
readonly occurredAt: string | Date;
|
|
60
|
+
readonly agentHandle?: NimiLocalAppAgentHandle;
|
|
61
|
+
};
|
|
62
|
+
export type NimiAppActivityPutResult = Readonly<{
|
|
63
|
+
record: NimiAppActivityRecord;
|
|
64
|
+
/** False when an identical same-revision retry returned the existing record. */
|
|
65
|
+
changed: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
export type NimiAppActivityFilter = {
|
|
68
|
+
readonly sourceRef?: string;
|
|
69
|
+
readonly kind?: NimiAppActivityKind;
|
|
70
|
+
readonly todoStates?: readonly NimiAppActivityTodoState[];
|
|
71
|
+
readonly agentRef?: string;
|
|
72
|
+
readonly occurredAfter?: string;
|
|
73
|
+
readonly occurredBefore?: string;
|
|
74
|
+
};
|
|
75
|
+
export type NimiAppActivityListInput = {
|
|
76
|
+
readonly filter?: NimiAppActivityFilter;
|
|
77
|
+
readonly pageSize?: number;
|
|
78
|
+
readonly pageToken?: string;
|
|
79
|
+
};
|
|
80
|
+
export type NimiAppActivityPage = Readonly<{
|
|
81
|
+
records: readonly NimiAppActivityRecord[];
|
|
82
|
+
nextPageToken: string | null;
|
|
83
|
+
baselineChangeSeq: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type NimiAppActivityChange = Readonly<{
|
|
86
|
+
changeSeq: string;
|
|
87
|
+
kind: 'upsert';
|
|
88
|
+
activityId: string;
|
|
89
|
+
record: NimiAppActivityRecord;
|
|
90
|
+
}> | Readonly<{
|
|
91
|
+
changeSeq: string;
|
|
92
|
+
kind: 'remove';
|
|
93
|
+
activityId: string;
|
|
94
|
+
}>;
|
|
95
|
+
export type NimiAppActivitySubscription = AsyncIterable<NimiAppActivityChange> & {
|
|
96
|
+
readonly cancel: () => Promise<void>;
|
|
97
|
+
};
|
|
98
|
+
export type NimiAppActivityOpenReason = 'opened' | 'not-openable' | 'activity-unavailable' | 'source-unavailable' | 'object-unavailable' | 'source-not-ready' | 'canceled' | 'host-unavailable' | 'launch-failed';
|
|
99
|
+
export type NimiAppActivityOpenResult = Readonly<{
|
|
100
|
+
outcome: 'opened' | 'unavailable' | 'failed';
|
|
101
|
+
reason: NimiAppActivityOpenReason;
|
|
102
|
+
}>;
|
|
103
|
+
export type NimiAppActivityOpenRequest = Readonly<{
|
|
104
|
+
activityId: string;
|
|
105
|
+
objectRef: string;
|
|
106
|
+
type: string;
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* Registered by a source App. Resolve `opened` only after the App actually
|
|
110
|
+
* entered the requested object; resolve `object-unavailable` when the object
|
|
111
|
+
* no longer exists for the current account.
|
|
112
|
+
*/
|
|
113
|
+
export type NimiAppActivityOpenHandler = (request: NimiAppActivityOpenRequest) => Promise<'opened' | 'object-unavailable'>;
|
|
114
|
+
export type NimiAppActivityOpenRegistration = {
|
|
115
|
+
readonly stop: () => Promise<void>;
|
|
116
|
+
};
|
|
117
|
+
export type NimiAppActivityShellSubscription = {
|
|
118
|
+
readonly events: AsyncIterable<unknown>;
|
|
119
|
+
readonly cancel: () => Promise<void>;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Host-neutral structural contract implemented by Kit's local-app standard
|
|
123
|
+
* shell. Values are JSON projections; `dataJson` carries publisher content as
|
|
124
|
+
* text so carriers never interpret its keys.
|
|
125
|
+
*/
|
|
126
|
+
export type NimiLocalAppActivityShell = {
|
|
127
|
+
readonly put: (input: JsonObject) => Promise<unknown>;
|
|
128
|
+
readonly list: (input: JsonObject) => Promise<unknown>;
|
|
129
|
+
readonly subscribe: (input: {
|
|
130
|
+
readonly afterChangeSeq: string;
|
|
131
|
+
}) => Promise<NimiAppActivityShellSubscription>;
|
|
132
|
+
readonly markRead: (input: {
|
|
133
|
+
readonly activityId: string;
|
|
134
|
+
readonly displayedRevision: number;
|
|
135
|
+
}) => Promise<unknown>;
|
|
136
|
+
readonly open: (input: {
|
|
137
|
+
readonly activityId: string;
|
|
138
|
+
}) => Promise<unknown>;
|
|
139
|
+
readonly openRequests: {
|
|
140
|
+
readonly subscribe: () => Promise<NimiAppActivityShellSubscription>;
|
|
141
|
+
readonly complete: (input: {
|
|
142
|
+
readonly deliveryId: string;
|
|
143
|
+
readonly completion: 'opened' | 'object-unavailable';
|
|
144
|
+
}) => Promise<unknown>;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export type NimiLocalAppActivityClient = {
|
|
148
|
+
readonly put: (input: NimiAppActivityPutInput) => Promise<NimiAppActivityPutResult>;
|
|
149
|
+
readonly list: (input?: NimiAppActivityListInput) => Promise<NimiAppActivityPage>;
|
|
150
|
+
readonly subscribe: (input: {
|
|
151
|
+
readonly afterChangeSeq: string;
|
|
152
|
+
}) => Promise<NimiAppActivitySubscription>;
|
|
153
|
+
readonly markRead: (input: {
|
|
154
|
+
readonly activityId: string;
|
|
155
|
+
readonly displayedRevision: number;
|
|
156
|
+
}) => Promise<NimiAppActivityRecord>;
|
|
157
|
+
readonly open: (input: {
|
|
158
|
+
readonly activityId: string;
|
|
159
|
+
}) => Promise<NimiAppActivityOpenResult>;
|
|
160
|
+
readonly onOpenRequest: (handler: NimiAppActivityOpenHandler) => NimiAppActivityOpenRegistration;
|
|
161
|
+
};
|
|
162
|
+
export declare function assertNimiLocalAppActivityShell(value: unknown): asserts value is NimiLocalAppActivityShell;
|
|
163
|
+
export declare function createNimiLocalAppActivityClient(shell: NimiLocalAppActivityShell): NimiLocalAppActivityClient;
|
|
164
|
+
export declare function projectNimiAppActivityRecord(value: unknown): NimiAppActivityRecord;
|
|
165
|
+
export type NimiLocalAppActivityRuntime = {
|
|
166
|
+
readonly putAppActivity: (request: PutAppActivityRequest) => Promise<PutAppActivityResponse>;
|
|
167
|
+
readonly listAppActivities: (request: ListAppActivitiesRequest) => Promise<ListAppActivitiesResponse>;
|
|
168
|
+
readonly subscribeAppActivityChanges: (request: SubscribeAppActivityChangesRequest, options?: {
|
|
169
|
+
readonly signal?: AbortSignal;
|
|
170
|
+
}) => AsyncIterable<SubscribeAppActivityChangesResponse>;
|
|
171
|
+
readonly markAppActivityRead: (request: MarkAppActivityReadRequest) => Promise<MarkAppActivityReadResponse>;
|
|
172
|
+
readonly openAppActivity: (request: OpenAppActivityRequest, options?: {
|
|
173
|
+
readonly signal?: AbortSignal;
|
|
174
|
+
}) => AsyncIterable<OpenAppActivityResponse>;
|
|
175
|
+
readonly subscribeAppActivityOpenRequests: (request: SubscribeAppActivityOpenRequestsRequest, options?: {
|
|
176
|
+
readonly signal?: AbortSignal;
|
|
177
|
+
}) => AsyncIterable<SubscribeAppActivityOpenRequestsResponse>;
|
|
178
|
+
readonly completeAppActivityOpenRequest: (request: CompleteAppActivityOpenRequestRequest) => Promise<CompleteAppActivityOpenRequestResponse>;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Host-side open orchestration: the Host consumes the Host-private open
|
|
182
|
+
* request id to ask Desktop to launch or focus the exact source, and returns
|
|
183
|
+
* only the typed result to renderer code.
|
|
184
|
+
*/
|
|
185
|
+
export type NimiLocalAppActivityHostLaunch = (openRequestId: string) => Promise<{
|
|
186
|
+
readonly status: 'requested';
|
|
187
|
+
} | {
|
|
188
|
+
readonly status: 'unavailable' | 'failed';
|
|
189
|
+
readonly reason: 'host-unavailable' | 'source-unavailable' | 'launch-failed';
|
|
190
|
+
}>;
|
|
191
|
+
/**
|
|
192
|
+
* Builds the JSON shell projection from the typed Runtime client. Kit Hosts
|
|
193
|
+
* that reach Runtime through the SDK typed client use this; native carriers
|
|
194
|
+
* produce the identical JSON projection.
|
|
195
|
+
*/
|
|
196
|
+
export declare function createNimiLocalAppActivityRuntimeShell(runtime: NimiLocalAppActivityRuntime, launch: NimiLocalAppActivityHostLaunch): NimiLocalAppActivityShell;
|
|
197
|
+
/**
|
|
198
|
+
* Consumer-side open orchestration shared by typed-client Hosts: the pending
|
|
199
|
+
* event triggers the Desktop launch, and only the Runtime result reports the
|
|
200
|
+
* source App's confirmation.
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* After the Desktop launch or focus fails, a source App that is already
|
|
204
|
+
* running may still confirm the object; the Host waits this long for the
|
|
205
|
+
* Runtime result before reporting the launch failure.
|
|
206
|
+
*/
|
|
207
|
+
export declare const NIMI_APP_ACTIVITY_LAUNCH_FAILURE_GRACE_MS = 5000;
|
|
208
|
+
export declare function runNimiLocalAppActivityOpen(runtime: Pick<NimiLocalAppActivityRuntime, 'openAppActivity'>, launch: NimiLocalAppActivityHostLaunch, activityIdValue: string, launchFailureGraceMs?: number): Promise<{
|
|
209
|
+
readonly outcome: string;
|
|
210
|
+
readonly reason: string;
|
|
211
|
+
}>;
|
|
212
|
+
/** Converts one Runtime record into the shared JSON shell projection. */
|
|
213
|
+
export declare function runtimeActivityRecordJson(record: RuntimeAppActivityRecord): JsonObject;
|
|
214
|
+
export declare function runtimeActivityChangeJson(change: SubscribeAppActivityChangesResponse): JsonObject;
|
|
215
|
+
export declare function runtimeOpenResultJson(outcome: AppActivityOpenOutcome, reason: AppActivityOpenReason): {
|
|
216
|
+
readonly outcome: string;
|
|
217
|
+
readonly reason: string;
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=local-app-runtime-platform-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-app-runtime-platform-activity.d.ts","sourceRoot":"","sources":["../../../core/app/local-app-runtime-platform-activity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EACV,iBAAiB,IAAI,wBAAwB,EAC7C,qCAAqC,EACrC,sCAAsC,EACtC,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,kCAAkC,EAClC,mCAAmC,EACnC,uCAAuC,EACvC,wCAAwC,EACzC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAIL,sBAAsB,EACtB,qBAAqB,EAGtB,MAAM,kEAAkE,CAAC;AAyB1E,eAAO,MAAM,mCAAmC,sDAAsD,CAAC;AAEvG,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,MAAM,CAAC;AACtD,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,IAAI,EAAE,KAAK,GAAG,eAAe,CAAC;IAC9B,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IAC1C,iEAAiE;IACjE,QAAQ,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