@stigmer/react 0.0.71 → 0.0.73
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/agent/AgentEnvForm.d.ts +2 -0
- package/agent/AgentEnvForm.d.ts.map +1 -1
- package/agent/AgentEnvForm.js.map +1 -1
- package/agent/AgentPicker.d.ts +2 -0
- package/agent/AgentPicker.d.ts.map +1 -1
- package/agent/AgentPicker.js.map +1 -1
- package/agent/agentSetupReducer.d.ts +69 -7
- package/agent/agentSetupReducer.d.ts.map +1 -1
- package/agent/agentSetupReducer.js.map +1 -1
- package/agent/useAgentCount.d.ts +2 -0
- package/agent/useAgentCount.d.ts.map +1 -1
- package/agent/useAgentCount.js.map +1 -1
- package/attachment/AttachmentChipList.d.ts +15 -0
- package/attachment/AttachmentChipList.d.ts.map +1 -1
- package/attachment/AttachmentChipList.js +15 -0
- package/attachment/AttachmentChipList.js.map +1 -1
- package/attachment/useAttachments.d.ts +14 -0
- package/attachment/useAttachments.d.ts.map +1 -1
- package/attachment/useAttachments.js.map +1 -1
- package/composer/useComposer.d.ts +5 -0
- package/composer/useComposer.d.ts.map +1 -1
- package/composer/useComposer.js.map +1 -1
- package/execution/ExecutionPhaseBadge.d.ts +1 -1
- package/execution/ExecutionPhaseBadge.js +1 -1
- package/execution/McpToolDetail.d.ts +16 -8
- package/execution/McpToolDetail.d.ts.map +1 -1
- package/execution/McpToolDetail.js +0 -6
- package/execution/McpToolDetail.js.map +1 -1
- package/execution/TodoList.d.ts +8 -0
- package/execution/TodoList.d.ts.map +1 -1
- package/execution/TodoList.js +8 -0
- package/execution/TodoList.js.map +1 -1
- package/execution/ToolArgsView.d.ts +1 -0
- package/execution/ToolArgsView.d.ts.map +1 -1
- package/execution/ToolArgsView.js.map +1 -1
- package/execution/UsageWidget.d.ts +1 -1
- package/execution/UsageWidget.js +1 -1
- package/execution/file-path-resolver.d.ts +10 -0
- package/execution/file-path-resolver.d.ts.map +1 -1
- package/execution/file-path-resolver.js.map +1 -1
- package/execution/index.d.ts +1 -1
- package/execution/index.d.ts.map +1 -1
- package/execution/index.js.map +1 -1
- package/execution/useArtifactContent.d.ts +33 -0
- package/execution/useArtifactContent.d.ts.map +1 -1
- package/execution/useArtifactContent.js +33 -0
- package/execution/useArtifactContent.js.map +1 -1
- package/execution/useSubmitApproval.d.ts +2 -0
- package/execution/useSubmitApproval.d.ts.map +1 -1
- package/execution/useSubmitApproval.js.map +1 -1
- package/github/GitHubRepoPicker.d.ts +13 -0
- package/github/GitHubRepoPicker.d.ts.map +1 -1
- package/github/GitHubRepoPicker.js +13 -0
- package/github/GitHubRepoPicker.js.map +1 -1
- package/github/useGitHubConnection.d.ts +29 -1
- package/github/useGitHubConnection.d.ts.map +1 -1
- package/github/useGitHubConnection.js +29 -1
- package/github/useGitHubConnection.js.map +1 -1
- package/github/useGitHubRepos.d.ts +31 -0
- package/github/useGitHubRepos.d.ts.map +1 -1
- package/github/useGitHubRepos.js +31 -0
- package/github/useGitHubRepos.js.map +1 -1
- package/github/useGitHubSearch.d.ts +25 -0
- package/github/useGitHubSearch.d.ts.map +1 -1
- package/github/useGitHubSearch.js +25 -0
- package/github/useGitHubSearch.js.map +1 -1
- package/iam-policy/GrantAccessForm.d.ts +39 -0
- package/iam-policy/GrantAccessForm.d.ts.map +1 -0
- package/iam-policy/GrantAccessForm.js +75 -0
- package/iam-policy/GrantAccessForm.js.map +1 -0
- package/iam-policy/OrgMembersPanel.d.ts +28 -0
- package/iam-policy/OrgMembersPanel.d.ts.map +1 -0
- package/iam-policy/OrgMembersPanel.js +192 -0
- package/iam-policy/OrgMembersPanel.js.map +1 -0
- package/iam-policy/RoleSelector.d.ts +37 -0
- package/iam-policy/RoleSelector.d.ts.map +1 -0
- package/iam-policy/RoleSelector.js +42 -0
- package/iam-policy/RoleSelector.js.map +1 -0
- package/iam-policy/index.d.ts +12 -0
- package/iam-policy/index.d.ts.map +1 -0
- package/iam-policy/index.js +12 -0
- package/iam-policy/index.js.map +1 -0
- package/iam-policy/useCreateIamPolicy.d.ts +35 -0
- package/iam-policy/useCreateIamPolicy.d.ts.map +1 -0
- package/iam-policy/useCreateIamPolicy.js +46 -0
- package/iam-policy/useCreateIamPolicy.js.map +1 -0
- package/iam-policy/useDeleteIamPolicy.d.ts +34 -0
- package/iam-policy/useDeleteIamPolicy.d.ts.map +1 -0
- package/iam-policy/useDeleteIamPolicy.js +45 -0
- package/iam-policy/useDeleteIamPolicy.js.map +1 -0
- package/iam-policy/useGrantableRoles.d.ts +28 -0
- package/iam-policy/useGrantableRoles.d.ts.map +1 -0
- package/iam-policy/useGrantableRoles.js +32 -0
- package/iam-policy/useGrantableRoles.js.map +1 -0
- package/iam-policy/usePrincipalsCount.d.ts +31 -0
- package/iam-policy/usePrincipalsCount.d.ts.map +1 -0
- package/iam-policy/usePrincipalsCount.js +72 -0
- package/iam-policy/usePrincipalsCount.js.map +1 -0
- package/iam-policy/useResourceAccess.d.ts +51 -0
- package/iam-policy/useResourceAccess.d.ts.map +1 -0
- package/iam-policy/useResourceAccess.js +85 -0
- package/iam-policy/useResourceAccess.js.map +1 -0
- package/iam-policy/useRevokeOrgAccess.d.ts +36 -0
- package/iam-policy/useRevokeOrgAccess.d.ts.map +1 -0
- package/iam-policy/useRevokeOrgAccess.js +48 -0
- package/iam-policy/useRevokeOrgAccess.js.map +1 -0
- package/iam-policy/useRoleSelector.d.ts +52 -0
- package/iam-policy/useRoleSelector.d.ts.map +1 -0
- package/iam-policy/useRoleSelector.js +50 -0
- package/iam-policy/useRoleSelector.js.map +1 -0
- package/iam-policy/useWhoAmI.d.ts +30 -0
- package/iam-policy/useWhoAmI.d.ts.map +1 -0
- package/iam-policy/useWhoAmI.js +56 -0
- package/iam-policy/useWhoAmI.js.map +1 -0
- package/identity-provider/CreateIdentityProviderForm.d.ts +39 -0
- package/identity-provider/CreateIdentityProviderForm.d.ts.map +1 -0
- package/identity-provider/CreateIdentityProviderForm.js +102 -0
- package/identity-provider/CreateIdentityProviderForm.js.map +1 -0
- package/identity-provider/IdentityProviderDetailPanel.d.ts +42 -0
- package/identity-provider/IdentityProviderDetailPanel.d.ts.map +1 -0
- package/identity-provider/IdentityProviderDetailPanel.js +156 -0
- package/identity-provider/IdentityProviderDetailPanel.js.map +1 -0
- package/identity-provider/IdentityProviderListPanel.d.ts +41 -0
- package/identity-provider/IdentityProviderListPanel.d.ts.map +1 -0
- package/identity-provider/IdentityProviderListPanel.js +110 -0
- package/identity-provider/IdentityProviderListPanel.js.map +1 -0
- package/identity-provider/IdentityProviderWizard.d.ts +40 -0
- package/identity-provider/IdentityProviderWizard.d.ts.map +1 -0
- package/identity-provider/IdentityProviderWizard.js +180 -0
- package/identity-provider/IdentityProviderWizard.js.map +1 -0
- package/identity-provider/ProviderPicker.d.ts +28 -0
- package/identity-provider/ProviderPicker.d.ts.map +1 -0
- package/identity-provider/ProviderPicker.js +64 -0
- package/identity-provider/ProviderPicker.js.map +1 -0
- package/identity-provider/SsoLoginPrompt.d.ts +51 -0
- package/identity-provider/SsoLoginPrompt.d.ts.map +1 -0
- package/identity-provider/SsoLoginPrompt.js +119 -0
- package/identity-provider/SsoLoginPrompt.js.map +1 -0
- package/identity-provider/index.d.ts +14 -0
- package/identity-provider/index.d.ts.map +1 -0
- package/identity-provider/index.js +14 -0
- package/identity-provider/index.js.map +1 -0
- package/identity-provider/presets.d.ts +65 -0
- package/identity-provider/presets.d.ts.map +1 -0
- package/identity-provider/presets.js +200 -0
- package/identity-provider/presets.js.map +1 -0
- package/identity-provider/useCreateIdentityProvider.d.ts +37 -0
- package/identity-provider/useCreateIdentityProvider.d.ts.map +1 -0
- package/identity-provider/useCreateIdentityProvider.js +48 -0
- package/identity-provider/useCreateIdentityProvider.js.map +1 -0
- package/identity-provider/useDeleteIdentityProvider.d.ts +34 -0
- package/identity-provider/useDeleteIdentityProvider.d.ts.map +1 -0
- package/identity-provider/useDeleteIdentityProvider.js +45 -0
- package/identity-provider/useDeleteIdentityProvider.js.map +1 -0
- package/identity-provider/useIdentityProvider.d.ts +37 -0
- package/identity-provider/useIdentityProvider.d.ts.map +1 -0
- package/identity-provider/useIdentityProvider.js +62 -0
- package/identity-provider/useIdentityProvider.js.map +1 -0
- package/identity-provider/useIdentityProviderList.d.ts +48 -0
- package/identity-provider/useIdentityProviderList.d.ts.map +1 -0
- package/identity-provider/useIdentityProviderList.js +75 -0
- package/identity-provider/useIdentityProviderList.js.map +1 -0
- package/identity-provider/useOidcDiscovery.d.ts +39 -0
- package/identity-provider/useOidcDiscovery.d.ts.map +1 -0
- package/identity-provider/useOidcDiscovery.js +76 -0
- package/identity-provider/useOidcDiscovery.js.map +1 -0
- package/identity-provider/useSsoProvider.d.ts +50 -0
- package/identity-provider/useSsoProvider.d.ts.map +1 -0
- package/identity-provider/useSsoProvider.js +83 -0
- package/identity-provider/useSsoProvider.js.map +1 -0
- package/identity-provider/useUpdateIdentityProvider.d.ts +38 -0
- package/identity-provider/useUpdateIdentityProvider.d.ts.map +1 -0
- package/identity-provider/useUpdateIdentityProvider.js +49 -0
- package/identity-provider/useUpdateIdentityProvider.js.map +1 -0
- package/index.d.ts +14 -5
- package/index.d.ts.map +1 -1
- package/index.js +10 -2
- package/index.js.map +1 -1
- package/internal/CloudFeatureNotice.d.ts +12 -0
- package/internal/CloudFeatureNotice.d.ts.map +1 -1
- package/internal/CloudFeatureNotice.js +12 -0
- package/internal/CloudFeatureNotice.js.map +1 -1
- package/invitation/InvitationCreatedAlert.d.ts +35 -0
- package/invitation/InvitationCreatedAlert.d.ts.map +1 -0
- package/invitation/InvitationCreatedAlert.js +60 -0
- package/invitation/InvitationCreatedAlert.js.map +1 -0
- package/invitation/InvitationManager.d.ts +44 -0
- package/invitation/InvitationManager.d.ts.map +1 -0
- package/invitation/InvitationManager.js +248 -0
- package/invitation/InvitationManager.js.map +1 -0
- package/invitation/InvitationRedemption.d.ts +69 -0
- package/invitation/InvitationRedemption.d.ts.map +1 -0
- package/invitation/InvitationRedemption.js +140 -0
- package/invitation/InvitationRedemption.js.map +1 -0
- package/invitation/index.d.ts +17 -0
- package/invitation/index.d.ts.map +1 -0
- package/invitation/index.js +9 -0
- package/invitation/index.js.map +1 -0
- package/invitation/useCreateInvitation.d.ts +52 -0
- package/invitation/useCreateInvitation.d.ts.map +1 -0
- package/invitation/useCreateInvitation.js +55 -0
- package/invitation/useCreateInvitation.js.map +1 -0
- package/invitation/useInvitationPreview.d.ts +51 -0
- package/invitation/useInvitationPreview.d.ts.map +1 -0
- package/invitation/useInvitationPreview.js +80 -0
- package/invitation/useInvitationPreview.js.map +1 -0
- package/invitation/useOrgInvitations.d.ts +36 -0
- package/invitation/useOrgInvitations.d.ts.map +1 -0
- package/invitation/useOrgInvitations.js +65 -0
- package/invitation/useOrgInvitations.js.map +1 -0
- package/invitation/useRedeemInvitation.d.ts +47 -0
- package/invitation/useRedeemInvitation.d.ts.map +1 -0
- package/invitation/useRedeemInvitation.js +53 -0
- package/invitation/useRedeemInvitation.js.map +1 -0
- package/invitation/useRevokeInvitation.d.ts +35 -0
- package/invitation/useRevokeInvitation.d.ts.map +1 -0
- package/invitation/useRevokeInvitation.js +47 -0
- package/invitation/useRevokeInvitation.js.map +1 -0
- package/library/detect-skill-package.d.ts +1 -0
- package/library/detect-skill-package.d.ts.map +1 -1
- package/library/detect-skill-package.js.map +1 -1
- package/library/detect-stigmer-resource.d.ts +1 -0
- package/library/detect-stigmer-resource.d.ts.map +1 -1
- package/library/detect-stigmer-resource.js.map +1 -1
- package/library/parse-resource-yaml.d.ts +4 -0
- package/library/parse-resource-yaml.d.ts.map +1 -1
- package/library/parse-resource-yaml.js.map +1 -1
- package/mcp-server/McpServerDetailView.d.ts +2 -2
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/index.d.ts +1 -1
- package/mcp-server/index.d.ts.map +1 -1
- package/mcp-server/index.js.map +1 -1
- package/mcp-server/mcpServerSetupReducer.d.ts +54 -0
- package/mcp-server/mcpServerSetupReducer.d.ts.map +1 -1
- package/mcp-server/mcpServerSetupReducer.js.map +1 -1
- package/models/ModelSelector.d.ts +9 -0
- package/models/ModelSelector.d.ts.map +1 -1
- package/models/ModelSelector.js +9 -0
- package/models/ModelSelector.js.map +1 -1
- package/models/registry.d.ts +11 -1
- package/models/registry.d.ts.map +1 -1
- package/models/registry.js.map +1 -1
- package/models/useModelRegistry.d.ts +20 -0
- package/models/useModelRegistry.d.ts.map +1 -1
- package/models/useModelRegistry.js +20 -0
- package/models/useModelRegistry.js.map +1 -1
- package/organization/OrgProfilePanel.d.ts +31 -0
- package/organization/OrgProfilePanel.d.ts.map +1 -0
- package/organization/OrgProfilePanel.js +147 -0
- package/organization/OrgProfilePanel.js.map +1 -0
- package/organization/index.d.ts +6 -0
- package/organization/index.d.ts.map +1 -1
- package/organization/index.js +3 -0
- package/organization/index.js.map +1 -1
- package/organization/useOrganization.d.ts +31 -0
- package/organization/useOrganization.d.ts.map +1 -0
- package/organization/useOrganization.js +56 -0
- package/organization/useOrganization.js.map +1 -0
- package/organization/useUpdateOrganization.d.ts +40 -0
- package/organization/useUpdateOrganization.d.ts.map +1 -0
- package/organization/useUpdateOrganization.js +51 -0
- package/organization/useUpdateOrganization.js.map +1 -0
- package/package.json +4 -4
- package/provider.d.ts +1 -0
- package/provider.d.ts.map +1 -1
- package/provider.js.map +1 -1
- package/search/useResourceList.d.ts +4 -2
- package/search/useResourceList.d.ts.map +1 -1
- package/search/useResourceList.js +2 -1
- package/search/useResourceList.js.map +1 -1
- package/search/useResourceSearch.d.ts +10 -2
- package/search/useResourceSearch.d.ts.map +1 -1
- package/search/useResourceSearch.js +2 -1
- package/search/useResourceSearch.js.map +1 -1
- package/session/group-sessions.d.ts +23 -0
- package/session/group-sessions.d.ts.map +1 -1
- package/session/group-sessions.js +23 -0
- package/session/group-sessions.js.map +1 -1
- package/session/index.d.ts +1 -1
- package/session/index.d.ts.map +1 -1
- package/session/index.js.map +1 -1
- package/session/useCreateSession.d.ts +11 -2
- package/session/useCreateSession.d.ts.map +1 -1
- package/session/useCreateSession.js.map +1 -1
- package/session/useSession.d.ts +24 -0
- package/session/useSession.d.ts.map +1 -1
- package/session/useSession.js +24 -0
- package/session/useSession.js.map +1 -1
- package/session/useSessionArtifacts.d.ts +1 -0
- package/session/useSessionArtifacts.d.ts.map +1 -1
- package/session/useSessionArtifacts.js.map +1 -1
- package/session/useSessionConversation.d.ts +7 -0
- package/session/useSessionConversation.d.ts.map +1 -1
- package/session/useSessionConversation.js.map +1 -1
- package/session/useSessionExecutions.d.ts +23 -0
- package/session/useSessionExecutions.d.ts.map +1 -1
- package/session/useSessionExecutions.js +23 -0
- package/session/useSessionExecutions.js.map +1 -1
- package/session/useSessionList.d.ts +19 -0
- package/session/useSessionList.d.ts.map +1 -1
- package/session/useSessionList.js +19 -0
- package/session/useSessionList.js.map +1 -1
- package/session/useSessionWriteBacks.d.ts +1 -0
- package/session/useSessionWriteBacks.d.ts.map +1 -1
- package/session/useSessionWriteBacks.js.map +1 -1
- package/session/useUpdateSession.d.ts +22 -0
- package/session/useUpdateSession.d.ts.map +1 -1
- package/session/useUpdateSession.js +22 -0
- package/session/useUpdateSession.js.map +1 -1
- package/skill/SkillPicker.d.ts +15 -0
- package/skill/SkillPicker.d.ts.map +1 -1
- package/skill/SkillPicker.js +15 -0
- package/skill/SkillPicker.js.map +1 -1
- package/src/agent/AgentEnvForm.tsx +2 -0
- package/src/agent/AgentPicker.tsx +2 -0
- package/src/agent/agentSetupReducer.ts +109 -20
- package/src/agent/useAgentCount.ts +2 -0
- package/src/attachment/AttachmentChipList.tsx +15 -0
- package/src/attachment/useAttachments.ts +14 -0
- package/src/composer/useComposer.ts +5 -0
- package/src/execution/ExecutionPhaseBadge.tsx +1 -1
- package/src/execution/McpToolDetail.tsx +18 -6
- package/src/execution/TodoList.tsx +8 -0
- package/src/execution/ToolArgsView.tsx +1 -0
- package/src/execution/UsageWidget.tsx +1 -1
- package/src/execution/file-path-resolver.ts +28 -4
- package/src/execution/index.ts +5 -1
- package/src/execution/useArtifactContent.ts +33 -0
- package/src/execution/useSubmitApproval.ts +2 -0
- package/src/github/GitHubRepoPicker.tsx +13 -0
- package/src/github/useGitHubConnection.ts +29 -1
- package/src/github/useGitHubRepos.ts +31 -0
- package/src/github/useGitHubSearch.ts +25 -0
- package/src/iam-policy/GrantAccessForm.tsx +198 -0
- package/src/iam-policy/OrgMembersPanel.tsx +572 -0
- package/src/iam-policy/RoleSelector.tsx +105 -0
- package/src/iam-policy/index.ts +51 -0
- package/src/iam-policy/useCreateIamPolicy.ts +66 -0
- package/src/iam-policy/useDeleteIamPolicy.ts +65 -0
- package/src/iam-policy/useGrantableRoles.ts +45 -0
- package/src/iam-policy/usePrincipalsCount.ts +96 -0
- package/src/iam-policy/useResourceAccess.ts +128 -0
- package/src/iam-policy/useRevokeOrgAccess.ts +74 -0
- package/src/iam-policy/useRoleSelector.ts +97 -0
- package/src/iam-policy/useWhoAmI.ts +78 -0
- package/src/identity-provider/CreateIdentityProviderForm.tsx +308 -0
- package/src/identity-provider/IdentityProviderDetailPanel.tsx +583 -0
- package/src/identity-provider/IdentityProviderListPanel.tsx +370 -0
- package/src/identity-provider/IdentityProviderWizard.tsx +684 -0
- package/src/identity-provider/ProviderPicker.tsx +152 -0
- package/src/identity-provider/SsoLoginPrompt.tsx +404 -0
- package/src/identity-provider/index.ts +67 -0
- package/src/identity-provider/presets.ts +262 -0
- package/src/identity-provider/useCreateIdentityProvider.ts +68 -0
- package/src/identity-provider/useDeleteIdentityProvider.ts +65 -0
- package/src/identity-provider/useIdentityProvider.ts +86 -0
- package/src/identity-provider/useIdentityProviderList.ts +100 -0
- package/src/identity-provider/useOidcDiscovery.ts +124 -0
- package/src/identity-provider/useSsoProvider.ts +99 -0
- package/src/identity-provider/useUpdateIdentityProvider.ts +69 -0
- package/src/index.ts +121 -1
- package/src/internal/CloudFeatureNotice.tsx +12 -0
- package/src/invitation/InvitationCreatedAlert.tsx +185 -0
- package/src/invitation/InvitationManager.tsx +842 -0
- package/src/invitation/InvitationRedemption.tsx +434 -0
- package/src/invitation/index.ts +16 -0
- package/src/invitation/useCreateInvitation.ts +83 -0
- package/src/invitation/useInvitationPreview.ts +103 -0
- package/src/invitation/useOrgInvitations.ts +88 -0
- package/src/invitation/useRedeemInvitation.ts +82 -0
- package/src/invitation/useRevokeInvitation.ts +66 -0
- package/src/library/detect-skill-package.ts +4 -1
- package/src/library/detect-stigmer-resource.ts +4 -1
- package/src/library/parse-resource-yaml.ts +12 -2
- package/src/mcp-server/McpServerDetailView.tsx +2 -1
- package/src/mcp-server/index.ts +4 -1
- package/src/mcp-server/mcpServerSetupReducer.ts +86 -8
- package/src/models/ModelSelector.tsx +9 -0
- package/src/models/registry.ts +11 -1
- package/src/models/useModelRegistry.ts +20 -0
- package/src/organization/OrgProfilePanel.tsx +451 -0
- package/src/organization/index.ts +6 -0
- package/src/organization/useOrganization.ts +79 -0
- package/src/organization/useUpdateOrganization.ts +71 -0
- package/src/provider.tsx +1 -0
- package/src/search/useResourceList.ts +6 -3
- package/src/search/useResourceSearch.ts +12 -3
- package/src/session/group-sessions.ts +23 -0
- package/src/session/index.ts +1 -0
- package/src/session/useCreateSession.ts +19 -3
- package/src/session/useSession.ts +24 -0
- package/src/session/useSessionArtifacts.ts +1 -0
- package/src/session/useSessionConversation.ts +7 -0
- package/src/session/useSessionExecutions.ts +23 -0
- package/src/session/useSessionList.ts +19 -0
- package/src/session/useSessionWriteBacks.ts +1 -0
- package/src/session/useUpdateSession.ts +22 -0
- package/src/skill/SkillPicker.tsx +15 -0
- package/src/usage/OrgUsagePanel.tsx +465 -0
- package/src/usage/date-range.ts +86 -0
- package/src/usage/index.ts +13 -0
- package/src/usage/useOrgUsageReport.ts +110 -0
- package/src/workspace/FolderBrowser.tsx +9 -0
- package/src/workspace/WorkspaceEditor.tsx +17 -0
- package/src/workspace/useFolderListing.ts +24 -0
- package/src/workspace/useWorkspaceEntries.ts +38 -0
- package/styles.css +1 -1
- package/usage/OrgUsagePanel.d.ts +24 -0
- package/usage/OrgUsagePanel.d.ts.map +1 -0
- package/usage/OrgUsagePanel.js +134 -0
- package/usage/OrgUsagePanel.js.map +1 -0
- package/usage/date-range.d.ts +36 -0
- package/usage/date-range.d.ts.map +1 -0
- package/usage/date-range.js +69 -0
- package/usage/date-range.js.map +1 -0
- package/usage/index.d.ts +7 -0
- package/usage/index.d.ts.map +1 -0
- package/usage/index.js +4 -0
- package/usage/index.js.map +1 -0
- package/usage/useOrgUsageReport.d.ts +48 -0
- package/usage/useOrgUsageReport.d.ts.map +1 -0
- package/usage/useOrgUsageReport.js +72 -0
- package/usage/useOrgUsageReport.js.map +1 -0
- package/workspace/FolderBrowser.d.ts +9 -0
- package/workspace/FolderBrowser.d.ts.map +1 -1
- package/workspace/FolderBrowser.js +9 -0
- package/workspace/FolderBrowser.js.map +1 -1
- package/workspace/WorkspaceEditor.d.ts +17 -0
- package/workspace/WorkspaceEditor.d.ts.map +1 -1
- package/workspace/WorkspaceEditor.js +17 -0
- package/workspace/WorkspaceEditor.js.map +1 -1
- package/workspace/useFolderListing.d.ts +24 -0
- package/workspace/useFolderListing.d.ts.map +1 -1
- package/workspace/useFolderListing.js +24 -0
- package/workspace/useFolderListing.js.map +1 -1
- package/workspace/useWorkspaceEntries.d.ts +38 -0
- package/workspace/useWorkspaceEntries.d.ts.map +1 -1
- package/workspace/useWorkspaceEntries.js +25 -0
- package/workspace/useWorkspaceEntries.js.map +1 -1
|
@@ -12,6 +12,28 @@ import { useStigmer } from "../hooks";
|
|
|
12
12
|
* {@link useSessionConversation} rather than used directly. Platform
|
|
13
13
|
* builders who need direct session mutation can use this hook
|
|
14
14
|
* standalone.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* function RenameSession({ session }: { session: Session }) {
|
|
19
|
+
* const { update, isUpdating, error } = useUpdateSession();
|
|
20
|
+
*
|
|
21
|
+
* async function handleRename(newSubject: string) {
|
|
22
|
+
* await update({
|
|
23
|
+
* name: session.metadata!.name,
|
|
24
|
+
* org: session.metadata!.org,
|
|
25
|
+
* agentInstanceId: session.spec?.agentInstanceId,
|
|
26
|
+
* subject: newSubject,
|
|
27
|
+
* });
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* return (
|
|
31
|
+
* <button onClick={() => handleRename("New subject")} disabled={isUpdating}>
|
|
32
|
+
* Rename
|
|
33
|
+
* </button>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
15
37
|
*/
|
|
16
38
|
export function useUpdateSession() {
|
|
17
39
|
const stigmer = useStigmer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateSession.js","sourceRoot":"","sources":["../../src/session/useUpdateSession.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AActC
|
|
1
|
+
{"version":3,"file":"useUpdateSession.js","sourceRoot":"","sources":["../../src/session/useUpdateSession.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AActC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAExD,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,WAAW,CACxB,KAAK,EAAE,KAAmB,EAAoB,EAAE;QAC9C,aAAa,CAAC,IAAI,CAAC,CAAC;QACpB,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEf,IAAI,CAAC;YACH,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GACX,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC;YAClE,QAAQ,CAAC,OAAO,CAAC,CAAC;YAClB,MAAM,GAAG,CAAC;QACZ,CAAC;gBAAS,CAAC;YACT,aAAa,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AACnD,CAAC"}
|
package/skill/SkillPicker.d.ts
CHANGED
|
@@ -34,6 +34,21 @@ export interface SkillPickerProps {
|
|
|
34
34
|
* Selected skills produce `ResourceRef[]` with `kind: skill`.
|
|
35
35
|
*
|
|
36
36
|
* All visual properties flow through `--stgm-*` tokens.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* function SkillSelector({ org }: { org: string }) {
|
|
41
|
+
* const [skills, setSkills] = useState<ResourceRef[]>([]);
|
|
42
|
+
*
|
|
43
|
+
* return (
|
|
44
|
+
* <SkillPicker
|
|
45
|
+
* org={org}
|
|
46
|
+
* value={skills}
|
|
47
|
+
* onChange={setSkills}
|
|
48
|
+
* />
|
|
49
|
+
* );
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
37
52
|
*/
|
|
38
53
|
export declare function SkillPicker({ org, scope, value, onChange, onDisplayNameResolved, disabled, className, }: SkillPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
39
54
|
//# sourceMappingURL=SkillPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillPicker.d.ts","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACjD,+EAA+E;IAC/E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAQD
|
|
1
|
+
{"version":3,"file":"SkillPicker.d.ts","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACjD,+EAA+E;IAC/E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CA8MlB"}
|
package/skill/SkillPicker.js
CHANGED
|
@@ -20,6 +20,21 @@ const LIST_ID = "stgm-skill-list";
|
|
|
20
20
|
* Selected skills produce `ResourceRef[]` with `kind: skill`.
|
|
21
21
|
*
|
|
22
22
|
* All visual properties flow through `--stgm-*` tokens.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* function SkillSelector({ org }: { org: string }) {
|
|
27
|
+
* const [skills, setSkills] = useState<ResourceRef[]>([]);
|
|
28
|
+
*
|
|
29
|
+
* return (
|
|
30
|
+
* <SkillPicker
|
|
31
|
+
* org={org}
|
|
32
|
+
* value={skills}
|
|
33
|
+
* onChange={setSkills}
|
|
34
|
+
* />
|
|
35
|
+
* );
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
23
38
|
*/
|
|
24
39
|
export function SkillPicker({ org, scope, value, onChange, onDisplayNameResolved, disabled, className, }) {
|
|
25
40
|
const { results, isLoading, error, query, setQuery } = useSkillSearch(org, { scope });
|
package/skill/SkillPicker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillPicker.js","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,GAER,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4BpD,SAAS,MAAM,CAAC,GAAgB;IAC9B,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC
|
|
1
|
+
{"version":3,"file":"SkillPicker.js","sourceRoot":"","sources":["../../src/skill/SkillPicker.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,GAER,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4BpD,SAAS,MAAM,CAAC,GAAgB;IAC9B,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC;;;;;;;;;;;;;;;;;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EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,SAAS,EAAC,gCAAgC,iBAC9B,MAAM,YAElB,eAAM,CAAC,EAAC,8BAA8B,GAAG,GACrC,CACP,CAAC;AACJ,CAAC;AAED,SAAS,KAAK;IACZ,OAAO,CACL,cACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,sBAAsB,GAAG,GAC7B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -55,6 +55,7 @@ export interface AgentEnvFormProps {
|
|
|
55
55
|
readonly onCancel?: () => void;
|
|
56
56
|
/** When true, the submit button shows a spinner and inputs are disabled. */
|
|
57
57
|
readonly isSubmitting?: boolean;
|
|
58
|
+
/** Prevents interaction with all form inputs when `true`. */
|
|
58
59
|
readonly disabled?: boolean;
|
|
59
60
|
/**
|
|
60
61
|
* Initial state of the "Save for future runs" toggle.
|
|
@@ -75,6 +76,7 @@ export interface AgentEnvFormProps {
|
|
|
75
76
|
* Passed through to {@link EnvVarForm}.
|
|
76
77
|
*/
|
|
77
78
|
readonly poolValues?: EnvVarFormProps["poolValues"];
|
|
79
|
+
/** Additional CSS class names for the root container. */
|
|
78
80
|
readonly className?: string;
|
|
79
81
|
}
|
|
80
82
|
|
|
@@ -36,7 +36,9 @@ export interface AgentPickerProps {
|
|
|
36
36
|
* @default "org"
|
|
37
37
|
*/
|
|
38
38
|
readonly scope?: "org" | "all";
|
|
39
|
+
/** Prevents interaction with the picker when `true`. */
|
|
39
40
|
readonly disabled?: boolean;
|
|
41
|
+
/** Additional CSS class names for the root container. */
|
|
40
42
|
readonly className?: string;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -18,9 +18,22 @@ import type { AgentEnvFormVariable } from "./AgentEnvForm";
|
|
|
18
18
|
* Create the session with `agentRef` directly.
|
|
19
19
|
*/
|
|
20
20
|
export type AgentResolution =
|
|
21
|
-
| {
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
| {
|
|
22
|
+
/** Secrets were persisted to the user's personal environment. */
|
|
23
|
+
readonly mode: "saved";
|
|
24
|
+
/** ID of the personal agent instance to use for session creation. */
|
|
25
|
+
readonly instanceId: string;
|
|
26
|
+
}
|
|
27
|
+
| {
|
|
28
|
+
/** Secrets were collected but not persisted — pass to execution only. */
|
|
29
|
+
readonly mode: "oneTime";
|
|
30
|
+
/** Collected secrets to forward as execution-scoped runtime env vars. */
|
|
31
|
+
readonly runtimeEnv: Record<string, EnvVarInput>;
|
|
32
|
+
}
|
|
33
|
+
| {
|
|
34
|
+
/** The agent has no `env_spec` and needs no secrets. */
|
|
35
|
+
readonly mode: "direct";
|
|
36
|
+
};
|
|
24
37
|
|
|
25
38
|
// ---------------------------------------------------------------------------
|
|
26
39
|
// State machine — phases of the agent setup flow
|
|
@@ -36,26 +49,48 @@ export type AgentResolution =
|
|
|
36
49
|
* narrowing in consumer code.
|
|
37
50
|
*/
|
|
38
51
|
export type AgentSetupPhase =
|
|
39
|
-
| { readonly status: "idle" }
|
|
40
|
-
| { readonly status: "resolving"; readonly agentRef: ResourceRef }
|
|
41
52
|
| {
|
|
53
|
+
/** No agent resolution has been initiated. */
|
|
54
|
+
readonly status: "idle";
|
|
55
|
+
}
|
|
56
|
+
| {
|
|
57
|
+
/** The agent blueprint is being fetched and its env spec is being evaluated. */
|
|
58
|
+
readonly status: "resolving";
|
|
59
|
+
/** Reference to the agent being resolved. */
|
|
60
|
+
readonly agentRef: ResourceRef;
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
/** The agent requires environment variables that the user has not yet provided. */
|
|
42
64
|
readonly status: "needsEnvVars";
|
|
65
|
+
/** Reference to the agent being set up. */
|
|
43
66
|
readonly agentRef: ResourceRef;
|
|
67
|
+
/** Server-assigned ID of the agent blueprint. */
|
|
44
68
|
readonly agentId: string;
|
|
69
|
+
/** Display name of the agent. */
|
|
45
70
|
readonly agentName: string;
|
|
71
|
+
/** Environment variables the user must provide before proceeding. */
|
|
46
72
|
readonly missingVariables: AgentEnvFormVariable[];
|
|
47
73
|
}
|
|
48
74
|
| {
|
|
75
|
+
/** Environment variables are being persisted or the instance is being provisioned. */
|
|
49
76
|
readonly status: "submitting";
|
|
77
|
+
/** Reference to the agent being set up. */
|
|
50
78
|
readonly agentRef: ResourceRef;
|
|
79
|
+
/** Server-assigned ID of the agent blueprint. */
|
|
51
80
|
readonly agentId: string;
|
|
81
|
+
/** Display name of the agent. */
|
|
52
82
|
readonly agentName: string;
|
|
83
|
+
/** Environment variables that were collected from the user. */
|
|
53
84
|
readonly missingVariables: AgentEnvFormVariable[];
|
|
54
85
|
}
|
|
55
86
|
| {
|
|
87
|
+
/** The agent is fully resolved and ready for session creation. */
|
|
56
88
|
readonly status: "ready";
|
|
89
|
+
/** Reference to the resolved agent. */
|
|
57
90
|
readonly agentRef: ResourceRef;
|
|
91
|
+
/** Display name of the resolved agent. */
|
|
58
92
|
readonly agentName: string;
|
|
93
|
+
/** How the agent was resolved — determines session creation strategy. */
|
|
59
94
|
readonly resolution: AgentResolution;
|
|
60
95
|
};
|
|
61
96
|
|
|
@@ -68,6 +103,7 @@ export type AgentSetupPhase =
|
|
|
68
103
|
* error messages without losing the current phase context.
|
|
69
104
|
*/
|
|
70
105
|
export type AgentSetupState = AgentSetupPhase & {
|
|
106
|
+
/** Error from the last async transition, or `null` when healthy. */
|
|
71
107
|
readonly error: Error | null;
|
|
72
108
|
};
|
|
73
109
|
|
|
@@ -76,63 +112,116 @@ export type AgentSetupState = AgentSetupPhase & {
|
|
|
76
112
|
// ---------------------------------------------------------------------------
|
|
77
113
|
|
|
78
114
|
/**
|
|
79
|
-
* Result returned by
|
|
115
|
+
* Result returned by `useAgentSetup().resolveAgent()`.
|
|
116
|
+
*
|
|
117
|
+
* - `"ready"` — the agent can be used immediately.
|
|
118
|
+
* - `"needsEnvVars"` — the agent requires environment variables
|
|
119
|
+
* the user has not yet provided.
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* Result returned by `useAgentSetup().submitEnvVars()` — always `"ready"`.
|
|
123
|
+
*
|
|
124
|
+
* Also used as the `"ready"` variant of {@link AgentSetupResult}.
|
|
125
|
+
*/
|
|
126
|
+
export interface AgentSetupReadyResult {
|
|
127
|
+
/** The agent is ready for session creation. */
|
|
128
|
+
readonly status: "ready";
|
|
129
|
+
/** Reference to the resolved agent. */
|
|
130
|
+
readonly agentRef: ResourceRef;
|
|
131
|
+
/** Display name of the resolved agent. */
|
|
132
|
+
readonly agentName: string;
|
|
133
|
+
/** How the agent was resolved — determines session creation strategy. */
|
|
134
|
+
readonly resolution: AgentResolution;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Result returned by `useAgentSetup().resolveAgent()`.
|
|
80
139
|
*
|
|
81
140
|
* - `"ready"` — the agent can be used immediately.
|
|
82
141
|
* - `"needsEnvVars"` — the agent requires environment variables
|
|
83
142
|
* the user has not yet provided.
|
|
84
143
|
*/
|
|
85
144
|
export type AgentSetupResult =
|
|
145
|
+
| AgentSetupReadyResult
|
|
86
146
|
| {
|
|
87
|
-
|
|
88
|
-
readonly agentRef: ResourceRef;
|
|
89
|
-
readonly agentName: string;
|
|
90
|
-
readonly resolution: AgentResolution;
|
|
91
|
-
}
|
|
92
|
-
| {
|
|
147
|
+
/** The agent requires env vars the user has not yet provided. */
|
|
93
148
|
readonly status: "needsEnvVars";
|
|
149
|
+
/** Reference to the agent being set up. */
|
|
94
150
|
readonly agentRef: ResourceRef;
|
|
151
|
+
/** Display name of the agent. */
|
|
95
152
|
readonly agentName: string;
|
|
153
|
+
/** Environment variables the user must provide before proceeding. */
|
|
96
154
|
readonly missingVariables: AgentEnvFormVariable[];
|
|
97
155
|
};
|
|
98
156
|
|
|
99
|
-
/** Result returned by {@link useAgentSetup.submitEnvVars} — always `"ready"`. */
|
|
100
|
-
export type AgentSetupReadyResult = AgentSetupResult & { readonly status: "ready" };
|
|
101
|
-
|
|
102
157
|
// ---------------------------------------------------------------------------
|
|
103
158
|
// Actions
|
|
104
159
|
// ---------------------------------------------------------------------------
|
|
105
160
|
|
|
106
161
|
/** Action union for the agent setup state machine managed by {@link agentSetupReducer}. */
|
|
107
162
|
export type AgentSetupAction =
|
|
108
|
-
| { readonly type: "RESOLVE_START"; readonly agentRef: ResourceRef }
|
|
109
163
|
| {
|
|
164
|
+
/** Begin resolving an agent's requirements. */
|
|
165
|
+
readonly type: "RESOLVE_START";
|
|
166
|
+
/** Reference to the agent to resolve. */
|
|
167
|
+
readonly agentRef: ResourceRef;
|
|
168
|
+
}
|
|
169
|
+
| {
|
|
170
|
+
/** Agent resolved but requires env vars from the user. */
|
|
110
171
|
readonly type: "RESOLVE_NEEDS_ENV";
|
|
172
|
+
/** Reference to the agent. */
|
|
111
173
|
readonly agentRef: ResourceRef;
|
|
174
|
+
/** Server-assigned agent ID. */
|
|
112
175
|
readonly agentId: string;
|
|
176
|
+
/** Display name of the agent. */
|
|
113
177
|
readonly agentName: string;
|
|
178
|
+
/** Variables the user must provide. */
|
|
114
179
|
readonly missingVariables: AgentEnvFormVariable[];
|
|
115
180
|
}
|
|
116
181
|
| {
|
|
182
|
+
/** Agent resolved and is ready for session creation. */
|
|
117
183
|
readonly type: "RESOLVE_READY";
|
|
184
|
+
/** Reference to the resolved agent. */
|
|
118
185
|
readonly agentRef: ResourceRef;
|
|
186
|
+
/** Display name of the resolved agent. */
|
|
119
187
|
readonly agentName: string;
|
|
188
|
+
/** Resolution strategy for session creation. */
|
|
120
189
|
readonly resolution: AgentResolution;
|
|
121
190
|
}
|
|
122
191
|
| {
|
|
192
|
+
/** Re-evaluate missing variables after pool values arrive. */
|
|
123
193
|
readonly type: "POOL_RESOLVE";
|
|
194
|
+
/** Updated missing variables (may be empty if pool covered all). */
|
|
124
195
|
readonly missingVariables: AgentEnvFormVariable[];
|
|
125
196
|
}
|
|
126
|
-
| { readonly type: "SUBMIT_START" }
|
|
127
197
|
| {
|
|
198
|
+
/** Begin persisting env vars or creating an agent instance. */
|
|
199
|
+
readonly type: "SUBMIT_START";
|
|
200
|
+
}
|
|
201
|
+
| {
|
|
202
|
+
/** Env var submission succeeded — agent is ready. */
|
|
128
203
|
readonly type: "SUBMIT_READY";
|
|
204
|
+
/** Reference to the resolved agent. */
|
|
129
205
|
readonly agentRef: ResourceRef;
|
|
206
|
+
/** Display name of the resolved agent. */
|
|
130
207
|
readonly agentName: string;
|
|
208
|
+
/** Resolution strategy for session creation. */
|
|
131
209
|
readonly resolution: AgentResolution;
|
|
132
210
|
}
|
|
133
|
-
| {
|
|
134
|
-
|
|
135
|
-
|
|
211
|
+
| {
|
|
212
|
+
/** An async operation failed. */
|
|
213
|
+
readonly type: "ERROR";
|
|
214
|
+
/** The error that occurred. */
|
|
215
|
+
readonly error: Error;
|
|
216
|
+
}
|
|
217
|
+
| {
|
|
218
|
+
/** Clear the error without changing phase. */
|
|
219
|
+
readonly type: "CLEAR_ERROR";
|
|
220
|
+
}
|
|
221
|
+
| {
|
|
222
|
+
/** Reset to idle state. */
|
|
223
|
+
readonly type: "RESET";
|
|
224
|
+
};
|
|
136
225
|
|
|
137
226
|
// ---------------------------------------------------------------------------
|
|
138
227
|
// Reducer
|
|
@@ -26,7 +26,9 @@ export interface UseAgentCountReturn {
|
|
|
26
26
|
* until the first successful fetch completes.
|
|
27
27
|
*/
|
|
28
28
|
readonly count: number | undefined;
|
|
29
|
+
/** `true` while the count fetch is in flight. */
|
|
29
30
|
readonly isLoading: boolean;
|
|
31
|
+
/** Error message from the last failed fetch, or `null` when healthy. */
|
|
30
32
|
readonly error: string | null;
|
|
31
33
|
/** Re-fetch the count with the same parameters. */
|
|
32
34
|
readonly refetch: () => void;
|
|
@@ -27,6 +27,21 @@ export interface AttachmentChipListProps {
|
|
|
27
27
|
* who compose their own attachment UI.
|
|
28
28
|
*
|
|
29
29
|
* All visual properties flow through `--stgm-*` tokens.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* function CustomComposer() {
|
|
34
|
+
* const attachments = useAttachments({ sessionId });
|
|
35
|
+
*
|
|
36
|
+
* return (
|
|
37
|
+
* <AttachmentChipList
|
|
38
|
+
* entries={attachments.entries}
|
|
39
|
+
* onRemove={attachments.remove}
|
|
40
|
+
* onRetry={attachments.retry}
|
|
41
|
+
* />
|
|
42
|
+
* );
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
30
45
|
*/
|
|
31
46
|
export function AttachmentChipList({
|
|
32
47
|
entries,
|
|
@@ -31,6 +31,20 @@ export type AttachmentPhase = "uploading" | "ready" | "error";
|
|
|
31
31
|
* The `id` is a stable string generated at add-time, used as a React
|
|
32
32
|
* key and for removal. The same `File` added twice produces two
|
|
33
33
|
* independent entries with distinct IDs.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* const attachments = useAttachments();
|
|
38
|
+
*
|
|
39
|
+
* attachments.entries.map((entry) => (
|
|
40
|
+
* <span key={entry.id}>
|
|
41
|
+
* {entry.file.name}
|
|
42
|
+
* {entry.phase === "uploading" && <Spinner />}
|
|
43
|
+
* {entry.phase === "error" && <span>{entry.error}</span>}
|
|
44
|
+
* {entry.phase === "ready" && <CheckIcon />}
|
|
45
|
+
* </span>
|
|
46
|
+
* ));
|
|
47
|
+
* ```
|
|
34
48
|
*/
|
|
35
49
|
export interface AttachmentEntry {
|
|
36
50
|
/** Unique client-side identifier for this attachment. */
|
|
@@ -40,10 +40,15 @@ export interface UseComposerReturn {
|
|
|
40
40
|
* then specifying overrides.
|
|
41
41
|
*/
|
|
42
42
|
readonly textareaProps: {
|
|
43
|
+
/** Ref to the underlying `<textarea>` element. */
|
|
43
44
|
readonly ref: RefObject<HTMLTextAreaElement | null>;
|
|
45
|
+
/** Current message text bound to the textarea. */
|
|
44
46
|
readonly value: string;
|
|
47
|
+
/** Change handler that updates message state and triggers auto-resize. */
|
|
45
48
|
readonly onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
49
|
+
/** Key handler that submits on Enter and allows Shift+Enter for newlines. */
|
|
46
50
|
readonly onKeyDown: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
51
|
+
/** Whether the textarea is disabled (prevents typing and submission). */
|
|
47
52
|
readonly disabled: boolean;
|
|
48
53
|
};
|
|
49
54
|
/** Whether the current message is non-empty and the input is not disabled. */
|
|
@@ -85,7 +85,7 @@ const PHASE_CONFIG: ReadonlyMap<ExecutionPhase, PhaseConfig> = new Map([
|
|
|
85
85
|
]);
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Displays the lifecycle phase of an
|
|
88
|
+
* Displays the lifecycle phase of an `AgentExecution` as an
|
|
89
89
|
* inline badge with a status icon and label.
|
|
90
90
|
*
|
|
91
91
|
* Renders nothing for `EXECUTION_PHASE_UNSPECIFIED`.
|
|
@@ -66,6 +66,16 @@ export function McpToolDetail({ toolCall, className }: McpToolDetailProps) {
|
|
|
66
66
|
// Metadata
|
|
67
67
|
// ---------------------------------------------------------------------------
|
|
68
68
|
|
|
69
|
+
/** Props for {@link McpMetadataRow}. */
|
|
70
|
+
export interface McpMetadataRowProps {
|
|
71
|
+
/** Slug of the MCP server that owns the tool. */
|
|
72
|
+
readonly mcpServerSlug: string;
|
|
73
|
+
/** Name of the tool that was invoked. */
|
|
74
|
+
readonly toolName: string;
|
|
75
|
+
/** Human-readable execution duration, or `null` if still running. */
|
|
76
|
+
readonly duration: string | null;
|
|
77
|
+
}
|
|
78
|
+
|
|
69
79
|
/**
|
|
70
80
|
* Displays MCP server slug, tool name, and optional duration as a
|
|
71
81
|
* compact metadata row above tool arguments.
|
|
@@ -74,11 +84,7 @@ export function McpMetadataRow({
|
|
|
74
84
|
mcpServerSlug,
|
|
75
85
|
toolName,
|
|
76
86
|
duration,
|
|
77
|
-
}: {
|
|
78
|
-
mcpServerSlug: string;
|
|
79
|
-
toolName: string;
|
|
80
|
-
duration: string | null;
|
|
81
|
-
}) {
|
|
87
|
+
}: McpMetadataRowProps) {
|
|
82
88
|
const hasMetadata = mcpServerSlug || duration;
|
|
83
89
|
if (!hasMetadata) return null;
|
|
84
90
|
|
|
@@ -101,13 +107,19 @@ export function McpMetadataRow({
|
|
|
101
107
|
// Arguments — structured key-value rendering
|
|
102
108
|
// ---------------------------------------------------------------------------
|
|
103
109
|
|
|
110
|
+
/** Props for {@link McpArgsView}. */
|
|
111
|
+
export interface McpArgsViewProps {
|
|
112
|
+
/** Tool argument map to render as a key-value list. */
|
|
113
|
+
readonly args: Record<string, unknown>;
|
|
114
|
+
}
|
|
115
|
+
|
|
104
116
|
/**
|
|
105
117
|
* Renders MCP tool arguments as a structured key-value list.
|
|
106
118
|
*
|
|
107
119
|
* Scalars display inline; objects and arrays collapse into
|
|
108
120
|
* formatted JSON blocks via {@link CollapsibleJsonBlock}.
|
|
109
121
|
*/
|
|
110
|
-
export function McpArgsView({ args }:
|
|
122
|
+
export function McpArgsView({ args }: McpArgsViewProps) {
|
|
111
123
|
const entries = Object.entries(args);
|
|
112
124
|
if (entries.length === 0) return null;
|
|
113
125
|
|
|
@@ -38,6 +38,14 @@ function todoSortKey(item: TodoItem): number {
|
|
|
38
38
|
* task description.
|
|
39
39
|
*
|
|
40
40
|
* All visual properties flow through `--stgm-*` tokens.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* const execution = stream.execution;
|
|
45
|
+
* const todos = execution?.status?.todos ?? {};
|
|
46
|
+
*
|
|
47
|
+
* <TodoList todos={todos} />
|
|
48
|
+
* ```
|
|
41
49
|
*/
|
|
42
50
|
export function TodoList({ todos, className }: TodoListProps) {
|
|
43
51
|
const sortedTodos = useMemo(() => {
|
|
@@ -34,6 +34,7 @@ export interface ToolArgsViewProps {
|
|
|
34
34
|
readonly args: Record<string, unknown> | null;
|
|
35
35
|
/** MCP server slug for MCP tool classification and metadata. */
|
|
36
36
|
readonly mcpServerSlug?: string;
|
|
37
|
+
/** Additional CSS class names for the root container. */
|
|
37
38
|
readonly className?: string;
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -25,7 +25,7 @@ export interface UsageWidgetProps {
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Right-sidebar widget that displays session-level cost and token
|
|
28
|
-
* usage aggregated from per-message
|
|
28
|
+
* usage aggregated from per-message `LlmCallMetrics`.
|
|
29
29
|
*
|
|
30
30
|
* Usage data is computed purely from messages the frontend already
|
|
31
31
|
* has — no server RPC is required for the real-time widget.
|
|
@@ -8,8 +8,18 @@ const PLATFORM_DIR_NAME = ".stigmer";
|
|
|
8
8
|
* platform mount (`.stigmer/`) namespace.
|
|
9
9
|
*/
|
|
10
10
|
export type PathClassification =
|
|
11
|
-
| {
|
|
12
|
-
|
|
11
|
+
| {
|
|
12
|
+
/** The path targets a workspace source entry. */
|
|
13
|
+
readonly kind: "workspace";
|
|
14
|
+
/** Path relative to the workspace root, with `.stigmer/` prefix stripped. */
|
|
15
|
+
readonly remainder: string;
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
/** The path targets the virtual platform mount (`.stigmer/`). */
|
|
19
|
+
readonly kind: "platform";
|
|
20
|
+
/** Path within the platform namespace, after the `.stigmer/` prefix. */
|
|
21
|
+
readonly subpath: string;
|
|
22
|
+
};
|
|
13
23
|
|
|
14
24
|
/**
|
|
15
25
|
* Classifies whether a path targets the virtual platform mount
|
|
@@ -80,8 +90,22 @@ export function resolveGitBrowseUrl(
|
|
|
80
90
|
* to decide rendering (anchor vs. copy button).
|
|
81
91
|
*/
|
|
82
92
|
export type ResolvedPathAction =
|
|
83
|
-
| {
|
|
84
|
-
|
|
93
|
+
| {
|
|
94
|
+
/** Open the path as a navigable URL (e.g. GitHub blob link). */
|
|
95
|
+
readonly action: "link";
|
|
96
|
+
/** Resolved external URL to open. */
|
|
97
|
+
readonly url: string;
|
|
98
|
+
/** Human-readable label for the link action. */
|
|
99
|
+
readonly tooltip: string;
|
|
100
|
+
}
|
|
101
|
+
| {
|
|
102
|
+
/** Copy the path to the clipboard (no navigable URL available). */
|
|
103
|
+
readonly action: "copy";
|
|
104
|
+
/** Resolved path string to copy. */
|
|
105
|
+
readonly value: string;
|
|
106
|
+
/** Human-readable label for the copy action. */
|
|
107
|
+
readonly tooltip: string;
|
|
108
|
+
};
|
|
85
109
|
|
|
86
110
|
/**
|
|
87
111
|
* Resolves a tool-call file path to a user action.
|
package/src/execution/index.ts
CHANGED
|
@@ -48,7 +48,11 @@ export { ToolCallDetail, formatDuration } from "./ToolCallDetail";
|
|
|
48
48
|
export type { ToolCallDetailProps } from "./ToolCallDetail";
|
|
49
49
|
|
|
50
50
|
export { McpToolDetail, McpArgsView, McpMetadataRow, parseMcpResult } from "./McpToolDetail";
|
|
51
|
-
export type {
|
|
51
|
+
export type {
|
|
52
|
+
McpToolDetailProps,
|
|
53
|
+
McpArgsViewProps,
|
|
54
|
+
McpMetadataRowProps,
|
|
55
|
+
} from "./McpToolDetail";
|
|
52
56
|
|
|
53
57
|
export { ToolArgsView } from "./ToolArgsView";
|
|
54
58
|
export type { ToolArgsViewProps } from "./ToolArgsView";
|
|
@@ -86,6 +86,39 @@ export interface UseArtifactContentReturn {
|
|
|
86
86
|
* stable but `contentHash` changes, triggering a re-fetch so the UI never
|
|
87
87
|
* shows stale content. Pass `undefined` or omit for backwards compatibility.
|
|
88
88
|
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```tsx
|
|
91
|
+
* function ArtifactViewer({ executionId, artifact }: {
|
|
92
|
+
* executionId: string;
|
|
93
|
+
* artifact: ExecutionArtifact;
|
|
94
|
+
* }) {
|
|
95
|
+
* const shouldFetch = isTextArtifact(artifact)
|
|
96
|
+
* && Number(artifact.sizeBytes) < 512_000;
|
|
97
|
+
*
|
|
98
|
+
* const { content, contentType, isTruncated, isLoading } = useArtifactContent(
|
|
99
|
+
* shouldFetch ? executionId : null,
|
|
100
|
+
* shouldFetch ? artifact.storageKey : null,
|
|
101
|
+
* );
|
|
102
|
+
*
|
|
103
|
+
* if (isLoading) return <Skeleton />;
|
|
104
|
+
* if (!content) return null;
|
|
105
|
+
*
|
|
106
|
+
* return (
|
|
107
|
+
* <ArtifactContentRenderer
|
|
108
|
+
* content={content}
|
|
109
|
+
* contentType={contentType}
|
|
110
|
+
* isTruncated={isTruncated}
|
|
111
|
+
* />
|
|
112
|
+
* );
|
|
113
|
+
* }
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```tsx
|
|
118
|
+
* // Extract a single file from a directory artifact
|
|
119
|
+
* const { content } = useArtifactContent(executionId, storageKey, "SKILL.md");
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
89
122
|
* @see useExecutionArtifacts — extracts artifact metadata from an execution
|
|
90
123
|
* @see isTextArtifact — heuristic for whether content is fetchable as text
|
|
91
124
|
*/
|
|
@@ -26,7 +26,9 @@ export interface UseSubmitApprovalReturn {
|
|
|
26
26
|
* approve one tool while another decision is still in flight.
|
|
27
27
|
*/
|
|
28
28
|
readonly submittingToolCallIds: ReadonlySet<string>;
|
|
29
|
+
/** Error from the last failed approval submission, or `null` when healthy. */
|
|
29
30
|
readonly error: Error | null;
|
|
31
|
+
/** Reset `error` to `null`. */
|
|
30
32
|
readonly clearError: () => void;
|
|
31
33
|
}
|
|
32
34
|
|