@cadenya/cadenya 0.61.0 → 0.63.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/CHANGELOG.md +28 -0
- package/client.d.mts +13 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -0
- package/client.d.ts.map +1 -1
- package/client.js +24 -0
- package/client.js.map +1 -1
- package/client.mjs +24 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +288 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +288 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +51 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +46 -0
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -0
- package/resources/bulk-workspace-resources/index.d.mts +3 -0
- package/resources/bulk-workspace-resources/index.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/index.d.ts +3 -0
- package/resources/bulk-workspace-resources/index.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/index.js +9 -0
- package/resources/bulk-workspace-resources/index.js.map +1 -0
- package/resources/bulk-workspace-resources/index.mjs +4 -0
- package/resources/bulk-workspace-resources/index.mjs.map +1 -0
- package/resources/bulk-workspace-resources/results.d.mts +638 -0
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -0
- package/resources/bulk-workspace-resources/results.d.ts +638 -0
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -0
- package/resources/bulk-workspace-resources/results.js +27 -0
- package/resources/bulk-workspace-resources/results.js.map +1 -0
- package/resources/bulk-workspace-resources/results.mjs +23 -0
- package/resources/bulk-workspace-resources/results.mjs.map +1 -0
- package/resources/bulk-workspace-resources.d.mts +2 -0
- package/resources/bulk-workspace-resources.d.mts.map +1 -0
- package/resources/bulk-workspace-resources.d.ts +2 -0
- package/resources/bulk-workspace-resources.d.ts.map +1 -0
- package/resources/bulk-workspace-resources.js +6 -0
- package/resources/bulk-workspace-resources.js.map +1 -0
- package/resources/bulk-workspace-resources.mjs +3 -0
- package/resources/bulk-workspace-resources.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +63 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +409 -0
- package/src/resources/bulk-workspace-resources/index.ts +37 -0
- package/src/resources/bulk-workspace-resources/results.ts +821 -0
- package/src/resources/bulk-workspace-resources.ts +3 -0
- package/src/resources/index.ts +19 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Results = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* BulkWorkspaceResources is the workspace-scoped service that applies
|
|
10
|
+
* a declarative bundle of workspace resources (tool sets, memory
|
|
11
|
+
* layers, agents, variations, assignments, schedules) in one async
|
|
12
|
+
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
13
|
+
* for the full design.
|
|
14
|
+
*
|
|
15
|
+
* Authentication: Bearer token (JWT)
|
|
16
|
+
* Scope: Workspace-level operations
|
|
17
|
+
*/
|
|
18
|
+
class Results extends resource_1.APIResource {
|
|
19
|
+
/**
|
|
20
|
+
* Lists each resource action recorded by a bulk workspace apply operation.
|
|
21
|
+
*/
|
|
22
|
+
list(bulkWorkspaceApplyID, query = {}, options) {
|
|
23
|
+
return this._client.getAPIList((0, path_1.path) `/v1/bulk_workspace_applies/${bulkWorkspaceApplyID}/results`, (pagination_1.CursorPagination), { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Results = Results;
|
|
27
|
+
//# sourceMappingURL=results.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../src/resources/bulk-workspace-resources/results.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AASlD,yDAAmG;AAEnG,uDAAiD;AAEjD;;;;;;;;;GASG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CACF,oBAA4B,EAC5B,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,8BAA8B,oBAAoB,UAAU,EAChE,CAAA,6BAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAfD,0BAeC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* BulkWorkspaceResources is the workspace-scoped service that applies
|
|
7
|
+
* a declarative bundle of workspace resources (tool sets, memory
|
|
8
|
+
* layers, agents, variations, assignments, schedules) in one async
|
|
9
|
+
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
10
|
+
* for the full design.
|
|
11
|
+
*
|
|
12
|
+
* Authentication: Bearer token (JWT)
|
|
13
|
+
* Scope: Workspace-level operations
|
|
14
|
+
*/
|
|
15
|
+
export class Results extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Lists each resource action recorded by a bulk workspace apply operation.
|
|
18
|
+
*/
|
|
19
|
+
list(bulkWorkspaceApplyID, query = {}, options) {
|
|
20
|
+
return this._client.getAPIList(path `/v1/bulk_workspace_applies/${bulkWorkspaceApplyID}/results`, (CursorPagination), { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=results.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.mjs","sourceRoot":"","sources":["../../src/resources/bulk-workspace-resources/results.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OASf,EAAE,gBAAgB,EAA4C;OAE9D,EAAE,IAAI,EAAE;AAEf;;;;;;;;;GASG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,oBAA4B,EAC5B,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,8BAA8B,oBAAoB,UAAU,EAChE,CAAA,gBAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-workspace-resources.d.mts","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-workspace-resources.d.ts","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./bulk-workspace-resources/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=bulk-workspace-resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-workspace-resources.js","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8EAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-workspace-resources.mjs","sourceRoot":"","sources":["../src/resources/bulk-workspace-resources.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./shared.mjs";
|
|
|
2
2
|
export { APIKeys, type APIKey, type APIKeyInfo, type APIKeySpec, type APIKeyCreateParams, type APIKeyUpdateParams, type APIKeyListParams, type APIKeysCursorPagination, } from "./api-keys.mjs";
|
|
3
3
|
export { AccountResource, type Account, type AccountSpec, type Profile, type ProfileSpec, type RotateWebhookSigningKeyResponse, } from "./account.mjs";
|
|
4
4
|
export { Agents, type Agent, type AgentInfo, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents/agents.mjs";
|
|
5
|
+
export { BulkWorkspaceResources, type AgentEntry, type AgentScheduleEntry, type AgentVariationEntry, type BulkWorkspaceApply, type BulkWorkspaceApplyData, type BulkWorkspaceApplyInfo, type BulkWorkspaceApplyStatus, type MemoryEntryItem, type MemoryLayerEntry, type ToolEntry, type ToolSetEntry, type VariationAssignmentEntry, type VariationMemoryLayerEntry, type BulkWorkspaceResourceListParams, type BulkWorkspaceResourceApplyParams, type BulkWorkspaceAppliesCursorPagination, } from "./bulk-workspace-resources/bulk-workspace-resources.mjs";
|
|
5
6
|
export { MemoryLayers, type MemoryLayer, type MemoryLayerInfo, type MemoryLayerSpec, type MemoryLayerCreateParams, type MemoryLayerUpdateParams, type MemoryLayerListParams, type MemoryLayersCursorPagination, } from "./memory-layers/memory-layers.mjs";
|
|
6
7
|
export { Models, type Model, type ModelSpec, type ModelListParams, type ModelSetStatusParams, type ModelsCursorPagination, } from "./models.mjs";
|
|
7
8
|
export { Objectives, type AssistantMessage, type AssistantToolCall, type CallableTool, type ContextWindowCompacted, type MemoryRead, type MemoryReference, type Objective, type ObjectiveContextWindow, type ObjectiveContextWindowData, type ObjectiveData, type ObjectiveDataSecret, type ObjectiveError, type ObjectiveEventData, type ObjectiveEventInfo, type ObjectiveEventWebhookData, type ObjectiveInfo, type ObjectiveStatus, type SubObjectiveCreated, type ToolApprovalRequested, type ToolApproved, type ToolCalled, type ToolDenied, type ToolError, type ToolResult, type UserMessage, type ObjectiveCompactResponse, type ObjectiveContinueResponse, type ObjectiveListEventsResponse, type ObjectiveCreateParams, type ObjectiveListParams, type ObjectiveCancelParams, type ObjectiveCompactParams, type ObjectiveContinueParams, type ObjectiveListContextWindowsParams, type ObjectiveListEventsParams, type ObjectivesCursorPagination, type ObjectiveContextWindowsCursorPagination, type ObjectiveListEventsResponsesCursorPagination, } from "./objectives/objectives.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B;OACM,EACL,eAAe,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AK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC5C,KAAK,4CAA4C,GAClD;OACM,EACL,MAAM,EACN,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC;OACM,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE;OACnF,EAAE,QAAQ,EAAE,KAAK,wBAAwB,EAAE,KAAK,kBAAkB,EAAE;OACpE,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACtC;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B;OACM,EACL,eAAe,EACf,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,K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BAA0B,GAChC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./shared.js";
|
|
|
2
2
|
export { APIKeys, type APIKey, type APIKeyInfo, type APIKeySpec, type APIKeyCreateParams, type APIKeyUpdateParams, type APIKeyListParams, type APIKeysCursorPagination, } from "./api-keys.js";
|
|
3
3
|
export { AccountResource, type Account, type AccountSpec, type Profile, type ProfileSpec, type RotateWebhookSigningKeyResponse, } from "./account.js";
|
|
4
4
|
export { Agents, type Agent, type AgentInfo, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents/agents.js";
|
|
5
|
+
export { BulkWorkspaceResources, type AgentEntry, type AgentScheduleEntry, type AgentVariationEntry, type BulkWorkspaceApply, type BulkWorkspaceApplyData, type BulkWorkspaceApplyInfo, type BulkWorkspaceApplyStatus, type MemoryEntryItem, type MemoryLayerEntry, type ToolEntry, type ToolSetEntry, type VariationAssignmentEntry, type VariationMemoryLayerEntry, type BulkWorkspaceResourceListParams, type BulkWorkspaceResourceApplyParams, type BulkWorkspaceAppliesCursorPagination, } from "./bulk-workspace-resources/bulk-workspace-resources.js";
|
|
5
6
|
export { MemoryLayers, type MemoryLayer, type MemoryLayerInfo, type MemoryLayerSpec, type MemoryLayerCreateParams, type MemoryLayerUpdateParams, type MemoryLayerListParams, type MemoryLayersCursorPagination, } from "./memory-layers/memory-layers.js";
|
|
6
7
|
export { Models, type Model, type ModelSpec, type ModelListParams, type ModelSetStatusParams, type ModelsCursorPagination, } from "./models.js";
|
|
7
8
|
export { Objectives, type AssistantMessage, type AssistantToolCall, type CallableTool, type ContextWindowCompacted, type MemoryRead, type MemoryReference, type Objective, type ObjectiveContextWindow, type ObjectiveContextWindowData, type ObjectiveData, type ObjectiveDataSecret, type ObjectiveError, type ObjectiveEventData, type ObjectiveEventInfo, type ObjectiveEventWebhookData, type ObjectiveInfo, type ObjectiveStatus, type SubObjectiveCreated, type ToolApprovalRequested, type ToolApproved, type ToolCalled, type ToolDenied, type ToolError, type ToolResult, type UserMessage, type ObjectiveCompactResponse, type ObjectiveContinueResponse, type ObjectiveListEventsResponse, type ObjectiveCreateParams, type ObjectiveListParams, type ObjectiveCancelParams, type ObjectiveCompactParams, type ObjectiveContinueParams, type ObjectiveListContextWindowsParams, type ObjectiveListEventsParams, type ObjectivesCursorPagination, type ObjectiveContextWindowsCursorPagination, type ObjectiveListEventsResponsesCursorPagination, } from "./objectives/objectives.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B;OACM,EACL,eAAe,EACf,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B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,wBAAwB,EAAE,KAAK,kBAAkB,EAAE;OACpE,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACtC;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B;OACM,EACL,eAAe,EACf,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,sBAAsB,EACtB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,GAC1C;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,E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,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC;OACM,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE;OACnF,EAAE,QAAQ,EAAE,KAAK,wBAAwB,EAAE,KAAK,kBAAkB,EAAE;OACpE,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACtC;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Workspaces = exports.WorkspaceSecrets = exports.Webhooks = exports.Uploads = exports.ToolSets = exports.Search = exports.Objectives = exports.Models = exports.MemoryLayers = exports.Agents = exports.AccountResource = exports.APIKeys = void 0;
|
|
4
|
+
exports.Workspaces = exports.WorkspaceSecrets = exports.Webhooks = exports.Uploads = exports.ToolSets = exports.Search = exports.Objectives = exports.Models = exports.MemoryLayers = exports.BulkWorkspaceResources = exports.Agents = exports.AccountResource = exports.APIKeys = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
7
|
var api_keys_1 = require("./api-keys.js");
|
|
@@ -10,6 +10,8 @@ var account_1 = require("./account.js");
|
|
|
10
10
|
Object.defineProperty(exports, "AccountResource", { enumerable: true, get: function () { return account_1.AccountResource; } });
|
|
11
11
|
var agents_1 = require("./agents/agents.js");
|
|
12
12
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
13
|
+
var bulk_workspace_resources_1 = require("./bulk-workspace-resources/bulk-workspace-resources.js");
|
|
14
|
+
Object.defineProperty(exports, "BulkWorkspaceResources", { enumerable: true, get: function () { return bulk_workspace_resources_1.BulkWorkspaceResources; } });
|
|
13
15
|
var memory_layers_1 = require("./memory-layers/memory-layers.js");
|
|
14
16
|
Object.defineProperty(exports, "MemoryLayers", { enumerable: true, get: function () { return memory_layers_1.MemoryLayers; } });
|
|
15
17
|
var models_1 = require("./models.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CASoB;AARlB,mGAAA,OAAO,OAAA;AAST,wCAOmB;AANjB,0GAAA,eAAe,OAAA;AAOjB,6CAUyB;AATvB,gGAAA,MAAM,OAAA;AAUR,kEASuC;AARrC,6GAAA,YAAY,OAAA;AASd,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,yDAwCiC;AAvC/B,wGAAA,UAAU,OAAA;AAwCZ,sCAIkB;AAHhB,gGAAA,MAAM,OAAA;AAIR,sDAoB+B;AAnB7B,qGAAA,QAAQ,OAAA;AAoBV,wCAA4G;AAAnG,kGAAA,OAAO,OAAA;AAChB,0CAA8F;AAArF,oGAAA,QAAQ,OAAA;AACjB,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,8CAMsB;AALpB,wGAAA,UAAU,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CASoB;AARlB,mGAAA,OAAO,OAAA;AAST,wCAOmB;AANjB,0GAAA,eAAe,OAAA;AAOjB,6CAUyB;AATvB,gGAAA,MAAM,OAAA;AAUR,mGAkB6D;AAjB3D,kIAAA,sBAAsB,OAAA;AAkBxB,kEASuC;AARrC,6GAAA,YAAY,OAAA;AASd,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,yDAwCiC;AAvC/B,wGAAA,UAAU,OAAA;AAwCZ,sCAIkB;AAHhB,gGAAA,MAAM,OAAA;AAIR,sDAoB+B;AAnB7B,qGAAA,QAAQ,OAAA;AAoBV,wCAA4G;AAAnG,kGAAA,OAAO,OAAA;AAChB,0CAA8F;AAArF,oGAAA,QAAQ,OAAA;AACjB,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,8CAMsB;AALpB,wGAAA,UAAU,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./shared.mjs";
|
|
|
3
3
|
export { APIKeys, } from "./api-keys.mjs";
|
|
4
4
|
export { AccountResource, } from "./account.mjs";
|
|
5
5
|
export { Agents, } from "./agents/agents.mjs";
|
|
6
|
+
export { BulkWorkspaceResources, } from "./bulk-workspace-resources/bulk-workspace-resources.mjs";
|
|
6
7
|
export { MemoryLayers, } from "./memory-layers/memory-layers.mjs";
|
|
7
8
|
export { Models, } from "./models.mjs";
|
|
8
9
|
export { Objectives, } from "./objectives/objectives.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,OAAO,GAQR;OACM,EACL,eAAe,GAMhB;OACM,EACL,MAAM,GASP;OACM,EACL,YAAY,GAQb;OACM,EACL,MAAM,GAMP;OACM,EACL,UAAU,GAuCX;OACM,EACL,MAAM,GAGP;OACM,EACL,QAAQ,GAmBT;OACM,EAAE,OAAO,EAA0E;OACnF,EAAE,QAAQ,EAA0D;OACpE,EACL,gBAAgB,GAQjB;OACM,EACL,UAAU,GAKX"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,OAAO,GAQR;OACM,EACL,eAAe,GAMhB;OACM,EACL,MAAM,GASP;OACM,EACL,sBAAsB,GAiBvB;OACM,EACL,YAAY,GAQb;OACM,EACL,MAAM,GAMP;OACM,EACL,UAAU,GAuCX;OACM,EACL,MAAM,GAGP;OACM,EACL,QAAQ,GAmBT;OACM,EAAE,OAAO,EAA0E;OACnF,EAAE,QAAQ,EAA0D;OACpE,EACL,gBAAgB,GAQjB;OACM,EACL,UAAU,GAKX"}
|
package/src/client.ts
CHANGED
|
@@ -86,6 +86,25 @@ import {
|
|
|
86
86
|
AgentsCursorPagination,
|
|
87
87
|
Page,
|
|
88
88
|
} from './resources/agents/agents';
|
|
89
|
+
import {
|
|
90
|
+
AgentEntry,
|
|
91
|
+
AgentScheduleEntry,
|
|
92
|
+
AgentVariationEntry,
|
|
93
|
+
BulkWorkspaceAppliesCursorPagination,
|
|
94
|
+
BulkWorkspaceApply,
|
|
95
|
+
BulkWorkspaceApplyData,
|
|
96
|
+
BulkWorkspaceApplyInfo,
|
|
97
|
+
BulkWorkspaceApplyStatus,
|
|
98
|
+
BulkWorkspaceResourceApplyParams,
|
|
99
|
+
BulkWorkspaceResourceListParams,
|
|
100
|
+
BulkWorkspaceResources,
|
|
101
|
+
MemoryEntryItem,
|
|
102
|
+
MemoryLayerEntry,
|
|
103
|
+
ToolEntry,
|
|
104
|
+
ToolSetEntry,
|
|
105
|
+
VariationAssignmentEntry,
|
|
106
|
+
VariationMemoryLayerEntry,
|
|
107
|
+
} from './resources/bulk-workspace-resources/bulk-workspace-resources';
|
|
89
108
|
import {
|
|
90
109
|
MemoryLayer,
|
|
91
110
|
MemoryLayerCreateParams,
|
|
@@ -317,6 +336,18 @@ export class Cadenya {
|
|
|
317
336
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
318
337
|
this.#encoder = Opts.FallbackEncoder;
|
|
319
338
|
|
|
339
|
+
const customHeadersEnv = readEnv('CADENYA_CUSTOM_HEADERS');
|
|
340
|
+
if (customHeadersEnv) {
|
|
341
|
+
const parsed: Record<string, string> = {};
|
|
342
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
343
|
+
const colon = line.indexOf(':');
|
|
344
|
+
if (colon >= 0) {
|
|
345
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
349
|
+
}
|
|
350
|
+
|
|
320
351
|
this._options = options;
|
|
321
352
|
|
|
322
353
|
this.apiKey = apiKey;
|
|
@@ -974,6 +1005,17 @@ export class Cadenya {
|
|
|
974
1005
|
*/
|
|
975
1006
|
workspaces: API.Workspaces = new API.Workspaces(this);
|
|
976
1007
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
1008
|
+
/**
|
|
1009
|
+
* BulkWorkspaceResources is the workspace-scoped service that applies
|
|
1010
|
+
* a declarative bundle of workspace resources (tool sets, memory
|
|
1011
|
+
* layers, agents, variations, assignments, schedules) in one async
|
|
1012
|
+
* operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
|
|
1013
|
+
* for the full design.
|
|
1014
|
+
*
|
|
1015
|
+
* Authentication: Bearer token (JWT)
|
|
1016
|
+
* Scope: Workspace-level operations
|
|
1017
|
+
*/
|
|
1018
|
+
bulkWorkspaceResources: API.BulkWorkspaceResources = new API.BulkWorkspaceResources(this);
|
|
977
1019
|
}
|
|
978
1020
|
|
|
979
1021
|
Cadenya.AccountResource = AccountResource;
|
|
@@ -988,6 +1030,7 @@ Cadenya.APIKeys = APIKeys;
|
|
|
988
1030
|
Cadenya.WorkspaceSecrets = WorkspaceSecrets;
|
|
989
1031
|
Cadenya.Workspaces = Workspaces;
|
|
990
1032
|
Cadenya.Webhooks = Webhooks;
|
|
1033
|
+
Cadenya.BulkWorkspaceResources = BulkWorkspaceResources;
|
|
991
1034
|
|
|
992
1035
|
export declare namespace Cadenya {
|
|
993
1036
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1153,6 +1196,26 @@ export declare namespace Cadenya {
|
|
|
1153
1196
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
1154
1197
|
};
|
|
1155
1198
|
|
|
1199
|
+
export {
|
|
1200
|
+
BulkWorkspaceResources as BulkWorkspaceResources,
|
|
1201
|
+
type AgentEntry as AgentEntry,
|
|
1202
|
+
type AgentScheduleEntry as AgentScheduleEntry,
|
|
1203
|
+
type AgentVariationEntry as AgentVariationEntry,
|
|
1204
|
+
type BulkWorkspaceApply as BulkWorkspaceApply,
|
|
1205
|
+
type BulkWorkspaceApplyData as BulkWorkspaceApplyData,
|
|
1206
|
+
type BulkWorkspaceApplyInfo as BulkWorkspaceApplyInfo,
|
|
1207
|
+
type BulkWorkspaceApplyStatus as BulkWorkspaceApplyStatus,
|
|
1208
|
+
type MemoryEntryItem as MemoryEntryItem,
|
|
1209
|
+
type MemoryLayerEntry as MemoryLayerEntry,
|
|
1210
|
+
type ToolEntry as ToolEntry,
|
|
1211
|
+
type ToolSetEntry as ToolSetEntry,
|
|
1212
|
+
type VariationAssignmentEntry as VariationAssignmentEntry,
|
|
1213
|
+
type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
|
|
1214
|
+
type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
|
|
1215
|
+
type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
|
|
1216
|
+
type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1156
1219
|
export type AccountResourceMetadata = API.AccountResourceMetadata;
|
|
1157
1220
|
export type BareMetadata = API.BareMetadata;
|
|
1158
1221
|
export type CreateOperationMetadata = API.CreateOperationMetadata;
|
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|