@covia/covia-sdk 1.10.0 → 1.11.0

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
@@ -463,8 +463,13 @@ declare class AssetManager {
463
463
  private _wrap;
464
464
  /**
465
465
  * List assets with pagination support
466
- * @param options - Pagination options (offset, limit)
466
+ * @param options - Pagination options (offset, limit). Pass
467
+ * `{ expand: 'metadata' }` to get each item's metadata inlined as
468
+ * `{id, metadata}` instead of a bare id string, sparing a per-id fetch.
467
469
  */
470
+ list(options: AssetListOptions & {
471
+ expand: 'metadata';
472
+ }): Promise<ExpandedAssetList>;
468
473
  list(options?: AssetListOptions): Promise<AssetList>;
469
474
  /**
470
475
  * List the authenticated caller's own assets — the per-user a/ namespace
@@ -692,7 +697,14 @@ interface SkillManagerVenue {
692
697
  declare class SkillManager {
693
698
  private venue;
694
699
  constructor(venue: SkillManagerVenue);
695
- /** Return every skill asset directly contained at `path`. */
700
+ /**
701
+ * Return every skill asset directly contained at `path`. A single entry
702
+ * that fails to resolve (e.g. a legacy bare-string alias the plain assets
703
+ * endpoint can't follow — see covia-ai/frontend#229) is skipped rather
704
+ * than failing the whole listing: one broken skill must not take down
705
+ * every other skill at this location, the same "don't discard what was
706
+ * already collected" principle this method already applies across pages.
707
+ */
696
708
  list(path: string): Promise<Skill[]>;
697
709
  /** Return the ordinary asset at exactly `path`, with typed skill metadata. */
698
710
  get(path: string): Promise<Skill>;
@@ -820,9 +832,14 @@ declare class Venue implements VenueInterface {
820
832
  getAsset(assetId: AssetID): Promise<Asset>;
821
833
  /**
822
834
  * List assets with pagination support (convenience delegate to venue.assets.list)
823
- * @param options - Pagination options (offset, limit)
824
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
825
- */
835
+ * @param options - Pagination options (offset, limit). Pass
836
+ * `{ expand: 'metadata' }` to get each item's metadata inlined.
837
+ * @returns {Promise<AssetList>} Paginated list of asset ids, or of
838
+ * `{id, metadata}` items when `expand: 'metadata'` is requested
839
+ */
840
+ listAssets(options: AssetListOptions & {
841
+ expand: 'metadata';
842
+ }): Promise<ExpandedAssetList>;
826
843
  listAssets(options?: AssetListOptions): Promise<AssetList>;
827
844
  /**
828
845
  * List all jobs
@@ -937,6 +954,9 @@ interface VenueInterface {
937
954
  getJob(jobId: string): Promise<Job>;
938
955
  listJobs(): Promise<string[]>;
939
956
  getAsset(assetId: AssetID): Promise<Asset>;
957
+ listAssets(options: AssetListOptions & {
958
+ expand: 'metadata';
959
+ }): Promise<ExpandedAssetList>;
940
960
  listAssets(options?: AssetListOptions): Promise<AssetList>;
941
961
  didDocument(): Promise<DIDDocument>;
942
962
  mcpDiscovery(): Promise<MCPDiscovery>;
@@ -1033,6 +1053,7 @@ interface StatsData {
1033
1053
  interface AssetListOptions {
1034
1054
  offset?: number;
1035
1055
  limit?: number;
1056
+ expand?: 'metadata';
1036
1057
  }
1037
1058
  interface AssetList {
1038
1059
  items: string[];
@@ -1040,6 +1061,16 @@ interface AssetList {
1040
1061
  offset: number;
1041
1062
  limit: number;
1042
1063
  }
1064
+ interface AssetListItem {
1065
+ id: string;
1066
+ metadata: AssetMetadata;
1067
+ }
1068
+ interface ExpandedAssetList {
1069
+ items: AssetListItem[];
1070
+ total: number;
1071
+ offset: number;
1072
+ limit: number;
1073
+ }
1043
1074
  interface AssetSummary {
1044
1075
  id: string;
1045
1076
  name?: string;
@@ -1859,4 +1890,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1859
1890
  */
1860
1891
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1861
1892
 
1862
- export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
1893
+ export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
package/dist/index.d.ts CHANGED
@@ -463,8 +463,13 @@ declare class AssetManager {
463
463
  private _wrap;
464
464
  /**
465
465
  * List assets with pagination support
466
- * @param options - Pagination options (offset, limit)
466
+ * @param options - Pagination options (offset, limit). Pass
467
+ * `{ expand: 'metadata' }` to get each item's metadata inlined as
468
+ * `{id, metadata}` instead of a bare id string, sparing a per-id fetch.
467
469
  */
470
+ list(options: AssetListOptions & {
471
+ expand: 'metadata';
472
+ }): Promise<ExpandedAssetList>;
468
473
  list(options?: AssetListOptions): Promise<AssetList>;
469
474
  /**
470
475
  * List the authenticated caller's own assets — the per-user a/ namespace
@@ -692,7 +697,14 @@ interface SkillManagerVenue {
692
697
  declare class SkillManager {
693
698
  private venue;
694
699
  constructor(venue: SkillManagerVenue);
695
- /** Return every skill asset directly contained at `path`. */
700
+ /**
701
+ * Return every skill asset directly contained at `path`. A single entry
702
+ * that fails to resolve (e.g. a legacy bare-string alias the plain assets
703
+ * endpoint can't follow — see covia-ai/frontend#229) is skipped rather
704
+ * than failing the whole listing: one broken skill must not take down
705
+ * every other skill at this location, the same "don't discard what was
706
+ * already collected" principle this method already applies across pages.
707
+ */
696
708
  list(path: string): Promise<Skill[]>;
697
709
  /** Return the ordinary asset at exactly `path`, with typed skill metadata. */
698
710
  get(path: string): Promise<Skill>;
@@ -820,9 +832,14 @@ declare class Venue implements VenueInterface {
820
832
  getAsset(assetId: AssetID): Promise<Asset>;
821
833
  /**
822
834
  * List assets with pagination support (convenience delegate to venue.assets.list)
823
- * @param options - Pagination options (offset, limit)
824
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
825
- */
835
+ * @param options - Pagination options (offset, limit). Pass
836
+ * `{ expand: 'metadata' }` to get each item's metadata inlined.
837
+ * @returns {Promise<AssetList>} Paginated list of asset ids, or of
838
+ * `{id, metadata}` items when `expand: 'metadata'` is requested
839
+ */
840
+ listAssets(options: AssetListOptions & {
841
+ expand: 'metadata';
842
+ }): Promise<ExpandedAssetList>;
826
843
  listAssets(options?: AssetListOptions): Promise<AssetList>;
827
844
  /**
828
845
  * List all jobs
@@ -937,6 +954,9 @@ interface VenueInterface {
937
954
  getJob(jobId: string): Promise<Job>;
938
955
  listJobs(): Promise<string[]>;
939
956
  getAsset(assetId: AssetID): Promise<Asset>;
957
+ listAssets(options: AssetListOptions & {
958
+ expand: 'metadata';
959
+ }): Promise<ExpandedAssetList>;
940
960
  listAssets(options?: AssetListOptions): Promise<AssetList>;
941
961
  didDocument(): Promise<DIDDocument>;
942
962
  mcpDiscovery(): Promise<MCPDiscovery>;
@@ -1033,6 +1053,7 @@ interface StatsData {
1033
1053
  interface AssetListOptions {
1034
1054
  offset?: number;
1035
1055
  limit?: number;
1056
+ expand?: 'metadata';
1036
1057
  }
1037
1058
  interface AssetList {
1038
1059
  items: string[];
@@ -1040,6 +1061,16 @@ interface AssetList {
1040
1061
  offset: number;
1041
1062
  limit: number;
1042
1063
  }
1064
+ interface AssetListItem {
1065
+ id: string;
1066
+ metadata: AssetMetadata;
1067
+ }
1068
+ interface ExpandedAssetList {
1069
+ items: AssetListItem[];
1070
+ total: number;
1071
+ offset: number;
1072
+ limit: number;
1073
+ }
1043
1074
  interface AssetSummary {
1044
1075
  id: string;
1045
1076
  name?: string;
@@ -1859,4 +1890,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1859
1890
  */
1860
1891
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1861
1892
 
1862
- export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
1893
+ export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
package/dist/index.js CHANGED
@@ -2311,16 +2311,15 @@ var AssetManager = class {
2311
2311
  }
2312
2312
  return new DataAsset(assetId, this.venue, data);
2313
2313
  }
2314
- /**
2315
- * List assets with pagination support
2316
- * @param options - Pagination options (offset, limit)
2317
- */
2318
2314
  async list(options = {}) {
2319
2315
  const params = new URLSearchParams();
2320
2316
  params.set("offset", String(options.offset ?? 0));
2321
2317
  if (options.limit !== void 0) {
2322
2318
  params.set("limit", String(options.limit));
2323
2319
  }
2320
+ if (options.expand !== void 0) {
2321
+ params.set("expand", options.expand);
2322
+ }
2324
2323
  return venueJson(
2325
2324
  this.venue,
2326
2325
  `/api/v1/assets?${params.toString()}`,
@@ -2681,7 +2680,14 @@ var SkillManager = class {
2681
2680
  constructor(venue) {
2682
2681
  this.venue = venue;
2683
2682
  }
2684
- /** Return every skill asset directly contained at `path`. */
2683
+ /**
2684
+ * Return every skill asset directly contained at `path`. A single entry
2685
+ * that fails to resolve (e.g. a legacy bare-string alias the plain assets
2686
+ * endpoint can't follow — see covia-ai/frontend#229) is skipped rather
2687
+ * than failing the whole listing: one broken skill must not take down
2688
+ * every other skill at this location, the same "don't discard what was
2689
+ * already collected" principle this method already applies across pages.
2690
+ */
2685
2691
  async list(path) {
2686
2692
  const location = path.replace(/\/+$/, "");
2687
2693
  const skills = [];
@@ -2693,10 +2699,12 @@ var SkillManager = class {
2693
2699
  throw new CoviaError(`Skill listing at ${location} disappeared mid-listing`);
2694
2700
  }
2695
2701
  const keys = page.keys ?? [];
2696
- const assets = await Promise.all(
2702
+ const results = await Promise.allSettled(
2697
2703
  keys.map((key) => this.get(`${location}/${key}`))
2698
2704
  );
2699
- skills.push(...assets);
2705
+ for (const result of results) {
2706
+ if (result.status === "fulfilled") skills.push(result.value);
2707
+ }
2700
2708
  const nextOffset = (page.offset ?? offset) + keys.length;
2701
2709
  if (keys.length === 0 || nextOffset >= (page.count ?? nextOffset)) break;
2702
2710
  if (nextOffset <= offset) {
@@ -3096,11 +3104,6 @@ var Venue = class _Venue {
3096
3104
  async getAsset(assetId) {
3097
3105
  return this.assets.get(assetId);
3098
3106
  }
3099
- /**
3100
- * List assets with pagination support (convenience delegate to venue.assets.list)
3101
- * @param options - Pagination options (offset, limit)
3102
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
3103
- */
3104
3107
  async listAssets(options = {}) {
3105
3108
  return this.assets.list(options);
3106
3109
  }
package/dist/index.mjs CHANGED
@@ -2309,16 +2309,15 @@ var AssetManager = class {
2309
2309
  }
2310
2310
  return new DataAsset(assetId, this.venue, data);
2311
2311
  }
2312
- /**
2313
- * List assets with pagination support
2314
- * @param options - Pagination options (offset, limit)
2315
- */
2316
2312
  async list(options = {}) {
2317
2313
  const params = new URLSearchParams();
2318
2314
  params.set("offset", String(options.offset ?? 0));
2319
2315
  if (options.limit !== void 0) {
2320
2316
  params.set("limit", String(options.limit));
2321
2317
  }
2318
+ if (options.expand !== void 0) {
2319
+ params.set("expand", options.expand);
2320
+ }
2322
2321
  return venueJson(
2323
2322
  this.venue,
2324
2323
  `/api/v1/assets?${params.toString()}`,
@@ -2679,7 +2678,14 @@ var SkillManager = class {
2679
2678
  constructor(venue) {
2680
2679
  this.venue = venue;
2681
2680
  }
2682
- /** Return every skill asset directly contained at `path`. */
2681
+ /**
2682
+ * Return every skill asset directly contained at `path`. A single entry
2683
+ * that fails to resolve (e.g. a legacy bare-string alias the plain assets
2684
+ * endpoint can't follow — see covia-ai/frontend#229) is skipped rather
2685
+ * than failing the whole listing: one broken skill must not take down
2686
+ * every other skill at this location, the same "don't discard what was
2687
+ * already collected" principle this method already applies across pages.
2688
+ */
2683
2689
  async list(path) {
2684
2690
  const location = path.replace(/\/+$/, "");
2685
2691
  const skills = [];
@@ -2691,10 +2697,12 @@ var SkillManager = class {
2691
2697
  throw new CoviaError(`Skill listing at ${location} disappeared mid-listing`);
2692
2698
  }
2693
2699
  const keys = page.keys ?? [];
2694
- const assets = await Promise.all(
2700
+ const results = await Promise.allSettled(
2695
2701
  keys.map((key) => this.get(`${location}/${key}`))
2696
2702
  );
2697
- skills.push(...assets);
2703
+ for (const result of results) {
2704
+ if (result.status === "fulfilled") skills.push(result.value);
2705
+ }
2698
2706
  const nextOffset = (page.offset ?? offset) + keys.length;
2699
2707
  if (keys.length === 0 || nextOffset >= (page.count ?? nextOffset)) break;
2700
2708
  if (nextOffset <= offset) {
@@ -3094,11 +3102,6 @@ var Venue = class _Venue {
3094
3102
  async getAsset(assetId) {
3095
3103
  return this.assets.get(assetId);
3096
3104
  }
3097
- /**
3098
- * List assets with pagination support (convenience delegate to venue.assets.list)
3099
- * @param options - Pagination options (offset, limit)
3100
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
3101
- */
3102
3105
  async listAssets(options = {}) {
3103
3106
  return this.assets.list(options);
3104
3107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covia/covia-sdk",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Typescript library for covia-ai",
5
5
  "packageManager": "pnpm@11.9.0",
6
6
  "main": "./dist/index.js",