@truenine/memory-sync-cli 2026.10107.106 → 2026.10116.11129
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/globals/index.d.mts +21 -19
- package/dist/index.mjs +104 -73
- package/package.json +7 -7
package/dist/globals/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/globals/index.d.ts
|
|
2
2
|
/**
|
|
3
|
+
* // These types are available to users when writing MDX templates. // Global type declarations for MDX expression scope. // src/globals/index.ts
|
|
3
4
|
* User profile information
|
|
4
5
|
* @example {profile.name}, {profile.username}
|
|
5
6
|
*/
|
|
@@ -37,8 +38,7 @@ interface ToolReferences {
|
|
|
37
38
|
* Each preset provides tool name mappings specific to that AI tool.
|
|
38
39
|
*/
|
|
39
40
|
declare const ToolPresets: {
|
|
40
|
-
/** Default tool names (snake_case) */
|
|
41
|
-
readonly default: {
|
|
41
|
+
/** Default tool names (snake_case) */readonly default: {
|
|
42
42
|
readonly websearch: "web_search";
|
|
43
43
|
readonly webfetch: "web_fetch";
|
|
44
44
|
readonly readFile: "read_file";
|
|
@@ -46,15 +46,13 @@ declare const ToolPresets: {
|
|
|
46
46
|
readonly executeCommand: "execute_command";
|
|
47
47
|
readonly todolistWrite: "todolist_write";
|
|
48
48
|
readonly grep: "grep";
|
|
49
|
-
};
|
|
50
|
-
/** Claude Code CLI tool names (PascalCase) */
|
|
49
|
+
}; /** Claude Code CLI tool names (PascalCase) */
|
|
51
50
|
readonly claudeCode: {
|
|
52
51
|
readonly readFile: "Read";
|
|
53
52
|
readonly writeFile: "Write";
|
|
54
53
|
readonly executeCommand: "Execute";
|
|
55
54
|
readonly todolistWrite: "TodoWrite";
|
|
56
|
-
};
|
|
57
|
-
/** Kiro tool names */
|
|
55
|
+
}; /** Kiro tool names */
|
|
58
56
|
readonly kiro: {
|
|
59
57
|
readonly websearch: "remote_web_search";
|
|
60
58
|
readonly webfetch: "webFetch";
|
|
@@ -137,16 +135,16 @@ interface MdLineProps {
|
|
|
137
135
|
*/
|
|
138
136
|
interface MdComponent {
|
|
139
137
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
* Block-level conditional Markdown wrapper
|
|
139
|
+
* @param props - Component props including optional `when` condition
|
|
140
|
+
* @returns Rendered content or nothing if condition is false
|
|
141
|
+
*/
|
|
144
142
|
(props: MdProps): unknown;
|
|
145
143
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
* Inline conditional text component
|
|
145
|
+
* @param props - Component props including optional `when` condition
|
|
146
|
+
* @returns Inline text or nothing if condition is false
|
|
147
|
+
*/
|
|
150
148
|
Line: (props: MdLineProps) => unknown;
|
|
151
149
|
}
|
|
152
150
|
/**
|
|
@@ -166,11 +164,15 @@ interface MdxGlobalScope {
|
|
|
166
164
|
}
|
|
167
165
|
declare global {
|
|
168
166
|
/** User profile information */
|
|
169
|
-
const profile: UserProfile, /** Tool name references for AI assistants */
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
const profile: UserProfile, /** Tool name references for AI assistants */tool: ToolReferences, /** Environment variables context */env: EnvironmentContext, /** Operating system information */os: OsInfo, /** Conditional Markdown component with Line sub-component */Md: MdComponent;
|
|
168
|
+
namespace JSX {
|
|
169
|
+
interface IntrinsicElements {
|
|
170
|
+
/** Block-level conditional Markdown wrapper @example <Md when={os.kind === 'mac'}>macOS content</Md> */
|
|
171
|
+
'Md': MdProps;
|
|
172
|
+
/** Inline conditional text @example <Md.Line when={os.kind === 'win'}>PowerShell</Md.Line> */
|
|
173
|
+
'Md.Line': MdLineProps;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
174
176
|
}
|
|
175
177
|
//#endregion
|
|
176
178
|
export { EnvironmentContext, MdComponent, MdLineProps, MdProps, MdxGlobalScope, OsInfo, OsKind, ShellKind, ToolPresets, ToolReferences, UserProfile };
|