@agentworkforce/persona-kit 0.19.0

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.
Files changed (90) hide show
  1. package/README.md +93 -0
  2. package/dist/config-files.d.ts +21 -0
  3. package/dist/config-files.d.ts.map +1 -0
  4. package/dist/config-files.js +81 -0
  5. package/dist/config-files.js.map +1 -0
  6. package/dist/constants.d.ts +20 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/constants.js +78 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/detect.d.ts +28 -0
  11. package/dist/detect.d.ts.map +1 -0
  12. package/dist/detect.js +63 -0
  13. package/dist/detect.js.map +1 -0
  14. package/dist/env-refs.d.ts +56 -0
  15. package/dist/env-refs.d.ts.map +1 -0
  16. package/dist/env-refs.js +105 -0
  17. package/dist/env-refs.js.map +1 -0
  18. package/dist/env-refs.test.d.ts +2 -0
  19. package/dist/env-refs.test.d.ts.map +1 -0
  20. package/dist/env-refs.test.js +84 -0
  21. package/dist/env-refs.test.js.map +1 -0
  22. package/dist/execute.d.ts +47 -0
  23. package/dist/execute.d.ts.map +1 -0
  24. package/dist/execute.js +68 -0
  25. package/dist/execute.js.map +1 -0
  26. package/dist/execute.test.d.ts +2 -0
  27. package/dist/execute.test.d.ts.map +1 -0
  28. package/dist/execute.test.js +255 -0
  29. package/dist/execute.test.js.map +1 -0
  30. package/dist/index.d.ts +16 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +26 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/index.test.d.ts +2 -0
  35. package/dist/index.test.d.ts.map +1 -0
  36. package/dist/index.test.js +234 -0
  37. package/dist/index.test.js.map +1 -0
  38. package/dist/inputs.d.ts +13 -0
  39. package/dist/inputs.d.ts.map +1 -0
  40. package/dist/inputs.js +57 -0
  41. package/dist/inputs.js.map +1 -0
  42. package/dist/inputs.test.d.ts +2 -0
  43. package/dist/inputs.test.d.ts.map +1 -0
  44. package/dist/inputs.test.js +51 -0
  45. package/dist/inputs.test.js.map +1 -0
  46. package/dist/interactive-spec.d.ts +117 -0
  47. package/dist/interactive-spec.d.ts.map +1 -0
  48. package/dist/interactive-spec.js +260 -0
  49. package/dist/interactive-spec.js.map +1 -0
  50. package/dist/interactive-spec.test.d.ts +2 -0
  51. package/dist/interactive-spec.test.d.ts.map +1 -0
  52. package/dist/interactive-spec.test.js +308 -0
  53. package/dist/interactive-spec.test.js.map +1 -0
  54. package/dist/mcp.d.ts +35 -0
  55. package/dist/mcp.d.ts.map +1 -0
  56. package/dist/mcp.js +86 -0
  57. package/dist/mcp.js.map +1 -0
  58. package/dist/mount.d.ts +44 -0
  59. package/dist/mount.d.ts.map +1 -0
  60. package/dist/mount.js +51 -0
  61. package/dist/mount.js.map +1 -0
  62. package/dist/parse.d.ts +47 -0
  63. package/dist/parse.d.ts.map +1 -0
  64. package/dist/parse.js +475 -0
  65. package/dist/parse.js.map +1 -0
  66. package/dist/plan.d.ts +118 -0
  67. package/dist/plan.d.ts.map +1 -0
  68. package/dist/plan.js +150 -0
  69. package/dist/plan.js.map +1 -0
  70. package/dist/plan.test.d.ts +2 -0
  71. package/dist/plan.test.d.ts.map +1 -0
  72. package/dist/plan.test.js +191 -0
  73. package/dist/plan.test.js.map +1 -0
  74. package/dist/sidecars.d.ts +17 -0
  75. package/dist/sidecars.d.ts.map +1 -0
  76. package/dist/sidecars.js +101 -0
  77. package/dist/sidecars.js.map +1 -0
  78. package/dist/skill-runner.d.ts +30 -0
  79. package/dist/skill-runner.d.ts.map +1 -0
  80. package/dist/skill-runner.js +94 -0
  81. package/dist/skill-runner.js.map +1 -0
  82. package/dist/skills.d.ts +41 -0
  83. package/dist/skills.d.ts.map +1 -0
  84. package/dist/skills.js +322 -0
  85. package/dist/skills.js.map +1 -0
  86. package/dist/types.d.ts +321 -0
  87. package/dist/types.d.ts.map +1 -0
  88. package/dist/types.js +2 -0
  89. package/dist/types.js.map +1 -0
  90. package/package.json +37 -0
@@ -0,0 +1,321 @@
1
+ import type { CODEX_APPROVAL_POLICIES, CODEX_SANDBOX_MODES, HARNESS_VALUES, PERMISSION_MODES, PERSONA_INTENTS, PERSONA_TAGS, PERSONA_TIERS, SIDECAR_MD_MODES, SKILL_SOURCE_KINDS } from './constants.js';
2
+ export type Harness = (typeof HARNESS_VALUES)[number];
3
+ export type PersonaTier = (typeof PERSONA_TIERS)[number];
4
+ export type PersonaIntent = (typeof PERSONA_INTENTS)[number];
5
+ export type PersonaTag = (typeof PERSONA_TAGS)[number];
6
+ export type CodexSandboxMode = (typeof CODEX_SANDBOX_MODES)[number];
7
+ export type CodexApprovalPolicy = (typeof CODEX_APPROVAL_POLICIES)[number];
8
+ export type SidecarMdMode = (typeof SIDECAR_MD_MODES)[number];
9
+ export type PermissionMode = (typeof PERMISSION_MODES)[number];
10
+ export type SkillSourceKind = (typeof SKILL_SOURCE_KINDS)[number];
11
+ export interface HarnessSettings {
12
+ reasoning: 'low' | 'medium' | 'high';
13
+ timeoutSeconds: number;
14
+ /**
15
+ * Codex CLI sandbox mode for model-generated shell commands. Prefer
16
+ * `workspace-write` with `workspaceWriteNetworkAccess` when network is the only
17
+ * missing capability; `danger-full-access` is the fully unsandboxed fallback.
18
+ */
19
+ sandboxMode?: CodexSandboxMode;
20
+ /** Codex CLI approval policy (`--ask-for-approval`). */
21
+ approvalPolicy?: CodexApprovalPolicy;
22
+ /**
23
+ * Allow outbound network access inside Codex's workspace-write sandbox
24
+ * (`sandbox_workspace_write.network_access`).
25
+ */
26
+ workspaceWriteNetworkAccess?: boolean;
27
+ /** Enable the Codex live web-search tool for this runtime. */
28
+ webSearch?: boolean;
29
+ }
30
+ export interface PersonaRuntime {
31
+ harness: Harness;
32
+ model: string;
33
+ systemPrompt: string;
34
+ harnessSettings: HarnessSettings;
35
+ /**
36
+ * Per-tier override of the persona's `claudeMd` path. Resolves to an
37
+ * absolute filesystem path on the parsed spec — for built-ins, the value
38
+ * comes from `claudeMdContent` instead of a path. Materialized into the
39
+ * sandbox mount as `/CLAUDE.md` when running under the claude harness.
40
+ */
41
+ claudeMd?: string;
42
+ /** Per-tier override of {@link PersonaSpec.claudeMdMode}. */
43
+ claudeMdMode?: SidecarMdMode;
44
+ /** Per-tier override of the persona's `agentsMd` path. */
45
+ agentsMd?: string;
46
+ /** Per-tier override of {@link PersonaSpec.agentsMdMode}. */
47
+ agentsMdMode?: SidecarMdMode;
48
+ /**
49
+ * Inlined sidecar content for built-in personas. The catalog generator
50
+ * reads the sibling `.md` at build time and emits its body here so the
51
+ * installed package does not need to ship the file separately. Runtime
52
+ * code prefers this over `claudeMd` when both are set.
53
+ */
54
+ claudeMdContent?: string;
55
+ /** Inlined `AGENTS.md` content for built-in personas (see {@link claudeMdContent}). */
56
+ agentsMdContent?: string;
57
+ }
58
+ /**
59
+ * A skill is a named, reusable capability attached to a persona.
60
+ * `source` points to canonical guidance the persona should apply
61
+ * (e.g. a prpm.dev package URL, an internal runbook, a docs page).
62
+ */
63
+ export interface PersonaSkill {
64
+ id: string;
65
+ source: string;
66
+ description: string;
67
+ }
68
+ /**
69
+ * Prompt-visible runtime input declared by a persona. Inputs are for
70
+ * non-secret run configuration such as output paths, target package names, or
71
+ * mode switches. Launchers resolve each input from explicit values, the
72
+ * process environment, or `default`, then substitute `$NAME` / `${NAME}` in
73
+ * the system prompt before spawning the harness.
74
+ */
75
+ export interface PersonaInputSpec {
76
+ /** Human-readable explanation shown in docs/catalog UIs. */
77
+ description?: string;
78
+ /**
79
+ * Environment variable to read when the launcher did not provide an
80
+ * explicit value. Defaults to the input key itself.
81
+ */
82
+ env?: string;
83
+ /** Literal fallback used when neither an explicit value nor env var exists. */
84
+ default?: string;
85
+ /**
86
+ * When true, the input is allowed to resolve to an empty string. The
87
+ * launcher substitutes `$NAME` with `''` rather than throwing
88
+ * `MissingPersonaInputError`. Use for inputs whose absence is meaningful
89
+ * — e.g. an upstream task description that may or may not be forwarded —
90
+ * and prefer non-optional inputs with a `default` for everything else so
91
+ * misconfigured launches surface loudly.
92
+ */
93
+ optional?: boolean;
94
+ }
95
+ /**
96
+ * Persona-level permission policy for the harness session. Translates to the
97
+ * harness's native allow/deny/mode flags at spawn time. Tool-pattern syntax is
98
+ * passed through verbatim — `"mcp__posthog"` to allow every posthog MCP tool,
99
+ * `"mcp__posthog__projects-get"` for a specific one, `"Bash(git *)"` for a
100
+ * shell pattern. See the target harness's docs for the exact grammar.
101
+ */
102
+ export interface PersonaPermissions {
103
+ /** Tool names/patterns to auto-approve. */
104
+ allow?: string[];
105
+ /** Tool names/patterns to always block. */
106
+ deny?: string[];
107
+ /** Permission mode for the session. */
108
+ mode?: PermissionMode;
109
+ }
110
+ /**
111
+ * Relayfile mount policy for interactive sessions. Patterns use gitignore
112
+ * syntax. `ignoredPatterns` are omitted from the mount entirely;
113
+ * `readonlyPatterns` are copied into the mount but edits do not sync back.
114
+ * Launchers may merge these with project-level `.agentignore` /
115
+ * `.agentreadonly` dotfiles.
116
+ */
117
+ export interface PersonaMount {
118
+ ignoredPatterns?: string[];
119
+ readonlyPatterns?: string[];
120
+ }
121
+ /**
122
+ * MCP server config, structured to match Claude Code's `--mcp-config` JSON
123
+ * verbatim so the whole object can be passed through untouched. Values inside
124
+ * `headers` / `env` / `args` / `url` / `command` may be literal strings or
125
+ * `$VAR` / `${VAR}` references. Resolution happens in the runner/CLI at spawn
126
+ * time — this package only defines the shape, not the interpolation policy.
127
+ */
128
+ export type McpServerSpec = {
129
+ type: 'http' | 'sse';
130
+ url: string;
131
+ headers?: Record<string, string>;
132
+ } | {
133
+ type: 'stdio';
134
+ command: string;
135
+ args?: string[];
136
+ env?: Record<string, string>;
137
+ };
138
+ export interface PersonaSpec {
139
+ id: string;
140
+ intent: string;
141
+ /**
142
+ * Free-form classification labels (from {@link PERSONA_TAGS}). Every persona
143
+ * has at least one; a persona may carry multiple tags when it spans concerns
144
+ * (e.g. `['testing', 'implementation']`).
145
+ */
146
+ tags: PersonaTag[];
147
+ description: string;
148
+ skills: PersonaSkill[];
149
+ /**
150
+ * Prompt-visible runtime inputs. Keys must be env-style names
151
+ * (`OUTPUT_PATH`, `TARGET_DIR`, etc.). Never put secrets here; resolved
152
+ * values are substituted into the persona's system prompt.
153
+ */
154
+ inputs?: Record<string, PersonaInputSpec>;
155
+ tiers: Record<PersonaTier, PersonaRuntime>;
156
+ /**
157
+ * Persona-author's preferred tier when a caller does not request one
158
+ * explicitly. Selectors like `agentworkforce agent <persona>` (no `@<tier>`
159
+ * suffix) resolve to this value before falling back to `'best-value'`.
160
+ * Routing-profile rules continue to override this for built-in personas
161
+ * resolved through {@link resolvePersona}.
162
+ */
163
+ defaultTier?: PersonaTier;
164
+ /**
165
+ * Environment variables injected into the harness child process.
166
+ * Values may be literal strings or `$VAR` references resolved from the
167
+ * caller's environment at spawn time.
168
+ */
169
+ env?: Record<string, string>;
170
+ /**
171
+ * MCP servers to attach to the harness session. Only wired for `claude`
172
+ * today (via `--mcp-config`); other harnesses warn and skip.
173
+ */
174
+ mcpServers?: Record<string, McpServerSpec>;
175
+ /**
176
+ * Permission policy (allow/deny lists, mode) for the harness session.
177
+ * Only wired for `claude` today (via `--allowedTools`, `--disallowedTools`,
178
+ * `--permission-mode`); other harnesses warn and skip.
179
+ */
180
+ permissions?: PersonaPermissions;
181
+ /**
182
+ * Relayfile mount policy for file visibility and writability. Applied by
183
+ * launchers that run the harness inside `@relayfile/local-mount`.
184
+ */
185
+ mount?: PersonaMount;
186
+ /**
187
+ * Author-supplied path to a `CLAUDE.md` sidecar that should be applied
188
+ * when the persona runs under the claude harness. The path is relative
189
+ * to the JSON file that declared the field; the loader resolves it to
190
+ * an already-absolute path on the parsed spec. Built-in personas inline
191
+ * the content into {@link PersonaRuntime.claudeMdContent} at build time.
192
+ */
193
+ claudeMd?: string;
194
+ /** Defaults to `overwrite`. See {@link SidecarMdMode}. */
195
+ claudeMdMode?: SidecarMdMode;
196
+ /**
197
+ * Author-supplied path to an `AGENTS.md` sidecar that should be applied
198
+ * when the persona runs under the opencode harness. Same resolution
199
+ * rules as {@link claudeMd}.
200
+ */
201
+ agentsMd?: string;
202
+ /** Defaults to `overwrite`. See {@link SidecarMdMode}. */
203
+ agentsMdMode?: SidecarMdMode;
204
+ /** Inlined `CLAUDE.md` content for built-in personas (see {@link PersonaRuntime.claudeMdContent}). */
205
+ claudeMdContent?: string;
206
+ /** Inlined `AGENTS.md` content for built-in personas. */
207
+ agentsMdContent?: string;
208
+ }
209
+ export interface PersonaSelection {
210
+ personaId: string;
211
+ tier: PersonaTier;
212
+ runtime: PersonaRuntime;
213
+ skills: PersonaSkill[];
214
+ rationale: string;
215
+ inputs?: Record<string, PersonaInputSpec>;
216
+ inputValues?: Record<string, string>;
217
+ env?: Record<string, string>;
218
+ mcpServers?: Record<string, McpServerSpec>;
219
+ permissions?: PersonaPermissions;
220
+ mount?: PersonaMount;
221
+ /**
222
+ * Effective sidecar config for the selected (tier, harness). Already-
223
+ * cascaded across top-level/per-tier so launchers don't have to re-walk
224
+ * the spec. Modes default to `overwrite`.
225
+ */
226
+ claudeMd?: string;
227
+ claudeMdContent?: string;
228
+ claudeMdMode?: SidecarMdMode;
229
+ agentsMd?: string;
230
+ agentsMdContent?: string;
231
+ agentsMdMode?: SidecarMdMode;
232
+ }
233
+ /** Per-harness rules for where skills land on disk and how to ask prpm for them. */
234
+ export interface HarnessSkillTarget {
235
+ /** Value passed to `prpm install --as <flag>`. */
236
+ asFlag: string;
237
+ /** Directory (relative to repo root) where prpm drops the skill package. */
238
+ dir: string;
239
+ }
240
+ /**
241
+ * Options for {@link materializeSkills} / {@link materializeSkillsFor}.
242
+ *
243
+ * `installRoot` stages skills under an out-of-repo directory (typically
244
+ * `~/.agentworkforce/workforce/sessions/<id>/claude/plugin`) that doubles as a Claude
245
+ * Code plugin root. The SDK generates the scaffold (`.claude-plugin/plugin.json`
246
+ * and a `skills` symlink pointing at `.claude/skills/`), prpm installs into
247
+ * `<installRoot>/.claude/skills/<name>/`, and post-run cleanup removes the
248
+ * entire `installRoot` in one `rm -rf` — no files ever touch the repo.
249
+ *
250
+ * Only honored for `harness === 'claude'`. Passing `installRoot` with another
251
+ * harness throws. The caller must supply an absolute path; when the generated
252
+ * install command runs, it `mkdir -p`s `installRoot` and any missing parents
253
+ * needed for the scaffold (`.claude-plugin/`, `.claude/skills/`).
254
+ */
255
+ export interface SkillMaterializationOptions {
256
+ installRoot?: string;
257
+ }
258
+ export interface SkillInstall {
259
+ skillId: string;
260
+ /** Original `source` string from the persona JSON. */
261
+ source: string;
262
+ sourceKind: SkillSourceKind;
263
+ /** Normalized package reference (e.g. `@prpm/npm-trusted-publishing`, `vercel-labs/skills#find-skills`). */
264
+ packageRef: string;
265
+ harness: Harness;
266
+ /** argv-style command — safer than a shell string for execFile/spawn callers. */
267
+ installCommand: readonly string[];
268
+ /** Directory the skill is expected to land in after install. */
269
+ installedDir: string;
270
+ /** Path to the installed SKILL.md manifest (for prompt injection fallback). */
271
+ installedManifest: string;
272
+ /**
273
+ * Paths the installer scatters outside of a durable lockfile — safe to
274
+ * `rm -rf` once the persona run has read what it needs from them. The
275
+ * provider's lockfile (`prpm.lock`, `skills-lock.json`, etc.) is deliberately
276
+ * omitted so repeat runs can stay fast and reproducible.
277
+ */
278
+ cleanupPaths: readonly string[];
279
+ }
280
+ export interface SkillMaterializationPlan {
281
+ harness: Harness;
282
+ installs: SkillInstall[];
283
+ /**
284
+ * Absolute path to the out-of-repo stage directory, when the plan was
285
+ * produced with {@link SkillMaterializationOptions.installRoot}. When set,
286
+ * the install artifacts emit plugin scaffolding at this root and cleanup
287
+ * removes the whole directory instead of individual skill paths.
288
+ */
289
+ sessionInstallRoot?: string;
290
+ }
291
+ export interface PersonaInstallContext {
292
+ /** Pure install plan for the persona's skills. Describes what would be installed and where, with no side effects. */
293
+ readonly plan: SkillMaterializationPlan;
294
+ /** Full install command in argv form, suitable for `execFile`/`spawn` without shell escaping concerns. */
295
+ readonly command: readonly string[];
296
+ /** Shell-escaped form of the full install command, convenient for `spawn(..., { shell: true })`. */
297
+ readonly commandString: string;
298
+ /**
299
+ * Post-run cleanup command (argv form) that removes the ephemeral artifact
300
+ * paths the provider scatters during install, leaving the provider lockfile
301
+ * in place. Callers running the install themselves should run this **after**
302
+ * the agent step consumes the skills, never before. For empty plans this is
303
+ * a shell no-op (`:`).
304
+ */
305
+ readonly cleanupCommand: readonly string[];
306
+ /** Shell-escaped form of {@link cleanupCommand}. */
307
+ readonly cleanupCommandString: string;
308
+ }
309
+ /**
310
+ * Return value of {@link usePersona}. A side-effect-free bundle of "what this
311
+ * persona is" plus grouped install metadata. Nothing is installed, spawned, or
312
+ * written to disk by constructing this object — run `install.commandString`
313
+ * yourself when you are ready to materialize the persona's skills.
314
+ */
315
+ export interface PersonaContext {
316
+ /** Resolved persona choice for this intent/profile: identity, tier, runtime, skills, and routing rationale. */
317
+ readonly selection: PersonaSelection;
318
+ /** Grouped install metadata for the resolved persona's skills. */
319
+ readonly install: PersonaInstallContext;
320
+ }
321
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,O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G;IAC1G,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,oGAAoG;IACpG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,oDAAoD;IACpD,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;CACvC;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,+GAA+G;IAC/G,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;CACzC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@agentworkforce/persona-kit",
3
+ "version": "0.19.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "package.json"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/AgentWorkforce/workforce",
22
+ "directory": "packages/persona-kit"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "dependencies": {
28
+ "@relayfile/local-mount": "^0.7.0"
29
+ },
30
+ "scripts": {
31
+ "build": "tsc -p tsconfig.json",
32
+ "dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
33
+ "typecheck": "tsc -p tsconfig.json --noEmit",
34
+ "test": "tsc -p tsconfig.json && node --test dist/*.test.js",
35
+ "lint": "tsc -p tsconfig.json --noEmit"
36
+ }
37
+ }