@stigmer/ink 3.12.1 → 3.12.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigmer/ink",
3
- "version": "3.12.1",
3
+ "version": "3.12.2",
4
4
  "description": "Ink (React for terminals) components for rendering Stigmer agent sessions in the terminal",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@connectrpc/connect-node": "^2.1.1",
38
- "@stigmer/react": "3.12.1",
38
+ "@stigmer/react": "3.12.2",
39
39
  "ink-spinner": "^5.0.0",
40
40
  "ink-text-input": "^6.0.0",
41
41
  "marked": "^15.0.7",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@bufbuild/protobuf": "^2.0.0",
46
- "@stigmer/protos": "3.12.1",
47
- "@stigmer/sdk": "3.12.1",
46
+ "@stigmer/protos": "3.12.2",
47
+ "@stigmer/sdk": "3.12.2",
48
48
  "ink": "^7.0.0",
49
49
  "react": ">=19.0.0"
50
50
  }
@@ -16,10 +16,16 @@ export function fakeClient(overrides: Record<string, unknown> = {}): Stigmer {
16
16
  * Renders a tree under an {@link InkStigmerProvider} so hooks that read the
17
17
  * Stigmer client (e.g. `useFileChangeContent` → `useStigmer`, which throws
18
18
  * without a provider) work. Returns the `ink-testing-library` handle.
19
+ *
20
+ * The explicit return type is load-bearing: ink-testing-library does not
21
+ * export its `Instance` type, and its stdout/stderr classes carry private
22
+ * members — under `declaration: true` an inferred return type here fails
23
+ * declaration emit with TS4094 (`ReturnType<typeof render>` stays a named
24
+ * reference the emitter never has to expand).
19
25
  */
20
26
  export function renderWithClient(
21
27
  node: ReactElement,
22
28
  client: Stigmer = fakeClient(),
23
- ) {
29
+ ): ReturnType<typeof render> {
24
30
  return render(<InkStigmerProvider client={client}>{node}</InkStigmerProvider>);
25
31
  }