@inkeep/agents-core 0.0.0-dev-20251014190820 → 0.0.0-dev-20251014191727

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.cjs CHANGED
@@ -224409,6 +224409,21 @@ var KeyChainStore = class {
224409
224409
  const credential = await this.get(key);
224410
224410
  return credential !== null;
224411
224411
  }
224412
+ /**
224413
+ * Check if the credential store is available and functional
224414
+ */
224415
+ async checkAvailability() {
224416
+ await this.initializationPromise;
224417
+ if (!this.keytarAvailable || !this.keytar) {
224418
+ return {
224419
+ available: false,
224420
+ reason: "Keytar not available - cannot store credentials in system keychain"
224421
+ };
224422
+ }
224423
+ return {
224424
+ available: true
224425
+ };
224426
+ }
224412
224427
  /**
224413
224428
  * Delete a credential from the keychain
224414
224429
  */
@@ -224550,6 +224565,14 @@ var InMemoryCredentialStore = class {
224550
224565
  async delete(key) {
224551
224566
  return this.credentials.delete(key);
224552
224567
  }
224568
+ /**
224569
+ * Check if the credential store is available and functional
224570
+ */
224571
+ async checkAvailability() {
224572
+ return {
224573
+ available: true
224574
+ };
224575
+ }
224553
224576
  };
224554
224577
  var logger13 = getLogger("nango-credential-store");
224555
224578
  var CredentialKeySchema = zod.z.object({
@@ -224964,6 +224987,26 @@ var NangoCredentialStore = class {
224964
224987
  return false;
224965
224988
  }
224966
224989
  }
224990
+ /**
224991
+ * Check if the credential store is available and functional
224992
+ */
224993
+ async checkAvailability() {
224994
+ if (!this.nangoConfig.secretKey) {
224995
+ return {
224996
+ available: false,
224997
+ reason: "Nango secret key not configured"
224998
+ };
224999
+ }
225000
+ if (this.nangoConfig.secretKey.includes("mock") || this.nangoConfig.secretKey === "your_nango_secret_key") {
225001
+ return {
225002
+ available: false,
225003
+ reason: "Nango secret key appears to be a placeholder or mock value"
225004
+ };
225005
+ }
225006
+ return {
225007
+ available: true
225008
+ };
225009
+ }
224967
225010
  };
224968
225011
  function createNangoCredentialStore(id, config) {
224969
225012
  const nangoSecretKey = config?.secretKey || process.env.NANGO_SECRET_KEY;
@@ -224991,15 +225034,13 @@ function createDefaultCredentialStores() {
224991
225034
  })
224992
225035
  );
224993
225036
  }
224994
- if (process.env.ENABLE_KEYCHAIN_STORE === "true") {
224995
- try {
224996
- stores.push(createKeyChainStore("keychain-default"));
224997
- } catch (error) {
224998
- console.warn(
224999
- "Failed to create keychain store:",
225000
- error instanceof Error ? error.message : error
225001
- );
225002
- }
225037
+ try {
225038
+ stores.push(createKeyChainStore("keychain-default"));
225039
+ } catch (error) {
225040
+ console.warn(
225041
+ "Failed to create keychain store:",
225042
+ error instanceof Error ? error.message : error
225043
+ );
225003
225044
  }
225004
225045
  return stores;
225005
225046
  }
package/dist/index.d.cts CHANGED
@@ -471,6 +471,13 @@ declare class KeyChainStore implements CredentialStore {
471
471
  * Check if a credential exists in the keychain
472
472
  */
473
473
  has(key: string): Promise<boolean>;
474
+ /**
475
+ * Check if the credential store is available and functional
476
+ */
477
+ checkAvailability(): Promise<{
478
+ available: boolean;
479
+ reason?: string;
480
+ }>;
474
481
  /**
475
482
  * Delete a credential from the keychain
476
483
  */
@@ -555,6 +562,13 @@ declare class InMemoryCredentialStore implements CredentialStore {
555
562
  * @returns True if the credential was deleted, false otherwise
556
563
  */
557
564
  delete(key: string): Promise<boolean>;
565
+ /**
566
+ * Check if the credential store is available and functional
567
+ */
568
+ checkAvailability(): Promise<{
569
+ available: boolean;
570
+ reason?: string;
571
+ }>;
558
572
  }
559
573
 
560
574
  interface NangoConfig {
@@ -610,6 +624,13 @@ declare class NangoCredentialStore implements CredentialStore {
610
624
  * Delete credentials - not supported for Nango (revoke through Nango dashboard)
611
625
  */
612
626
  delete(key: string): Promise<boolean>;
627
+ /**
628
+ * Check if the credential store is available and functional
629
+ */
630
+ checkAvailability(): Promise<{
631
+ available: boolean;
632
+ reason?: string;
633
+ }>;
613
634
  }
614
635
  /**
615
636
  * Factory function to create NangoCredentialStore
package/dist/index.d.ts CHANGED
@@ -471,6 +471,13 @@ declare class KeyChainStore implements CredentialStore {
471
471
  * Check if a credential exists in the keychain
472
472
  */
473
473
  has(key: string): Promise<boolean>;
474
+ /**
475
+ * Check if the credential store is available and functional
476
+ */
477
+ checkAvailability(): Promise<{
478
+ available: boolean;
479
+ reason?: string;
480
+ }>;
474
481
  /**
475
482
  * Delete a credential from the keychain
476
483
  */
@@ -555,6 +562,13 @@ declare class InMemoryCredentialStore implements CredentialStore {
555
562
  * @returns True if the credential was deleted, false otherwise
556
563
  */
557
564
  delete(key: string): Promise<boolean>;
565
+ /**
566
+ * Check if the credential store is available and functional
567
+ */
568
+ checkAvailability(): Promise<{
569
+ available: boolean;
570
+ reason?: string;
571
+ }>;
558
572
  }
559
573
 
560
574
  interface NangoConfig {
@@ -610,6 +624,13 @@ declare class NangoCredentialStore implements CredentialStore {
610
624
  * Delete credentials - not supported for Nango (revoke through Nango dashboard)
611
625
  */
612
626
  delete(key: string): Promise<boolean>;
627
+ /**
628
+ * Check if the credential store is available and functional
629
+ */
630
+ checkAvailability(): Promise<{
631
+ available: boolean;
632
+ reason?: string;
633
+ }>;
613
634
  }
614
635
  /**
615
636
  * Factory function to create NangoCredentialStore
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-QFIITHNT.js';
2
2
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-TTIPV5QP.js';
3
+ export { TaskState } from './chunk-H2F72PDA.js';
3
4
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
4
5
  export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
5
- export { TaskState } from './chunk-H2F72PDA.js';
6
6
  import { validateAndTypeAgentData, validateAgentStructure, isInternalAgent, isExternalAgent } from './chunk-QEXLYPVZ.js';
7
7
  export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from './chunk-QEXLYPVZ.js';
8
8
  import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-XKJPMUGE.js';
@@ -221917,6 +221917,21 @@ var KeyChainStore = class {
221917
221917
  const credential = await this.get(key);
221918
221918
  return credential !== null;
221919
221919
  }
221920
+ /**
221921
+ * Check if the credential store is available and functional
221922
+ */
221923
+ async checkAvailability() {
221924
+ await this.initializationPromise;
221925
+ if (!this.keytarAvailable || !this.keytar) {
221926
+ return {
221927
+ available: false,
221928
+ reason: "Keytar not available - cannot store credentials in system keychain"
221929
+ };
221930
+ }
221931
+ return {
221932
+ available: true
221933
+ };
221934
+ }
221920
221935
  /**
221921
221936
  * Delete a credential from the keychain
221922
221937
  */
@@ -222058,6 +222073,14 @@ var InMemoryCredentialStore = class {
222058
222073
  async delete(key) {
222059
222074
  return this.credentials.delete(key);
222060
222075
  }
222076
+ /**
222077
+ * Check if the credential store is available and functional
222078
+ */
222079
+ async checkAvailability() {
222080
+ return {
222081
+ available: true
222082
+ };
222083
+ }
222061
222084
  };
222062
222085
  var logger12 = getLogger("nango-credential-store");
222063
222086
  var CredentialKeySchema = z$1.object({
@@ -222472,6 +222495,26 @@ var NangoCredentialStore = class {
222472
222495
  return false;
222473
222496
  }
222474
222497
  }
222498
+ /**
222499
+ * Check if the credential store is available and functional
222500
+ */
222501
+ async checkAvailability() {
222502
+ if (!this.nangoConfig.secretKey) {
222503
+ return {
222504
+ available: false,
222505
+ reason: "Nango secret key not configured"
222506
+ };
222507
+ }
222508
+ if (this.nangoConfig.secretKey.includes("mock") || this.nangoConfig.secretKey === "your_nango_secret_key") {
222509
+ return {
222510
+ available: false,
222511
+ reason: "Nango secret key appears to be a placeholder or mock value"
222512
+ };
222513
+ }
222514
+ return {
222515
+ available: true
222516
+ };
222517
+ }
222475
222518
  };
222476
222519
  function createNangoCredentialStore(id, config) {
222477
222520
  const nangoSecretKey = config?.secretKey || process.env.NANGO_SECRET_KEY;
@@ -222499,15 +222542,13 @@ function createDefaultCredentialStores() {
222499
222542
  })
222500
222543
  );
222501
222544
  }
222502
- if (process.env.ENABLE_KEYCHAIN_STORE === "true") {
222503
- try {
222504
- stores.push(createKeyChainStore("keychain-default"));
222505
- } catch (error) {
222506
- console.warn(
222507
- "Failed to create keychain store:",
222508
- error instanceof Error ? error.message : error
222509
- );
222510
- }
222545
+ try {
222546
+ stores.push(createKeyChainStore("keychain-default"));
222547
+ } catch (error) {
222548
+ console.warn(
222549
+ "Failed to create keychain store:",
222550
+ error instanceof Error ? error.message : error
222551
+ );
222511
222552
  }
222512
222553
  return stores;
222513
222554
  }
@@ -34,6 +34,14 @@ interface CredentialStore {
34
34
  * Delete a credential
35
35
  */
36
36
  delete(key: string): Promise<boolean>;
37
+ /**
38
+ * Check if the credential store is available and functional
39
+ * @returns Promise resolving to availability status and optional reason if unavailable
40
+ */
41
+ checkAvailability(): Promise<{
42
+ available: boolean;
43
+ reason?: string;
44
+ }>;
37
45
  }
38
46
  /**
39
47
  * Server configuration options for HTTP server behavior
@@ -34,6 +34,14 @@ interface CredentialStore {
34
34
  * Delete a credential
35
35
  */
36
36
  delete(key: string): Promise<boolean>;
37
+ /**
38
+ * Check if the credential store is available and functional
39
+ * @returns Promise resolving to availability status and optional reason if unavailable
40
+ */
41
+ checkAvailability(): Promise<{
42
+ available: boolean;
43
+ reason?: string;
44
+ }>;
37
45
  }
38
46
  /**
39
47
  * Server configuration options for HTTP server behavior
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20251014190820",
3
+ "version": "0.0.0-dev-20251014191727",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",