Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .claude/skills/data-connector/templates/connector-script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* {{PLATFORM_NAME}} Connector (Playwright)
*
Expand Down
3 changes: 3 additions & 0 deletions connectors/_conformance/conformance-playwright.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Page API Conformance Fixture
*
Expand Down
3 changes: 3 additions & 0 deletions connectors/amazon/goodreads/goodreads-playwright.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Goodreads Connector (Playwright)
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Classifier regression test for the Claude export connector's result envelopes.
* Locks the resumable contract: a complete run is `success`, an export that is
Expand Down
4 changes: 4 additions & 0 deletions connectors/anthropic/__tests__/claude-export-ingest.test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Unit tests for the Claude official-export normalizer.
*
Expand Down
4 changes: 4 additions & 0 deletions connectors/anthropic/claude-export-ingest.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Claude official-export ingester.
*
Expand Down
4 changes: 4 additions & 0 deletions connectors/openai/__tests__/chatgpt-classifier.test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Classifier regression test for the ChatGPT connector result shape.
*
Expand Down
4 changes: 4 additions & 0 deletions connectors/openai/__tests__/chatgpt-resume.browser.test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* End-to-end resume / rate-limit test for the ChatGPT connector.
*
Expand Down
3 changes: 3 additions & 0 deletions connectors/tinder/tinder-playwright.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Tinder Connector (Playwright) — API Extraction via httpFetch
*
Expand Down
4 changes: 4 additions & 0 deletions create-connector.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0


# Autonomous Data Connector Creator
#
# Creates, tests, and validates a data connector for any web platform.
Expand Down
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Connectors Index
*
Expand Down
4 changes: 4 additions & 0 deletions ops/setup-canary.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0

# setup-canary.sh — Install/uninstall/status for the connector smoke test canary.
#
# Usage:
Expand Down
4 changes: 4 additions & 0 deletions ops/smoke-test-canary.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0

# smoke-test-canary.sh — Run connector smoke test, post to Slack on failure only.
#
# Required env vars (set in ~/.dataconnect/canary.env or export before running):
Expand Down
4 changes: 4 additions & 0 deletions packages/connector-installer-cli/index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import {
generateLock,
installFromLock,
Expand Down
3 changes: 3 additions & 0 deletions packages/connector-installer-core/index.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import {
existsSync,
mkdtempSync,
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Playwright Runner for PDP-Connect
*
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/result-classifier.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

const CONNECTOR_RESULT_RESERVED_KEYS = new Set([
'requestedScopes',
'timestamp',
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/result-classifier.conformance.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

const assert = require('node:assert/strict');
const { readFileSync } = require('node:fs');
const { join } = require('node:path');
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/result-classifier.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

const assert = require('node:assert/strict');

const { classifyConnectorResult } = require('./result-classifier.cjs');
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/runner-compat.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

function isPlainRecord(value) {
return typeof value === 'object' && value !== null && !Array.isArray(value);
}
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/runner-compat.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

const assert = require('node:assert/strict');

const { classifyConnectorResult } = require('./result-classifier.cjs');
Expand Down
3 changes: 3 additions & 0 deletions playwright-runner/zip-reader.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

'use strict';

const zlib = require('zlib');
Expand Down
4 changes: 4 additions & 0 deletions playwright-runner/zip-reader.test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Unit test for the runner's dependency-free ZIP reader (readZipJsonEntries),
* which backs page.extractZipEntries(). Builds real ZIP archives in-memory
Expand Down
4 changes: 4 additions & 0 deletions scripts/capture-session.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


/**
* Session Capture Tool
*
Expand Down
4 changes: 4 additions & 0 deletions scripts/check-additive-schemas.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

// Detect breaking changes to public scope schemas between the base ref and
// HEAD. A breaking change is: a removed property, a removed required field,
// or a new required field.
Expand Down
4 changes: 4 additions & 0 deletions scripts/check-page-api-additive.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

// Detect removals and renames on the PageAPI interface in types/connector.d.ts.
// Fails if a method was present in the base revision but is missing in HEAD,
// unless PAGE_API_VERSION in types/page-api-version.ts has been bumped.
Expand Down
4 changes: 4 additions & 0 deletions scripts/check-source-id-stability.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

// Detect source_id changes in manifests between the base ref and HEAD.
// Fails if a connector's source_id changed without an explicit migration
// marker.
Expand Down
3 changes: 3 additions & 0 deletions scripts/connector-artifact-contract.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import { execFileSync } from "node:child_process";
import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
Expand Down
3 changes: 3 additions & 0 deletions scripts/connector-artifact-contract.test.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import assert from "node:assert/strict";
import { cpSync, mkdtempSync, readFileSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
Expand Down
4 changes: 4 additions & 0 deletions scripts/create-connector.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0


# Autonomous Data Connector Creator
#
# Creates, tests, and validates a data connector — end to end.
Expand Down
4 changes: 4 additions & 0 deletions scripts/format-stream.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


/**
* Formats stream-json output from `claude -p --output-format stream-json` into
* human-readable logs. Shows the agent's thinking, tool calls, and results in real-time.
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate-connector-index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import {
existsSync,
mkdtempSync,
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate-fixture-index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import { createHash } from "node:crypto";
import {
existsSync,
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate-scope-catalog.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import { existsSync, readFileSync, writeFileSync } from "node:fs";
import { dirname, join, relative, resolve } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
Expand Down
3 changes: 3 additions & 0 deletions scripts/generate-scope-catalog.test.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import assert from "node:assert/strict";
import { cpSync, mkdtempSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
Expand Down
4 changes: 4 additions & 0 deletions scripts/normalize-manifests.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Normalize all *-playwright.json manifests to the canonical manifest.schema.json shape.
*
Expand Down
3 changes: 3 additions & 0 deletions scripts/reference/templates/connector-script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* {{PLATFORM_NAME}} Connector (Playwright)
*
Expand Down
4 changes: 4 additions & 0 deletions scripts/schema-health-check.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import { readFile, readdir } from "fs/promises";
import { dirname, join } from "path";
import { execSync } from "child_process";
Expand Down
4 changes: 4 additions & 0 deletions scripts/sign-release-assets.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


import { existsSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
Expand Down
4 changes: 4 additions & 0 deletions scripts/test-connector.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


/**
* Standalone Connector Test Runner
*
Expand Down
4 changes: 4 additions & 0 deletions scripts/test-connectors.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* test-connectors.cjs — Batch smoke test for data connectors.
*
Expand Down
3 changes: 3 additions & 0 deletions scripts/test-connectors.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

const { describe, it } = require('node:test');
const assert = require('node:assert');
const fs = require('fs');
Expand Down
4 changes: 4 additions & 0 deletions scripts/validate-connector.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


/**
* Connector Validator
*
Expand Down
4 changes: 4 additions & 0 deletions scripts/validate-honest-telemetry-conformance.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0


const fs = require('node:fs');
const path = require('node:path');

Expand Down
4 changes: 4 additions & 0 deletions scripts/validate-manifests.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Validate every *-playwright.json manifest against the canonical contract.
*
Expand Down
4 changes: 4 additions & 0 deletions scripts/validate-scope-schemas.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

// Validate that every scope declared in a manifest has a matching
// connector-local schema file under that manifest's schemas/ directory.
//
Expand Down
4 changes: 4 additions & 0 deletions skills/pdp-connect/scripts/fetch-connector.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env node

// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* fetch-connector.cjs — Download a connector from the registry.
*
Expand Down
Loading