@r_masseater/masseater-utils 0.1.7 → 0.1.8

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.
@@ -0,0 +1,10 @@
1
+ import { Flag } from "effect/cli";
2
+ /** @internal */
3
+ export declare const hookFlags: {
4
+ prepare: Flag.Flag<boolean>;
5
+ staged: Flag.Flag<boolean>;
6
+ prePush: Flag.Flag<boolean>;
7
+ commitMsg: Flag.Flag<import("effect/Option").Option<string>>;
8
+ message: Flag.Flag<import("effect/Option").Option<string>>;
9
+ };
10
+ //# sourceMappingURL=hook-flags.d.mts.map
@@ -0,0 +1,13 @@
1
+ import { Flag } from "effect/cli";
2
+ // src/app/hook-flags.ts
3
+ /** @internal */
4
+ const hookFlags = {
5
+ prepare: Flag.Boolean("prepare").pipe(Flag.withDescription("Installs the skills and tools in vite.config.ts (prepare)"), Flag.withDefault(false)),
6
+ staged: Flag.Boolean("staged").pipe(Flag.withDescription("Scans the staged changes for secrets (pre-commit)"), Flag.withDefault(false)),
7
+ prePush: Flag.Boolean("pre-push").pipe(Flag.withDescription("Refuses to push a ref other than the checked-out commit (pre-push)"), Flag.withDefault(false)),
8
+ commitMsg: Flag.String("commit-msg").pipe(Flag.withDescription("Lints the commit message in this file (commit-msg)"), Flag.optional),
9
+ message: Flag.String("message").pipe(Flag.withDescription("Lints this message"), Flag.optional)
10
+ };
11
+ export { hookFlags };
12
+
13
+ //# sourceMappingURL=hook-flags.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook-flags.mjs","names":[],"sources":["../src/app/hook-flags.ts"],"sourcesContent":["import { Flag } from \"effect/cli\";\n\n/** @internal */\nexport const hookFlags = {\n prepare: Flag.Boolean(\"prepare\").pipe(\n Flag.withDescription(\"Installs the skills and tools in vite.config.ts (prepare)\"),\n Flag.withDefault(false),\n ),\n staged: Flag.Boolean(\"staged\").pipe(\n Flag.withDescription(\"Scans the staged changes for secrets (pre-commit)\"),\n Flag.withDefault(false),\n ),\n prePush: Flag.Boolean(\"pre-push\").pipe(\n Flag.withDescription(\"Refuses to push a ref other than the checked-out commit (pre-push)\"),\n Flag.withDefault(false),\n ),\n commitMsg: Flag.String(\"commit-msg\").pipe(\n Flag.withDescription(\"Lints the commit message in this file (commit-msg)\"),\n Flag.optional,\n ),\n message: Flag.String(\"message\").pipe(Flag.withDescription(\"Lints this message\"), Flag.optional),\n};\n"],"mappings":";;;AAGA,MAAa,YAAY;CACvB,SAAS,KAAK,QAAQ,SAAS,CAAC,CAAC,KAC/B,KAAK,gBAAgB,2DAA2D,GAChF,KAAK,YAAY,KAAK,CACxB;CACA,QAAQ,KAAK,QAAQ,QAAQ,CAAC,CAAC,KAC7B,KAAK,gBAAgB,mDAAmD,GACxE,KAAK,YAAY,KAAK,CACxB;CACA,SAAS,KAAK,QAAQ,UAAU,CAAC,CAAC,KAChC,KAAK,gBAAgB,oEAAoE,GACzF,KAAK,YAAY,KAAK,CACxB;CACA,WAAW,KAAK,OAAO,YAAY,CAAC,CAAC,KACnC,KAAK,gBAAgB,oDAAoD,GACzE,KAAK,QACP;CACA,SAAS,KAAK,OAAO,SAAS,CAAC,CAAC,KAAK,KAAK,gBAAgB,oBAAoB,GAAG,KAAK,QAAQ;AAChG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r_masseater/masseater-utils",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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.",
5
5
  "keywords": [
6
6
  "actions",
@@ -58,6 +58,10 @@
58
58
  "types": "./dist/node-main.d.mts",
59
59
  "default": "./dist/node-main.mjs"
60
60
  },
61
+ "./hook-flags": {
62
+ "types": "./dist/hook-flags.d.mts",
63
+ "default": "./dist/hook-flags.mjs"
64
+ },
61
65
  "./github-workflow": {
62
66
  "types": "./dist/github-workflow.d.mts",
63
67
  "default": "./dist/github-workflow.mjs"