@truenine/memory-sync-cli 2026.10106.107 → 2026.10107.106
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
CHANGED
|
@@ -112,20 +112,65 @@ interface OsInfo {
|
|
|
112
112
|
kind?: OsKind;
|
|
113
113
|
[key: string]: string | ShellKind | OsKind | undefined;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Md component props - wrapper for conditional Markdown content
|
|
117
|
+
* @example <Md when={os.kind === 'mac'}>macOS specific content</Md>
|
|
118
|
+
*/
|
|
119
|
+
interface MdProps {
|
|
120
|
+
/** Condition for rendering content. If omitted, content always renders. */
|
|
121
|
+
when?: boolean;
|
|
122
|
+
/** Child content to render when condition is met */
|
|
123
|
+
children?: unknown;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Md.Line component props - inline conditional text
|
|
127
|
+
* @example <Md.Line when={os.kind === 'win'}>PowerShell</Md.Line>
|
|
128
|
+
*/
|
|
129
|
+
interface MdLineProps {
|
|
130
|
+
/** Condition for rendering content. If omitted, content always renders. */
|
|
131
|
+
when?: boolean;
|
|
132
|
+
/** Inline text content to render when condition is met */
|
|
133
|
+
children?: unknown;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Md component type with Line sub-component
|
|
137
|
+
*/
|
|
138
|
+
interface MdComponent {
|
|
139
|
+
/**
|
|
140
|
+
* Block-level conditional Markdown wrapper
|
|
141
|
+
* @param props - Component props including optional `when` condition
|
|
142
|
+
* @returns Rendered content or nothing if condition is false
|
|
143
|
+
*/
|
|
144
|
+
(props: MdProps): unknown;
|
|
145
|
+
/**
|
|
146
|
+
* Inline conditional text component
|
|
147
|
+
* @param props - Component props including optional `when` condition
|
|
148
|
+
* @returns Inline text or nothing if condition is false
|
|
149
|
+
*/
|
|
150
|
+
Line: (props: MdLineProps) => unknown;
|
|
151
|
+
}
|
|
115
152
|
/**
|
|
116
153
|
* Global scope available in MDX expressions
|
|
117
154
|
*/
|
|
118
155
|
interface MdxGlobalScope {
|
|
156
|
+
/** User profile information */
|
|
119
157
|
profile: UserProfile;
|
|
158
|
+
/** Tool name references for AI assistants */
|
|
120
159
|
tool: ToolReferences;
|
|
160
|
+
/** Environment variables context */
|
|
121
161
|
env: EnvironmentContext;
|
|
162
|
+
/** Operating system information */
|
|
122
163
|
os: OsInfo;
|
|
164
|
+
/** Conditional Markdown component with Line sub-component */
|
|
165
|
+
Md: MdComponent;
|
|
123
166
|
}
|
|
124
167
|
declare global {
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
168
|
+
/** User profile information */
|
|
169
|
+
const profile: UserProfile, /** Tool name references for AI assistants */
|
|
170
|
+
tool: ToolReferences, /** Environment variables context */
|
|
171
|
+
env: EnvironmentContext, /** Operating system information */
|
|
172
|
+
os: OsInfo, /** Conditional Markdown component with Line sub-component */
|
|
173
|
+
Md: MdComponent;
|
|
129
174
|
}
|
|
130
175
|
//#endregion
|
|
131
|
-
export { EnvironmentContext, MdxGlobalScope, OsInfo, OsKind, ShellKind, ToolPresets, ToolReferences, UserProfile };
|
|
176
|
+
export { EnvironmentContext, MdComponent, MdLineProps, MdProps, MdxGlobalScope, OsInfo, OsKind, ShellKind, ToolPresets, ToolReferences, UserProfile };
|