@greatapps/greatagents-ui 0.3.9 → 0.3.11
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/dist/index.d.ts +13 -0
- package/dist/index.js +1059 -1001
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/capabilities/advanced-tab.tsx +1 -18
- package/src/components/capabilities/capabilities-tab.tsx +11 -47
- package/src/components/capabilities/integration-card.tsx +79 -10
- package/src/components/capabilities/integration-wizard.tsx +9 -4
- package/src/components/capabilities/integrations-tab.tsx +60 -8
- package/src/hooks/use-integrations.ts +69 -22
- package/src/types/index.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,8 @@ interface ToolCredential {
|
|
|
128
128
|
id: number;
|
|
129
129
|
id_account: number;
|
|
130
130
|
id_tool: number;
|
|
131
|
+
id_platform_integration: number | null;
|
|
132
|
+
external_reference: string | null;
|
|
131
133
|
label: string;
|
|
132
134
|
credentials_encrypted: string;
|
|
133
135
|
expires_at: string | null;
|
|
@@ -472,11 +474,22 @@ interface IntegrationCardData {
|
|
|
472
474
|
sharedByAgentsCount: number;
|
|
473
475
|
/** Whether this agent has a linked agent_tool for this integration */
|
|
474
476
|
linkedToAgent: boolean;
|
|
477
|
+
/** Credential ID — set for connected/expired cards, undefined for "add new" */
|
|
478
|
+
credentialId?: number;
|
|
479
|
+
/** Account label (email or label from credential) */
|
|
480
|
+
accountLabel?: string;
|
|
481
|
+
/** Whether this is the "add new account" card */
|
|
482
|
+
isAddNew?: boolean;
|
|
475
483
|
}
|
|
476
484
|
/**
|
|
477
485
|
* Cross-references the static integrations registry with live data
|
|
478
486
|
* (tools, tool_credentials, agent_tools) to produce card state for each
|
|
479
487
|
* integration entry.
|
|
488
|
+
*
|
|
489
|
+
* Returns:
|
|
490
|
+
* - One card per existing credential (connected/expired)
|
|
491
|
+
* - One "add new" card per integration type
|
|
492
|
+
* - Coming soon cards as before
|
|
480
493
|
*/
|
|
481
494
|
declare function useIntegrationState(config: GagentsHookConfig, agentId: number | null): {
|
|
482
495
|
cards: IntegrationCardData[];
|