agentskeptic 0.1.8 → 0.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/README.md +5 -2
- package/dist/bootstrap/bootstrapCliArgs.d.ts +8 -0
- package/dist/bootstrap/bootstrapCliArgs.d.ts.map +1 -0
- package/dist/bootstrap/bootstrapCliArgs.js +47 -0
- package/dist/bootstrap/bootstrapCliArgs.js.map +1 -0
- package/dist/bootstrap/bootstrapPackSynthesis.d.ts +4 -0
- package/dist/bootstrap/bootstrapPackSynthesis.d.ts.map +1 -0
- package/dist/bootstrap/bootstrapPackSynthesis.js +3 -0
- package/dist/bootstrap/bootstrapPackSynthesis.js.map +1 -0
- package/dist/bootstrap/executeBootstrapPack.d.ts +32 -0
- package/dist/bootstrap/executeBootstrapPack.d.ts.map +1 -0
- package/dist/bootstrap/executeBootstrapPack.js +208 -0
- package/dist/bootstrap/executeBootstrapPack.js.map +1 -0
- package/dist/bootstrap/runBootstrapSubcommand.d.ts +3 -7
- package/dist/bootstrap/runBootstrapSubcommand.d.ts.map +1 -1
- package/dist/bootstrap/runBootstrapSubcommand.js +22 -202
- package/dist/bootstrap/runBootstrapSubcommand.js.map +1 -1
- package/dist/cli/lockOrchestration.d.ts.map +1 -1
- package/dist/cli/lockOrchestration.js +36 -0
- package/dist/cli/lockOrchestration.js.map +1 -1
- package/dist/cli.js +50 -111
- package/dist/cli.js.map +1 -1
- package/dist/cliOperationalCodes.d.ts +1 -0
- package/dist/cliOperationalCodes.d.ts.map +1 -1
- package/dist/cliOperationalCodes.js +1 -0
- package/dist/cliOperationalCodes.js.map +1 -1
- package/dist/commercial/licensePreflight.test.js +3 -3
- package/dist/commercial/licensePreflight.test.js.map +1 -1
- package/dist/commercial/postVerifyOutcomeBeacon.d.ts +1 -1
- package/dist/commercial/postVerifyOutcomeBeacon.d.ts.map +1 -1
- package/dist/commercial/verifyWorkloadClassify.test.js +12 -0
- package/dist/commercial/verifyWorkloadClassify.test.js.map +1 -1
- package/dist/crossing/crossingDecisionReadyFooter.d.ts +3 -0
- package/dist/crossing/crossingDecisionReadyFooter.d.ts.map +1 -0
- package/dist/crossing/crossingDecisionReadyFooter.js +3 -0
- package/dist/crossing/crossingDecisionReadyFooter.js.map +1 -0
- package/dist/crossing/runCrossingSubcommand.d.ts +2 -0
- package/dist/crossing/runCrossingSubcommand.d.ts.map +1 -0
- package/dist/crossing/runCrossingSubcommand.js +177 -0
- package/dist/crossing/runCrossingSubcommand.js.map +1 -0
- package/dist/discovery-payload-v1.json +2 -1
- package/dist/funnel/workflowLineageClassify.d.ts +18 -0
- package/dist/funnel/workflowLineageClassify.d.ts.map +1 -0
- package/dist/funnel/workflowLineageClassify.js +29 -0
- package/dist/funnel/workflowLineageClassify.js.map +1 -0
- package/dist/operationalDisposition.d.ts +8 -0
- package/dist/operationalDisposition.d.ts.map +1 -1
- package/dist/operationalDisposition.js +8 -0
- package/dist/operationalDisposition.js.map +1 -1
- package/dist/publicDistribution.generated.d.ts +1 -1
- package/dist/publicDistribution.generated.d.ts.map +1 -1
- package/dist/publicDistribution.generated.js +2 -1
- package/dist/publicDistribution.generated.js.map +1 -1
- package/dist/registryDraft/buildRegistryDraftPrompt.d.ts +5 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.d.ts.map +1 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.js +30 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.js.map +1 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.test.d.ts +2 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.test.d.ts.map +1 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.test.js +13 -0
- package/dist/registryDraft/buildRegistryDraftPrompt.test.js.map +1 -0
- package/dist/registryDraft/createRegistryDraftAjv.d.ts +10 -0
- package/dist/registryDraft/createRegistryDraftAjv.d.ts.map +1 -0
- package/dist/registryDraft/createRegistryDraftAjv.js +71 -0
- package/dist/registryDraft/createRegistryDraftAjv.js.map +1 -0
- package/dist/registryDraft/index.d.ts +6 -0
- package/dist/registryDraft/index.d.ts.map +1 -0
- package/dist/registryDraft/index.js +5 -0
- package/dist/registryDraft/index.js.map +1 -0
- package/dist/registryDraft/normalizeOpenAiToolCallsToBootstrapPackInput.d.ts +8 -0
- package/dist/registryDraft/normalizeOpenAiToolCallsToBootstrapPackInput.d.ts.map +1 -0
- package/dist/registryDraft/normalizeOpenAiToolCallsToBootstrapPackInput.js +19 -0
- package/dist/registryDraft/normalizeOpenAiToolCallsToBootstrapPackInput.js.map +1 -0
- package/dist/registryDraft/parseAndNormalizeRegistryDraftRequest.d.ts +15 -0
- package/dist/registryDraft/parseAndNormalizeRegistryDraftRequest.d.ts.map +1 -0
- package/dist/registryDraft/parseAndNormalizeRegistryDraftRequest.js +34 -0
- package/dist/registryDraft/parseAndNormalizeRegistryDraftRequest.js.map +1 -0
- package/dist/schemaLoad.d.ts +1 -1
- package/dist/schemaLoad.d.ts.map +1 -1
- package/dist/schemaLoad.js +3 -0
- package/dist/schemaLoad.js.map +1 -1
- package/dist/telemetry/maybeEmitOssClaimTicketUrl.d.ts +1 -1
- package/dist/telemetry/maybeEmitOssClaimTicketUrl.d.ts.map +1 -1
- package/dist/telemetry/postOssClaimTicket.d.ts +1 -1
- package/dist/telemetry/postOssClaimTicket.d.ts.map +1 -1
- package/dist/telemetry/postProductActivationEvent.d.ts +5 -2
- package/dist/telemetry/postProductActivationEvent.d.ts.map +1 -1
- package/dist/telemetry/postProductActivationEvent.js +9 -2
- package/dist/telemetry/postProductActivationEvent.js.map +1 -1
- package/dist/telemetry/postProductActivationEvent.test.js +40 -1
- package/dist/telemetry/postProductActivationEvent.test.js.map +1 -1
- package/dist/telemetry/verificationHypothesisContract.d.ts +18 -0
- package/dist/telemetry/verificationHypothesisContract.d.ts.map +1 -0
- package/dist/telemetry/verificationHypothesisContract.js +39 -0
- package/dist/telemetry/verificationHypothesisContract.js.map +1 -0
- package/dist/verify/batchVerifyTelemetrySubcommand.d.ts +8 -0
- package/dist/verify/batchVerifyTelemetrySubcommand.d.ts.map +1 -0
- package/dist/verify/batchVerifyTelemetrySubcommand.js +141 -0
- package/dist/verify/batchVerifyTelemetrySubcommand.js.map +1 -0
- package/dist/wrongWorkflowIdAdoptionFixture.test.d.ts +2 -0
- package/dist/wrongWorkflowIdAdoptionFixture.test.d.ts.map +1 -0
- package/dist/{noStepsMessage.test.js → wrongWorkflowIdAdoptionFixture.test.js} +12 -1
- package/dist/wrongWorkflowIdAdoptionFixture.test.js.map +1 -0
- package/package.json +21 -6
- package/schemas/bootstrap-pack-input-v1.schema.json +1 -16
- package/schemas/openai-function-tool-call-item-v1.schema.json +21 -0
- package/schemas/registry-draft-request-v1.schema.json +49 -0
- package/schemas/registry-draft-response-v1.schema.json +39 -0
- package/scripts/discovery-payload.lib.cjs +6 -0
- package/dist/loadEvents.eventFileAggregateCounts.test.d.ts +0 -2
- package/dist/loadEvents.eventFileAggregateCounts.test.d.ts.map +0 -1
- package/dist/loadEvents.eventFileAggregateCounts.test.js +0 -18
- package/dist/loadEvents.eventFileAggregateCounts.test.js.map +0 -1
- package/dist/noStepsMessage.test.d.ts +0 -2
- package/dist/noStepsMessage.test.d.ts.map +0 -1
- package/dist/noStepsMessage.test.js.map +0 -1
|
@@ -5,6 +5,17 @@ import { loadEventsForWorkflow } from "./loadEvents.js";
|
|
|
5
5
|
import { formatNoStepsForWorkflowMessage } from "./noStepsMessage.js";
|
|
6
6
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
7
|
const fixture = join(__dirname, "..", "test", "fixtures", "adoption-validation", "wrong-workflow-id.events.ndjson");
|
|
8
|
+
describe("loadEvents eventFileAggregateCounts", () => {
|
|
9
|
+
it("counts wrong-workflow-id fixture for wf_requested", () => {
|
|
10
|
+
const { eventFileAggregateCounts } = loadEventsForWorkflow(fixture, "wf_requested");
|
|
11
|
+
expect(eventFileAggregateCounts).toEqual({
|
|
12
|
+
eventFileNonEmptyLines: 3,
|
|
13
|
+
schemaValidEvents: 2,
|
|
14
|
+
toolObservedForRequestedWorkflowId: 0,
|
|
15
|
+
toolObservedForOtherWorkflowIds: 2,
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
});
|
|
8
19
|
describe("formatNoStepsForWorkflowMessage", () => {
|
|
9
20
|
it("matches golden for wf_requested and fixture counts", () => {
|
|
10
21
|
const { eventFileAggregateCounts } = loadEventsForWorkflow(fixture, "wf_requested");
|
|
@@ -12,4 +23,4 @@ describe("formatNoStepsForWorkflowMessage", () => {
|
|
|
12
23
|
expect(msg).toBe('No tool_observed events for workflowId "wf_requested" after filtering. event_file_non_empty_lines=3 schema_valid_events=2 tool_observed_for_workflow=0 tool_observed_other_workflows=2.');
|
|
13
24
|
});
|
|
14
25
|
});
|
|
15
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=wrongWorkflowIdAdoptionFixture.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrongWorkflowIdAdoptionFixture.test.js","sourceRoot":"","sources":["../src/wrongWorkflowIdAdoptionFixture.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,EAAE,iCAAiC,CAAC,CAAC;AAEpH,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IACnD,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,EAAE,wBAAwB,EAAE,GAAG,qBAAqB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACpF,MAAM,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC;YACvC,sBAAsB,EAAE,CAAC;YACzB,iBAAiB,EAAE,CAAC;YACpB,kCAAkC,EAAE,CAAC;YACrC,+BAA+B,EAAE,CAAC;SACnC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,EAAE,wBAAwB,EAAE,GAAG,qBAAqB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACpF,MAAM,GAAG,GAAG,+BAA+B,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;QACtF,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CACd,yLAAyL,CAC1L,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentskeptic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Traces say success while rows are missing or wrong. AgentSkeptic runs read-only SQL at verification time on Postgres or SQLite—ground truth from structured tool activity, not trace color alone.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"x-agentskeptic-decision-ready-contract": "1",
|
|
7
8
|
"workspaces": [
|
|
8
9
|
"website"
|
|
9
10
|
],
|
|
@@ -11,6 +12,12 @@
|
|
|
11
12
|
"bin": {
|
|
12
13
|
"agentskeptic": "dist/cli.js"
|
|
13
14
|
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/index.js",
|
|
17
|
+
"./registryDraft": "./dist/registryDraft/index.js",
|
|
18
|
+
"./bootstrapPackSynthesis": "./dist/bootstrap/bootstrapPackSynthesis.js",
|
|
19
|
+
"./verificationHypothesisContract": "./dist/telemetry/verificationHypothesisContract.js"
|
|
20
|
+
},
|
|
14
21
|
"scripts": {
|
|
15
22
|
"prepublishOnly": "node scripts/build-commercial.mjs",
|
|
16
23
|
"build": "node scripts/write-commercial-build-flags.mjs --oss && node scripts/sync-failure-origin-from-schema.mjs && tsc && node scripts/copy-debug-ui.mjs && node scripts/write-discovery-payload.mjs",
|
|
@@ -18,13 +25,14 @@
|
|
|
18
25
|
"start": "npm run build && node scripts/demo.mjs",
|
|
19
26
|
"dev": "npm run dev -w agentskeptic-web",
|
|
20
27
|
"test:vitest": "vitest run",
|
|
21
|
-
"
|
|
28
|
+
"verify:decision-readiness": "npm run test:vitest -w agentskeptic-web -- __tests__/githubHeadingSlug.contract.test.ts __tests__/integrateActivationNorthStar.contract.test.ts __tests__/integrate-page-completion-semantics.contract.test.tsx __tests__/growthMetricsSqlParity.test.ts __tests__/growth-cross-surface.integration.test.ts",
|
|
29
|
+
"test:node:sqlite": "node scripts/assert-dependency-security-pins.mjs && node --test --test-force-exit test/reconciler.sqlite.test.mjs test/pipeline.sqlite.test.mjs test/withWorkflowVerification.test.mjs test/workflowTruthReport.test.mjs test/cli.test.mjs test/post-product-activation-install-id.test.mjs test/workflow-lineage-classify.test.mjs test/resolve-telemetry-source.test.mjs test/github-workflows-agentskeptic-telemetry-env.test.mjs test/maybe-emit-oss-claim-telemetry-off.test.mjs test/first-run-verify-output.integration.test.mjs test/stable-failure-consistency.test.mjs test/workflow-result-consumer-contract.test.mjs test/workflow-result-stdout-version.test.mjs test/docs-relational-ssot.test.mjs test/tools-registry-relational-surface.test.mjs test/docs-contract.test.mjs test/docs-commercial-enforce-gate-normative.test.mjs test/docs-remediation-doctrine.test.mjs test/bundle-signature-fixture.test.mjs test/bundle-signature-codes-doc.test.mjs test/bundle-signature-cli-write.test.mjs test/quick-verify.sqlite.test.mjs test/bootstrap-pack.test.mjs test/crossing-cli.test.mjs test/quickVerifyPostbuildGate.test.mjs test/npm-scripts-contract.test.mjs test/langgraph-reference-emitter-before-cli-spawn.test.mjs test/removed-script-names-ban.test.mjs test/docs-workflow-result-normative-prose.test.mjs test/enforce-oss-forbidden.test.mjs test/oss-output-lock-batch.test.mjs test/lock-success-monetized-footer.integration.test.mjs test/docs-enforce-stream-contract.test.mjs test/docs-quick-enforce-link.test.mjs test/commercial-pricing-policy-parity.test.mjs test/distribution-requirement-clauses.test.mjs test/distribution-traceability-literals.test.mjs test/distribution-ssot-clause-coverage.test.mjs test/distribution-consumer-pipeline.test.mjs test/discovery-payload.test.mjs test/redaction-rules.test.mjs test/indexable-guide-paths-fs.contract.test.mjs test/npm-pack-discovery-scripts.test.mjs test/registry-metadata-parity.test.mjs test/docs-related-exists-export-ssot-negative.mjs test/quick-param-pointer.gates.test.mjs test/dependency-security-pins.schema.contract.test.mjs test/drizzle-identifier-safety.contract.test.mjs test/assert-destructive-postgres-urls.test.mjs test/readme-wedge-inevitability.test.mjs test/adoption-complete-surface-parity.test.mjs test/adoption-epistemics-contract.test.mjs test/integrate-spine-contract.test.mjs test/integrate-spine-ssot-fixtures.test.mjs test/integrate-route-copy-absence.test.mjs test/adoption-validation-registry.test.mjs test/decision-ready-surfaces-manifest.test.mjs",
|
|
22
30
|
"test:postgres": "node scripts/pg-ci-init.mjs && node --test --test-force-exit test/postgres-session-readonly.test.mjs test/postgres-privilege.test.mjs test/pipeline.postgres.test.mjs test/ci-workflow-truth-postgres-contract.test.mjs test/quick-verify.postgres.test.mjs",
|
|
23
31
|
"test:workflow-truth-contract": "node --test --test-force-exit test/ci-workflow-truth-postgres-contract.test.mjs",
|
|
24
32
|
"validate-ttfv": "node scripts/validate-ttfv.mjs",
|
|
25
|
-
"test": "npm run build && npm run test:vitest && npm run test:vitest -w agentskeptic-web -- __tests__/langgraph-reference-primacy.dom.test.tsx __tests__/oss-claim-client-flow.dom.test.tsx && npm run test:node:sqlite && node scripts/first-run.mjs && npm run partner-quickstart && node scripts/langgraph-reference-verify.mjs && node test/partner-quickstart.adversarial.mjs && npm run check:partner-quickstart-ssot && node dist/cli.js assurance run --manifest examples/assurance/manifest.json && node scripts/commercial-enforce-test-harness.mjs && npm run build && npm run validate-ttfv && node scripts/related-exists-export-user-outcome.mjs",
|
|
33
|
+
"test": "npm run build && npm run check:epistemic-contract-structure && npm run test:vitest && npm run test:vitest -w agentskeptic-web -- __tests__/langgraph-reference-primacy.dom.test.tsx __tests__/oss-claim-client-flow.dom.test.tsx __tests__/integrate-page-completion-semantics.contract.test.tsx && npm run test:node:sqlite && node scripts/first-run.mjs && node scripts/validate-adoption-complete.mjs && node --test test/validate-adoption-complete-failure.test.mjs && node scripts/validate-adoption-complete.mjs && npm run partner-quickstart && node scripts/validate-integrate-spine.mjs && node scripts/validate-integrator-onboarding-shape.mjs && node scripts/langgraph-reference-verify.mjs && node test/partner-quickstart.adversarial.mjs && npm run check:partner-quickstart-ssot && node dist/cli.js assurance run --manifest examples/assurance/manifest.json && node scripts/commercial-enforce-test-harness.mjs && npm run build && npm run validate-ttfv && node scripts/related-exists-export-user-outcome.mjs",
|
|
26
34
|
"test:debug-ui": "playwright test",
|
|
27
|
-
"test:ci": "npm run build && npm run test:vitest && npm run test:vitest -w agentskeptic-web -- __tests__/langgraph-reference-primacy.dom.test.tsx __tests__/oss-claim-client-flow.dom.test.tsx && npm run test:node:sqlite && node scripts/first-run.mjs && npm run partner-quickstart && node scripts/langgraph-reference-verify.mjs && node test/partner-quickstart.adversarial.mjs && npm run check:partner-quickstart-ssot && node dist/cli.js assurance run --manifest examples/assurance/manifest.json && npm run test:postgres && node scripts/run-partner-quickstart-postgres-ci.mjs && node scripts/commercial-enforce-test-harness.mjs --require-postgres && npx playwright install chromium && npm run test:debug-ui && npm run build && npm run validate-ttfv && node scripts/related-exists-export-user-outcome.mjs",
|
|
35
|
+
"test:ci": "npm run build && npm run check:epistemic-contract-structure && npm run test:vitest && npm run test:vitest -w agentskeptic-web -- __tests__/langgraph-reference-primacy.dom.test.tsx __tests__/oss-claim-client-flow.dom.test.tsx __tests__/integrate-page-completion-semantics.contract.test.tsx && npm run test:node:sqlite && node scripts/first-run.mjs && node scripts/validate-adoption-complete.mjs && node --test test/validate-adoption-complete-failure.test.mjs && node scripts/validate-adoption-complete.mjs && npm run partner-quickstart && node scripts/validate-integrate-spine.mjs && node scripts/validate-integrator-onboarding-shape.mjs && node scripts/langgraph-reference-verify.mjs && node test/partner-quickstart.adversarial.mjs && npm run check:partner-quickstart-ssot && node dist/cli.js assurance run --manifest examples/assurance/manifest.json && npm run test:postgres && node scripts/run-partner-quickstart-postgres-ci.mjs && node scripts/commercial-enforce-test-harness.mjs --require-postgres && npx playwright install chromium && npm run test:debug-ui && npm run build && npm run validate-ttfv && node scripts/related-exists-export-user-outcome.mjs",
|
|
28
36
|
"example:workflow-hook": "npm run build && node examples/workflow-runner.mjs",
|
|
29
37
|
"agentskeptic": "node dist/cli.js",
|
|
30
38
|
"migrate:workflow-result-v11": "npm run build && node scripts/migrate-workflow-result-v11.mjs",
|
|
@@ -33,18 +41,25 @@
|
|
|
33
41
|
"migrate:workflow-result-v15": "npm run build && node scripts/migrate-workflow-result-v15.mjs",
|
|
34
42
|
"check:commercial-ssot": "node scripts/check-commercial-plans-ssot.mjs",
|
|
35
43
|
"stripe-bootstrap": "node scripts/stripe-bootstrap.mjs",
|
|
44
|
+
"export:telemetry-daily-pack": "node scripts/export-telemetry-daily-pack.mjs",
|
|
36
45
|
"validate-commercial": "node scripts/validate-commercial-funnel.mjs",
|
|
37
46
|
"pack-smoke": "node scripts/pack-smoke-commercial.mjs",
|
|
38
|
-
"sync:public-product-anchors": "node scripts/public-product-anchors.cjs",
|
|
47
|
+
"sync:public-product-anchors": "node scripts/public-product-anchors.cjs && node scripts/assert-discovery-public-files.mjs",
|
|
39
48
|
"distribution:consumer-pipeline": "node scripts/distribution-consumer-pipeline.mjs",
|
|
40
49
|
"check:discovery-acquisition": "node scripts/validate-discovery-acquisition.mjs",
|
|
41
|
-
"verify:web-marketing-copy": "node scripts/
|
|
50
|
+
"verify:web-marketing-copy": "node scripts/run-verify-web-marketing-copy.mjs",
|
|
42
51
|
"check:public-product-anchors": "node scripts/public-product-anchors.cjs --check",
|
|
52
|
+
"generate:integrate-activation-shell": "node scripts/generate-integrate-activation-shell.mjs",
|
|
53
|
+
"check:integrate-activation-shell": "node scripts/generate-integrate-activation-shell.mjs --check",
|
|
54
|
+
"validate:activation-spine": "node scripts/validate-activation-spine.mjs",
|
|
55
|
+
"validate:integrator-onboarding-shape": "node scripts/validate-integrator-onboarding-shape.mjs",
|
|
43
56
|
"test:commercial-layer": "node scripts/validate-commercial-funnel.mjs",
|
|
44
57
|
"build:website": "npm run build && npm run build -w agentskeptic-web",
|
|
45
58
|
"check:web-demo-prereqs": "node scripts/check-web-demo-prereqs.mjs",
|
|
46
59
|
"generate:partner-quickstart-commands": "node scripts/generate-partner-quickstart-commands.mjs",
|
|
47
60
|
"sync-integrator-docs-embedded": "node scripts/sync-integrator-docs-embedded.mjs",
|
|
61
|
+
"sync-epistemic-contract-website": "node scripts/sync-epistemic-contract-website.mjs",
|
|
62
|
+
"check:epistemic-contract-structure": "node scripts/validate-epistemic-contract-structure.mjs",
|
|
48
63
|
"check:partner-quickstart-ssot": "node scripts/check-partner-quickstart-ssot.mjs",
|
|
49
64
|
"partner-quickstart": "node scripts/partner-quickstart-verify.mjs",
|
|
50
65
|
"first-run-verify": "node scripts/partner-quickstart-verify.mjs",
|
|
@@ -32,22 +32,7 @@
|
|
|
32
32
|
"tool_calls": {
|
|
33
33
|
"type": "array",
|
|
34
34
|
"items": {
|
|
35
|
-
"
|
|
36
|
-
"required": ["id", "type", "function"],
|
|
37
|
-
"additionalProperties": false,
|
|
38
|
-
"properties": {
|
|
39
|
-
"id": { "type": "string", "minLength": 1 },
|
|
40
|
-
"type": { "type": "string", "const": "function" },
|
|
41
|
-
"function": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"required": ["name", "arguments"],
|
|
44
|
-
"additionalProperties": false,
|
|
45
|
-
"properties": {
|
|
46
|
-
"name": { "type": "string", "minLength": 1 },
|
|
47
|
-
"arguments": { "type": "string" }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
35
|
+
"$ref": "https://agentskeptic.com/schemas/openai-function-tool-call-item-v1.schema.json"
|
|
51
36
|
}
|
|
52
37
|
}
|
|
53
38
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentskeptic.com/schemas/openai-function-tool-call-item-v1.schema.json",
|
|
4
|
+
"title": "OpenAiFunctionToolCallItemV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "type", "function"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string", "minLength": 1 },
|
|
10
|
+
"type": { "type": "string", "const": "function" },
|
|
11
|
+
"function": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["name", "arguments"],
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"name": { "type": "string", "minLength": 1 },
|
|
17
|
+
"arguments": { "type": "string" }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentskeptic.com/schemas/registry-draft-request-v1.schema.json",
|
|
4
|
+
"title": "RegistryDraftRequestV1",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["inputKind", "schemaVersion", "bootstrapPackInput"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"inputKind": { "const": "bootstrap_pack_v1" },
|
|
12
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
13
|
+
"ddlHint": { "$ref": "#/$defs/ddlHint" },
|
|
14
|
+
"bootstrapPackInput": {
|
|
15
|
+
"$ref": "https://agentskeptic.com/schemas/bootstrap-pack-input-v1.schema.json"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["inputKind", "schemaVersion", "workflowId", "tool_calls"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"inputKind": { "const": "openai_tool_calls_v1" },
|
|
25
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
26
|
+
"workflowId": { "$ref": "#/$defs/workflowId" },
|
|
27
|
+
"ddlHint": { "$ref": "#/$defs/ddlHint" },
|
|
28
|
+
"tool_calls": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"items": {
|
|
32
|
+
"$ref": "https://agentskeptic.com/schemas/openai-function-tool-call-item-v1.schema.json"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"$defs": {
|
|
39
|
+
"workflowId": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^[a-zA-Z0-9_-]{1,128}$"
|
|
42
|
+
},
|
|
43
|
+
"ddlHint": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"maxLength": 8192,
|
|
46
|
+
"pattern": "^(?!.*://)[\\s\\S]*$"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentskeptic.com/schemas/registry-draft-response-v1.schema.json",
|
|
4
|
+
"title": "RegistryDraftResponseEnvelopeV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "draft", "assumptions", "warnings", "disclaimer", "model"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
10
|
+
"draft": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["tools"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"tools": {
|
|
16
|
+
"$ref": "https://agentskeptic.com/schemas/tools-registry.schema.json"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"assumptions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": { "type": "string" }
|
|
23
|
+
},
|
|
24
|
+
"warnings": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "type": "string" }
|
|
27
|
+
},
|
|
28
|
+
"disclaimer": { "type": "string", "minLength": 1 },
|
|
29
|
+
"model": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["provider", "model"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"provider": { "type": "string", "const": "openai" },
|
|
35
|
+
"model": { "type": "string", "minLength": 1 }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -94,6 +94,7 @@ function buildDiscoveryPayload(root) {
|
|
|
94
94
|
const anchors = JSON.parse(readFileSync(anchorsPath, "utf8"));
|
|
95
95
|
const canonicalOrigin = normalizeOrigin(anchors.productionCanonicalOrigin);
|
|
96
96
|
const integrateUrl = `${canonicalOrigin}/integrate`;
|
|
97
|
+
const learnHubUrl = `${canonicalOrigin}/guides`;
|
|
97
98
|
const openapiSelfCanonical = `${canonicalOrigin}/openapi-commercial-v1.yaml`;
|
|
98
99
|
const { owner, repo } = parseGithubRepoFromUrl(anchors.gitRepositoryUrl);
|
|
99
100
|
const llmsRaw = `https://raw.githubusercontent.com/${owner}/${repo}/refs/heads/${DISCOVERY_LLM_BRANCH}/llms.txt`;
|
|
@@ -110,6 +111,7 @@ function buildDiscoveryPayload(root) {
|
|
|
110
111
|
links: {
|
|
111
112
|
site: `${canonicalOrigin}/`,
|
|
112
113
|
integrate: integrateUrl,
|
|
114
|
+
learnHub: learnHubUrl,
|
|
113
115
|
openapiCanonical: openapiSelfCanonical,
|
|
114
116
|
openapiRaw,
|
|
115
117
|
repo: String(anchors.gitRepositoryUrl),
|
|
@@ -176,6 +178,7 @@ function renderLlmsTextFromPayload(payload) {
|
|
|
176
178
|
};
|
|
177
179
|
const canonicalOrigin = links.site.replace(/\/$/, "");
|
|
178
180
|
const integrateUrl = links.integrate;
|
|
181
|
+
const learnHubUrl = links.learnHub;
|
|
179
182
|
const openapiSelfCanonical = links.openapiCanonical;
|
|
180
183
|
const lines = [
|
|
181
184
|
"# AgentSkeptic",
|
|
@@ -186,6 +189,7 @@ function renderLlmsTextFromPayload(payload) {
|
|
|
186
189
|
"## Primary links",
|
|
187
190
|
`- Canonical site: ${links.site}`,
|
|
188
191
|
`- First-run integration: ${integrateUrl}`,
|
|
192
|
+
`- Learn: ${learnHubUrl}`,
|
|
189
193
|
`- OpenAPI (canonical): ${openapiSelfCanonical}`,
|
|
190
194
|
`- OpenAPI (repo raw): ${links.openapiRaw}`,
|
|
191
195
|
`- Source repository: ${links.repo}`,
|
|
@@ -213,6 +217,7 @@ function renderCiSummaryMarkdownFromPayload(payload) {
|
|
|
213
217
|
"",
|
|
214
218
|
"- Canonical site: " + L.site,
|
|
215
219
|
"- Integrate: " + L.integrate,
|
|
220
|
+
"- Learn: " + L.learnHub,
|
|
216
221
|
"- OpenAPI: " + L.openapiCanonical,
|
|
217
222
|
"- OpenAPI (repo raw): " + L.openapiRaw,
|
|
218
223
|
"- Repository: " + L.repo,
|
|
@@ -272,6 +277,7 @@ ${String(payload.identityOneLiner)}
|
|
|
272
277
|
"",
|
|
273
278
|
"- " + L.site,
|
|
274
279
|
"- " + L.integrate,
|
|
280
|
+
"- " + L.learnHub,
|
|
275
281
|
"- " + L.repo,
|
|
276
282
|
"",
|
|
277
283
|
PR_MARKER_LINE,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadEvents.eventFileAggregateCounts.test.d.ts","sourceRoot":"","sources":["../src/loadEvents.eventFileAggregateCounts.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { dirname, join } from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { describe, expect, it } from "vitest";
|
|
4
|
-
import { loadEventsForWorkflow } from "./loadEvents.js";
|
|
5
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
const fixture = join(__dirname, "..", "test", "fixtures", "adoption-validation", "wrong-workflow-id.events.ndjson");
|
|
7
|
-
describe("loadEvents eventFileAggregateCounts", () => {
|
|
8
|
-
it("counts wrong-workflow-id fixture for wf_requested", () => {
|
|
9
|
-
const { eventFileAggregateCounts } = loadEventsForWorkflow(fixture, "wf_requested");
|
|
10
|
-
expect(eventFileAggregateCounts).toEqual({
|
|
11
|
-
eventFileNonEmptyLines: 3,
|
|
12
|
-
schemaValidEvents: 2,
|
|
13
|
-
toolObservedForRequestedWorkflowId: 0,
|
|
14
|
-
toolObservedForOtherWorkflowIds: 2,
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=loadEvents.eventFileAggregateCounts.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadEvents.eventFileAggregateCounts.test.js","sourceRoot":"","sources":["../src/loadEvents.eventFileAggregateCounts.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,EAAE,iCAAiC,CAAC,CAAC;AAEpH,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IACnD,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,EAAE,wBAAwB,EAAE,GAAG,qBAAqB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACpF,MAAM,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC;YACvC,sBAAsB,EAAE,CAAC;YACzB,iBAAiB,EAAE,CAAC;YACpB,kCAAkC,EAAE,CAAC;YACrC,+BAA+B,EAAE,CAAC;SACnC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noStepsMessage.test.d.ts","sourceRoot":"","sources":["../src/noStepsMessage.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noStepsMessage.test.js","sourceRoot":"","sources":["../src/noStepsMessage.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,EAAE,iCAAiC,CAAC,CAAC;AAEpH,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,EAAE,wBAAwB,EAAE,GAAG,qBAAqB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACpF,MAAM,GAAG,GAAG,+BAA+B,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;QACtF,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CACd,yLAAyL,CAC1L,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|