@r_masseater/masseater-utils 0.11.0 → 0.11.1
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 +1 -1
- package/skills/add-scroll-chip-row/SKILL.md +9 -5
- package/skills/assert-exported-telemetry/SKILL.md +9 -5
- package/skills/build-tauri-app/SKILL.md +9 -5
- package/skills/find-cache-folder/SKILL.md +7 -4
- package/skills/import-custom-format/SKILL.md +10 -6
- package/skills/name-stack-resources/SKILL.md +8 -5
- package/skills/read-hook-input/SKILL.md +8 -4
- package/skills/read-node-ecosystem/SKILL.md +13 -9
- package/skills/run-effect-main/SKILL.md +9 -6
- package/skills/share-types-with-rust/SKILL.md +18 -14
- package/skills/trace-workers/SKILL.md +14 -11
- package/skills/use-model-server/SKILL.md +9 -5
- package/skills/write-actions-steps/SKILL.md +10 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/masseater-utils",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "The small shared libraries of masseater's repositories as subpaths of one package: a chip row for React, Claude Code plugin helpers, Effect entry points for Node.js and GitHub Actions, file import mapping, Node package readers, OTLP assertions for Vitest and Cloudflare Workers tracing, and what the Tauri desktop apps share: OpenTelemetry for the screens, Vite settings, the media-notes screens and the release commands.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"actions",
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: add-scroll-chip-row
|
|
3
3
|
description: >
|
|
4
|
-
Use when a React page shows a row of filter chips or tags that must scroll
|
|
5
|
-
wrapping: ScrollChipRow of
|
|
6
|
-
|
|
4
|
+
Use when a React page shows a row of filter chips or tags that must scroll
|
|
5
|
+
sideways instead of wrapping: ScrollChipRow of
|
|
6
|
+
@r_masseater/masseater-utils/skerm, the stylesheet it needs, the aria
|
|
7
|
+
attributes that mark the current chip, and the colors of its arrow buttons.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
+
library_version: 0.11.1
|
|
10
12
|
sources:
|
|
11
|
-
- src/app
|
|
12
|
-
- src/features/scroll-chip-row
|
|
13
|
+
- src/app
|
|
14
|
+
- src/features/scroll-chip-row
|
|
13
15
|
- README.md
|
|
14
16
|
---
|
|
15
17
|
|
|
@@ -57,3 +59,5 @@ Set `--skerm-surface`, `--skerm-on-surface`, `--skerm-border` and `--skerm-hover
|
|
|
57
59
|
|
|
58
60
|
- Do not wrap the chips in your own `overflow-x` container. The row already scrolls, and a second scroller breaks the fade and the arrows.
|
|
59
61
|
- Do not give a chip `aria-current="false"` to mean "not current" unless you want it ignored. The row skips `"false"`.
|
|
62
|
+
|
|
63
|
+
This skill describes [`src/app`](../../src/app), [`src/features/scroll-chip-row`](../../src/features/scroll-chip-row) and [`README.md`](../../README.md).
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: assert-exported-telemetry
|
|
3
3
|
description: >
|
|
4
|
-
Use when a Vitest test must prove which OpenTelemetry spans, logs or metrics
|
|
5
|
-
really exported: the otlp() plugin, waitForSpans,
|
|
6
|
-
the semconv check with Weaver,
|
|
4
|
+
Use when a Vitest test must prove which OpenTelemetry spans, logs or metrics
|
|
5
|
+
the code under test really exported: the otlp() plugin, waitForSpans,
|
|
6
|
+
waitForLogs, waitForMetrics, clearTelemetry, the semconv check with Weaver,
|
|
7
|
+
and tailWorker for Cloudflare Workers under Miniflare.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
+
library_version: 0.11.1
|
|
10
12
|
sources:
|
|
11
|
-
- src/app
|
|
12
|
-
- src/features/receive-otlp
|
|
13
|
+
- src/app
|
|
14
|
+
- src/features/receive-otlp
|
|
13
15
|
- README.md
|
|
14
16
|
---
|
|
15
17
|
|
|
@@ -129,3 +131,5 @@ test("caching writes to KV", () =>
|
|
|
129
131
|
- Asserting right after the code runs without `waitFor*`. Batch processors export later, so read through `waitFor*` or shut the SDK down first.
|
|
130
132
|
- Sharing received telemetry between tests. Call `clearTelemetry` in `beforeEach` when tests check counts.
|
|
131
133
|
- Mocking the exporter instead. That proves nothing about what leaves the process.
|
|
134
|
+
|
|
135
|
+
This skill describes [`src/app`](../../src/app), [`src/features/receive-otlp`](../../src/features/receive-otlp) and [`README.md`](../../README.md).
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: build-tauri-app
|
|
3
3
|
description: >
|
|
4
|
-
Use when building or releasing a Tauri desktop app on
|
|
5
|
-
|
|
4
|
+
Use when building or releasing a Tauri desktop app on
|
|
5
|
+
@r_masseater/masseater-utils/desktop-shell: the Rust crate and its cargo
|
|
6
|
+
patches, the Vite settings, telemetry from the screen and from Rust, the
|
|
6
7
|
updater and its signing key, the release commands, and the media-notes parts.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
+
library_version: 0.11.1
|
|
10
12
|
sources:
|
|
11
|
-
- src
|
|
12
|
-
- bin
|
|
13
|
-
- native
|
|
13
|
+
- src
|
|
14
|
+
- bin
|
|
15
|
+
- native
|
|
14
16
|
- README.md
|
|
15
17
|
---
|
|
16
18
|
|
|
@@ -56,3 +58,5 @@ Apps check for an update when they start, download it, ask the user, then instal
|
|
|
56
58
|
## Media notes
|
|
57
59
|
|
|
58
60
|
Apps that mark and comment on ranges of media use `@r_masseater/masseater-utils/desktop-shell/media-notes` for the screen parts, `@r_masseater/masseater-utils/desktop-shell/media-notes/protocol` for the types, and the `media-notes` crate for the Rust side. Each app's page lays out the parts and adds the form and list for the notes it saves.
|
|
61
|
+
|
|
62
|
+
This skill describes [`src`](../../src), [`bin`](../../bin), [`native`](../../native) and [`README.md`](../../README.md).
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: find-cache-folder
|
|
3
3
|
description: >
|
|
4
|
-
Use when a Claude Code plugin hook or script must keep downloaded or built
|
|
5
|
-
such as a model, a binary or an installed tool:
|
|
6
|
-
XDG_CACHE_HOME or ~/.cache.
|
|
4
|
+
Use when a Claude Code plugin hook or script must keep downloaded or built
|
|
5
|
+
files between runs, such as a model, a binary or an installed tool:
|
|
6
|
+
cacheRootOf gives the folder under XDG_CACHE_HOME or ~/.cache.
|
|
7
7
|
metadata:
|
|
8
8
|
type: core
|
|
9
9
|
library: "@r_masseater/masseater-utils"
|
|
10
|
+
library_version: 0.11.1
|
|
10
11
|
sources:
|
|
11
|
-
- src/app
|
|
12
|
+
- src/app
|
|
12
13
|
- src/shared/lib/cache.ts
|
|
13
14
|
- README.md
|
|
14
15
|
---
|
|
@@ -34,3 +35,5 @@ const root = await cacheRootOf(["my-plugin", "runtime"]);
|
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
The folder is `$XDG_CACHE_HOME/my-plugin/runtime`, or `~/.cache/my-plugin/runtime` when `XDG_CACHE_HOME` is unset or empty. The function builds the path only and creates nothing. It rejects with `CacheRootError` when neither `XDG_CACHE_HOME` nor `HOME` (or `USERPROFILE` on Windows) is set. `cacheRootEffect` is the same lookup as an Effect: provide a `ConfigProvider` to test it with a fake environment.
|
|
38
|
+
|
|
39
|
+
This skill describes [`src/app`](../../src/app), [`src/shared/lib/cache.ts`](../../src/shared/lib/cache.ts) and [`README.md`](../../README.md).
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: import-custom-format
|
|
3
3
|
description: >
|
|
4
|
-
Use when TypeScript must import a file in a custom format with editor support:
|
|
5
|
-
mapping as segments (text, verbatim, alias, atom), producing
|
|
6
|
-
mappedOutput, and loading the file as a module
|
|
4
|
+
Use when TypeScript must import a file in a custom format with editor support:
|
|
5
|
+
describing the mapping as segments (text, verbatim, alias, atom), producing
|
|
6
|
+
ts-content-mapper output with mappedOutput, and loading the file as a module
|
|
7
|
+
with the contentImport Vite plugin.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
+
library_version: 0.11.1
|
|
10
12
|
sources:
|
|
11
|
-
- src/entities/segment
|
|
12
|
-
- src/features/map-content
|
|
13
|
-
- src/features/import-content
|
|
13
|
+
- src/entities/segment
|
|
14
|
+
- src/features/map-content
|
|
15
|
+
- src/features/import-content
|
|
14
16
|
- README.md
|
|
15
17
|
---
|
|
16
18
|
|
|
@@ -74,3 +76,5 @@ Pass the request and the mapped result. Errors need a `fallback` text, so the se
|
|
|
74
76
|
Wrong: write `<file>.d.my.ts` in `load` with the file system.
|
|
75
77
|
|
|
76
78
|
Correct: return it as `declaration` and let the plugin write it only when it changed.
|
|
79
|
+
|
|
80
|
+
This skill describes [`src/entities/segment`](../../src/entities/segment), [`src/features/map-content`](../../src/features/map-content), [`src/features/import-content`](../../src/features/import-content) and [`README.md`](../../README.md).
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: name-stack-resources
|
|
3
3
|
description: >
|
|
4
|
-
Use when an Alchemy stack must be named after its app and every Cloudflare
|
|
5
|
-
start with the app name, with
|
|
6
|
-
app-name.ts, and
|
|
4
|
+
Use when an Alchemy stack must be named after its app and every Cloudflare
|
|
5
|
+
resource in it must start with the app name, with
|
|
6
|
+
@r_masseater/masseater-utils/app-name: appNamed, APP_NAME in app-name.ts, and
|
|
7
|
+
yielding requireAppPrefix at the end of the stack.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
10
|
-
library_version: 0.1
|
|
11
|
+
library_version: 0.11.1
|
|
11
12
|
sources:
|
|
12
13
|
- src/app/app-name.ts
|
|
13
|
-
- src/features/name-app
|
|
14
|
+
- src/features/name-app
|
|
14
15
|
---
|
|
15
16
|
|
|
16
17
|
# name-stack-resources
|
|
@@ -58,3 +59,5 @@ export default Stack(
|
|
|
58
59
|
- A resource that declares no `name` is not checked, because Alchemy derives its name from the stack name.
|
|
59
60
|
|
|
60
61
|
When any resource is off, `requireAppPrefix` stops the deploy with an error that lists every offender.
|
|
62
|
+
|
|
63
|
+
This skill describes [`src/app/app-name.ts`](../../src/app/app-name.ts) and [`src/features/name-app`](../../src/features/name-app).
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: read-hook-input
|
|
3
3
|
description: >
|
|
4
|
-
Use when a Claude Code plugin hook or script must read JSON it did not write,
|
|
5
|
-
payload on stdin or a settings file: runHook, runHookWith,
|
|
6
|
-
|
|
4
|
+
Use when a Claude Code plugin hook or script must read JSON it did not write,
|
|
5
|
+
such as a hook payload on stdin or a settings file: runHook, runHookWith,
|
|
6
|
+
readHookInput, writeHookOutput and blockHook for a hook written with Effect,
|
|
7
|
+
and parseJson and isRecord for plain code.
|
|
7
8
|
metadata:
|
|
8
9
|
type: core
|
|
9
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
+
library_version: 0.11.1
|
|
10
12
|
sources:
|
|
11
|
-
- src/app
|
|
13
|
+
- src/app
|
|
12
14
|
- src/features/run-main/model/hook-io.ts
|
|
13
15
|
- src/features/run-main/model/run-hook.ts
|
|
14
16
|
- src/shared/lib/record.ts
|
|
@@ -70,3 +72,5 @@ if (parsed._tag === "Some" && isRecord(parsed.value)) {
|
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
`parseJson` returns `{ _tag: "None" }` when the text is not JSON and never throws. `isRecord` is false for `null`, arrays and primitives, so check it before reading keys.
|
|
75
|
+
|
|
76
|
+
This skill describes [`src/app`](../../src/app), [`src/features/run-main/model/hook-io.ts`](../../src/features/run-main/model/hook-io.ts), [`src/features/run-main/model/run-hook.ts`](../../src/features/run-main/model/run-hook.ts), [`src/shared/lib/record.ts`](../../src/shared/lib/record.ts) and [`README.md`](../../README.md).
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: read-node-ecosystem
|
|
3
3
|
description: >
|
|
4
|
-
Use when TypeScript code must read or write a package.json, read
|
|
5
|
-
pnpm-lock.yaml or the projects of a pnpm workspace, or
|
|
6
|
-
values: PackageJson, decodePackageJson,
|
|
7
|
-
|
|
4
|
+
Use when TypeScript code must read or write a package.json, read
|
|
5
|
+
pnpm-workspace.yaml, pnpm-lock.yaml or the projects of a pnpm workspace, or
|
|
6
|
+
find an installed package, as Effect values: PackageJson, decodePackageJson,
|
|
7
|
+
readPackageJson, updatePackageJson, readWorkspaceManifest, lockedGraph,
|
|
8
|
+
findWorkspaceProjects and findPackageJson.
|
|
8
9
|
metadata:
|
|
9
10
|
type: core
|
|
10
11
|
library: "@r_masseater/masseater-utils"
|
|
12
|
+
library_version: 0.11.1
|
|
11
13
|
sources:
|
|
12
|
-
- src/app
|
|
13
|
-
- src/entities/package-json
|
|
14
|
-
- src/features/find-node-package
|
|
15
|
-
- src/features/read-npm
|
|
16
|
-
- src/features/read-pnpm
|
|
14
|
+
- src/app
|
|
15
|
+
- src/entities/package-json
|
|
16
|
+
- src/features/find-node-package
|
|
17
|
+
- src/features/read-npm
|
|
18
|
+
- src/features/read-pnpm
|
|
17
19
|
- README.md
|
|
18
20
|
---
|
|
19
21
|
|
|
@@ -129,3 +131,5 @@ import { findPackageJson } from "@r_masseater/masseater-utils/kestrion/node";
|
|
|
129
131
|
|
|
130
132
|
const file = findPackageJson("effect", import.meta.url);
|
|
131
133
|
```
|
|
134
|
+
|
|
135
|
+
This skill describes [`src/app`](../../src/app), [`src/entities/package-json`](../../src/entities/package-json), [`src/features/find-node-package`](../../src/features/find-node-package), [`src/features/read-npm`](../../src/features/read-npm), [`src/features/read-pnpm`](../../src/features/read-pnpm) and [`README.md`](../../README.md).
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: run-effect-main
|
|
3
3
|
description: >
|
|
4
|
-
Use when an Effect program must run as a Node.js entry point with the Node
|
|
5
|
-
client and OTLP tracing provided: runMain, runMainWith, and
|
|
6
|
-
process that must stop when its parent exits.
|
|
4
|
+
Use when an Effect program must run as a Node.js entry point with the Node
|
|
5
|
+
services, an HTTP client and OTLP tracing provided: runMain, runMainWith, and
|
|
6
|
+
whileParentAlive for a child process that must stop when its parent exits.
|
|
7
7
|
metadata:
|
|
8
8
|
type: core
|
|
9
9
|
library: "@r_masseater/masseater-utils"
|
|
10
|
+
library_version: 0.11.1
|
|
10
11
|
sources:
|
|
11
|
-
- src/app
|
|
12
|
-
- src/features/run-main
|
|
13
|
-
- src/features/watch-parent
|
|
12
|
+
- src/app
|
|
13
|
+
- src/features/run-main
|
|
14
|
+
- src/features/watch-parent
|
|
14
15
|
- README.md
|
|
15
16
|
---
|
|
16
17
|
|
|
@@ -80,3 +81,5 @@ runMain("my-tool")(program);
|
|
|
80
81
|
```
|
|
81
82
|
|
|
82
83
|
The direct call has no tracing and none of the services the program expects.
|
|
84
|
+
|
|
85
|
+
This skill describes [`src/app`](../../src/app), [`src/features/run-main`](../../src/features/run-main), [`src/features/watch-parent`](../../src/features/watch-parent) and [`README.md`](../../README.md).
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: share-types-with-rust
|
|
3
3
|
description: >
|
|
4
|
-
Use when TypeScript and Rust in this repository exchange data: a Tauri app
|
|
5
|
-
side, a Rust process reading JSON that TypeScript writes,
|
|
6
|
-
that mirrors a TypeScript type. Covers
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
Use when TypeScript and Rust in this repository exchange data: a Tauri app
|
|
5
|
+
talking to its web side, a Rust process reading JSON that TypeScript writes,
|
|
6
|
+
or any Rust struct, enum, or constant that mirrors a TypeScript type. Covers
|
|
7
|
+
defining the types as Effect Schema, generating the serde Rust with the
|
|
8
|
+
effect2rs subpath of @r_masseater/masseater-utils from the app's own codegen
|
|
9
|
+
command, the checkRust freshness and hand-written copy check, and the wire
|
|
10
|
+
differences that stay between the two sides. Also use when codegen:check
|
|
11
|
+
reports a stale file or a hand-written copy.
|
|
10
12
|
metadata:
|
|
11
|
-
purpose: >
|
|
12
|
-
Keep one source of truth for every type that crosses the TypeScript and Rust boundary, so the
|
|
13
|
-
Rust side is always generated from Effect Schema and never drifts or gets copied by hand.
|
|
14
13
|
type: core
|
|
15
14
|
library: "@r_masseater/masseater-utils"
|
|
15
|
+
library_version: 0.11.1
|
|
16
16
|
sources:
|
|
17
|
-
- src/app
|
|
18
|
-
- src/entities/rust-item
|
|
19
|
-
- src/features/check-rust
|
|
20
|
-
- src/features/render-rust
|
|
21
|
-
- effect2rs-conformance
|
|
17
|
+
- src/app
|
|
18
|
+
- src/entities/rust-item
|
|
19
|
+
- src/features/check-rust
|
|
20
|
+
- src/features/render-rust
|
|
21
|
+
- effect2rs-conformance
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
# share-types-with-rust
|
|
25
25
|
|
|
26
|
+
This skill exists to keep one source of truth for every type that crosses the TypeScript and Rust boundary, so the Rust side is always generated from Effect Schema and never drifts or gets copied by hand.
|
|
27
|
+
|
|
26
28
|
Effect Schema is the source of truth. Rust never declares a type that crosses the boundary. It imports the module that effect2rs generates.
|
|
27
29
|
|
|
28
30
|
## Add or change a shared type
|
|
@@ -88,3 +90,5 @@ specta needs its `serde_json` feature when a type contains `Schema.Unknown`.
|
|
|
88
90
|
|
|
89
91
|
When a schema needs something effect2rs does not support, extend effect2rs instead of writing the type by hand.
|
|
90
92
|
Add a case to its tests and to the conformance samples at the same time.
|
|
93
|
+
|
|
94
|
+
This skill describes [`src/app`](../../src/app), [`src/entities/rust-item`](../../src/entities/rust-item), [`src/features/check-rust`](../../src/features/check-rust), [`src/features/render-rust`](../../src/features/render-rust) and [`effect2rs-conformance`](../../effect2rs-conformance).
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: trace-workers
|
|
3
3
|
description: >
|
|
4
|
-
Use when adding application spans to Cloudflare Workers traces with
|
|
5
|
-
withWorkersTracing for Alchemy
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Use when adding application spans to Cloudflare Workers traces with
|
|
5
|
+
@r_masseater/masseater-utils/workers-tracing: withWorkersTracing for Alchemy
|
|
6
|
+
stacks, TanStack Start and Elysia middleware, running Effect programs so
|
|
7
|
+
withSpan and fn become spans, browser spans and logs, runWorkersAi, traceSink
|
|
8
|
+
and the workers-traces command that checks spans in CI.
|
|
8
9
|
metadata:
|
|
9
10
|
type: core
|
|
10
11
|
library: "@r_masseater/masseater-utils"
|
|
11
|
-
library_version: 0.1
|
|
12
|
+
library_version: 0.11.1
|
|
12
13
|
sources:
|
|
13
|
-
- src/app
|
|
14
|
-
- src/features/sink-traces
|
|
15
|
-
- src/features/receive-browser
|
|
16
|
-
- src/entities/log
|
|
17
|
-
- src/entities/span
|
|
18
|
-
- bin
|
|
14
|
+
- src/app
|
|
15
|
+
- src/features/sink-traces
|
|
16
|
+
- src/features/receive-browser
|
|
17
|
+
- src/entities/log
|
|
18
|
+
- src/entities/span
|
|
19
|
+
- bin
|
|
19
20
|
- README.md
|
|
20
21
|
---
|
|
21
22
|
|
|
@@ -149,3 +150,5 @@ The `workers-traces` command comes from the separate `@r_masseater/workers-traci
|
|
|
149
150
|
- Calling `Effect.runPromise` in a Worker. The spans exist but are not attached to the request's trace.
|
|
150
151
|
- Adding a tracer layer from `@effect/opentelemetry` as well. Workers already exports the trace, and a second exporter duplicates spans.
|
|
151
152
|
- Expecting spans on the Workers Free plan. Traces are not kept there.
|
|
153
|
+
|
|
154
|
+
This skill describes [`src/app`](../../src/app), [`src/features/sink-traces`](../../src/features/sink-traces), [`src/features/receive-browser`](../../src/features/receive-browser), [`src/entities/log`](../../src/entities/log), [`src/entities/span`](../../src/entities/span), [`bin`](../../bin) and [`README.md`](../../README.md).
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: use-model-server
|
|
3
3
|
description: >
|
|
4
|
-
Use when a Claude Code plugin hook or script needs a local model, such as text
|
|
5
|
-
search: the model-server subpath of
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Use when a Claude Code plugin hook or script needs a local model, such as text
|
|
5
|
+
embeddings for search: the model-server subpath of
|
|
6
|
+
@r_masseater/masseater-utils runs one resident process per user that every
|
|
7
|
+
plugin shares, started on the first call and stopped when idle. Covers embed,
|
|
8
|
+
warm, prepare, status and the EmbeddingGemma 2 prefixes.
|
|
8
9
|
metadata:
|
|
9
10
|
type: core
|
|
10
11
|
library: "@r_masseater/masseater-utils"
|
|
12
|
+
library_version: 0.11.1
|
|
11
13
|
sources:
|
|
12
|
-
- src/app
|
|
14
|
+
- src/app
|
|
13
15
|
- src/entities/embedding/model/text.ts
|
|
14
16
|
---
|
|
15
17
|
|
|
@@ -48,3 +50,5 @@ const score = dot(query, documents[0]);
|
|
|
48
50
|
- Call `warm({})` from `SessionStart`. It returns at once and the server loads the model in the background.
|
|
49
51
|
- In `UserPromptSubmit` or `PostToolUse`, pass a short `timeoutMillis` and fall back to something without the model when `embed` rejects. The first run of a machine installs the runtime and downloads the model, which takes minutes.
|
|
50
52
|
- `status({})` says whether a server runs and which models it holds, without starting one.
|
|
53
|
+
|
|
54
|
+
This skill describes [`src/app`](../../src/app) and [`src/entities/embedding/model/text.ts`](../../src/entities/embedding/model/text.ts).
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: write-actions-steps
|
|
3
3
|
description: >
|
|
4
|
-
Use when a GitHub Actions step is written in TypeScript with Effect and must
|
|
5
|
-
of its own repository, write GITHUB_OUTPUT or GITHUB_ENV,
|
|
6
|
-
a
|
|
7
|
-
|
|
4
|
+
Use when a GitHub Actions step is written in TypeScript with Effect and must
|
|
5
|
+
call the GitHub API of its own repository, write GITHUB_OUTPUT or GITHUB_ENV,
|
|
6
|
+
mask a value, emit annotations, or run a command: getJson, postJson, post,
|
|
7
|
+
patch, remove, writeOutputs, setEnv, mask, warn, fail, succeeds, mustSucceed,
|
|
8
|
+
outputOf, finished and sha256Of.
|
|
8
9
|
metadata:
|
|
9
10
|
type: core
|
|
10
11
|
library: "@r_masseater/masseater-utils"
|
|
12
|
+
library_version: 0.11.1
|
|
11
13
|
sources:
|
|
12
|
-
- src/app
|
|
13
|
-
- src/shared/api/github
|
|
14
|
+
- src/app
|
|
15
|
+
- src/shared/api/github
|
|
14
16
|
- src/shared/lib/workflow.ts
|
|
15
17
|
- src/shared/lib/process.ts
|
|
16
18
|
- src/shared/lib/digest.ts
|
|
@@ -74,3 +76,5 @@ getJson(Issue)("issues/1", { token });
|
|
|
74
76
|
```
|
|
75
77
|
|
|
76
78
|
Correct: set `GH_TOKEN` in the step's `env` and call `getJson(Issue)("issues/1")`.
|
|
79
|
+
|
|
80
|
+
This skill describes [`src/app`](../../src/app), [`src/shared/api/github`](../../src/shared/api/github), [`src/shared/lib/workflow.ts`](../../src/shared/lib/workflow.ts), [`src/shared/lib/process.ts`](../../src/shared/lib/process.ts), [`src/shared/lib/digest.ts`](../../src/shared/lib/digest.ts) and [`README.md`](../../README.md).
|