harnessed 4.14.0 → 4.14.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/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var package_default = {
3
- version: "4.14.0"};
3
+ version: "4.14.2"};
4
4
 
5
5
  // src/index.ts
6
6
  var VERSION = package_default.version;
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.14.0\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
1
+ {"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.14.2\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
@@ -18,11 +18,27 @@ spec:
18
18
  install_type: git
19
19
  install:
20
20
  method: git-clone-with-setup
21
- cmd: "rm -rf ~/.claude/skills/gstack && git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && bash ./setup.sh"
21
+ # v4.14.2 — 上游脚本 setup.sh → setup 改名 + repo 布局改为根级 skill dirs
22
+ # (office-hours/SKILL.md,原 skills/office-hours.md 已不存在;本机 v1.52+ 实证)。
23
+ # clone 保持无 flag 的 `git clone <url> <dest>` 形状 — extractGitCloneTarget
24
+ # 与 git-clone-idempotent 回归测试锁定该相邻性(--single-branch 会使解析错位)。
25
+ cmd: "rm -rf ~/.claude/skills/gstack && git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && bash ./setup"
22
26
  git_ref: 14fc0866d9ac9d09d25adcac7b4437c0a235902b
23
27
  idempotent_check: "test -d ~/.claude/skills/gstack/.git"
28
+ # v4.14.2 — 用户指正: gstack 官方支持 10 agents(README § Other AI Agents),
29
+ # codex 走 `./setup --host codex`,skills 装到 ~/.codex/skills/gstack-*/。
30
+ harness_overrides:
31
+ codex:
32
+ install:
33
+ method: git-clone-with-setup
34
+ cmd: "rm -rf ~/gstack && git clone https://github.com/garrytan/gstack.git ~/gstack && cd ~/gstack && bash ./setup --host codex"
35
+ git_ref: 14fc0866d9ac9d09d25adcac7b4437c0a235902b
36
+ idempotent_check: "ls ~/.codex/skills 2>/dev/null | grep -q '^gstack-'"
37
+ verify:
38
+ cmd: "ls ~/.codex/skills | grep -q '^gstack-'"
39
+ timeout_ms: 10000
24
40
  verify:
25
- cmd: "test -f ~/.claude/skills/gstack/skills/office-hours.md"
41
+ cmd: "test -f ~/.claude/skills/gstack/office-hours/SKILL.md"
26
42
  timeout_ms: 5000
27
43
  uninstall:
28
44
  cmd: "rm -rf ~/.claude/skills/gstack"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harnessed",
3
- "version": "4.14.0",
3
+ "version": "4.14.2",
4
4
  "description": "AI coding harness package manager + composition orchestrator",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -892,6 +892,412 @@
892
892
  }
893
893
  }
894
894
  }
895
+ },
896
+ "harness_overrides": {
897
+ "additionalProperties": false,
898
+ "type": "object",
899
+ "properties": {
900
+ "codex": {
901
+ "additionalProperties": false,
902
+ "type": "object",
903
+ "required": [
904
+ "install"
905
+ ],
906
+ "properties": {
907
+ "install": {
908
+ "type": "object",
909
+ "discriminator": {
910
+ "propertyName": "method"
911
+ },
912
+ "required": [
913
+ "method"
914
+ ],
915
+ "properties": {
916
+ "method": {
917
+ "type": "string"
918
+ }
919
+ },
920
+ "oneOf": [
921
+ {
922
+ "additionalProperties": false,
923
+ "type": "object",
924
+ "required": [
925
+ "method",
926
+ "cmd",
927
+ "git_ref",
928
+ "idempotent_check"
929
+ ],
930
+ "properties": {
931
+ "method": {
932
+ "const": "cc-plugin-marketplace",
933
+ "type": "string"
934
+ },
935
+ "cmd": {
936
+ "minLength": 1,
937
+ "type": "string"
938
+ },
939
+ "cwd": {
940
+ "type": "string"
941
+ },
942
+ "env": {
943
+ "type": "object",
944
+ "patternProperties": {
945
+ "^(.*)$": {
946
+ "type": "string"
947
+ }
948
+ }
949
+ },
950
+ "args": {
951
+ "type": "object",
952
+ "patternProperties": {
953
+ "^(.*)$": {}
954
+ }
955
+ },
956
+ "git_ref": {
957
+ "minLength": 1,
958
+ "pattern": "^([a-f0-9]{7,40}|v?\\d+\\.\\d+\\.\\d+([.-][\\w.-]+)?)$",
959
+ "type": "string"
960
+ },
961
+ "idempotent_check": {
962
+ "minLength": 1,
963
+ "type": "string"
964
+ },
965
+ "marketplace_source": {
966
+ "additionalProperties": false,
967
+ "type": "object",
968
+ "required": [
969
+ "source",
970
+ "repo"
971
+ ],
972
+ "properties": {
973
+ "source": {
974
+ "const": "github",
975
+ "type": "string"
976
+ },
977
+ "repo": {
978
+ "pattern": "^[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+$",
979
+ "minLength": 3,
980
+ "type": "string"
981
+ }
982
+ }
983
+ }
984
+ }
985
+ },
986
+ {
987
+ "additionalProperties": false,
988
+ "type": "object",
989
+ "required": [
990
+ "method",
991
+ "cmd",
992
+ "git_ref",
993
+ "idempotent_check"
994
+ ],
995
+ "properties": {
996
+ "method": {
997
+ "const": "git-clone-with-setup",
998
+ "type": "string"
999
+ },
1000
+ "cmd": {
1001
+ "minLength": 1,
1002
+ "type": "string"
1003
+ },
1004
+ "cwd": {
1005
+ "type": "string"
1006
+ },
1007
+ "env": {
1008
+ "type": "object",
1009
+ "patternProperties": {
1010
+ "^(.*)$": {
1011
+ "type": "string"
1012
+ }
1013
+ }
1014
+ },
1015
+ "args": {
1016
+ "type": "object",
1017
+ "patternProperties": {
1018
+ "^(.*)$": {}
1019
+ }
1020
+ },
1021
+ "git_ref": {
1022
+ "minLength": 1,
1023
+ "pattern": "^([a-f0-9]{7,40}|v?\\d+\\.\\d+\\.\\d+([.-][\\w.-]+)?)$",
1024
+ "type": "string"
1025
+ },
1026
+ "idempotent_check": {
1027
+ "minLength": 1,
1028
+ "type": "string"
1029
+ }
1030
+ }
1031
+ },
1032
+ {
1033
+ "additionalProperties": false,
1034
+ "type": "object",
1035
+ "required": [
1036
+ "method",
1037
+ "cmd",
1038
+ "npm_version",
1039
+ "idempotent_check"
1040
+ ],
1041
+ "properties": {
1042
+ "method": {
1043
+ "const": "npx-skill-installer",
1044
+ "type": "string"
1045
+ },
1046
+ "cmd": {
1047
+ "minLength": 1,
1048
+ "type": "string"
1049
+ },
1050
+ "cwd": {
1051
+ "type": "string"
1052
+ },
1053
+ "env": {
1054
+ "type": "object",
1055
+ "patternProperties": {
1056
+ "^(.*)$": {
1057
+ "type": "string"
1058
+ }
1059
+ }
1060
+ },
1061
+ "args": {
1062
+ "type": "object",
1063
+ "patternProperties": {
1064
+ "^(.*)$": {}
1065
+ }
1066
+ },
1067
+ "npm_version": {
1068
+ "minLength": 1,
1069
+ "type": "string"
1070
+ },
1071
+ "idempotent_check": {
1072
+ "minLength": 1,
1073
+ "type": "string"
1074
+ }
1075
+ }
1076
+ },
1077
+ {
1078
+ "additionalProperties": false,
1079
+ "type": "object",
1080
+ "required": [
1081
+ "method",
1082
+ "cmd",
1083
+ "npm_version",
1084
+ "idempotent_check"
1085
+ ],
1086
+ "properties": {
1087
+ "method": {
1088
+ "const": "npm-cli",
1089
+ "type": "string"
1090
+ },
1091
+ "cmd": {
1092
+ "minLength": 1,
1093
+ "type": "string"
1094
+ },
1095
+ "cwd": {
1096
+ "type": "string"
1097
+ },
1098
+ "env": {
1099
+ "type": "object",
1100
+ "patternProperties": {
1101
+ "^(.*)$": {
1102
+ "type": "string"
1103
+ }
1104
+ }
1105
+ },
1106
+ "args": {
1107
+ "type": "object",
1108
+ "patternProperties": {
1109
+ "^(.*)$": {}
1110
+ }
1111
+ },
1112
+ "npm_version": {
1113
+ "minLength": 1,
1114
+ "type": "string"
1115
+ },
1116
+ "idempotent_check": {
1117
+ "minLength": 1,
1118
+ "type": "string"
1119
+ }
1120
+ }
1121
+ },
1122
+ {
1123
+ "additionalProperties": false,
1124
+ "type": "object",
1125
+ "required": [
1126
+ "method",
1127
+ "cmd",
1128
+ "npm_version",
1129
+ "idempotent_check"
1130
+ ],
1131
+ "properties": {
1132
+ "method": {
1133
+ "const": "mcp-stdio-add",
1134
+ "type": "string"
1135
+ },
1136
+ "cmd": {
1137
+ "minLength": 1,
1138
+ "type": "string"
1139
+ },
1140
+ "cwd": {
1141
+ "type": "string"
1142
+ },
1143
+ "env": {
1144
+ "type": "object",
1145
+ "patternProperties": {
1146
+ "^(.*)$": {
1147
+ "type": "string"
1148
+ }
1149
+ }
1150
+ },
1151
+ "args": {
1152
+ "type": "object",
1153
+ "patternProperties": {
1154
+ "^(.*)$": {}
1155
+ }
1156
+ },
1157
+ "npm_version": {
1158
+ "minLength": 1,
1159
+ "type": "string"
1160
+ },
1161
+ "idempotent_check": {
1162
+ "minLength": 1,
1163
+ "type": "string"
1164
+ }
1165
+ }
1166
+ },
1167
+ {
1168
+ "additionalProperties": false,
1169
+ "type": "object",
1170
+ "required": [
1171
+ "method",
1172
+ "cmd",
1173
+ "npm_version",
1174
+ "idempotent_check"
1175
+ ],
1176
+ "properties": {
1177
+ "method": {
1178
+ "const": "mcp-http-add",
1179
+ "type": "string"
1180
+ },
1181
+ "cmd": {
1182
+ "minLength": 1,
1183
+ "type": "string"
1184
+ },
1185
+ "cwd": {
1186
+ "type": "string"
1187
+ },
1188
+ "env": {
1189
+ "type": "object",
1190
+ "patternProperties": {
1191
+ "^(.*)$": {
1192
+ "type": "string"
1193
+ }
1194
+ }
1195
+ },
1196
+ "args": {
1197
+ "type": "object",
1198
+ "patternProperties": {
1199
+ "^(.*)$": {}
1200
+ }
1201
+ },
1202
+ "npm_version": {
1203
+ "minLength": 1,
1204
+ "type": "string"
1205
+ },
1206
+ "idempotent_check": {
1207
+ "minLength": 1,
1208
+ "type": "string"
1209
+ }
1210
+ }
1211
+ },
1212
+ {
1213
+ "additionalProperties": false,
1214
+ "type": "object",
1215
+ "required": [
1216
+ "method",
1217
+ "cmd",
1218
+ "hook_event",
1219
+ "hook_command",
1220
+ "idempotent_check"
1221
+ ],
1222
+ "properties": {
1223
+ "method": {
1224
+ "const": "cc-hook-add",
1225
+ "type": "string"
1226
+ },
1227
+ "cmd": {
1228
+ "minLength": 1,
1229
+ "type": "string"
1230
+ },
1231
+ "cwd": {
1232
+ "type": "string"
1233
+ },
1234
+ "env": {
1235
+ "type": "object",
1236
+ "patternProperties": {
1237
+ "^(.*)$": {
1238
+ "type": "string"
1239
+ }
1240
+ }
1241
+ },
1242
+ "hook_event": {
1243
+ "anyOf": [
1244
+ {
1245
+ "const": "SessionStart",
1246
+ "type": "string"
1247
+ },
1248
+ {
1249
+ "const": "UserPromptSubmit",
1250
+ "type": "string"
1251
+ },
1252
+ {
1253
+ "const": "PreToolUse",
1254
+ "type": "string"
1255
+ },
1256
+ {
1257
+ "const": "PostToolUse",
1258
+ "type": "string"
1259
+ }
1260
+ ]
1261
+ },
1262
+ "hook_matcher": {
1263
+ "type": "string"
1264
+ },
1265
+ "hook_command": {
1266
+ "minLength": 1,
1267
+ "type": "string"
1268
+ },
1269
+ "idempotent_check": {
1270
+ "minLength": 1,
1271
+ "type": "string"
1272
+ }
1273
+ }
1274
+ }
1275
+ ]
1276
+ },
1277
+ "verify": {
1278
+ "additionalProperties": false,
1279
+ "type": "object",
1280
+ "required": [
1281
+ "cmd"
1282
+ ],
1283
+ "properties": {
1284
+ "cmd": {
1285
+ "minLength": 1,
1286
+ "type": "string"
1287
+ },
1288
+ "timeout_ms": {
1289
+ "minimum": 100,
1290
+ "maximum": 60000,
1291
+ "type": "integer"
1292
+ },
1293
+ "expected_exit_code": {
1294
+ "type": "integer"
1295
+ }
1296
+ }
1297
+ }
1298
+ }
1299
+ }
1300
+ }
895
1301
  }
896
1302
  }
897
1303
  }