@deepstrike/wasm 0.2.40 → 0.2.41

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.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export { RuntimeRunner, collectText, runAgent, runFanout, InMemorySessionLog, LocalExecutionPlane, DEFAULT_NATIVE_SIGNAL_POLICY, DEFAULT_NATIVE_GOVERNANCE_POLICY, DEFAULT_SANDBOX_POLICY, assertNativeProfile, osProfile, validateDeclarativePolicy, ReplayProvider, extractRecordedMessages, judge, buildEvalMessages, parseVerdict, verdictOutputSchema, } from "./runtime/index.js";
2
2
  export * from "./runtime/kernel-transaction-log.js";
3
3
  export type { ReplayProviderOpts, Criterion, Verdict, VerdictDetail, JudgeArgs, } from "./runtime/index.js";
4
- export type { NativeOsProfile, OsProfileId, MemoryPolicy, MemoryWriteRateLimit, ResourceQuota, RuntimeOptions, PromptBudget, SchedulerPolicy, SignalPolicy, SessionEvent, SessionLog, KernelTransactionEntry, RunContext, ExecutionPlane, } from "./runtime/index.js";
4
+ export type { NativeOsProfile, OsProfileId, MemoryPolicy, MemoryWriteRateLimit, ResourceQuota, RuntimeOptions, PromptBudget, SchedulerPolicy, SignalPolicy, SessionEvent, SessionLog, KernelTransactionEntry, RunContext, ExecutionPlane, KernelEventCategory, KernelPrimitive, } from "./runtime/index.js";
5
+ export { primitiveForCategory, primitiveForKind } from "./runtime/index.js";
5
6
  export { FilteredExecutionPlane } from "./runtime/filtered-plane.js";
6
7
  export { SubAgentOrchestrator, defaultSubAgentOrchestrator, spawnStandalone } from "./runtime/sub-agent-orchestrator.js";
7
8
  export type { SubAgentRunContext } from "./runtime/sub-agent-orchestrator.js";
@@ -20,6 +21,9 @@ export { WorkingMemory } from "./memory/index.js";
20
21
  export { InMemoryDreamStore } from "./memory/in-memory-store.js";
21
22
  export type { InMemoryDreamStoreOptions } from "./memory/in-memory-store.js";
22
23
  export { memoryRetentionScore } from "./memory/retention.js";
24
+ export { rankMemories } from "./memory/ranking.js";
25
+ export type { RankableMemory, RankedMemory, RankOptions } from "./memory/ranking.js";
26
+ export { extractSessionMemories, parseExtractedMemories } from "./memory/extraction.js";
23
27
  export type { DreamStore, SessionStore, SessionData, SessionMessage, MemoryRecord, MemoryRecall, MemoryRecallLifecycle, MemoryQuery, MemoryScope, MemoryProvenance, MemoryKind, MemoryAuthor, MemoryTrustLevel, } from "./memory/index.js";
24
28
  export type { KnowledgeSource } from "./knowledge/index.js";
25
29
  export { AttemptLoop, RuntimeAttemptBody, VerdictFnJudge, LlmEvalJudge, HybridJudge, continueSession, freshWithFeedback, freshWithDigest, } from "./harness/index.js";
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { RuntimeRunner, collectText, runAgent, runFanout, InMemorySessionLog, LocalExecutionPlane, DEFAULT_NATIVE_SIGNAL_POLICY, DEFAULT_NATIVE_GOVERNANCE_POLICY, DEFAULT_SANDBOX_POLICY, assertNativeProfile, osProfile, validateDeclarativePolicy, ReplayProvider, extractRecordedMessages, judge, buildEvalMessages, parseVerdict, verdictOutputSchema, } from "./runtime/index.js";
2
2
  export * from "./runtime/kernel-transaction-log.js";
3
+ export { primitiveForCategory, primitiveForKind } from "./runtime/index.js";
3
4
  export { FilteredExecutionPlane } from "./runtime/filtered-plane.js";
4
5
  export { SubAgentOrchestrator, defaultSubAgentOrchestrator, spawnStandalone } from "./runtime/sub-agent-orchestrator.js";
5
6
  export { workflowSpecToKernel, workflowNodeSpecToKernel, submitWorkflowNodesToKernel, submitWorkflowToKernel, submitWorkflowNodesTool, startWorkflowTool, fanoutSynthesize, generateAndFilter, genEval, verifyRules } from "./runtime/types/agent.js";
@@ -12,6 +13,8 @@ export { safeTool, ok, fail, ToolError, formatToolError } from "./tools/errors.j
12
13
  export { WorkingMemory } from "./memory/index.js";
13
14
  export { InMemoryDreamStore } from "./memory/in-memory-store.js";
14
15
  export { memoryRetentionScore } from "./memory/retention.js";
16
+ export { rankMemories } from "./memory/ranking.js";
17
+ export { extractSessionMemories, parseExtractedMemories } from "./memory/extraction.js";
15
18
  export { AttemptLoop, RuntimeAttemptBody, VerdictFnJudge, LlmEvalJudge, HybridJudge, continueSession, freshWithFeedback, freshWithDigest, } from "./harness/index.js";
16
19
  export { ScheduledPrompt } from "./signals/index.js";
17
20
  export { PermissionManager, PermissionMode } from "./safety/index.js";
@@ -1,4 +1,4 @@
1
- interface RankableMemory<T> {
1
+ export interface RankableMemory<T> {
2
2
  value: T;
3
3
  searchableText: string;
4
4
  updatedAt: number;
@@ -30,4 +30,3 @@ export interface RankOptions {
30
30
  * The score is relevance, deliberately distinct from the record's stored confidence.
31
31
  */
32
32
  export declare function rankMemories<T>(query: string, candidates: Array<RankableMemory<T>>, topK: number, opts?: RankOptions): Array<RankedMemory<T>>;
33
- export {};
@@ -23,3 +23,5 @@ export { judge, buildEvalMessages, parseVerdict, verdictOutputSchema } from "./e
23
23
  export type { Criterion, Verdict, VerdictDetail, JudgeArgs } from "./eval.js";
24
24
  export { DEFAULT_NATIVE_SIGNAL_POLICY, DEFAULT_NATIVE_GOVERNANCE_POLICY, DEFAULT_SANDBOX_POLICY, assertNativeProfile, osProfile, validateDeclarativePolicy, } from "./os-profile.js";
25
25
  export type { NativeOsProfile, OsProfileId, SignalPolicy } from "./os-profile.js";
26
+ export type { KernelEventCategory, KernelPrimitive } from "./kernel-event-log.js";
27
+ export { primitiveForCategory, primitiveForKind } from "./kernel-event-log.js";
@@ -12,3 +12,4 @@ export { ReplayProvider } from "./replay-provider.js";
12
12
  export { extractRecordedMessages } from "./replay-fixture.js";
13
13
  export { judge, buildEvalMessages, parseVerdict, verdictOutputSchema } from "./eval.js";
14
14
  export { DEFAULT_NATIVE_SIGNAL_POLICY, DEFAULT_NATIVE_GOVERNANCE_POLICY, DEFAULT_SANDBOX_POLICY, assertNativeProfile, osProfile, validateDeclarativePolicy, } from "./os-profile.js";
15
+ export { primitiveForCategory, primitiveForKind } from "./kernel-event-log.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepstrike/wasm",
3
- "version": "0.2.40",
3
+ "version": "0.2.41",
4
4
  "description": "DeepStrike WASM SDK — browser, Cloudflare Workers, Deno Deploy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "test": "node --experimental-vm-modules node_modules/.bin/jest"
16
16
  },
17
17
  "dependencies": {
18
- "@deepstrike/wasm-kernel": "0.2.40"
18
+ "@deepstrike/wasm-kernel": "0.2.41"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/jest": "^30.0.0",