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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import js from "@eslint/js"
import globals from "globals"
import reactHooks from "eslint-plugin-react-hooks"
Expand Down
2 changes: 2 additions & 0 deletions personal-server/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Personal Server wrapper for DataConnect (CJS entry for pkg)
*
Expand Down
2 changes: 2 additions & 0 deletions personal-server/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Personal Server wrapper for DataConnect
*
Expand Down
2 changes: 2 additions & 0 deletions personal-server/scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Build script for personal-server
*
Expand Down
2 changes: 2 additions & 0 deletions playwright-runner/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Playwright Runner for DataConnect
*
Expand Down
2 changes: 2 additions & 0 deletions playwright-runner/result-classifier.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
const CONNECTOR_RESULT_RESERVED_KEYS = new Set([
'requestedScopes',
'timestamp',
Expand Down
2 changes: 2 additions & 0 deletions playwright-runner/result-classifier.conformance.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 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
2 changes: 2 additions & 0 deletions playwright-runner/result-classifier.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 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
2 changes: 2 additions & 0 deletions playwright-runner/runner-compat.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 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
2 changes: 2 additions & 0 deletions playwright-runner/runner-compat.test.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 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
2 changes: 2 additions & 0 deletions playwright-runner/scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Build script for playwright-runner
*
Expand Down
2 changes: 2 additions & 0 deletions playwright-runner/zip-reader.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
'use strict';

const zlib = require('zlib');
Expand Down
2 changes: 2 additions & 0 deletions playwright-runner/zip-reader.test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/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
2 changes: 2 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
export default {
plugins: {
'@tailwindcss/postcss': {},
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-prod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Production build script for DataConnect
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-updater-manifest.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import { readFileSync, writeFileSync } from "node:fs"
import { resolve } from "node:path"
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-updater-manifest.test.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { mkdtempSync, rmSync, writeFileSync } from "node:fs"
import { tmpdir } from "node:os"
import { join } from "node:path"
Expand Down
2 changes: 2 additions & 0 deletions scripts/copy-personal-server-native.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* beforeBundleCommand: copies personal-server native addons into the
Expand Down
2 changes: 2 additions & 0 deletions scripts/demo-chatgpt-endpoint.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import http from "node:http";
import { homedir } from "node:os";
Expand Down
2 changes: 2 additions & 0 deletions scripts/ensure-connectors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Ensures connector directories required by tauri.conf.json exist.
Expand Down
2 changes: 2 additions & 0 deletions scripts/ensure-personal-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Ensures the personal-server binary is built and up-to-date.
*
Expand Down
2 changes: 2 additions & 0 deletions scripts/ensure-playwright-runner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Ensures the playwright-runner binary is built and up-to-date.
*
Expand Down
2 changes: 2 additions & 0 deletions scripts/fetch-connectors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

// Legacy wrapper kept for existing install/dev entrypoints during the migration.

Expand Down
2 changes: 2 additions & 0 deletions scripts/fresh-start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0
# fresh-start.sh — Reset DataConnect to a clean first-run state.
# Usage: ./scripts/fresh-start.sh (reset data only)
# ./scripts/fresh-start.sh --uninstall (remove app + all data)
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate-icons.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
/**
* Generate all app icons from the source SVG.
* Usage: node scripts/generate-icons.mjs
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate-platform-registry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import { existsSync, readFileSync, writeFileSync } from "fs"
import { dirname, join } from "path"
Expand Down
2 changes: 2 additions & 0 deletions scripts/ralph/loop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail

# Ralph loop runner (feature-root aware)
Expand Down
2 changes: 2 additions & 0 deletions scripts/release-github.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import { execSync } from "node:child_process";
import { readFileSync, writeFileSync } from "node:fs";
Expand Down
2 changes: 2 additions & 0 deletions scripts/release-workflow.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { readFileSync } from "node:fs"
import { resolve } from "node:path"
import { describe, expect, it } from "vitest"
Expand Down
2 changes: 2 additions & 0 deletions scripts/resolve-connectors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

import { existsSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "fs"
import { dirname, join } from "path"
Expand Down
2 changes: 2 additions & 0 deletions scripts/sync-connectors-dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0

/**
* Syncs project connectors to ~/.dataconnect/connectors/ for dev mode.
Expand Down
2 changes: 2 additions & 0 deletions scripts/sync-skills.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import {
existsSync,
lstatSync,
Expand Down
2 changes: 2 additions & 0 deletions scripts/watch-skills.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { existsSync, watch } from "node:fs";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
fn main() {
tauri_build::build()
}
2 changes: 2 additions & 0 deletions src-tauri/capabilities/default.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { readFileSync } from "node:fs"
import { resolve } from "node:path"
import { describe, expect, it } from "vitest"
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/scripts/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0
# Index the .desktop file so the x-scheme-handler/vana MIME type is registered.
update-desktop-database -q /usr/share/applications || true
2 changes: 2 additions & 0 deletions src-tauri/scripts/post-remove.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
# Copyright The PDP-Connect Contributors
# SPDX-License-Identifier: Apache-2.0
# Re-index after removing the .desktop file.
update-desktop-database -q /usr/share/applications || true
2 changes: 2 additions & 0 deletions src-tauri/src/commands/connector.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/connector_store.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/download.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use crate::processors;
use futures_util::StreamExt;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/file_ops.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
use std::fs::{self, File};
use std::io::Read;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
pub mod connector;
pub mod connector_store;
pub mod download;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/server.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
use std::sync::Mutex;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/commands/updates.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use flate2::read::GzDecoder;
use semver::Version;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
mod commands;
mod processors;

Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/processors/chatgpt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/processors/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
pub mod chatgpt;
pub mod zip;
2 changes: 2 additions & 0 deletions src-tauri/src/processors/zip.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
use std::fs::{self, File};
use std::io::{Read, Write};
use std::path::Path;
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/tauri-config.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { readFileSync } from "node:fs"
import { resolve } from "node:path"
import { describe, expect, it } from "vitest"
Expand Down
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { lazy, Suspense, useEffect } from "react"
import { BrowserRouter, Routes, Route } from "react-router-dom"
import { Provider } from "react-redux"
Expand Down
2 changes: 2 additions & 0 deletions src/apps/external-url.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { describe, expect, it } from "vitest"
import {
isAllowedSubmittedAppExternalUrl,
Expand Down
2 changes: 2 additions & 0 deletions src/apps/external-url.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { openExternalUrl } from "@/lib/open-resource"

export function isAllowedSubmittedAppExternalUrl(value: string): boolean {
Expand Down
2 changes: 2 additions & 0 deletions src/apps/icon-url.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { describe, expect, it } from "vitest"
import { deriveIconUrls } from "./icon-url"

Expand Down
2 changes: 2 additions & 0 deletions src/apps/icon-url.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
const DEFAULT_ICON_PATHS = [
"/icon.svg",
"/icon.png",
Expand Down
2 changes: 2 additions & 0 deletions src/apps/registry-types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
export type AppRequiredPlatform = {
token: string
label: string
Expand Down
2 changes: 2 additions & 0 deletions src/apps/registry.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import type { AppRegistryEntry } from "./registry-types"
import { getSubmittedAppRegistryEntries } from "./submission-registry"

Expand Down
2 changes: 2 additions & 0 deletions src/apps/submission-registry.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { afterEach, describe, expect, it } from "vitest"
import { parseAppSubmissionMarkdown } from "./submission-registry"

Expand Down
2 changes: 2 additions & 0 deletions src/apps/submission-registry.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { z } from "zod"
import { isAllowedSubmittedAppExternalUrl } from "./external-url"
import {
Expand Down
2 changes: 2 additions & 0 deletions src/components/component-example.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import * as React from "react"

import {
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/button-loading.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import type { ComponentPropsWithoutRef, ReactNode } from "react"
import { Spinner } from "@/components/elements/spinner"
import { Button } from "@/components/ui/button"
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/button-sign-in-vana.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import type { ComponentPropsWithoutRef, ReactNode } from "react"
import { ArrowRightIcon } from "lucide-react"
import { VanaV } from "@/components/icons/vana-v"
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/confirm-action.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import type { ComponentProps, ReactNode } from "react"
import {
AlertDialog,
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/debug-toggle-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright The PDP-Connect Contributors
// SPDX-License-Identifier: Apache-2.0
import { useState } from "react"
import { ChevronDown, ChevronUp } from "lucide-react"
import { Text } from "@/components/typography/text"
Expand Down
Loading