hafez 1.2.0 → 1.3.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.
@@ -1,4 +1,3 @@
1
- import { z } from 'zod';
2
1
  import type { Hafez, BatchOperation } from '../types.js';
3
2
  export interface CommandOpts {
4
3
  json?: boolean;
@@ -10,7 +9,6 @@ export declare function cmdCreate(os: Hafez, args: string[], opts?: CommandOpts)
10
9
  export declare function cmdUpdate(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
11
10
  export declare function cmdLink(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
12
11
  export declare function cmdUnlink(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
13
- /** Top-level capture command — aligns the CLI verb with the batch op name. */
14
12
  export declare function cmdCapture(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
15
13
  export declare function cmdPromote(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
16
14
  export declare function cmdValidate(os: Hafez, _args: string[], opts?: CommandOpts): Promise<string>;
@@ -18,112 +16,6 @@ export declare function cmdIndexRebuild(os: Hafez): Promise<string>;
18
16
  export declare function cmdSync(os: Hafez, _args: string[]): Promise<string>;
19
17
  export declare function cmdStats(os: Hafez, _args: string[], opts?: CommandOpts): Promise<string>;
20
18
  export declare function cmdChangelog(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
21
- export declare const SessionLogSchema: z.ZodObject<{
22
- type: z.ZodEnum<{
23
- [x: string]: string;
24
- }>;
25
- summary: z.ZodString;
26
- body: z.ZodOptional<z.ZodString>;
27
- agent: z.ZodString;
28
- }, z.core.$strict>;
29
- export declare const UpdateFieldsSchema: z.ZodObject<{
30
- status: z.ZodOptional<z.ZodEnum<{
31
- [x: string]: string;
32
- }>>;
33
- current_state: z.ZodOptional<z.ZodString>;
34
- session_log: z.ZodOptional<z.ZodObject<{
35
- type: z.ZodEnum<{
36
- [x: string]: string;
37
- }>;
38
- summary: z.ZodString;
39
- body: z.ZodOptional<z.ZodString>;
40
- agent: z.ZodString;
41
- }, z.core.$strict>>;
42
- brief: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- add_action: z.ZodOptional<z.ZodString>;
44
- add_actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
- complete_action: z.ZodOptional<z.ZodString>;
46
- remove_action: z.ZodOptional<z.ZodString>;
47
- clear_actions: z.ZodOptional<z.ZodBoolean>;
48
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- resource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- domain: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
- confidence: z.ZodOptional<z.ZodEnum<{
52
- [x: string]: string;
53
- }>>;
54
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
- related: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
- synthesis: z.ZodOptional<z.ZodString>;
57
- insight: z.ZodOptional<z.ZodString>;
58
- add_evidence: z.ZodOptional<z.ZodString>;
59
- add_source: z.ZodOptional<z.ZodString>;
60
- }, z.core.$strict>;
61
- export declare const BatchOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
- op: z.ZodLiteral<"update">;
63
- slug: z.ZodString;
64
- fields: z.ZodObject<{
65
- status: z.ZodOptional<z.ZodEnum<{
66
- [x: string]: string;
67
- }>>;
68
- current_state: z.ZodOptional<z.ZodString>;
69
- session_log: z.ZodOptional<z.ZodObject<{
70
- type: z.ZodEnum<{
71
- [x: string]: string;
72
- }>;
73
- summary: z.ZodString;
74
- body: z.ZodOptional<z.ZodString>;
75
- agent: z.ZodString;
76
- }, z.core.$strict>>;
77
- brief: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- add_action: z.ZodOptional<z.ZodString>;
79
- add_actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
- complete_action: z.ZodOptional<z.ZodString>;
81
- remove_action: z.ZodOptional<z.ZodString>;
82
- clear_actions: z.ZodOptional<z.ZodBoolean>;
83
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
- resource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
- domain: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
- confidence: z.ZodOptional<z.ZodEnum<{
87
- [x: string]: string;
88
- }>>;
89
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
- related: z.ZodOptional<z.ZodArray<z.ZodString>>;
91
- synthesis: z.ZodOptional<z.ZodString>;
92
- insight: z.ZodOptional<z.ZodString>;
93
- add_evidence: z.ZodOptional<z.ZodString>;
94
- add_source: z.ZodOptional<z.ZodString>;
95
- }, z.core.$strict>;
96
- }, z.core.$strict>, z.ZodObject<{
97
- op: z.ZodLiteral<"create">;
98
- }, z.core.$strip>, z.ZodObject<{
99
- op: z.ZodLiteral<"capture">;
100
- name: z.ZodString;
101
- notes: z.ZodOptional<z.ZodString>;
102
- }, z.core.$strict>, z.ZodObject<{
103
- op: z.ZodLiteral<"link">;
104
- slug: z.ZodString;
105
- target: z.ZodString;
106
- relation: z.ZodEnum<{
107
- parent: "parent";
108
- related: "related";
109
- }>;
110
- }, z.core.$strict>, z.ZodObject<{
111
- op: z.ZodLiteral<"unlink">;
112
- slug: z.ZodString;
113
- target: z.ZodString;
114
- relation: z.ZodEnum<{
115
- parent: "parent";
116
- related: "related";
117
- }>;
118
- }, z.core.$strict>, z.ZodObject<{
119
- op: z.ZodLiteral<"promote">;
120
- slug: z.ZodString;
121
- target: z.ZodEnum<{
122
- entity: "entity";
123
- project: "project";
124
- knowledge: "knowledge";
125
- }>;
126
- }, z.core.$strict>], "op">;
127
19
  export declare function parseBatchInput(json: string): BatchOperation[];
128
20
  export declare function cmdBatch(os: Hafez, args: string[], opts?: CommandOpts): Promise<string>;
129
21
  export declare function cmdDigest(os: Hafez, args: string[], _opts?: CommandOpts): Promise<string>;