@pedyc/harness-preset-vue 1.1.0 → 1.2.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.
package/AGENTS.md ADDED
@@ -0,0 +1,5 @@
1
+ # Harness project instructions
2
+
3
+ - Use Vue 3 `<script setup lang="ts">`.
4
+ - Keep product changes under `src/`.
5
+ - Keep component props explicitly typed.
package/README.md CHANGED
@@ -8,16 +8,33 @@ conventions on top of the shared contracts.
8
8
  npx pedyc-harness init --preset vue
9
9
  ```
10
10
 
11
+ This package ships data only: `preset.json`, `policy.json`, `agents.json` and
12
+ `AGENTS.md`. There is no entry point, no build step and no dependency on the Harness
13
+ core. `init` records `@pedyc/harness-preset-vue` in `.harness/harness.json`; the
14
+ policy and agent documents are read from this package at run time rather than copied
15
+ into the project.
16
+
17
+ A preset is a governance specification, not a Runtime plugin: one may declare a code
18
+ entry that registers analyzers and reviewer definitions through the Harness extension
19
+ contract. This package does not — see
20
+ [ADR-003](https://github.com/pedyc/pedyc-harness/blob/main/docs/decisions/ADR-003-preset-as-code.md).
21
+
11
22
  Compared with the `generic` preset:
12
23
 
13
- - `requiredChecks` defaults to `harness:verify`, `type-check`, `test:unit` and
14
- `build`.
24
+ - `requiredChecks` declares `harness:verify`, `type-check`, `test:unit` and `build`,
25
+ so `verify` fails until the project defines those npm scripts.
15
26
  - `AGENTS.md` records the Vue 3 `<script setup lang="ts">`, `src/` boundary and
16
27
  typed-props conventions.
17
- - `detection` declares `vite.config.ts` and the `vue` dependency.
18
28
 
19
- The generated `agents.json` contains no Provider. Real (non dry-run) execution
20
- requires replacing the placeholder Provider with your own Adapter command.
29
+ The supplied `agents.json` contains no Provider. Real (non dry-run) execution
30
+ requires adding your own Adapter command to the project's `.harness/agents.json`.
31
+
32
+ ## Changelog
33
+
34
+ All four Harness packages share one version number and are released together, so
35
+ release notes for this package live in the repository changelog:
36
+
37
+ https://github.com/pedyc/pedyc-harness/blob/main/CHANGELOG.md
21
38
 
22
39
  ## License
23
40
 
package/agents.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "providers": {},
3
+ "planner": {
4
+ "mode": "internal"
5
+ },
6
+ "coder": {
7
+ "mode": "external",
8
+ "provider": "custom"
9
+ },
10
+ "tester": {
11
+ "mode": "external",
12
+ "provider": "custom"
13
+ },
14
+ "reviewer": {
15
+ "mode": "external",
16
+ "provider": "custom"
17
+ }
18
+ }
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@pedyc/harness-preset-vue",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Vue 3 project preset for pedyc-harness",
5
5
  "license": "MIT",
6
- "type": "module",
7
6
  "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
11
- }
7
+ "./preset.json": "./preset.json"
12
8
  },
13
9
  "repository": {
14
10
  "type": "git",
@@ -33,13 +29,10 @@
33
29
  "node": ">=20"
34
30
  },
35
31
  "files": [
36
- "dist",
32
+ "preset.json",
33
+ "policy.json",
34
+ "agents.json",
35
+ "AGENTS.md",
37
36
  "README.md"
38
- ],
39
- "dependencies": {
40
- "@pedyc/harness-core": "1.1.0"
41
- },
42
- "scripts": {
43
- "build": "tsc -p tsconfig.json"
44
- }
37
+ ]
45
38
  }
package/policy.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "maxIterations": 3,
3
+ "protectedPaths": [".github/", ".claude/", ".agents/", ".harness/", "scripts/"],
4
+ "requiredChecks": ["harness:verify", "type-check", "test:unit", "build"],
5
+ "forbiddenCommands": ["git reset --hard", "git checkout --", "npm publish"],
6
+ "allowedAgentCommands": [],
7
+ "allowedProductPaths": ["src/"],
8
+ "agentTimeoutMs": 300000
9
+ }
package/preset.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://pedyc.dev/schema/preset.json",
3
+ "name": "@pedyc/harness-preset-vue",
4
+ "policy": "policy.json",
5
+ "agents": "agents.json",
6
+ "instruction": "AGENTS.md"
7
+ }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type { Preset } from '@pedyc/harness-core/contracts';
2
- export declare const vuePreset: Preset;
3
- export default vuePreset;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAE3D,eAAO,MAAM,SAAS,EAAE,MAuBvB,CAAA;AAED,eAAe,SAAS,CAAA"}
package/dist/index.js DELETED
@@ -1,26 +0,0 @@
1
- export const vuePreset = {
2
- name: 'vue',
3
- detection: { requiredFiles: ['vite.config.ts'], requiredDependencies: ['vue'] },
4
- defaultProductPaths: ['src/'],
5
- verificationScripts: ['harness:verify', 'type-check', 'test:unit', 'build'],
6
- skills: [],
7
- policy: {
8
- maxIterations: 3,
9
- protectedPaths: ['.github/', '.claude/', '.agents/', '.harness/', 'scripts/'],
10
- requiredChecks: ['harness:verify', 'type-check', 'test:unit', 'build'],
11
- forbiddenCommands: ['git reset --hard', 'git checkout --', 'npm publish'],
12
- allowedAgentCommands: [],
13
- allowedProductPaths: ['src/'],
14
- agentTimeoutMs: 300000,
15
- },
16
- agents: {
17
- providers: {},
18
- planner: { mode: 'internal' },
19
- coder: { mode: 'external', provider: 'custom' },
20
- tester: { mode: 'external', provider: 'custom' },
21
- reviewer: { mode: 'external', provider: 'custom' },
22
- },
23
- instruction: '# Harness project instructions\n\n- Use Vue 3 `<script setup lang="ts">`.\n- Keep product changes under `src/`.\n- Keep component props explicitly typed.\n',
24
- };
25
- export default vuePreset;
26
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAW;IAC/B,IAAI,EAAE,KAAK;IACX,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,CAAC,KAAK,CAAC,EAAE;IAC/E,mBAAmB,EAAE,CAAC,MAAM,CAAC;IAC7B,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC;IAC3E,MAAM,EAAE,EAAE;IACV,MAAM,EAAE;QACN,aAAa,EAAE,CAAC;QAChB,cAAc,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;QAC7E,cAAc,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC;QACtE,iBAAiB,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,CAAC;QACzE,oBAAoB,EAAE,EAAE;QACxB,mBAAmB,EAAE,CAAC,MAAM,CAAC;QAC7B,cAAc,EAAE,MAAM;KACvB;IACD,MAAM,EAAE;QACN,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;QAC7B,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAChD,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACnD;IACD,WAAW,EAAE,6JAA6J;CAC3K,CAAA;AAED,eAAe,SAAS,CAAA"}