dsh-mnemon-strategy-default-three-tier 0.5.4 → 0.5.5
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 +10 -0
- package/lib/extension-sdk.d.ts +3 -1
- package/lib/extension-sdk.js +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,6 +20,16 @@ Host renders them for the selected turn; a different Strategy does not inherit
|
|
|
20
20
|
this plugin's instructions. DSH-assisted write/archival workflows remain Host
|
|
21
21
|
adapters over Source operations; Core does not schedule autonomous maintenance.
|
|
22
22
|
|
|
23
|
+
The public `threeTierActionWorkflow` policy in `./extension-sdk` identifies Runtime
|
|
24
|
+
capacity maintenance only while this Strategy is selected. The DSH Host applies
|
|
25
|
+
it to named tools, generic View Actions, child writes and browser management.
|
|
26
|
+
The operation retains its exact Source instance, scope, revision and authority;
|
|
27
|
+
archive destinations stay within the selected writable Source and pinned
|
|
28
|
+
namespaces. A browser write needs no conversation. One eligible destination
|
|
29
|
+
requires no model; routing and local profile compaction use a clean workspace
|
|
30
|
+
task Agent when needed. Sources retain their independent storage protocols,
|
|
31
|
+
and other Strategies do not acquire this workflow implicitly.
|
|
32
|
+
|
|
23
33
|
## Additive plugins
|
|
24
34
|
|
|
25
35
|
The selected complete Strategy still produces one View. Its optional, exclusive
|
package/lib/extension-sdk.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ type ThreeTierExtensionValues = {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
type ThreeTierExtensionSlot = keyof ThreeTierExtensionValues;
|
|
19
|
+
/** Pure default-product policy. The Host executes it through public Source protocols. */
|
|
20
|
+
declare function threeTierActionWorkflow(strategyTypeId: string, sourceTypeId: string, actionId: string): 'runtime-capacity' | undefined;
|
|
19
21
|
declare function validateThreeTierExtension<K extends ThreeTierExtensionSlot>(slot: K, value: MemoryJsonValue): ThreeTierExtensionValues[K];
|
|
20
22
|
declare function defineThreeTierExtension<K extends ThreeTierExtensionSlot>(definition: {
|
|
21
23
|
typeId: string;
|
|
@@ -25,4 +27,4 @@ declare function defineThreeTierExtension<K extends ThreeTierExtensionSlot>(defi
|
|
|
25
27
|
}): MemoryStrategyExtensionDefinition;
|
|
26
28
|
declare function threeTierContributions(values: readonly MemoryStrategyContribution[]): Partial<ThreeTierExtensionValues>;
|
|
27
29
|
//#endregion
|
|
28
|
-
export { ThreeTierExtensionSlot, ThreeTierExtensionValues, defineThreeTierExtension, threeTierContributions, validateThreeTierExtension };
|
|
30
|
+
export { ThreeTierExtensionSlot, ThreeTierExtensionValues, defineThreeTierExtension, threeTierActionWorkflow, threeTierContributions, validateThreeTierExtension };
|
package/lib/extension-sdk.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { defineMemoryStrategyExtension, memoryInputInteger, memoryInputRecord, memoryInputText } from "dsh-mnemon/extension-sdk";
|
|
2
2
|
import { COMPOSABLE_MEMORY_API_VERSION } from "dsh-mnemon/contracts";
|
|
3
3
|
//#region src/extension-sdk.ts
|
|
4
|
+
/** Pure default-product policy. The Host executes it through public Source protocols. */
|
|
5
|
+
function threeTierActionWorkflow(strategyTypeId, sourceTypeId, actionId) {
|
|
6
|
+
return strategyTypeId === "default-three-tier" && sourceTypeId === "runtime" && actionId === "mutate" ? "runtime-capacity" : void 0;
|
|
7
|
+
}
|
|
4
8
|
function keys(value, label) {
|
|
5
9
|
if (!Array.isArray(value) || value.length > 32 || value.some((key) => typeof key !== "string" || !/^source:[a-zA-Z0-9][a-zA-Z0-9._:/-]{0,292}$/u.test(key))) throw new Error(`${label} must contain at most 32 exact Source instance keys`);
|
|
6
10
|
if (new Set(value).size !== value.length) throw new Error(`${label} contains duplicate Source keys`);
|
|
@@ -62,4 +66,4 @@ function threeTierContributions(values) {
|
|
|
62
66
|
return output;
|
|
63
67
|
}
|
|
64
68
|
//#endregion
|
|
65
|
-
export { defineThreeTierExtension, threeTierContributions, validateThreeTierExtension };
|
|
69
|
+
export { defineThreeTierExtension, threeTierActionWorkflow, threeTierContributions, validateThreeTierExtension };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-strategy-default-three-tier",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Explicit three-tier View Strategy for Composable View Memory.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|
|
37
|
-
"dsh-mnemon": "^0.5.
|
|
37
|
+
"dsh-mnemon": "^0.5.6",
|
|
38
38
|
"tsdown": "^0.22.0",
|
|
39
39
|
"typescript": "^5.9.0",
|
|
40
40
|
"vitest": "^3.2.0"
|