@dcdr/contracts 2.0.0 → 2.0.1
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/README.md +2 -2
- package/dist/cache.contract.d.ts +13 -0
- package/dist/cache.contract.d.ts.map +1 -0
- package/dist/cache.contract.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -240,7 +240,7 @@ npm i @dcdr/contracts
|
|
|
240
240
|
Example (internal/dev mode):
|
|
241
241
|
|
|
242
242
|
```ts
|
|
243
|
-
import { DcdrRuntimeClient } from "@dcdr/contracts
|
|
243
|
+
import { DcdrRuntimeClient } from "@dcdr/contracts";
|
|
244
244
|
|
|
245
245
|
const client = new DcdrRuntimeClient({
|
|
246
246
|
baseUrl: "http://localhost:8000",
|
|
@@ -260,7 +260,7 @@ console.log(res.status, res.output);
|
|
|
260
260
|
Example (customer mode / live):
|
|
261
261
|
|
|
262
262
|
```ts
|
|
263
|
-
import { DcdrRuntimeClient } from "@dcdr/contracts
|
|
263
|
+
import { DcdrRuntimeClient } from "@dcdr/contracts";
|
|
264
264
|
|
|
265
265
|
const client = new DcdrRuntimeClient({
|
|
266
266
|
// baseUrl defaults to https://runtime.dcdr.ai
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache-related shared constants.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Default Redis Pub/Sub channel name for tenant registry invalidation hints.
|
|
6
|
+
*
|
|
7
|
+
* Notes
|
|
8
|
+
* - Intended for backend-driven (preferred) or runtime-driven invalidation broadcasts.
|
|
9
|
+
* - Pub/Sub is server-global; this channel name does not depend on Redis `db` selection.
|
|
10
|
+
* - Keep this stable (cross-service coordination).
|
|
11
|
+
*/
|
|
12
|
+
export declare const DCDR_TENANT_REGISTRY_INVALIDATION_CHANNEL = "dcdr:tenant-registry:invalidate";
|
|
13
|
+
//# sourceMappingURL=cache.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.contract.d.ts","sourceRoot":"","sources":["../src/cache.contract.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,yCAAyC,oCACnB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cache-related shared constants.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DCDR_TENANT_REGISTRY_INVALIDATION_CHANNEL = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Default Redis Pub/Sub channel name for tenant registry invalidation hints.
|
|
9
|
+
*
|
|
10
|
+
* Notes
|
|
11
|
+
* - Intended for backend-driven (preferred) or runtime-driven invalidation broadcasts.
|
|
12
|
+
* - Pub/Sub is server-global; this channel name does not depend on Redis `db` selection.
|
|
13
|
+
* - Keep this stable (cross-service coordination).
|
|
14
|
+
*/
|
|
15
|
+
exports.DCDR_TENANT_REGISTRY_INVALIDATION_CHANNEL = "dcdr:tenant-registry:invalidate";
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from "./capabilities.contract";
|
|
|
17
17
|
export * from "./subscription.contract";
|
|
18
18
|
export * from "./runtime.client";
|
|
19
19
|
export * from "./utils.contract";
|
|
20
|
+
export * from "./cache.contract";
|
|
20
21
|
export * from "./prompt-variable-schema.contract";
|
|
21
22
|
export * from "./registry.stats.contract";
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -33,5 +33,6 @@ __exportStar(require("./capabilities.contract"), exports);
|
|
|
33
33
|
__exportStar(require("./subscription.contract"), exports);
|
|
34
34
|
__exportStar(require("./runtime.client"), exports);
|
|
35
35
|
__exportStar(require("./utils.contract"), exports);
|
|
36
|
+
__exportStar(require("./cache.contract"), exports);
|
|
36
37
|
__exportStar(require("./prompt-variable-schema.contract"), exports);
|
|
37
38
|
__exportStar(require("./registry.stats.contract"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcdr/contracts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"homepage": "https://dcdr.ai",
|
|
5
5
|
"description": "TypeScript contracts and runtime client for DCDR intent-based AI execution",
|
|
6
6
|
"private": false,
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"exports": {
|
|
51
51
|
".": "./dist/index.js",
|
|
52
52
|
"./runtime.client": "./dist/runtime.client.js",
|
|
53
|
+
"./cache.contract": "./dist/cache.contract.js",
|
|
53
54
|
"./capabilities.contract": "./dist/capabilities.contract.js",
|
|
54
55
|
"./control.contract": "./dist/control.contract.js",
|
|
55
56
|
"./credentials.contract": "./dist/credentials.contract.js",
|