@lmzhen/dsh-evolution-activity 0.1.0-rc.2 → 0.1.0-rc.3

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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import z from "@deepseek-ai/schemastery";
2
2
  //#region lib/types/index.js
3
3
  /**
4
4
  * Session projection for self-evolution activity.
@@ -7,10 +7,10 @@ import { z } from "zod";
7
7
  const activitySchema = z.object({ items: z.array(z.object({
8
8
  planId: z.string(),
9
9
  kind: z.string(),
10
- memoryApplied: z.number().int().nonnegative(),
11
- skillApplied: z.number().int().nonnegative(),
12
- rejectedOps: z.number().int().nonnegative(),
13
- at: z.number().nonnegative()
10
+ memoryApplied: z.number().min(0),
11
+ skillApplied: z.number().min(0),
12
+ rejectedOps: z.number().min(0),
13
+ at: z.number().min(0)
14
14
  })) });
15
15
  function applyState(state, event, maxItems = 20) {
16
16
  if (event.type !== "evolution/plan-applied") return state;
@@ -3,7 +3,7 @@
3
3
  * @module @deepseek-ai/dsh-evolution-activity
4
4
  */
5
5
  import type { Context } from '@deepseek-ai/cordis';
6
- import { z } from 'zod';
6
+ import z from '@deepseek-ai/schemastery';
7
7
  export interface EvolutionActivityItem {
8
8
  planId: string;
9
9
  kind: string;
@@ -35,9 +35,7 @@ export declare const name = "evolution-activity";
35
35
  export interface Config {
36
36
  maxItems?: number;
37
37
  }
38
- export declare const Config: z.ZodObject<{
39
- maxItems: z.ZodDefault<z.ZodNumber>;
40
- }, z.core.$strip>;
38
+ export declare const Config: z<Config>;
41
39
  export declare function apply(ctx: Context, rawConfig?: Config): void;
42
40
  export {};
43
41
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-activity",
3
3
  "description": "Session projection for self-evolution activity (community build)",
4
- "version": "0.1.0-rc.2",
4
+ "version": "0.1.0-rc.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,8 +32,7 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@deepseek-ai/schemastery": "^3.18.1",
36
- "zod": "^3.0.0"
35
+ "@deepseek-ai/schemastery": "^3.18.1"
37
36
  },
38
37
  "peerDependencies": {
39
38
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",