doc-detective 4.0.0-beta.1-dev.3 → 4.0.0-beta.1-dev.5
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/.doc-detective.json +1 -0
- package/package.json +5 -2
- package/screenshot-boolean.png +0 -0
- package/.coderabbit.yaml +0 -22
- package/.github/FUNDING.yml +0 -14
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/auto-dev-release.yml +0 -227
- package/.github/workflows/npm-test.yaml +0 -141
- package/.mocharc.yml +0 -3
- package/dev/dev.config.json +0 -4
- package/dev/dev.spec.json +0 -30
- package/dev/index.js +0 -7
- package/dist/common/src/detectTests.d.ts +0 -106
- package/dist/common/src/detectTests.d.ts.map +0 -1
- package/dist/common/src/detectTests.js +0 -585
- package/dist/common/src/detectTests.js.map +0 -1
- package/dist/common/src/index.d.ts +0 -4
- package/dist/common/src/index.d.ts.map +0 -1
- package/dist/common/src/index.js +0 -4
- package/dist/common/src/index.js.map +0 -1
- package/dist/common/src/schemas/index.d.ts +0 -5
- package/dist/common/src/schemas/index.d.ts.map +0 -1
- package/dist/common/src/schemas/index.js +0 -3
- package/dist/common/src/schemas/index.js.map +0 -1
- package/dist/common/src/schemas/schemas.json +0 -121331
- package/dist/common/src/types/generated/checkLink_v3.d.ts +0 -27
- package/dist/common/src/types/generated/checkLink_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/checkLink_v3.js +0 -7
- package/dist/common/src/types/generated/checkLink_v3.js.map +0 -1
- package/dist/common/src/types/generated/click_v3.d.ts +0 -16
- package/dist/common/src/types/generated/click_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/click_v3.js +0 -7
- package/dist/common/src/types/generated/click_v3.js.map +0 -1
- package/dist/common/src/types/generated/config_v3.d.ts +0 -398
- package/dist/common/src/types/generated/config_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/config_v3.js +0 -7
- package/dist/common/src/types/generated/config_v3.js.map +0 -1
- package/dist/common/src/types/generated/context_v3.d.ts +0 -108
- package/dist/common/src/types/generated/context_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/context_v3.js +0 -7
- package/dist/common/src/types/generated/context_v3.js.map +0 -1
- package/dist/common/src/types/generated/dragAndDrop_v3.d.ts +0 -37
- package/dist/common/src/types/generated/dragAndDrop_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/dragAndDrop_v3.js +0 -7
- package/dist/common/src/types/generated/dragAndDrop_v3.js.map +0 -1
- package/dist/common/src/types/generated/endRecord_v3.d.ts +0 -9
- package/dist/common/src/types/generated/endRecord_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/endRecord_v3.js +0 -7
- package/dist/common/src/types/generated/endRecord_v3.js.map +0 -1
- package/dist/common/src/types/generated/find_v3.d.ts +0 -16
- package/dist/common/src/types/generated/find_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/find_v3.js +0 -7
- package/dist/common/src/types/generated/find_v3.js.map +0 -1
- package/dist/common/src/types/generated/goTo_v3.d.ts +0 -46
- package/dist/common/src/types/generated/goTo_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/goTo_v3.js +0 -7
- package/dist/common/src/types/generated/goTo_v3.js.map +0 -1
- package/dist/common/src/types/generated/httpRequest_v3.d.ts +0 -16
- package/dist/common/src/types/generated/httpRequest_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/httpRequest_v3.js +0 -7
- package/dist/common/src/types/generated/httpRequest_v3.js.map +0 -1
- package/dist/common/src/types/generated/loadCookie_v3.d.ts +0 -16
- package/dist/common/src/types/generated/loadCookie_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/loadCookie_v3.js +0 -7
- package/dist/common/src/types/generated/loadCookie_v3.js.map +0 -1
- package/dist/common/src/types/generated/loadVariables_v3.d.ts +0 -9
- package/dist/common/src/types/generated/loadVariables_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/loadVariables_v3.js +0 -7
- package/dist/common/src/types/generated/loadVariables_v3.js.map +0 -1
- package/dist/common/src/types/generated/openApi_v3.d.ts +0 -62
- package/dist/common/src/types/generated/openApi_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/openApi_v3.js +0 -7
- package/dist/common/src/types/generated/openApi_v3.js.map +0 -1
- package/dist/common/src/types/generated/record_v3.d.ts +0 -32
- package/dist/common/src/types/generated/record_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/record_v3.js +0 -7
- package/dist/common/src/types/generated/record_v3.js.map +0 -1
- package/dist/common/src/types/generated/report_v3.d.ts +0 -174
- package/dist/common/src/types/generated/report_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/report_v3.js +0 -7
- package/dist/common/src/types/generated/report_v3.js.map +0 -1
- package/dist/common/src/types/generated/resolvedTests_v3.d.ts +0 -571
- package/dist/common/src/types/generated/resolvedTests_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/resolvedTests_v3.js +0 -7
- package/dist/common/src/types/generated/resolvedTests_v3.js.map +0 -1
- package/dist/common/src/types/generated/runCode_v3.d.ts +0 -57
- package/dist/common/src/types/generated/runCode_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/runCode_v3.js +0 -7
- package/dist/common/src/types/generated/runCode_v3.js.map +0 -1
- package/dist/common/src/types/generated/runShell_v3.d.ts +0 -56
- package/dist/common/src/types/generated/runShell_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/runShell_v3.js +0 -7
- package/dist/common/src/types/generated/runShell_v3.js.map +0 -1
- package/dist/common/src/types/generated/saveCookie_v3.d.ts +0 -16
- package/dist/common/src/types/generated/saveCookie_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/saveCookie_v3.js +0 -7
- package/dist/common/src/types/generated/saveCookie_v3.js.map +0 -1
- package/dist/common/src/types/generated/screenshot_v3.d.ts +0 -74
- package/dist/common/src/types/generated/screenshot_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/screenshot_v3.js +0 -7
- package/dist/common/src/types/generated/screenshot_v3.js.map +0 -1
- package/dist/common/src/types/generated/sourceIntegration_v3.d.ts +0 -30
- package/dist/common/src/types/generated/sourceIntegration_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/sourceIntegration_v3.js +0 -7
- package/dist/common/src/types/generated/sourceIntegration_v3.js.map +0 -1
- package/dist/common/src/types/generated/spec_v3.d.ts +0 -159
- package/dist/common/src/types/generated/spec_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/spec_v3.js +0 -7
- package/dist/common/src/types/generated/spec_v3.js.map +0 -1
- package/dist/common/src/types/generated/step_v3.d.ts +0 -1270
- package/dist/common/src/types/generated/step_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/step_v3.js +0 -7
- package/dist/common/src/types/generated/step_v3.js.map +0 -1
- package/dist/common/src/types/generated/stopRecord_v3.d.ts +0 -9
- package/dist/common/src/types/generated/stopRecord_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/stopRecord_v3.js +0 -7
- package/dist/common/src/types/generated/stopRecord_v3.js.map +0 -1
- package/dist/common/src/types/generated/test_v3.d.ts +0 -2915
- package/dist/common/src/types/generated/test_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/test_v3.js +0 -7
- package/dist/common/src/types/generated/test_v3.js.map +0 -1
- package/dist/common/src/types/generated/type_v3.d.ts +0 -54
- package/dist/common/src/types/generated/type_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/type_v3.js +0 -7
- package/dist/common/src/types/generated/type_v3.js.map +0 -1
- package/dist/common/src/types/generated/wait_v3.d.ts +0 -12
- package/dist/common/src/types/generated/wait_v3.d.ts.map +0 -1
- package/dist/common/src/types/generated/wait_v3.js +0 -7
- package/dist/common/src/types/generated/wait_v3.js.map +0 -1
- package/dist/common/src/validate.d.ts +0 -41
- package/dist/common/src/validate.d.ts.map +0 -1
- package/dist/common/src/validate.js +0 -557
- package/dist/common/src/validate.js.map +0 -1
- package/doc-detective.svg +0 -26
- package/icon.png +0 -0
- package/image.png +0 -0
- package/reference.png +0 -0
- package/samples/.doc-detective.json +0 -94
- package/samples/doc-content-detect.md +0 -10
- package/samples/doc-content-inline-tests.md +0 -23
- package/samples/docker-hello.spec.json +0 -15
- package/samples/env +0 -3
- package/samples/http.spec.yaml +0 -37
- package/samples/kitten-search-detect.md +0 -8
- package/samples/kitten-search-inline.md +0 -15
- package/samples/kitten-search.spec.json +0 -28
- package/samples/local-gui.md +0 -6
- package/samples/tests.spec.json +0 -70
- package/samples/variables.env +0 -5
- package/scripts/createCjsWrapper.js +0 -31
- package/scripts/postinstall.js +0 -98
- package/src/checkDependencies.ts +0 -82
- package/src/cli.ts +0 -70
- package/src/common/.c8rc.json +0 -8
- package/src/common/.claude/skills/tdd-coverage/SKILL.md +0 -161
- package/src/common/.coderabbit.yaml +0 -93
- package/src/common/.devcontainer/devcontainer.json +0 -37
- package/src/common/.github/FUNDING.yml +0 -14
- package/src/common/.github/workflows/auto-dev-release.yml +0 -192
- package/src/common/.github/workflows/npm-test.yml +0 -156
- package/src/common/.mocharc.yml +0 -1
- package/src/common/AGENTS.md +0 -332
- package/src/common/CLAUDE.md +0 -38
- package/src/common/LICENSE +0 -661
- package/src/common/README.md +0 -77
- package/src/common/coverage-thresholds.json +0 -8
- package/src/common/dev/dev.js +0 -31
- package/src/common/docs/auto-dev-release.md +0 -196
- package/src/common/docs/typescript-examples.md +0 -580
- package/src/common/docs/typescript-migration.md +0 -394
- package/src/common/icon.png +0 -0
- package/src/common/package-lock.json +0 -2133
- package/src/common/package.json +0 -59
- package/src/common/plans/plan-typescriptMigration.prompt.md +0 -25
- package/src/common/scripts/check-coverage-ratchet.cjs +0 -123
- package/src/common/scripts/createCjsWrapper.js +0 -25
- package/src/common/scripts/generateTypes.cjs +0 -54
- package/src/common/src/detectTests.ts +0 -660
- package/src/common/src/index.ts +0 -3
- package/src/common/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/common/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/common/src/schemas/build/click_v3.schema.json +0 -145
- package/src/common/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/common/src/schemas/build/config_v3.schema.json +0 -696
- package/src/common/src/schemas/build/context_v2.schema.json +0 -135
- package/src/common/src/schemas/build/context_v3.schema.json +0 -229
- package/src/common/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/common/src/schemas/build/find_v2.schema.json +0 -168
- package/src/common/src/schemas/build/find_v3.schema.json +0 -214
- package/src/common/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/common/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/common/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/common/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/common/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/common/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/common/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/common/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/common/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/common/src/schemas/build/record_v3.schema.json +0 -70
- package/src/common/src/schemas/build/report_v3.schema.json +0 -53
- package/src/common/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/common/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/common/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/common/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/common/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/common/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/common/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/common/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/common/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/common/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/common/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/common/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/common/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/common/src/schemas/build/step_v3.schema.json +0 -669
- package/src/common/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/common/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/common/src/schemas/build/test_v2.schema.json +0 -244
- package/src/common/src/schemas/build/test_v3.schema.json +0 -292
- package/src/common/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/common/src/schemas/build/type_v3.schema.json +0 -131
- package/src/common/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/common/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/common/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/common/src/schemas/index.ts +0 -6
- package/src/common/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/common/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/common/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/common/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/common/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/common/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/common/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/common/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/common/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/common/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/common/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/common/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/common/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/common/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/common/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/common/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/common/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/common/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/common/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/common/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/common/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/common/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/common/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/common/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/common/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/common/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/common/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/common/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/common/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/common/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/common/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/common/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/common/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/common/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/common/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/common/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/common/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/common/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/common/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/common/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/common/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/common/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/common/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/common/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/common/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/common/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/common/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/common/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/common/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/common/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/common/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/common/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/common/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/common/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/common/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/common/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/common/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/common/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/common/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/common/src/schemas/schemas.json +0 -121331
- package/src/common/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/common/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/common/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/common/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/common/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/common/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/common/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/common/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/common/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/common/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/common/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/common/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/common/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/common/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/common/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/common/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/common/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/common/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/common/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/common/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/common/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/common/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/common/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/common/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/common/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/common/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/common/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/common/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/common/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/common/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/common/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/common/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/common/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/common/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/common/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/common/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/common/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/common/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/common/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/common/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/common/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/common/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/common/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/common/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/common/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/common/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/common/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/common/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/common/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/common/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/common/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/common/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/common/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/common/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/common/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/common/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/common/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/common/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/common/src/types/generated/checkLink_v3.ts +0 -29
- package/src/common/src/types/generated/click_v3.ts +0 -17
- package/src/common/src/types/generated/config_v3.ts +0 -405
- package/src/common/src/types/generated/context_v3.ts +0 -112
- package/src/common/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/common/src/types/generated/endRecord_v3.ts +0 -10
- package/src/common/src/types/generated/find_v3.ts +0 -17
- package/src/common/src/types/generated/goTo_v3.ts +0 -48
- package/src/common/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/common/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/common/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/common/src/types/generated/openApi_v3.ts +0 -64
- package/src/common/src/types/generated/record_v3.ts +0 -34
- package/src/common/src/types/generated/report_v3.ts +0 -183
- package/src/common/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/common/src/types/generated/runCode_v3.ts +0 -59
- package/src/common/src/types/generated/runShell_v3.ts +0 -58
- package/src/common/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/common/src/types/generated/screenshot_v3.ts +0 -76
- package/src/common/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/common/src/types/generated/spec_v3.ts +0 -166
- package/src/common/src/types/generated/step_v3.ts +0 -1288
- package/src/common/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/common/src/types/generated/test_v3.ts +0 -3048
- package/src/common/src/types/generated/type_v3.ts +0 -56
- package/src/common/src/types/generated/wait_v3.ts +0 -13
- package/src/common/src/validate.ts +0 -627
- package/src/common/test/detectTests.test.js +0 -1572
- package/src/common/test/integration.test.js +0 -276
- package/src/common/test/schema.test.js +0 -30
- package/src/common/test/validate.test.js +0 -1104
- package/src/common/tsconfig.json +0 -22
- package/src/core/appium.ts +0 -26
- package/src/core/config.ts +0 -661
- package/src/core/detectTests.ts +0 -464
- package/src/core/expressions.ts +0 -470
- package/src/core/files.ts +0 -287
- package/src/core/index.ts +0 -83
- package/src/core/integrations/heretto.ts +0 -1001
- package/src/core/integrations/index.ts +0 -275
- package/src/core/openapi.ts +0 -408
- package/src/core/resolveTests.ts +0 -249
- package/src/core/telem.ts +0 -105
- package/src/core/tests/checkLink.ts +0 -99
- package/src/core/tests/click.ts +0 -51
- package/src/core/tests/dragAndDrop.ts +0 -193
- package/src/core/tests/findElement.ts +0 -155
- package/src/core/tests/findStrategies.ts +0 -633
- package/src/core/tests/goTo.ts +0 -503
- package/src/core/tests/httpRequest.ts +0 -681
- package/src/core/tests/loadCookie.ts +0 -366
- package/src/core/tests/loadVariables.ts +0 -37
- package/src/core/tests/moveTo.ts +0 -200
- package/src/core/tests/runCode.ts +0 -143
- package/src/core/tests/runShell.ts +0 -173
- package/src/core/tests/saveCookie.ts +0 -171
- package/src/core/tests/saveScreenshot.ts +0 -427
- package/src/core/tests/scroll.ts +0 -32
- package/src/core/tests/startRecording.ts +0 -213
- package/src/core/tests/stopRecording.ts +0 -126
- package/src/core/tests/typeKeys.ts +0 -195
- package/src/core/tests/wait.ts +0 -60
- package/src/core/tests.ts +0 -1111
- package/src/core/utils.ts +0 -312
- package/src/index.ts +0 -19
- package/src/types/declarations.d.ts +0 -44
- package/src/utils.ts +0 -1026
- package/test/artifacts/cleanup.spec.json +0 -19
- package/test/artifacts/config.json +0 -6
- package/test/artifacts/doc-content.md +0 -23
- package/test/artifacts/env +0 -3
- package/test/artifacts/httpRequest.spec.yaml +0 -37
- package/test/artifacts/runShell.spec.json +0 -29
- package/test/artifacts/setup.spec.json +0 -18
- package/test/artifacts/test.spec.json +0 -46
- package/test/core-artifacts/checkLink.spec.json +0 -36
- package/test/core-artifacts/cleanup.spec.json +0 -19
- package/test/core-artifacts/click_extendedFinding.spec.json +0 -39
- package/test/core-artifacts/config.json +0 -41
- package/test/core-artifacts/context_chrome.spec.json +0 -19
- package/test/core-artifacts/context_firefox.spec.json +0 -19
- package/test/core-artifacts/context_safari.spec.json +0 -19
- package/test/core-artifacts/cookie-test.spec.json +0 -107
- package/test/core-artifacts/doc-content.md +0 -23
- package/test/core-artifacts/dragAndDrop.spec.json +0 -66
- package/test/core-artifacts/enhanced-modal-large.png +0 -0
- package/test/core-artifacts/enhanced-modal.png +0 -0
- package/test/core-artifacts/env +0 -5
- package/test/core-artifacts/find_extendedFinding.spec.json +0 -174
- package/test/core-artifacts/find_matchText.spec.json +0 -28
- package/test/core-artifacts/find_rightClick.spec.json +0 -21
- package/test/core-artifacts/find_setVariables.spec.json +0 -30
- package/test/core-artifacts/goTo-wait.spec.json +0 -119
- package/test/core-artifacts/goTo.spec.json +0 -29
- package/test/core-artifacts/httpRequest.spec.yaml +0 -37
- package/test/core-artifacts/httpRequestFormat.md +0 -9
- package/test/core-artifacts/httpRequest_required.spec.json +0 -170
- package/test/core-artifacts/output/docker-output.txt +0 -1
- package/test/core-artifacts/recording.spec.json +0 -117
- package/test/core-artifacts/runCode.spec.json +0 -40
- package/test/core-artifacts/runShell.spec.json +0 -81
- package/test/core-artifacts/runShell_pipes.spec.json +0 -35
- package/test/core-artifacts/screenshot.spec.json +0 -58
- package/test/core-artifacts/screenshot_extendedFinding.spec.json +0 -30
- package/test/core-artifacts/setup.spec.json +0 -18
- package/test/core-artifacts/static/images/crop.png +0 -0
- package/test/core-artifacts/static/images/padding.png +0 -0
- package/test/core-artifacts/test.spec.json +0 -51
- package/test/core-artifacts/type.spec.json +0 -46
- package/test/core-artifacts/type_extendedFinding.spec.json +0 -29
- package/test/core-artifacts/wait-with-driver.spec.json +0 -59
- package/test/core-artifacts/wait.spec.json +0 -26
- package/test/core-core.test.js +0 -547
- package/test/core-heretto-upload.test.js +0 -438
- package/test/core-need_updates/httpRequest_openApi.spec.json +0 -58
- package/test/core-need_updates/httpRequest_required_failures.spec.json +0 -98
- package/test/core-need_updates/reqres.openapi.json +0 -296
- package/test/core-need_updates/reqres.openapi.yaml +0 -195
- package/test/core-screenshot.test.js +0 -277
- package/test/core-test-enhanced-finding.js +0 -53
- package/test/core-test-helpers.js +0 -72
- package/test/core-upload.test.js +0 -650
- package/test/exports.test.js +0 -42
- package/test/hooks.js +0 -39
- package/test/resolvedTests.test.js +0 -166
- package/test/runTests.test.js +0 -32
- package/test/server/index.js +0 -161
- package/test/server/public/drag-drop-test.html +0 -166
- package/test/server/public/enhanced-elements.html +0 -162
- package/test/server/public/index.html +0 -174
- package/test/server/public/waitUntil-test-dom-mutations-forever.html +0 -34
- package/test/server/public/waitUntil-test-dom-mutations.html +0 -34
- package/test/server/public/waitUntil-test-late-element.html +0 -34
- package/test/server/public/waitUntil-test-network-forever.html +0 -39
- package/test/server/public/waitUntil-test-network.html +0 -27
- package/test/server/public/waitUntil-test-static.html +0 -15
- package/test/test-config.json +0 -13
- package/test/test-results.json +0 -125
- package/test/utils.test.js +0 -637
- package/tsconfig.json +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective",
|
|
3
|
-
"version": "4.0.0-beta.1-dev.
|
|
3
|
+
"version": "4.0.0-beta.1-dev.5",
|
|
4
4
|
"description": "Treat doc content as testable assertions to validate doc accuracy and product UX.",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"src/common"
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
"prerunTests": "node ./dist/checkDependencies.js",
|
|
37
37
|
"runTests": "node ./bin/doc-detective.js runTests",
|
|
38
38
|
"start": "node ./bin/doc-detective.js",
|
|
39
|
-
"dev": "node ./dev"
|
|
39
|
+
"dev": "node ./dev",
|
|
40
|
+
"container:build": "node src/container/scripts/build.cjs",
|
|
41
|
+
"container:rebuild": "node src/container/scripts/build.cjs --no-cache",
|
|
42
|
+
"container:test": "mocha src/container/test/*.test.cjs --timeout 0"
|
|
40
43
|
},
|
|
41
44
|
"repository": {
|
|
42
45
|
"type": "git",
|
package/screenshot-boolean.png
CHANGED
|
Binary file
|
package/.coderabbit.yaml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
|
|
2
|
-
language: "en-US"
|
|
3
|
-
early_access: false
|
|
4
|
-
reviews:
|
|
5
|
-
request_changes_workflow: true
|
|
6
|
-
high_level_summary: true
|
|
7
|
-
poem: true
|
|
8
|
-
review_status: true
|
|
9
|
-
review_details: false
|
|
10
|
-
auto_review:
|
|
11
|
-
enabled: true
|
|
12
|
-
drafts: false
|
|
13
|
-
auto_pause_after_reviewed_commits: 0
|
|
14
|
-
path_filters:
|
|
15
|
-
- "!src/common/src/schemas/output_schemas/**"
|
|
16
|
-
- "!src/common/src/schemas/schemas.json"
|
|
17
|
-
tools:
|
|
18
|
-
github-checks:
|
|
19
|
-
enabled: true
|
|
20
|
-
timeout_ms: 90000
|
|
21
|
-
chat:
|
|
22
|
-
auto_reply: true
|
package/.github/FUNDING.yml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [doc-detective] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
4
|
-
patreon: # Replace with a single Patreon username
|
|
5
|
-
open_collective: doc-detective # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
13
|
-
polar: # Replace with a single Polar username
|
|
14
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
package/.github/dependabot.yml
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "npm" # See documentation for possible values
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "weekly"
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
name: Auto Dev Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
# Don't trigger on release events to avoid conflicts with main release workflow
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
# Allow manual triggering for testing
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
auto-dev-release:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
timeout-minutes: 10
|
|
15
|
-
# Skip if this is a release commit or docs-only changes
|
|
16
|
-
if: |
|
|
17
|
-
!contains(github.event.head_commit.message, '[skip ci]') &&
|
|
18
|
-
!contains(github.event.head_commit.message, 'Release') &&
|
|
19
|
-
github.event_name != 'release'
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- name: Checkout code
|
|
23
|
-
uses: actions/checkout@v4
|
|
24
|
-
with:
|
|
25
|
-
# Need full history for proper version bumping
|
|
26
|
-
fetch-depth: 0
|
|
27
|
-
# Use a token that can push back to the repo
|
|
28
|
-
token: ${{ secrets.DD_DEP_UPDATE_TOKEN }}
|
|
29
|
-
|
|
30
|
-
- name: Setup Node.js
|
|
31
|
-
uses: actions/setup-node@v4
|
|
32
|
-
with:
|
|
33
|
-
node-version: '22'
|
|
34
|
-
cache: 'npm'
|
|
35
|
-
cache-dependency-path: package-lock.json
|
|
36
|
-
registry-url: 'https://registry.npmjs.org/'
|
|
37
|
-
|
|
38
|
-
- name: Check for documentation-only changes
|
|
39
|
-
id: check_changes
|
|
40
|
-
run: |
|
|
41
|
-
# Always release on workflow_dispatch
|
|
42
|
-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
43
|
-
echo "skip_release=false" >> $GITHUB_OUTPUT
|
|
44
|
-
echo "Manual trigger: proceeding with release"
|
|
45
|
-
exit 0
|
|
46
|
-
fi
|
|
47
|
-
|
|
48
|
-
# Get list of changed files
|
|
49
|
-
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }}..${{ github.event.after }})
|
|
50
|
-
|
|
51
|
-
echo "Changed files:"
|
|
52
|
-
echo "$CHANGED_FILES"
|
|
53
|
-
|
|
54
|
-
# Check if only documentation files changed
|
|
55
|
-
if echo "$CHANGED_FILES" | grep -v -E '\.(md|txt|yml|yaml)$|^\.github/' | grep -q .; then
|
|
56
|
-
echo "skip_release=false" >> $GITHUB_OUTPUT
|
|
57
|
-
echo "Code changes detected, proceeding with release"
|
|
58
|
-
else
|
|
59
|
-
echo "skip_release=true" >> $GITHUB_OUTPUT
|
|
60
|
-
echo "Only documentation changes detected, skipping release"
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
- name: Validate package.json
|
|
64
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
65
|
-
run: |
|
|
66
|
-
# Validate package.json exists and is valid JSON
|
|
67
|
-
if [ ! -f "package.json" ]; then
|
|
68
|
-
echo "❌ package.json not found"
|
|
69
|
-
exit 1
|
|
70
|
-
fi
|
|
71
|
-
|
|
72
|
-
# Validate JSON syntax
|
|
73
|
-
if ! node -p "JSON.parse(require('fs').readFileSync('package.json', 'utf8'))" > /dev/null 2>&1; then
|
|
74
|
-
echo "❌ package.json is not valid JSON"
|
|
75
|
-
exit 1
|
|
76
|
-
fi
|
|
77
|
-
|
|
78
|
-
# Check for required fields
|
|
79
|
-
if ! node -p "require('./package.json').name" > /dev/null 2>&1; then
|
|
80
|
-
echo "❌ package.json missing 'name' field"
|
|
81
|
-
exit 1
|
|
82
|
-
fi
|
|
83
|
-
|
|
84
|
-
if ! node -p "require('./package.json').version" > /dev/null 2>&1; then
|
|
85
|
-
echo "❌ package.json missing 'version' field"
|
|
86
|
-
exit 1
|
|
87
|
-
fi
|
|
88
|
-
|
|
89
|
-
echo "✅ package.json validation passed"
|
|
90
|
-
|
|
91
|
-
- name: Install, build, and test
|
|
92
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
93
|
-
run: |
|
|
94
|
-
npm install
|
|
95
|
-
npm run build
|
|
96
|
-
npm test
|
|
97
|
-
|
|
98
|
-
- name: Configure Git
|
|
99
|
-
run: |
|
|
100
|
-
git config --global user.name 'github-actions[bot]'
|
|
101
|
-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
102
|
-
|
|
103
|
-
- name: Generate dev version
|
|
104
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
105
|
-
id: version
|
|
106
|
-
run: |
|
|
107
|
-
# Get current version from package.json
|
|
108
|
-
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
109
|
-
echo "Current version: $CURRENT_VERSION"
|
|
110
|
-
|
|
111
|
-
# Extract base version (remove existing -dev.X suffix if present)
|
|
112
|
-
BASE_VERSION=$(echo $CURRENT_VERSION | sed 's/-dev\.[0-9]*$//')
|
|
113
|
-
echo "Base version: $BASE_VERSION"
|
|
114
|
-
|
|
115
|
-
# Check if we need to get the latest dev version from npm
|
|
116
|
-
LATEST_DEV=$(npm view doc-detective@dev version 2>/dev/null || echo "")
|
|
117
|
-
|
|
118
|
-
if [ -n "$LATEST_DEV" ] && [[ $LATEST_DEV == $BASE_VERSION-dev.* ]]; then
|
|
119
|
-
# Extract the dev number and increment it
|
|
120
|
-
DEV_NUM=$(echo $LATEST_DEV | grep -o 'dev\.[0-9]*$' | grep -o '[0-9]*$')
|
|
121
|
-
NEW_DEV_NUM=$((DEV_NUM + 1))
|
|
122
|
-
else
|
|
123
|
-
# Start with dev.1
|
|
124
|
-
NEW_DEV_NUM=1
|
|
125
|
-
fi
|
|
126
|
-
|
|
127
|
-
NEW_VERSION="$BASE_VERSION-dev.$NEW_DEV_NUM"
|
|
128
|
-
echo "New version: $NEW_VERSION"
|
|
129
|
-
|
|
130
|
-
# Update package.json
|
|
131
|
-
npm version $NEW_VERSION --no-git-tag-version
|
|
132
|
-
|
|
133
|
-
# Set outputs
|
|
134
|
-
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
135
|
-
echo "base_version=$BASE_VERSION" >> $GITHUB_OUTPUT
|
|
136
|
-
|
|
137
|
-
- name: Generate dev version for common
|
|
138
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
139
|
-
id: common_version
|
|
140
|
-
run: |
|
|
141
|
-
# Get current version from common package.json
|
|
142
|
-
CURRENT_VERSION=$(node -p "require('./src/common/package.json').version")
|
|
143
|
-
echo "Current common version: $CURRENT_VERSION"
|
|
144
|
-
|
|
145
|
-
# Extract base version (remove existing -dev.X suffix if present)
|
|
146
|
-
BASE_VERSION=$(echo $CURRENT_VERSION | sed 's/-dev\.[0-9]*$//')
|
|
147
|
-
echo "Base version: $BASE_VERSION"
|
|
148
|
-
|
|
149
|
-
# Check if we need to get the latest dev version from npm
|
|
150
|
-
LATEST_DEV=$(npm view doc-detective-common@dev version 2>/dev/null || echo "")
|
|
151
|
-
|
|
152
|
-
CURRENT_DEV_NUM=$(echo "$CURRENT_VERSION" | sed -n 's/^.*-dev\.\([0-9][0-9]*\)$/\1/p')
|
|
153
|
-
|
|
154
|
-
if [ -n "$LATEST_DEV" ] && [[ "$LATEST_DEV" == "$BASE_VERSION"-dev.* ]]; then
|
|
155
|
-
# Extract the dev number and increment it
|
|
156
|
-
DEV_NUM=$(echo $LATEST_DEV | grep -o 'dev\.[0-9]*$' | grep -o '[0-9]*$')
|
|
157
|
-
NEW_DEV_NUM=$((DEV_NUM + 1))
|
|
158
|
-
elif [ -n "$CURRENT_DEV_NUM" ]; then
|
|
159
|
-
# Bootstrap path when npm has no dev tag yet
|
|
160
|
-
NEW_DEV_NUM=$((CURRENT_DEV_NUM + 1))
|
|
161
|
-
else
|
|
162
|
-
# Start with dev.1
|
|
163
|
-
NEW_DEV_NUM=1
|
|
164
|
-
fi
|
|
165
|
-
|
|
166
|
-
NEW_VERSION="$BASE_VERSION-dev.$NEW_DEV_NUM"
|
|
167
|
-
echo "New common version: $NEW_VERSION"
|
|
168
|
-
|
|
169
|
-
# Update src/common/package.json
|
|
170
|
-
npm version $NEW_VERSION --no-git-tag-version -w src/common
|
|
171
|
-
|
|
172
|
-
# Set outputs
|
|
173
|
-
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
174
|
-
echo "base_version=$BASE_VERSION" >> $GITHUB_OUTPUT
|
|
175
|
-
|
|
176
|
-
- name: Commit version change
|
|
177
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
178
|
-
run: |
|
|
179
|
-
git add package.json package-lock.json src/common/package.json
|
|
180
|
-
git commit -m "Auto dev release: doc-detective@${{ steps.version.outputs.version }}, doc-detective-common@${{ steps.common_version.outputs.version }} [skip ci]"
|
|
181
|
-
|
|
182
|
-
- name: Create and push git tag
|
|
183
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
184
|
-
run: |
|
|
185
|
-
git tag "v${{ steps.version.outputs.version }}"
|
|
186
|
-
git push origin "v${{ steps.version.outputs.version }}"
|
|
187
|
-
git push origin main
|
|
188
|
-
|
|
189
|
-
- name: Publish to npm
|
|
190
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
191
|
-
run: |
|
|
192
|
-
# Add error handling for npm publish
|
|
193
|
-
set -e
|
|
194
|
-
echo "📦 Publishing to npm with 'dev' tag..."
|
|
195
|
-
npm publish --tag dev
|
|
196
|
-
echo "✅ Successfully published to npm"
|
|
197
|
-
env:
|
|
198
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
199
|
-
|
|
200
|
-
- name: Publish common to npm
|
|
201
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
202
|
-
run: |
|
|
203
|
-
set -e
|
|
204
|
-
echo "📦 Publishing doc-detective-common to npm with 'dev' tag..."
|
|
205
|
-
npm publish --workspace src/common --tag dev
|
|
206
|
-
echo "✅ Successfully published doc-detective-common to npm"
|
|
207
|
-
env:
|
|
208
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
209
|
-
|
|
210
|
-
- name: Summary
|
|
211
|
-
if: steps.check_changes.outputs.skip_release == 'false'
|
|
212
|
-
run: |
|
|
213
|
-
echo "✅ Auto dev release completed successfully!"
|
|
214
|
-
echo ""
|
|
215
|
-
echo "📦 doc-detective: v${{ steps.version.outputs.version }}"
|
|
216
|
-
echo "📋 Install with: npm install doc-detective@dev"
|
|
217
|
-
echo ""
|
|
218
|
-
echo "📦 doc-detective-common: v${{ steps.common_version.outputs.version }}"
|
|
219
|
-
echo "📋 Install with: npm install doc-detective-common@dev"
|
|
220
|
-
echo ""
|
|
221
|
-
echo "🏷️ NPM Tag: dev"
|
|
222
|
-
|
|
223
|
-
- name: Skip summary
|
|
224
|
-
if: steps.check_changes.outputs.skip_release == 'true'
|
|
225
|
-
run: |
|
|
226
|
-
echo "⏭️ Auto dev release skipped"
|
|
227
|
-
echo "📝 Only documentation changes detected"
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Test (& Publish)
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
pull_request:
|
|
11
|
-
types:
|
|
12
|
-
- opened
|
|
13
|
-
- reopened
|
|
14
|
-
- synchronize
|
|
15
|
-
release:
|
|
16
|
-
types:
|
|
17
|
-
- published
|
|
18
|
-
workflow_dispatch:
|
|
19
|
-
|
|
20
|
-
permissions:
|
|
21
|
-
contents: read
|
|
22
|
-
|
|
23
|
-
jobs:
|
|
24
|
-
test:
|
|
25
|
-
runs-on: ${{ matrix.os }}
|
|
26
|
-
timeout-minutes: 90
|
|
27
|
-
strategy:
|
|
28
|
-
fail-fast: false
|
|
29
|
-
matrix:
|
|
30
|
-
os:
|
|
31
|
-
- ubuntu-latest
|
|
32
|
-
- windows-latest
|
|
33
|
-
- macos-latest
|
|
34
|
-
node:
|
|
35
|
-
- 20
|
|
36
|
-
- 22
|
|
37
|
-
- 24
|
|
38
|
-
steps:
|
|
39
|
-
- uses: actions/checkout@v4
|
|
40
|
-
|
|
41
|
-
- uses: actions/setup-node@v4
|
|
42
|
-
with:
|
|
43
|
-
node-version: ${{ matrix.node }}
|
|
44
|
-
cache: 'npm'
|
|
45
|
-
cache-dependency-path: package-lock.json
|
|
46
|
-
|
|
47
|
-
- run: npm install
|
|
48
|
-
- run: npm run build
|
|
49
|
-
- run: npm test
|
|
50
|
-
|
|
51
|
-
publish-npm:
|
|
52
|
-
if: github.event_name == 'release' && github.event.action == 'published'
|
|
53
|
-
needs: test
|
|
54
|
-
runs-on: ubuntu-latest
|
|
55
|
-
permissions:
|
|
56
|
-
contents: write
|
|
57
|
-
steps:
|
|
58
|
-
- uses: actions/checkout@v4
|
|
59
|
-
- uses: actions/setup-node@v4
|
|
60
|
-
with:
|
|
61
|
-
node-version: 22
|
|
62
|
-
cache: 'npm'
|
|
63
|
-
cache-dependency-path: package-lock.json
|
|
64
|
-
registry-url: https://registry.npmjs.org/
|
|
65
|
-
|
|
66
|
-
- run: npm install
|
|
67
|
-
- run: npm run build
|
|
68
|
-
- run: npm publish
|
|
69
|
-
env:
|
|
70
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
71
|
-
|
|
72
|
-
test-github-action:
|
|
73
|
-
name: Test GitHub Action
|
|
74
|
-
needs: publish-npm
|
|
75
|
-
runs-on: ubuntu-latest
|
|
76
|
-
steps:
|
|
77
|
-
- uses: actions/checkout@v4
|
|
78
|
-
- uses: doc-detective/github-action@latest
|
|
79
|
-
id: dd
|
|
80
|
-
with:
|
|
81
|
-
config: ./test/artifacts/config.json
|
|
82
|
-
input: ./test/artifacts/doc-content.md
|
|
83
|
-
exit_on_fail: "true"
|
|
84
|
-
|
|
85
|
-
build-docker-image:
|
|
86
|
-
name: Build Docker Image
|
|
87
|
-
needs: publish-npm
|
|
88
|
-
runs-on: ubuntu-latest
|
|
89
|
-
steps:
|
|
90
|
-
- uses: actions/checkout@v4
|
|
91
|
-
|
|
92
|
-
- name: Get package version
|
|
93
|
-
id: get_version
|
|
94
|
-
run: |
|
|
95
|
-
echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
|
|
96
|
-
|
|
97
|
-
- name: Trigger GitHub Action in docker-image repo
|
|
98
|
-
run: |
|
|
99
|
-
curl -X POST -H "Authorization: token ${{ secrets.DD_DEP_UPDATE_TOKEN }}" \
|
|
100
|
-
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
101
|
-
"https://api.github.com/repos/doc-detective/docker-image/dispatches" \
|
|
102
|
-
-d '{ "event_type": "build-push", "client_payload": { "version": "${{ steps.get_version.outputs.version }}", "additional_info": "triggered from npm-publish workflow" } }'
|
|
103
|
-
|
|
104
|
-
publish-npm-common:
|
|
105
|
-
if: github.event_name == 'release' && github.event.action == 'published'
|
|
106
|
-
name: Publish common to NPM
|
|
107
|
-
needs: test
|
|
108
|
-
runs-on: ubuntu-latest
|
|
109
|
-
steps:
|
|
110
|
-
- uses: actions/checkout@v4
|
|
111
|
-
- uses: actions/setup-node@v4
|
|
112
|
-
with:
|
|
113
|
-
node-version: 22
|
|
114
|
-
cache: 'npm'
|
|
115
|
-
cache-dependency-path: package-lock.json
|
|
116
|
-
registry-url: https://registry.npmjs.org/
|
|
117
|
-
|
|
118
|
-
- run: npm install
|
|
119
|
-
- run: npm run build
|
|
120
|
-
- run: npm publish --workspace src/common
|
|
121
|
-
env:
|
|
122
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
123
|
-
|
|
124
|
-
update-downstream-common:
|
|
125
|
-
name: Update downstream common packages
|
|
126
|
-
needs: publish-npm-common
|
|
127
|
-
runs-on: ubuntu-latest
|
|
128
|
-
steps:
|
|
129
|
-
- uses: actions/checkout@v4
|
|
130
|
-
|
|
131
|
-
- name: Get common package version
|
|
132
|
-
id: get_version
|
|
133
|
-
run: |
|
|
134
|
-
echo "version=$(jq -r '.version' src/common/package.json)" >> $GITHUB_OUTPUT
|
|
135
|
-
|
|
136
|
-
- name: Update docs
|
|
137
|
-
run: |
|
|
138
|
-
curl --fail-with-body --silent --show-error -X POST -H "Authorization: token ${{ secrets.DD_DEP_UPDATE_TOKEN }}" \
|
|
139
|
-
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
140
|
-
"https://api.github.com/repos/doc-detective/doc-detective.github.io/dispatches" \
|
|
141
|
-
-d '{"event_type": "update-common-package-event", "client_payload": {"version": "${{ steps.get_version.outputs.version }}"} }'
|
package/.mocharc.yml
DELETED
package/dev/dev.config.json
DELETED
package/dev/dev.spec.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tests": [
|
|
3
|
-
{
|
|
4
|
-
"steps": [
|
|
5
|
-
{
|
|
6
|
-
"action": "runShell",
|
|
7
|
-
"command": "echo Hello, World!"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"action": "checkLink",
|
|
11
|
-
"url": "https://www.duckduckgo.com"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"action": "goTo",
|
|
15
|
-
"url": "https://www.google.com"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"action": "find",
|
|
19
|
-
"selector": "[title=Search]",
|
|
20
|
-
"timeout": 10000,
|
|
21
|
-
"moveTo": true,
|
|
22
|
-
"click": true,
|
|
23
|
-
"typeKeys": {
|
|
24
|
-
"keys": ["shorthair cat", "$ENTER$"]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
package/dev/index.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-compatible test detection utilities.
|
|
3
|
-
* This module provides pure parsing functionality that works with strings/objects,
|
|
4
|
-
* without dependencies on Node.js file system or path modules.
|
|
5
|
-
*/
|
|
6
|
-
export interface FileType {
|
|
7
|
-
name?: string;
|
|
8
|
-
extensions: string[];
|
|
9
|
-
inlineStatements?: {
|
|
10
|
-
testStart?: string[];
|
|
11
|
-
testEnd?: string[];
|
|
12
|
-
ignoreStart?: string[];
|
|
13
|
-
ignoreEnd?: string[];
|
|
14
|
-
step?: string[];
|
|
15
|
-
};
|
|
16
|
-
markup?: Array<{
|
|
17
|
-
regex: string[];
|
|
18
|
-
actions?: (string | Record<string, any>)[];
|
|
19
|
-
batchMatches?: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
runShell?: Record<string, any>;
|
|
22
|
-
}
|
|
23
|
-
export interface DetectTestsConfig {
|
|
24
|
-
detectSteps?: boolean;
|
|
25
|
-
origin?: string;
|
|
26
|
-
logLevel?: string;
|
|
27
|
-
_herettoPathMapping?: Record<string, string>;
|
|
28
|
-
}
|
|
29
|
-
export interface DetectedTest {
|
|
30
|
-
testId?: string;
|
|
31
|
-
detectSteps?: boolean;
|
|
32
|
-
steps: Array<Record<string, any>>;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}
|
|
35
|
-
export interface DetectTestsInput {
|
|
36
|
-
content: string;
|
|
37
|
-
filePath: string;
|
|
38
|
-
fileType: FileType;
|
|
39
|
-
config?: DetectTestsConfig;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Browser-compatible test detection function.
|
|
43
|
-
* Detects tests from content string using specified file type configuration.
|
|
44
|
-
*
|
|
45
|
-
* This is the main entry point for test detection in Common.
|
|
46
|
-
* It works with content strings rather than file paths, making it browser-compatible.
|
|
47
|
-
*
|
|
48
|
-
* @param input - Detection input
|
|
49
|
-
* @param input.content - Content string to parse for tests
|
|
50
|
-
* @param input.filePath - File path (for metadata only, not file I/O)
|
|
51
|
-
* @param input.fileType - File type configuration with parsing rules
|
|
52
|
-
* @param input.config - Optional configuration
|
|
53
|
-
* @returns Array of detected tests
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const tests = await detectTests({
|
|
58
|
-
* content: markdownContent,
|
|
59
|
-
* filePath: 'docs/test.md',
|
|
60
|
-
* fileType: { extensions: ['md'], markup: [...] },
|
|
61
|
-
* config: { detectSteps: true }
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function detectTests(input: DetectTestsInput): Promise<DetectedTest[]>;
|
|
66
|
-
/**
|
|
67
|
-
* Parses XML-style attributes to an object.
|
|
68
|
-
* Example: 'wait=500' becomes { wait: 500 }
|
|
69
|
-
* Example: 'testId="myTestId" detectSteps=false' becomes { testId: "myTestId", detectSteps: false }
|
|
70
|
-
* Example: 'httpRequest.url="https://example.com"' becomes { httpRequest: { url: "https://example.com" } }
|
|
71
|
-
*/
|
|
72
|
-
export declare function parseXmlAttributes({ stringifiedObject }: {
|
|
73
|
-
stringifiedObject: string;
|
|
74
|
-
}): Record<string, any> | null;
|
|
75
|
-
/**
|
|
76
|
-
* Parses a JSON or YAML object from a string.
|
|
77
|
-
*/
|
|
78
|
-
export declare function parseObject({ stringifiedObject }: {
|
|
79
|
-
stringifiedObject: string;
|
|
80
|
-
}): Record<string, any> | null;
|
|
81
|
-
/**
|
|
82
|
-
* Replaces numeric variables ($0, $1, etc.) in strings and objects with provided values.
|
|
83
|
-
*/
|
|
84
|
-
export declare function replaceNumericVariables(stringOrObjectSource: string | Record<string, any>, values: Record<string, any>): string | Record<string, any> | null;
|
|
85
|
-
/**
|
|
86
|
-
* Parses raw test content into an array of structured test objects.
|
|
87
|
-
* This is a browser-compatible function that works with strings and doesn't require file system access.
|
|
88
|
-
*
|
|
89
|
-
* @param options - Options for parsing
|
|
90
|
-
* @param options.config - Test configuration object
|
|
91
|
-
* @param options.content - Raw file content as a string
|
|
92
|
-
* @param options.filePath - Path to the file being parsed (for metadata, not file I/O)
|
|
93
|
-
* @param options.fileType - File type definition containing parsing rules
|
|
94
|
-
* @returns Array of parsed and validated test objects
|
|
95
|
-
*/
|
|
96
|
-
export declare function parseContent({ config, content, filePath, fileType, }: {
|
|
97
|
-
config: DetectTestsConfig;
|
|
98
|
-
content: string;
|
|
99
|
-
filePath: string;
|
|
100
|
-
fileType: FileType;
|
|
101
|
-
}): Promise<DetectedTest[]>;
|
|
102
|
-
/**
|
|
103
|
-
* Simple browser-compatible logging function.
|
|
104
|
-
*/
|
|
105
|
-
export declare function log(config: DetectTestsConfig, level: string, message: any): void;
|
|
106
|
-
//# sourceMappingURL=detectTests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detectTests.d.ts","sourceRoot":"","sources":["../../../src/common/src/detectTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwCH,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE;QACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3C,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC,CAAC;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAOlF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,EAAE;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAmEnH;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,iBAAiB,EAAE,EAAE;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAkD5G;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CA2DrC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,EACjC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAuR1B;AAsBD;;GAEG;AACH,wBAAgB,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI,CAqBhF"}
|