@vess-id/ai-identity 0.5.0-alpha.5 → 0.5.0-alpha.7

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.mts CHANGED
@@ -7418,6 +7418,14 @@ declare function getValidMcpActionNames(toolName: string): string[];
7418
7418
  */
7419
7419
  declare function normalizeMcpActionName(toolName: string, actionName: string): string;
7420
7420
 
7421
+ interface ActionParamDisplay {
7422
+ label: string;
7423
+ value: string;
7424
+ }
7425
+ declare const ACTION_PARAMS_MAX_SIZE = 10000;
7426
+ declare function generateActionSummary(action: string, params: Record<string, any> | undefined | null, maxLength?: number): string;
7427
+ declare function generateActionParamsDisplay(action: string, params: Record<string, any> | undefined | null): ActionParamDisplay[];
7428
+
7421
7429
  interface KeyPair {
7422
7430
  publicKey: any;
7423
7431
  privateKey: any;
@@ -7741,4 +7749,4 @@ declare function getTierLimits(tier: string | undefined | null): TierLimits;
7741
7749
 
7742
7750
  declare const version = "0.0.1";
7743
7751
 
7744
- export { type ABACPolicyEngine, ACTION_PREFIXES, ACTION_REGISTRY, AIdentityClient, type AIdentityConfig, AIdentityError, type APIAgent, type APICredential, APIVCManager, type AbacDecision, type AbacInput, type AcceptInvitationRequest, type AckEventResponse, type ActionInputSchema, type ActionMapping, type ActionMeta, type ActionRegistry, type ActionRiskLevel, type Agent, type AgentCreateOptions, type AgentDIDConfig, AgentDIDManager, AgentManager, AgentStatus, AgentType, type AgentWithId, AllowAllAbac, type AnyProvider, type ApiKeyValidationResult, type AuditEvent, type AuditQuery, AuthProvider, type AuthState, AuthenticationError, type AutoApproveConfig, type BindingSource, CANONICAL_PROVIDERS, type CanonicalProvider, type CapabilityMeta, type CheckGrantPermissionRequest, type CheckGrantPermissionResult, type CheckPermissionInput, type CheckPermissionResult, type CollectContextRequest, type ConfirmGrantSuggestionRequest, type ConnectorAction, type ConnectorConfig, type ConnectorExecutionContext, type ConnectorResponse, type ConnectorResponseMetadata, type ConnectorTokenConfig, type ConstraintEvaluationResult, ConstraintEvaluator, type ConstraintEvaluatorOptions, type ConstraintViolation, type ConstraintWarning, type ContextBindingSource, type ContextProvider, type CreateGrantRequest, type CreateInvitationRequest, type CreateReceiptRequest, type CredentialRef, CredentialStatus, type CredentialStore, CredentialType, DEFAULT_CONSTRAINTS_BY_RISK, type DIDDocument, type DataAccessVC, type DecisionTrace, type DelegationVC, DeviceEnrollManager, type DeviceEnrollPollResult, type DeviceEnrollServerSideParams, type DeviceEnrollStartParams, type DeviceEnrollStartResult, type DisclosureFields, DummyCreds, DummyVpVerifier, type EmployeeVPRequest, type EvaluationContext, type ExternalActionRequest, FilesystemKeyStorage, GatewayClient, GatewayError, type GatewayEvent, type GetEventsOptions, type GetEventsResponse, type GitHubConfig, type GoogleConfig, type Grant, type GrantConstraints, type GrantResource, GrantResourceType, GrantScope, GrantStatus, type GrantUsage, type IConnectorService, type IStateStore, type Intent, type IntentEvaluationResult, type IntentObligation, type IntentResource, InvalidVPError, type Invitation, type InvitationRole, InvitationStatus, type IssueSDJWTVCRequest, type IssueSDJWTVCResult, type JiraBoard, type JiraConfig, type JiraIssue, type JiraIssueType, type JiraProject, type JiraSprint, type JiraStatus, type JiraUser, type JiraWorklog, type JsonSchema, JsonStateStore, KeyManager, type KeyPairGenerationResult, type KeyStorageConfig, type KeyStorageProvider, LEGACY_RESOURCE_TYPE_MAP, type MemoryDocument, MemoryKeyStorage, MemoryManager, type MemoryQuery, type MemoryQueryResult, NetworkError, type NormalizeIntentRequest, type NormalizedIntent, type OAuthAuthorizeRequest, type OAuthCallbackParams, type OAuthConnection, OAuthProvider, type OAuthToken, type OrganizationConfig, type OrganizationPermission, type OrganizationPolicy, type OrganizationVC, PROVIDER_ALIASES, type ParamBindingSource, type ParsedResourceType, type PermissionConstraints, type PermissionMode, type PermissionResource, type PermissionRule, type PermissionTimeConstraint, type PermissionVcClaims, type PlanDelegationInput, type PlanDelegationResult, type PolicyCondition, type PolicyEvaluationResult, type PolicyInput, type PolicyRule, type PolicyTarget, type Provider, RESOURCE_TYPES, type ReBACChecker, type Receipt, type ReceiptListResult, type ReceiptOutcome, type ReceiptSearchQuery, ReceiptStatus, type Relation, type ResolvedTargets, type ResourceIdBinding, type ResourceRef, type ResourceScope, type ResourceType, type RiskAssessmentResult, type RiskFactor, type RiskLevel, SDJwtClient, ScopeUnmatchedError, type SecondaryBinding, SimpleRebac, type SlackConfig, StandardActionCategory, type SuggestGrantRequest, type SuggestedAction, type SuggestedConstraints, type SuggestedGrant, type SuggestedResource, type SuggestionRiskLevel, TIER_LIMITS, type TargetBindings, type TargetConstraint, TargetResolver, type TierLimits, type TimeWindowCheckResult, type TimeWindowConstraint, type ToolDefinition, type ToolInvocation, ToolManager, type ToolPermissionRequest, type ToolPermissionVC, type UnifiedResourceType, type UpdateGrantRequest, type UserIdentity, type UserIdentityConfig, type UserIdentityCreateOptions, UserIdentityManager, UserKeyPairManager, type UserTier, VALID_MCP_ACTIONS, VALID_MCP_TOOLS, VCExpiredError, VCManager, VCRevokedError, VCStatus, type VCTemplate, VCType, VPManager, type VPRequest, type VerifiablePresentation, type VerificationMethod, type VerifiedVcClaims, type VerifyInvitationResponse, type VerifyReceiptRequest, type VerifyReceiptResult, type VerifySDJWTVCResult, type VpVerifier, WRITE_ACTION_NAMES, type WeeklyReportData, type WeeklyReportSummary, buildGrantIdFields, canonicalizeAction, checkPermissionWithVP, configure, createAjv, createDidJwk, credentialStatusToVCStatus, defaultConstraintEvaluator, evaluateConstraints, extractPublicKey, extractPublicKeyFromDid, generateKeyPair, generateNonce, getActionAliases, getAllActionForms, getAllValidMcpActionNames, getClient, getDefaultDisclosureFields, getKeyIdFromDid, getRequiredRelations, getRequiredScopes, getTierLimits, getValidMcpActionNames, grantConstraintsToPermissionConstraints, grantToPermissionRules, indexActions, indexCapabilities, isActionEquivalent, isCanonicalProvider, isUnlimited, isValidDidJwk, isValidProvider, isWriteAction, loadActionRegistryFromFile, loadActionRegistryFromObject, normalizeMcpActionName, parseGrantAction, parseGrantResourceType, planDelegationForVC, publicKeysMatch, resolveActionsFromSelection, resolveProvider, resolveResourceType, resolveUserTier, signJWT, validateRegistryObject, vcStatusToCredentialStatus, verifyJWT, version };
7752
+ export { type ABACPolicyEngine, ACTION_PARAMS_MAX_SIZE, ACTION_PREFIXES, ACTION_REGISTRY, AIdentityClient, type AIdentityConfig, AIdentityError, type APIAgent, type APICredential, APIVCManager, type AbacDecision, type AbacInput, type AcceptInvitationRequest, type AckEventResponse, type ActionInputSchema, type ActionMapping, type ActionMeta, type ActionParamDisplay, type ActionRegistry, type ActionRiskLevel, type Agent, type AgentCreateOptions, type AgentDIDConfig, AgentDIDManager, AgentManager, AgentStatus, AgentType, type AgentWithId, AllowAllAbac, type AnyProvider, type ApiKeyValidationResult, type AuditEvent, type AuditQuery, AuthProvider, type AuthState, AuthenticationError, type AutoApproveConfig, type BindingSource, CANONICAL_PROVIDERS, type CanonicalProvider, type CapabilityMeta, type CheckGrantPermissionRequest, type CheckGrantPermissionResult, type CheckPermissionInput, type CheckPermissionResult, type CollectContextRequest, type ConfirmGrantSuggestionRequest, type ConnectorAction, type ConnectorConfig, type ConnectorExecutionContext, type ConnectorResponse, type ConnectorResponseMetadata, type ConnectorTokenConfig, type ConstraintEvaluationResult, ConstraintEvaluator, type ConstraintEvaluatorOptions, type ConstraintViolation, type ConstraintWarning, type ContextBindingSource, type ContextProvider, type CreateGrantRequest, type CreateInvitationRequest, type CreateReceiptRequest, type CredentialRef, CredentialStatus, type CredentialStore, CredentialType, DEFAULT_CONSTRAINTS_BY_RISK, type DIDDocument, type DataAccessVC, type DecisionTrace, type DelegationVC, DeviceEnrollManager, type DeviceEnrollPollResult, type DeviceEnrollServerSideParams, type DeviceEnrollStartParams, type DeviceEnrollStartResult, type DisclosureFields, DummyCreds, DummyVpVerifier, type EmployeeVPRequest, type EvaluationContext, type ExternalActionRequest, FilesystemKeyStorage, GatewayClient, GatewayError, type GatewayEvent, type GetEventsOptions, type GetEventsResponse, type GitHubConfig, type GoogleConfig, type Grant, type GrantConstraints, type GrantResource, GrantResourceType, GrantScope, GrantStatus, type GrantUsage, type IConnectorService, type IStateStore, type Intent, type IntentEvaluationResult, type IntentObligation, type IntentResource, InvalidVPError, type Invitation, type InvitationRole, InvitationStatus, type IssueSDJWTVCRequest, type IssueSDJWTVCResult, type JiraBoard, type JiraConfig, type JiraIssue, type JiraIssueType, type JiraProject, type JiraSprint, type JiraStatus, type JiraUser, type JiraWorklog, type JsonSchema, JsonStateStore, KeyManager, type KeyPairGenerationResult, type KeyStorageConfig, type KeyStorageProvider, LEGACY_RESOURCE_TYPE_MAP, type MemoryDocument, MemoryKeyStorage, MemoryManager, type MemoryQuery, type MemoryQueryResult, NetworkError, type NormalizeIntentRequest, type NormalizedIntent, type OAuthAuthorizeRequest, type OAuthCallbackParams, type OAuthConnection, OAuthProvider, type OAuthToken, type OrganizationConfig, type OrganizationPermission, type OrganizationPolicy, type OrganizationVC, PROVIDER_ALIASES, type ParamBindingSource, type ParsedResourceType, type PermissionConstraints, type PermissionMode, type PermissionResource, type PermissionRule, type PermissionTimeConstraint, type PermissionVcClaims, type PlanDelegationInput, type PlanDelegationResult, type PolicyCondition, type PolicyEvaluationResult, type PolicyInput, type PolicyRule, type PolicyTarget, type Provider, RESOURCE_TYPES, type ReBACChecker, type Receipt, type ReceiptListResult, type ReceiptOutcome, type ReceiptSearchQuery, ReceiptStatus, type Relation, type ResolvedTargets, type ResourceIdBinding, type ResourceRef, type ResourceScope, type ResourceType, type RiskAssessmentResult, type RiskFactor, type RiskLevel, SDJwtClient, ScopeUnmatchedError, type SecondaryBinding, SimpleRebac, type SlackConfig, StandardActionCategory, type SuggestGrantRequest, type SuggestedAction, type SuggestedConstraints, type SuggestedGrant, type SuggestedResource, type SuggestionRiskLevel, TIER_LIMITS, type TargetBindings, type TargetConstraint, TargetResolver, type TierLimits, type TimeWindowCheckResult, type TimeWindowConstraint, type ToolDefinition, type ToolInvocation, ToolManager, type ToolPermissionRequest, type ToolPermissionVC, type UnifiedResourceType, type UpdateGrantRequest, type UserIdentity, type UserIdentityConfig, type UserIdentityCreateOptions, UserIdentityManager, UserKeyPairManager, type UserTier, VALID_MCP_ACTIONS, VALID_MCP_TOOLS, VCExpiredError, VCManager, VCRevokedError, VCStatus, type VCTemplate, VCType, VPManager, type VPRequest, type VerifiablePresentation, type VerificationMethod, type VerifiedVcClaims, type VerifyInvitationResponse, type VerifyReceiptRequest, type VerifyReceiptResult, type VerifySDJWTVCResult, type VpVerifier, WRITE_ACTION_NAMES, type WeeklyReportData, type WeeklyReportSummary, buildGrantIdFields, canonicalizeAction, checkPermissionWithVP, configure, createAjv, createDidJwk, credentialStatusToVCStatus, defaultConstraintEvaluator, evaluateConstraints, extractPublicKey, extractPublicKeyFromDid, generateActionParamsDisplay, generateActionSummary, generateKeyPair, generateNonce, getActionAliases, getAllActionForms, getAllValidMcpActionNames, getClient, getDefaultDisclosureFields, getKeyIdFromDid, getRequiredRelations, getRequiredScopes, getTierLimits, getValidMcpActionNames, grantConstraintsToPermissionConstraints, grantToPermissionRules, indexActions, indexCapabilities, isActionEquivalent, isCanonicalProvider, isUnlimited, isValidDidJwk, isValidProvider, isWriteAction, loadActionRegistryFromFile, loadActionRegistryFromObject, normalizeMcpActionName, parseGrantAction, parseGrantResourceType, planDelegationForVC, publicKeysMatch, resolveActionsFromSelection, resolveProvider, resolveResourceType, resolveUserTier, signJWT, validateRegistryObject, vcStatusToCredentialStatus, verifyJWT, version };
package/dist/index.d.ts CHANGED
@@ -22,6 +22,8 @@ export type { GatewayEvent, GetEventsResponse, GetEventsOptions, AckEventRespons
22
22
  export { AuthProvider } from './auth/auth-provider';
23
23
  export type { AuthState } from './auth/auth-provider';
24
24
  export * from './registry';
25
+ export { generateActionSummary, generateActionParamsDisplay, ACTION_PARAMS_MAX_SIZE } from './registry/action-summary';
26
+ export type { ActionParamDisplay } from './registry/action-summary';
25
27
  export { generateKeyPair, signJWT, verifyJWT, generateNonce } from './utils/crypto';
26
28
  export { SDJwtClient } from './utils/sdjwt-client';
27
29
  export { createDidJwk, extractPublicKey, extractPublicKeyFromDid, isValidDidJwk, getKeyIdFromDid, publicKeysMatch, } from './did/did-utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGrD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,EACL,aAAa,EACb,cAAc,EACd,WAAW,EACX,iBAAiB,GAClB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,mCAAmC,CAAA;AAG1C,cAAc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2B,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACtH,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAGnE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGlD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAG3D,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG7E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGhF,eAAO,MAAM,OAAO,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ ACTION_PARAMS_MAX_SIZE: () => ACTION_PARAMS_MAX_SIZE,
33
34
  ACTION_PREFIXES: () => ACTION_PREFIXES,
34
35
  ACTION_REGISTRY: () => ACTION_REGISTRY,
35
36
  AIdentityClient: () => AIdentityClient,
@@ -97,6 +98,8 @@ __export(index_exports, {
97
98
  evaluateConstraints: () => evaluateConstraints,
98
99
  extractPublicKey: () => extractPublicKey,
99
100
  extractPublicKeyFromDid: () => extractPublicKeyFromDid,
101
+ generateActionParamsDisplay: () => generateActionParamsDisplay,
102
+ generateActionSummary: () => generateActionSummary,
100
103
  generateKeyPair: () => generateKeyPair,
101
104
  generateNonce: () => generateNonce,
102
105
  getActionAliases: () => getActionAliases,
@@ -4903,8 +4906,8 @@ var ACTION_REGISTRY = {
4903
4906
  action: "gmail.message.send",
4904
4907
  resource_type: "gmail:thread",
4905
4908
  required_relations: ["editor", "act_as"],
4906
- required_scopes: ["https://www.googleapis.com/auth/gmail.send"],
4907
- capability: "gmail.send",
4909
+ required_scopes: ["https://www.googleapis.com/auth/gmail.compose"],
4910
+ capability: "gmail.compose",
4908
4911
  input_schema: {
4909
4912
  type: "object",
4910
4913
  properties: {
@@ -4933,8 +4936,8 @@ var ACTION_REGISTRY = {
4933
4936
  action: "gmail.draft.create",
4934
4937
  resource_type: "gmail:thread",
4935
4938
  required_relations: ["editor", "act_as"],
4936
- required_scopes: ["https://www.googleapis.com/auth/gmail.send"],
4937
- capability: "gmail.send",
4939
+ required_scopes: ["https://www.googleapis.com/auth/gmail.compose"],
4940
+ capability: "gmail.compose",
4938
4941
  input_schema: {
4939
4942
  type: "object",
4940
4943
  properties: {
@@ -5552,7 +5555,7 @@ var ACTION_REGISTRY = {
5552
5555
  version: "1.0.0"
5553
5556
  },
5554
5557
  {
5555
- capability: "gmail.send",
5558
+ capability: "gmail.compose",
5556
5559
  description: "Send emails and create drafts via Gmail",
5557
5560
  includes: ["gmail.message.send", "gmail.draft.create"],
5558
5561
  version: "1.0.0"
@@ -5749,6 +5752,142 @@ function normalizeMcpActionName(toolName, actionName) {
5749
5752
  return actionName;
5750
5753
  }
5751
5754
 
5755
+ // src/registry/action-summary.ts
5756
+ var ACTION_DISPLAY_CONFIGS = {
5757
+ "slack.message.post": {
5758
+ summaryTemplate: (p) => {
5759
+ const parts = [];
5760
+ if (p.channel) parts.push(p.channel + ":");
5761
+ if (p.text) parts.push(String(p.text));
5762
+ return parts.join(" ");
5763
+ },
5764
+ displayFields: [
5765
+ { key: "channel", label: "Channel" },
5766
+ { key: "text", label: "Message" }
5767
+ ]
5768
+ },
5769
+ "gmail.message.send": {
5770
+ summaryTemplate: (p) => {
5771
+ const parts = [];
5772
+ if (p.to) parts.push(`To: ${p.to}`);
5773
+ if (p.subject) parts.push(`Subject: ${p.subject}`);
5774
+ return parts.join(", ");
5775
+ },
5776
+ displayFields: [
5777
+ { key: "to", label: "To" },
5778
+ { key: "subject", label: "Subject" },
5779
+ { key: "body", label: "Body" }
5780
+ ]
5781
+ },
5782
+ "gmail.draft.create": {
5783
+ summaryTemplate: (p) => {
5784
+ const parts = [];
5785
+ if (p.to) parts.push(`To: ${p.to}`);
5786
+ if (p.subject) parts.push(`Subject: ${p.subject}`);
5787
+ return parts.join(", ");
5788
+ },
5789
+ displayFields: [
5790
+ { key: "to", label: "To" },
5791
+ { key: "subject", label: "Subject" },
5792
+ { key: "body", label: "Body" }
5793
+ ]
5794
+ },
5795
+ "calendar.event.create": {
5796
+ summaryTemplate: (p) => {
5797
+ const parts = [];
5798
+ if (p.summary) parts.push(p.summary);
5799
+ if (p.start) parts.push(`(${p.start})`);
5800
+ return parts.join(" ");
5801
+ },
5802
+ displayFields: [
5803
+ { key: "summary", label: "Event" },
5804
+ { key: "start", label: "Start" },
5805
+ { key: "end", label: "End" },
5806
+ { key: "attendees", label: "Attendees" }
5807
+ ]
5808
+ },
5809
+ "calendar.event.update": {
5810
+ summaryTemplate: (p) => {
5811
+ const parts = [];
5812
+ if (p.summary) parts.push(p.summary);
5813
+ if (p.start) parts.push(`(${p.start})`);
5814
+ return parts.join(" ");
5815
+ },
5816
+ displayFields: [
5817
+ { key: "summary", label: "Event" },
5818
+ { key: "start", label: "Start" },
5819
+ { key: "end", label: "End" },
5820
+ { key: "attendees", label: "Attendees" }
5821
+ ]
5822
+ },
5823
+ "jira.issue.create": {
5824
+ summaryTemplate: (p) => {
5825
+ const parts = [];
5826
+ if (p.project) parts.push(`${p.project}:`);
5827
+ if (p.summary) parts.push(p.summary);
5828
+ return parts.join(" ");
5829
+ },
5830
+ displayFields: [
5831
+ { key: "project", label: "Project" },
5832
+ { key: "issuetype", label: "Type" },
5833
+ { key: "summary", label: "Summary" },
5834
+ { key: "description", label: "Description" }
5835
+ ]
5836
+ },
5837
+ "jira.issue.update": {
5838
+ summaryTemplate: (p) => {
5839
+ const parts = [];
5840
+ if (p.issueKey) parts.push(`${p.issueKey}:`);
5841
+ if (p.summary) parts.push(p.summary);
5842
+ return parts.join(" ");
5843
+ },
5844
+ displayFields: [
5845
+ { key: "issueKey", label: "Issue" },
5846
+ { key: "summary", label: "Summary" },
5847
+ { key: "description", label: "Description" }
5848
+ ]
5849
+ }
5850
+ };
5851
+ function truncate(text, maxLength) {
5852
+ if (text.length <= maxLength) return text;
5853
+ return text.slice(0, maxLength - 3) + "...";
5854
+ }
5855
+ function formatValue(value) {
5856
+ if (value === null || value === void 0) return "";
5857
+ if (Array.isArray(value)) return value.map(String).join(", ");
5858
+ if (typeof value === "object") return JSON.stringify(value);
5859
+ return String(value);
5860
+ }
5861
+ var ACTION_PARAMS_MAX_SIZE = 1e4;
5862
+ function generateActionSummary(action, params, maxLength = 50) {
5863
+ if (!params || Object.keys(params).length === 0) return "";
5864
+ const config = ACTION_DISPLAY_CONFIGS[action];
5865
+ if (config) {
5866
+ const raw = config.summaryTemplate(params);
5867
+ return raw ? truncate(raw, maxLength) : "";
5868
+ }
5869
+ for (const [key, val] of Object.entries(params)) {
5870
+ if (val !== null && val !== void 0 && typeof val !== "object") {
5871
+ return truncate(`${key}: ${String(val)}`, maxLength);
5872
+ }
5873
+ }
5874
+ return "";
5875
+ }
5876
+ function generateActionParamsDisplay(action, params) {
5877
+ if (!params || Object.keys(params).length === 0) return [];
5878
+ const config = ACTION_DISPLAY_CONFIGS[action];
5879
+ if (config) {
5880
+ return config.displayFields.filter((f) => params[f.key] !== void 0 && params[f.key] !== null).map((f) => ({
5881
+ label: f.label,
5882
+ value: formatValue(params[f.key])
5883
+ }));
5884
+ }
5885
+ return Object.entries(params).filter(([, v]) => v !== void 0 && v !== null).slice(0, 3).map(([key, val]) => ({
5886
+ label: key,
5887
+ value: formatValue(val)
5888
+ }));
5889
+ }
5890
+
5752
5891
  // src/resolver/target-resolver.ts
5753
5892
  var TargetResolver = class {
5754
5893
  /**
@@ -5843,6 +5982,7 @@ function getTierLimits(tier) {
5843
5982
  var version = "0.0.1";
5844
5983
  // Annotate the CommonJS export names for ESM import in node:
5845
5984
  0 && (module.exports = {
5985
+ ACTION_PARAMS_MAX_SIZE,
5846
5986
  ACTION_PREFIXES,
5847
5987
  ACTION_REGISTRY,
5848
5988
  AIdentityClient,
@@ -5910,6 +6050,8 @@ var version = "0.0.1";
5910
6050
  evaluateConstraints,
5911
6051
  extractPublicKey,
5912
6052
  extractPublicKeyFromDid,
6053
+ generateActionParamsDisplay,
6054
+ generateActionSummary,
5913
6055
  generateKeyPair,
5914
6056
  generateNonce,
5915
6057
  getActionAliases,