@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
|
@@ -4,6 +4,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
4
4
|
import type { ListParams, ListResult } from "@stigmer/sdk";
|
|
5
5
|
import type { SearchResult } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
6
6
|
|
|
7
|
+
/** Shared options for resource search hooks (`useAgentSearch`, `useMcpServerSearch`, `useSkillSearch`). */
|
|
7
8
|
export interface UseResourceSearchOptions {
|
|
8
9
|
/** Maximum results per page. @default 30 */
|
|
9
10
|
readonly pageSize?: number;
|
|
@@ -13,20 +14,27 @@ export interface UseResourceSearchOptions {
|
|
|
13
14
|
* Controls search scope.
|
|
14
15
|
*
|
|
15
16
|
* - `"org"` — search only within the provided organization.
|
|
16
|
-
* - `"all"` — search
|
|
17
|
-
*
|
|
17
|
+
* - `"all"` — search within the provided organization plus public
|
|
18
|
+
* resources from other organizations.
|
|
18
19
|
*
|
|
19
20
|
* @default "org"
|
|
20
21
|
*/
|
|
21
22
|
readonly scope?: "org" | "all";
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
/** Shared return value for resource search hooks (`useAgentSearch`, `useMcpServerSearch`, `useSkillSearch`). */
|
|
24
26
|
export interface UseResourceSearchReturn {
|
|
27
|
+
/** Matching resources from the most recent search. */
|
|
25
28
|
readonly results: readonly SearchResult[];
|
|
29
|
+
/** `true` while a search request is in flight. */
|
|
26
30
|
readonly isLoading: boolean;
|
|
31
|
+
/** Error message from the last failed search, or `null` when healthy. */
|
|
27
32
|
readonly error: string | null;
|
|
33
|
+
/** Current search query text. */
|
|
28
34
|
readonly query: string;
|
|
35
|
+
/** Update the search query (triggers a debounced re-search). */
|
|
29
36
|
readonly setQuery: (query: string) => void;
|
|
37
|
+
/** Re-run the current search with the same parameters. */
|
|
30
38
|
readonly refetch: () => void;
|
|
31
39
|
}
|
|
32
40
|
|
|
@@ -72,9 +80,10 @@ export function useResourceSearch(
|
|
|
72
80
|
setError(null);
|
|
73
81
|
|
|
74
82
|
const params: ListParams = {
|
|
75
|
-
org
|
|
83
|
+
org,
|
|
76
84
|
query: debouncedQuery || undefined,
|
|
77
85
|
excludePublic: false,
|
|
86
|
+
crossOrgPublic: scope === "all",
|
|
78
87
|
page: { num: 1, size: pageSize },
|
|
79
88
|
};
|
|
80
89
|
|
|
@@ -24,6 +24,29 @@ interface Bucket {
|
|
|
24
24
|
* @param sessions - List of sessions to group (typically from `useSessionList`).
|
|
25
25
|
* @param now - Reference time for grouping; defaults to the current time.
|
|
26
26
|
* Accepts an explicit value for deterministic testing.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* function GroupedSessionList() {
|
|
31
|
+
* const { sessions } = useSessionList();
|
|
32
|
+
* const groups = groupSessionsByTime(sessions);
|
|
33
|
+
*
|
|
34
|
+
* return (
|
|
35
|
+
* <div>
|
|
36
|
+
* {groups.map((group) => (
|
|
37
|
+
* <section key={group.label}>
|
|
38
|
+
* <h3>{group.label}</h3>
|
|
39
|
+
* <ul>
|
|
40
|
+
* {group.sessions.map((s) => (
|
|
41
|
+
* <li key={s.metadata?.id}>{s.status?.subject}</li>
|
|
42
|
+
* ))}
|
|
43
|
+
* </ul>
|
|
44
|
+
* </section>
|
|
45
|
+
* ))}
|
|
46
|
+
* </div>
|
|
47
|
+
* );
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
27
50
|
*/
|
|
28
51
|
export function groupSessionsByTime(
|
|
29
52
|
sessions: readonly Session[],
|
package/src/session/index.ts
CHANGED
|
@@ -10,11 +10,17 @@ import {
|
|
|
10
10
|
import { useStigmer } from "../hooks";
|
|
11
11
|
import { toError } from "../internal/toError";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/** Shared fields present in both variants of {@link CreateSessionInput}. */
|
|
14
|
+
export interface SharedSessionFields {
|
|
15
|
+
/** Organization slug for the new session. */
|
|
14
16
|
readonly org: string;
|
|
17
|
+
/** Workspace source entries to attach to the session. */
|
|
15
18
|
readonly workspaceEntries?: WorkspaceEntryInput[];
|
|
19
|
+
/** Initial conversation subject (defaults to `PENDING_SUBJECT`). */
|
|
16
20
|
readonly subject?: string;
|
|
21
|
+
/** MCP server configurations to include for tool access. */
|
|
17
22
|
readonly mcpServerUsages?: McpServerUsageInput[];
|
|
23
|
+
/** Skill references to enable for executions in this session. */
|
|
18
24
|
readonly skillRefs?: ResourceRef[];
|
|
19
25
|
}
|
|
20
26
|
|
|
@@ -32,8 +38,18 @@ interface SharedSessionFields {
|
|
|
32
38
|
*/
|
|
33
39
|
export type CreateSessionInput = SharedSessionFields &
|
|
34
40
|
(
|
|
35
|
-
| {
|
|
36
|
-
|
|
41
|
+
| {
|
|
42
|
+
/** Pre-provisioned AgentInstance ID to bind the session to. */
|
|
43
|
+
readonly agentInstanceId: string;
|
|
44
|
+
/** @internal Discriminant — excluded when `agentInstanceId` is provided. */
|
|
45
|
+
readonly agentRef?: never;
|
|
46
|
+
}
|
|
47
|
+
| {
|
|
48
|
+
/** Agent blueprint reference resolved to its default instance at creation time. */
|
|
49
|
+
readonly agentRef: ResourceRef;
|
|
50
|
+
/** @internal Discriminant — excluded when `agentRef` is provided. */
|
|
51
|
+
readonly agentInstanceId?: never;
|
|
52
|
+
}
|
|
37
53
|
);
|
|
38
54
|
|
|
39
55
|
/** Resolved output of {@link UseCreateSessionReturn.create}. */
|
|
@@ -29,6 +29,30 @@ export interface UseSessionReturn {
|
|
|
29
29
|
*
|
|
30
30
|
* Returns the full proto {@link Session} resource so consumers have
|
|
31
31
|
* access to metadata, spec, and status without additional calls.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* function SessionDetail({ sessionId }: { sessionId: string }) {
|
|
36
|
+
* const { session, isLoading, error, refetch } = useSession(sessionId);
|
|
37
|
+
*
|
|
38
|
+
* if (isLoading) return <Skeleton />;
|
|
39
|
+
* if (error) return <ErrorMessage error={error} />;
|
|
40
|
+
* if (!session) return <NotFound />;
|
|
41
|
+
*
|
|
42
|
+
* return (
|
|
43
|
+
* <div>
|
|
44
|
+
* <h1>{session.status?.subject ?? "Untitled session"}</h1>
|
|
45
|
+
* <button onClick={refetch}>Refresh</button>
|
|
46
|
+
* </div>
|
|
47
|
+
* );
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* // Skip fetching until session ID is available
|
|
54
|
+
* const { session } = useSession(sessionId ?? null);
|
|
55
|
+
* ```
|
|
32
56
|
*/
|
|
33
57
|
export function useSession(id: string | null): UseSessionReturn {
|
|
34
58
|
const stigmer = useStigmer();
|
|
@@ -16,6 +16,7 @@ import { isTerminalPhase } from "../execution/execution-phases";
|
|
|
16
16
|
* Apply CTA is enabled in the preview modal.
|
|
17
17
|
*/
|
|
18
18
|
export interface SessionArtifactEntry {
|
|
19
|
+
/** The proto artifact record containing name, path, size, and download URL. */
|
|
19
20
|
readonly artifact: ExecutionArtifact;
|
|
20
21
|
/** ID of the execution that produced this artifact version. */
|
|
21
22
|
readonly executionId: string;
|
|
@@ -117,6 +117,7 @@ export interface UseSessionConversationReturn {
|
|
|
117
117
|
readonly isSending: boolean;
|
|
118
118
|
/** Error from the last sendFollowUp attempt, or null. */
|
|
119
119
|
readonly sendError: Error | null;
|
|
120
|
+
/** Reset `sendError` to `null`. */
|
|
120
121
|
readonly clearSendError: () => void;
|
|
121
122
|
|
|
122
123
|
/** The user's message text, shown in the thread before the stream delivers it. */
|
|
@@ -139,13 +140,19 @@ export interface UseSessionConversationReturn {
|
|
|
139
140
|
) => Promise<void>;
|
|
140
141
|
/** Set of tool call IDs currently being submitted for approval. */
|
|
141
142
|
readonly submittingApprovalIds: ReadonlySet<string>;
|
|
143
|
+
/** Error from the last approval submission, or `null` when healthy. */
|
|
142
144
|
readonly approvalError: Error | null;
|
|
145
|
+
/** Reset `approvalError` to `null`. */
|
|
143
146
|
readonly clearApprovalError: () => void;
|
|
144
147
|
|
|
148
|
+
/** `true` while the session or execution list is loading. */
|
|
145
149
|
readonly isLoading: boolean;
|
|
150
|
+
/** Error from session or execution list loading, or `null` when healthy. */
|
|
146
151
|
readonly loadError: Error | null;
|
|
147
152
|
|
|
153
|
+
/** Error from the execution stream, or `null` when healthy. */
|
|
148
154
|
readonly streamError: Error | null;
|
|
155
|
+
/** Reset the stream error and re-establish the execution stream subscription. */
|
|
149
156
|
readonly reconnectStream: () => void;
|
|
150
157
|
}
|
|
151
158
|
|
|
@@ -29,6 +29,29 @@ export interface UseSessionExecutionsReturn {
|
|
|
29
29
|
* Returns up to 100 executions per call. Sessions rarely exceed a
|
|
30
30
|
* handful of executions; full cursor-based pagination can be added
|
|
31
31
|
* later without breaking the return type.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* function ConversationThread({ sessionId }: { sessionId: string }) {
|
|
36
|
+
* const { executions, isLoading } = useSessionExecutions(sessionId);
|
|
37
|
+
* const stream = useExecutionStream(activeExecutionId);
|
|
38
|
+
*
|
|
39
|
+
* if (isLoading) return <Skeleton />;
|
|
40
|
+
*
|
|
41
|
+
* return (
|
|
42
|
+
* <MessageThread
|
|
43
|
+
* executions={executions}
|
|
44
|
+
* activeStreamExecution={stream.execution}
|
|
45
|
+
* />
|
|
46
|
+
* );
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* // Skip fetching until a session is selected
|
|
53
|
+
* const { executions } = useSessionExecutions(sessionId ?? null);
|
|
54
|
+
* ```
|
|
32
55
|
*/
|
|
33
56
|
export function useSessionExecutions(
|
|
34
57
|
sessionId: string | null,
|
|
@@ -37,6 +37,25 @@ const DEFAULT_PAGE_SIZE = 50;
|
|
|
37
37
|
*
|
|
38
38
|
* Returns up to `pageSize` sessions (default 50). Full cursor-based
|
|
39
39
|
* pagination can be added later without breaking the return type.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* function SessionSidebar() {
|
|
44
|
+
* const { sessions, isLoading, refetch } = useSessionList({ pageSize: 25 });
|
|
45
|
+
*
|
|
46
|
+
* if (isLoading) return <Skeleton />;
|
|
47
|
+
*
|
|
48
|
+
* return (
|
|
49
|
+
* <ul>
|
|
50
|
+
* {sessions.map((s) => (
|
|
51
|
+
* <li key={s.metadata?.id}>
|
|
52
|
+
* {s.status?.subject ?? "Untitled"}
|
|
53
|
+
* </li>
|
|
54
|
+
* ))}
|
|
55
|
+
* </ul>
|
|
56
|
+
* );
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
40
59
|
*/
|
|
41
60
|
export function useSessionList(
|
|
42
61
|
options?: UseSessionListOptions,
|
|
@@ -12,6 +12,7 @@ import type { WorkspaceWriteBack } from "@stigmer/protos/ai/stigmer/agentic/agen
|
|
|
12
12
|
* for traceability in the UI (e.g., tooltip or detail view).
|
|
13
13
|
*/
|
|
14
14
|
export interface SessionWriteBackEntry {
|
|
15
|
+
/** The proto write-back record containing branch, PR URL, and commit details. */
|
|
15
16
|
readonly writeBack: WorkspaceWriteBack;
|
|
16
17
|
/** ID of the execution that produced this write-back. */
|
|
17
18
|
readonly executionId: string;
|
|
@@ -28,6 +28,28 @@ export interface UseUpdateSessionReturn {
|
|
|
28
28
|
* {@link useSessionConversation} rather than used directly. Platform
|
|
29
29
|
* builders who need direct session mutation can use this hook
|
|
30
30
|
* standalone.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* function RenameSession({ session }: { session: Session }) {
|
|
35
|
+
* const { update, isUpdating, error } = useUpdateSession();
|
|
36
|
+
*
|
|
37
|
+
* async function handleRename(newSubject: string) {
|
|
38
|
+
* await update({
|
|
39
|
+
* name: session.metadata!.name,
|
|
40
|
+
* org: session.metadata!.org,
|
|
41
|
+
* agentInstanceId: session.spec?.agentInstanceId,
|
|
42
|
+
* subject: newSubject,
|
|
43
|
+
* });
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* return (
|
|
47
|
+
* <button onClick={() => handleRename("New subject")} disabled={isUpdating}>
|
|
48
|
+
* Rename
|
|
49
|
+
* </button>
|
|
50
|
+
* );
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
31
53
|
*/
|
|
32
54
|
export function useUpdateSession(): UseUpdateSessionReturn {
|
|
33
55
|
const stigmer = useStigmer();
|
|
@@ -58,6 +58,21 @@ const LIST_ID = "stgm-skill-list";
|
|
|
58
58
|
* Selected skills produce `ResourceRef[]` with `kind: skill`.
|
|
59
59
|
*
|
|
60
60
|
* All visual properties flow through `--stgm-*` tokens.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* function SkillSelector({ org }: { org: string }) {
|
|
65
|
+
* const [skills, setSkills] = useState<ResourceRef[]>([]);
|
|
66
|
+
*
|
|
67
|
+
* return (
|
|
68
|
+
* <SkillPicker
|
|
69
|
+
* org={org}
|
|
70
|
+
* value={skills}
|
|
71
|
+
* onChange={setSkills}
|
|
72
|
+
* />
|
|
73
|
+
* );
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
61
76
|
*/
|
|
62
77
|
export function SkillPicker({
|
|
63
78
|
org,
|