From 13260da30e256cb97dfabcab42ada7d636056098 Mon Sep 17 00:00:00 2001 From: AstroHan Date: Fri, 21 Aug 2026 16:25:36 +0800 Subject: [PATCH 1/2] chore: add an ASF source-header policy and audit it in the release gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first Apache Maka (Incubating) source release has to apply the ASF header policy and enforce it, and nothing in the repository decided which files the policy covers or checked that they comply. `scripts/asf-license-headers.mjs` is that decision. It asserts two properties of the tree it is pointed at, and nothing else. Every entry is classified exactly once: covered by a comment syntax and required to carry the ASF header, or matched by one reviewed exclusion rule that records why the header does not belong there. And in every covered file the license text occurs exactly once, as the canonical rendering at the top. A file that is neither covered nor excluded fails the audit, so a new file type or an unexpected path cannot reach a release candidate until someone writes down which of the two it is. Both properties are stated about the artifact rather than about what the writer emits. An audit that asks "does this file start with the bytes I would write?" can only confirm its own writer: it treats a header rendering it does not recognize as absent, writes a second license block above it, and then accepts the result, because the block it just wrote is at the top of the file. So detection is deliberately loose and acceptance deliberately strict. Detection flattens comment punctuation and line wrapping away and finds the license text written with `//`, in a JSDoc block, with `#`, inside an HTML comment, at any indentation, with an `https` license URL, or rewrapped into a paragraph. Acceptance takes only the exact canonical rendering. `write` is correspondingly dumb: it inserts a header where there is none and refuses every other state, because reconciling someone else's rendering is a decision, not a rewrite. Nothing is dropped from the tree under audit. An extracted candidate is walked whole, with no directory skipped by name, because a file inside a `dist/` or `release/` directory in a source release is not a tree to audit around — it is unclassified, and the gate says so. An entry that is neither a directory nor a regular file is reported rather than passed over. What the enumeration does decide is which tree a checkout stands in for: the files a source release would carry, which means subtracting what `export-ignore` prunes. `.gitattributes` owns that fact, so the audit asks Git for it rather than restating it in a rule. A copy would answer for the original in the one case that matters — an extracted candidate containing such a path would be excused by the very reason that says it cannot be there. Asking Git also has to walk the ancestors, since `export-ignore` on a directory prunes the subtree while `git check-attr` reports one path at a time and does not inherit. The two modes now audit the same set of files. An exclusion rule names the files it excludes or states a structural property that holds for anything it matches. A bare directory prefix does neither: it lends its justification to whatever is added to that directory next. The rules cover the ASF release documents themselves, verbatim upstream license texts, the notices Maka publishes about a bundled third-party runtime, third-party work kept under its own license, generated files that a `check:` script byte-compares against a fresh run, payloads republished verbatim as prompt text or as a pull request body, byte-significant fixtures, formats with no comment syntax, binaries, and version-control metadata. ASF policy treats the part of a file that the copyright owner did not contribute as third-party work, so the files Maka adapted from opencode and from the Vercel AI SDK are excluded rather than given a whole-file header. Whether a heavily modified file should carry a combined header is a PPMC decision. Their attribution belongs to LICENSE and the NOTICE audit. The audit cannot determine provenance — that is a fact about people, not a property of a path — so it refuses to let an unreviewed claim of one pass. A covered file carrying an SPDX identifier, an explicit copyright line, or an adaptation notice fails unless it is recorded in `reviewedProvenance` with the decision that put an ASF header on it anyway. The markers were chosen by measuring them against the whole tree: those three hit three files between them, while `derived from` hits seventy and `opencode` hits forty-five, because Maka supports it as a provider. A net that noisy gets answered with a list of paths added to quiet it. This is a net and not a proof: it catches a file that states its origin, not prose that alludes to one. `scripts/protocol-epoch-check.mjs` gains one exemption. It requires an epoch bump whenever a file under the protocol directory changes, a conservative proxy for "the protocol changed" that is right to be conservative: a needless bump costs a number, a missed one ships two incompatible protocols under one. But inserting a license header provably does not change the protocol, and bumping for it would tell every peer the wire is incompatible over a comment. The guard now exempts a change that is exactly `applyHeader` applied to the previous content — the same authority that writes the headers, so the exemption covers the canonical insertion and nothing that merely resembles it. A protocol file that gained a header and a real edit fails that comparison and still needs an epoch. `Prepare ASF source candidate` runs the audit inside the extracted archive before anything installs or builds into that tree, so the release gate reads the exact bytes a voter downloads instead of a checkout that resembles them. CI runs it unconditionally beside the other install-free checks, because a header gate that only sees the affected surfaces is not a gate. Apache RAT was the alternative. It would put a JVM and a downloaded jar into the audit path that reviewers are expected to reproduce, and its glob exclusions fail open: a new unexpected file inside an excluded directory is approved silently. This audit needs no toolchain beyond the Node the archive already requires, and an unexpected file fails it. The headers themselves are not in this commit. Until the sweep lands, the audit reports every existing source file as missing one. Refs #3271 Generated-by: Claude Code --- .github/ASF_SOURCE_HEADERS.md | 121 ++++ .github/workflows/asf-source-candidate.yml | 7 + .github/workflows/ci.yml | 6 + package.json | 4 +- scripts/asf-license-headers.mjs | 756 ++++++++++++++++++++ scripts/asf-license-headers.test.mjs | 417 +++++++++++ scripts/asf-source-workflow-policy.test.mjs | 16 + scripts/ci-test-plan.mjs | 2 + scripts/protocol-epoch-check.mjs | 40 +- scripts/protocol-epoch-check.test.mjs | 136 +++- 10 files changed, 1502 insertions(+), 3 deletions(-) create mode 100644 .github/ASF_SOURCE_HEADERS.md create mode 100644 scripts/asf-license-headers.mjs create mode 100644 scripts/asf-license-headers.test.mjs diff --git a/.github/ASF_SOURCE_HEADERS.md b/.github/ASF_SOURCE_HEADERS.md new file mode 100644 index 0000000000..74d351a3cf --- /dev/null +++ b/.github/ASF_SOURCE_HEADERS.md @@ -0,0 +1,121 @@ + + +# ASF source header policy + +Apache Maka (Incubating) applies the [ASF source header policy](https://www.apache.org/legal/src-headers.html) to its source release and enforces it with an automated audit. + +`scripts/asf-license-headers.mjs` is the policy. This document explains it; the script decides it. Where the two disagree, the script is authoritative and this document is the bug. + +## What the audit asserts + +The audit states two properties of the tree it is pointed at, and nothing else: + +1. **Every entry is classified exactly once** — covered, excluded with a recorded reason, or an audit failure. +2. **In every covered file the ASF license text occurs exactly once**, and that occurrence is the canonical rendering at the top of the file. + +Both are properties of the artifact. Neither is stated in terms of what `npm run write:asf-headers` produces, and that separation is deliberate: an audit defined as "the file starts with the bytes the writer emits" can only ever confirm its own writer. Such an audit accepts a second license block stacked on top of a first one it failed to recognize, because the block it just wrote is sitting at the top of the file. + +```sh +npm run check:asf-headers # audit; fails on anything unresolved +npm run check:asf-headers -- --report +npm run write:asf-headers # insert the header where there is none +``` + +## Detection is loose, acceptance is strict + +Finding the license text and accepting it are different questions, so they use different tests. + +- **Detection** flattens comment punctuation and line wrapping away, then looks for the text. It finds a header written with `//`, in a JSDoc block, with `#`, inside an HTML comment, at any indentation, with an `https` license URL, or rewrapped into one paragraph. +- **Acceptance** is byte-exact: the canonical rendering, first in the file apart from a shebang, an HTML doctype, or Markdown front matter. + +A covered file is therefore in one of four states, and only the first is one a program may act on: + +| State | Meaning | What happens | +| --- | --- | --- | +| `absent` | no license text anywhere | `write` inserts the header | +| `canonical` | exactly one occurrence, canonical, at the top | passes | +| `unrecognized` | one occurrence, but not the canonical rendering at the top | audit fails; `write` refuses | +| `duplicated` | more than one occurrence | audit fails; `write` refuses | + +`write` only ever inserts. Reconciling an existing header written in another form means deciding what someone else's rendering meant, and that is not a decision to make in a mechanical sweep. + +## Where the audit runs + +- **Every pull request**, over the checkout. This keeps new files from landing without a header. +- **`Prepare ASF source candidate`**, over the extracted `apache-maka--incubating-src.tar.gz`, before anything is installed or built into that tree. The release gate therefore reads the exact bytes a voter downloads. + +In a checkout the audit reads the files a source release would carry: tracked files plus untracked files Git would not ignore, minus what `export-ignore` prunes from the archive. A new file is therefore audited before it is ever staged, while ignored local scratch files stay out of the gate. `.gitattributes` is asked directly rather than restated in a rule — `export-ignore` on a directory prunes the whole subtree, so every ancestor is queried too, since `git check-attr` does not inherit. + +An extracted archive has no index, so **every entry on disk is audited and none is skipped by name**. A file inside a `dist/` or `release/` directory in a source candidate is not something to audit around — it is unclassified, and the gate says so. Nor is a path `export-ignore` should have pruned: finding one means it did not, so the audit reports it instead of excusing it with the reason that says it cannot be there. An entry that is neither a directory nor a regular file is reported rather than passed over. + +Subtracting in a checkout is not the enumeration excusing itself. It decides which artifact the checkout stands in for; nothing is dropped from the archive, where the artifact is already fixed. The two modes therefore audit the same set of files. + +## Covered file types + +| Comment syntax | Extensions | +| --- | --- | +| `/* … */` | `.cjs`, `.css`, `.js`, `.mjs`, `.mts`, `.rs`, `.swift`, `.ts`, `.tsx` | +| `//` | `.jsonc` | +| `#` | `.ps1`, `.py`, `.sh`, `.toml`, `.yaml`, `.yml`, `Dockerfile`, `network-policy` | +| `` | `.html`, `.md` | + +## Reviewed exclusions + +Each rule is a category with a justification. A rule **names the files it excludes, or states a structural property** that holds for anything it matches. A bare directory prefix does neither: it lends its justification to whatever is added to that directory next, which is the failure this audit exists to prevent. `npm run check:asf-headers -- --report` prints the resolved file list for every rule. + +| Rule | Why the header does not belong | +| --- | --- | +| `asf-release-documents` | `LICENSE`, `NOTICE`, and `DISCLAIMER-WIP` are the license and notice themselves. | +| `third-party-license-texts` | Verbatim upstream license and notice texts. They must stay byte-identical to what upstream published, and the executor preparation scripts verify their digests. | +| `maka-authored-legal-notices` | Notices Maka publishes about a bundled third-party runtime, addressed to the recipient of a binary rather than to a reader of source. | +| `third-party-source` | Third-party work under its own license, including mixed-origin files Maka adapted from upstream. See below. | +| `generated-files` | Mechanically derived and byte-compared against a fresh generator run, so a hand-written header would be reverted by the next regeneration. The generators carry the header. | +| `verbatim-runtime-payloads` | Bundled skill payloads are embedded in the generated catalog verbatim, pinned by content digest, and delivered to the model as instructions. Each payload is listed by name. | +| `verbatim-github-templates` | GitHub copies the pull request template into every new pull request description. | +| `byte-significant-fixtures` | Recorded inputs and captured historical state, asserted on byte-for-byte or parsed by a strict reader. | +| `no-comment-syntax` | JSON and CSV have no comment syntax; a header could only be added by corrupting the file for its parser. | +| `binary-files` | Binary content cannot carry a text header. | +| `no-creative-content` | Version-control metadata and platform manifests whose content is a list of names or required platform keys. Apache RAT excludes the same kind of file by default. | + +## Third-party and mixed-origin source + +[ASF policy](https://www.apache.org/legal/src-headers.html#3party) treats the portion of a file that was not contributed by the copyright owner as third-party work. A file Maka adapted from an upstream project is therefore not Maka's to license wholly, and a mechanical sweep may not assert a whole-file ASF header over one. Whether a heavily modified file should instead carry a combined header is a PPMC decision, taken case by case. + +Such files are excluded here and their attribution belongs to `LICENSE` and the `NOTICE` audit, not to this gate. + +## Unreviewed provenance + +This gate cannot determine provenance — that is a fact about people, not a property of a path — but it can refuse to let an unreviewed claim of it through. A covered file that carries an SPDX identifier, an explicit copyright line, or an adaptation notice fails the audit unless it appears in `reviewedProvenance` with the decision that nonetheless put an ASF header on it. + +The markers are deliberately narrow, chosen by measuring them against the whole tree. Those three hit three files between them. `derived from` hits seventy, and an upstream project name such as `opencode` hits forty-five, because Maka supports it as a provider; a net that noisy gets answered with a list of paths added to quiet it, which is the outcome this rule exists to avoid. + +This is a net, not a proof. It catches a file that states its origin. It cannot catch prose that merely alludes to one. + +## The protocol compatibility epoch + +`scripts/protocol-epoch-check.mjs` requires an epoch bump whenever a file under the Runtime Host protocol directory changes. That proxy is deliberately conservative — a needless bump costs a number, a missed one ships two incompatible protocols under one — but inserting a license header provably does not change the protocol, and bumping for it would tell every peer the wire is incompatible over a comment. + +The guard therefore exempts a change that is exactly `applyHeader` applied to the previous content, using the same authority that writes the headers. A file that gained a header *and* a real edit fails that comparison and still requires an epoch. + +## Changing the policy + +Adding a file type means adding it to `coveredExtensions` or `coveredNames` and running `npm run write:asf-headers`. + +Adding an exclusion means adding a rule with an `id` and a `justification` that a mentor can evaluate without reading the code around it. "The audit failed on it" is not a justification. If a file is source that Maka wrote, it gets the header. diff --git a/.github/workflows/asf-source-candidate.yml b/.github/workflows/asf-source-candidate.yml index 88f93f54d5..42affbc816 100644 --- a/.github/workflows/asf-source-candidate.yml +++ b/.github/workflows/asf-source-candidate.yml @@ -73,6 +73,13 @@ jobs: --strip-components=1 \ -C candidate-source + # Runs before anything installs or builds into the extracted tree, so the + # audit classifies the exact bytes a voter downloads. It fails on a file + # that carries no header and matches no reviewed exclusion. + - name: Audit source headers in the extracted candidate + working-directory: candidate-source + run: npm run check:asf-headers -- --report + - name: Install from the committed lockfile working-directory: candidate-source run: npm ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46377ed408..08d8d5d567 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,12 @@ jobs: - name: Test AX tree audit contract run: node --test scripts/ax-tree-audit.test.mjs + # The source-header gate has to see every file that lands, not only the + # files an affected surface selects, so it runs unconditionally beside + # the other install-free checks. + - name: Check ASF source headers + run: npm run check:asf-headers + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 if: steps.plan.outputs.code == 'true' || steps.plan.outputs.astryx_surface == 'true' || steps.plan.outputs.asf_source == 'true' || steps.plan.outputs.cli_package == 'true' || steps.plan.outputs.release_contract == 'true' with: diff --git a/package.json b/package.json index 418e60f146..26ffc4d828 100644 --- a/package.json +++ b/package.json @@ -49,10 +49,12 @@ "release:cli:pack": "node scripts/release-cli-package.mjs", "release:cli:smoke": "node scripts/smoke-release-cli-package.mjs", "release:cli:eval": "node scripts/release-cli-eval-package.mjs", + "check:asf-headers": "node scripts/asf-license-headers.mjs check", + "write:asf-headers": "node scripts/asf-license-headers.mjs write", "release:asf:source": "node scripts/asf-source-release.mjs create", "release:asf:verify": "node scripts/asf-source-release.mjs verify", "release:asf:sign": "node scripts/asf-source-release.mjs sign", - "check:asf-source": "node --test scripts/asf-source-release.test.mjs scripts/asf-source-workflow-policy.test.mjs", + "check:asf-source": "node --test scripts/asf-source-release.test.mjs scripts/asf-source-workflow-policy.test.mjs scripts/asf-license-headers.test.mjs", "check:product-release-identity": "node scripts/product-release-identity.mjs", "package:cli:macos-arm64": "node scripts/package-macos-arm64-cli.mjs", "verify:cli:macos-arm64": "node scripts/verify-macos-arm64-cli.mjs", diff --git a/scripts/asf-license-headers.mjs b/scripts/asf-license-headers.mjs new file mode 100644 index 0000000000..e2ca6931ed --- /dev/null +++ b/scripts/asf-license-headers.mjs @@ -0,0 +1,756 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * ASF source-header audit. + * + * The audit asserts two properties of the tree it is pointed at, and nothing + * else: + * + * 1. Every entry is classified exactly once — covered, excluded with a + * recorded reason, or an audit failure. Nothing is dropped from the tree + * under audit; the enumeration only decides which tree that is. + * 2. In every covered file the ASF license text occurs exactly once, and + * that occurrence is the canonical rendering at the top of the file. + * + * Both are properties of the artifact, stated without reference to what + * `write` produces. That separation is the point: an audit defined as "starts + * with the bytes this module emits" can only confirm its own writer, and will + * accept a second header stacked on top of a first one it failed to recognize. + * + * So detection is deliberately loose and acceptance deliberately strict. + * `countLicenseText` finds the license text through any comment syntax, + * indentation, or line wrapping; only the exact canonical rendering is + * accepted. `write` is correspondingly dumb — it inserts a header where there + * is none and refuses every other state, because every other state is a + * decision a person has to make. + * + * See `.github/ASF_SOURCE_HEADERS.md` for the policy this file implements. + */ + +import { execFileSync } from 'node:child_process'; +import { + existsSync, + readFileSync, + readdirSync, + realpathSync, + statSync, + writeFileSync, +} from 'node:fs'; +import { basename, join, relative, resolve, sep } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const defaultRepoRoot = resolve(import.meta.dirname, '..'); +const maxCommandBuffer = 64 * 1024 * 1024; + +/** + * The header from https://www.apache.org/legal/src-headers.html, verbatim. + * An empty string renders as a comment line with no trailing whitespace. + */ +export const licenseLines = [ + 'Licensed to the Apache Software Foundation (ASF) under one', + 'or more contributor license agreements. See the NOTICE file', + 'distributed with this work for additional information', + 'regarding copyright ownership. The ASF licenses this file', + 'to you under the Apache License, Version 2.0 (the', + '"License"); you may not use this file except in compliance', + 'with the License. You may obtain a copy of the License at', + '', + ' http://www.apache.org/licenses/LICENSE-2.0', + '', + 'Unless required by applicable law or agreed to in writing,', + 'software distributed under the License is distributed on an', + '"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY', + 'KIND, either express or implied. See the License for the', + 'specific language governing permissions and limitations', + 'under the License.', +]; + +/** + * Comment syntaxes the header is rendered into. `prefixPattern` matches the + * lines that must stay first in the file — an interpreter shebang or an HTML + * doctype — so the header goes directly below them instead of breaking them. + */ +const commentStyles = { + block: { open: '/*', line: ' *', close: ' */', prefixPattern: /^#![^\n]*\n/ }, + slash: { linePrefix: '//' }, + hash: { linePrefix: '#', prefixPattern: /^#![^\n]*\n/ }, + // A doctype must open an HTML file, and YAML front matter must open a + // Markdown file, so the header follows either one. + html: { + open: '', + prefixPattern: /^(?:\n|---\n[\s\S]*?\n---\n)/i, + }, +}; + +/** + * File extensions covered by the header policy, and the comment syntax used + * for each. A covered file must carry the header; nothing else may. + */ +const coveredExtensions = new Map([ + ['.cjs', 'block'], + ['.css', 'block'], + ['.html', 'html'], + ['.js', 'block'], + ['.jsonc', 'slash'], + ['.md', 'html'], + ['.mjs', 'block'], + ['.mts', 'block'], + ['.ps1', 'hash'], + ['.py', 'hash'], + ['.rs', 'block'], + ['.sh', 'hash'], + ['.swift', 'block'], + ['.toml', 'hash'], + ['.ts', 'block'], + ['.tsx', 'block'], + ['.yaml', 'hash'], + ['.yml', 'hash'], +]); + +/** Covered files whose name carries no extension. */ +const coveredNames = new Map([ + ['Dockerfile', 'hash'], + // A POSIX shell script that the Eval egress sidecar invokes by name. + ['network-policy', 'hash'], +]); + +const startsWith = (prefix) => (path) => path === prefix || path.startsWith(`${prefix}/`); +const hasExtension = + (...extensions) => + (path) => + extensions.some((extension) => path.endsWith(extension)); +const isOneOf = (...paths) => { + const set = new Set(paths); + return (path) => set.has(path); +}; +const isNamed = (...names) => { + const set = new Set(names); + return (path) => set.has(basename(path)); +}; +const isUnder = + (prefix, ...extensions) => + (path) => + startsWith(prefix)(path) && hasExtension(...extensions)(path); + +/** + * The reviewed exclusion list. Order matters only for reporting: a file is + * attributed to the first rule that matches it. + * + * A rule either names the files it excludes or states a structural property + * that holds for anything it matches. A bare directory prefix does neither: it + * silently lends its justification to whatever is added to that directory + * next, which is the failure this audit exists to prevent. + * + * There is deliberately no rule for paths `.gitattributes` keeps out of the + * archive. Restating that here would put the same fact in two places and let + * the copy answer for the original — an extracted candidate that somehow + * contained such a path would be excused by the very reason that says it + * cannot be there. `listCheckoutFiles` asks Git instead. + */ +export const exclusionRules = [ + { + id: 'asf-release-documents', + justification: + 'These files are the license, notice, and incubation disclosure themselves. ASF policy fixes their contents, so a header inside them would be circular.', + matches: isOneOf('DISCLAIMER-WIP', 'LICENSE', 'NOTICE'), + }, + { + id: 'third-party-license-texts', + justification: + 'Verbatim upstream license and notice texts redistributed with the product. They have to stay byte-identical to what the upstream project published, and the executor preparation scripts verify their digests.', + matches: isOneOf( + 'apps/desktop/resources/licenses/cargo/THIRD_PARTY_NOTICES.txt', + 'apps/desktop/resources/licenses/git/LICENSE.txt', + 'apps/desktop/resources/licenses/npm/THIRD_PARTY_NOTICES.txt', + 'apps/desktop/resources/licenses/renderer/ALLOGO_LICENSE.txt', + 'apps/desktop/resources/licenses/renderer/ANT_DESIGN_ICONS_LICENSE.txt', + 'apps/desktop/resources/licenses/renderer/SEMI_ICONS_LICENSE.txt', + 'apps/desktop/resources/licenses/renderer/SIMPLE_ICONS_LICENSE.md', + 'apps/desktop/resources/licenses/renderer/TDESIGN_ICONS_LICENSE.txt', + 'apps/desktop/src/renderer/public/THIRD_PARTY_LICENSES.txt', + 'packages/cli/THIRD_PARTY_NOTICES.txt', + ), + }, + { + id: 'maka-authored-legal-notices', + justification: + 'Legal notices Maka publishes about a bundled third-party runtime: the attribution notice for the packaged Git distribution and the written offer of source that accompanies it. They are notice text addressed to the recipient of a binary rather than source, and ASF policy leaves notice files unheadered.', + matches: isOneOf( + 'apps/desktop/resources/licenses/git/NOTICE.txt', + 'apps/desktop/resources/licenses/git/SOURCE_OFFER.txt', + ), + }, + { + id: 'third-party-source', + justification: + 'Work of third parties kept under its own license, including files Maka adapted from an upstream project and therefore does not wholly own. ASF policy treats the non-Maka portion of a mixed-origin file as third-party work, so Maka may not assert a whole-file ASF header over one; whether a heavily modified file should instead carry a combined header is a PPMC decision, not a mechanical sweep. Their attribution belongs to LICENSE and the NOTICE audit, not to this gate.', + matches: (path) => + isOneOf( + 'experiments/windows-sandbox/launcher/Cargo.lock', + // Adapted from opencode under MIT; attribution pinned by #3325. + 'packages/runtime/src/edit-replace.ts', + 'packages/runtime/src/tool-output.ts', + // Adapted from Vercel AI SDK material; recorded by the #2907 origin audit. + 'packages/runtime/src/model-protocol.ts', + 'packages/ui/src/astryx-chat-reasoning.tsx', + )(path) || + isUnder('apps/desktop/src/renderer/assets/provider-brands', '.svg')(path) || + isUnder('patches', '.patch')(path), + }, + { + id: 'generated-files', + justification: + 'Mechanically derived from a generator in this repository, and byte-compared against a fresh run by a `check:` script. A hand-written header would be reverted by the next regeneration; the generators themselves carry the header.', + matches: isOneOf( + 'apps/desktop/src/renderer/astryx-theme/maka.css', + 'apps/desktop/src/renderer/astryx-theme/maka.d.ts', + 'apps/desktop/src/renderer/astryx-theme/maka.js', + 'docs/astryx-surface-file-inventory.md', + 'docs/astryx-surface-file-inventory.paths', + 'docs/windows-test-inventory.md', + 'packages/core/src/model-metadata.generated.ts', + 'packages/runtime/src/bundled-skill-catalog.generated.ts', + 'packages/runtime/src/telemetry/model-pricing.generated.ts', + ), + }, + { + id: 'verbatim-runtime-payloads', + justification: + 'Bundled skill payloads are embedded in the generated catalog verbatim, pinned there by content digest, and delivered to the model as instructions. A header would be republished as agent prompt text and would invalidate the recorded digests. Each payload is listed, so a new bundled skill is reviewed rather than inheriting this reason from its directory.', + matches: isOneOf('packages/runtime/resources/bundled-skills/computer-use/SKILL.md'), + }, + { + id: 'verbatim-github-templates', + justification: + 'GitHub copies this file into every new pull request description. A header here would be republished into unrelated prose instead of licensing a source file.', + matches: isOneOf('.github/pull_request_template.md'), + }, + { + id: 'byte-significant-fixtures', + justification: + 'Recorded inputs and captured historical state. Tests assert on their exact bytes or parse them with a strict reader, and their value is that they reproduce what a real system produced rather than that they are authored source.', + matches: (path) => + isOneOf( + 'packages/storage/src/__tests__/fixtures/codex-rollout-v0.144.jsonl', + 'packages/storage/test-fixtures/v0.1.6-operational-state/runtime.sqlite', + 'packages/storage/test-fixtures/workflow-schema-v8.sql', + )(path) || isUnder('docs/eval', '.csv')(path), + }, + { + id: 'no-comment-syntax', + justification: + 'The format has no comment syntax, so a header could only be added by corrupting the file for its parser.', + matches: hasExtension('.csv', '.json', '.jsonl', '.paths'), + }, + { + id: 'binary-files', + justification: + 'Binary image and database content. There is no text position in these formats where a header could be added without corrupting the file.', + matches: hasExtension('.png', '.sqlite'), + }, + { + id: 'no-creative-content', + justification: + 'Version-control metadata and platform manifests whose content is a list of names or required platform keys. Apache RAT excludes the same kind of file by default.', + matches: (path) => + isNamed('.gitignore')(path) || + isOneOf( + '.git-blame-ignore-revs', + '.gitattributes', + '.mailmap', + 'apps/desktop/build/entitlements.mac.inherit.plist', + 'apps/desktop/build/entitlements.mac.plist', + )(path), + }, +]; + +/** + * In-band claims that a file carries someone else's work. This gate cannot + * determine provenance — that is a fact about people, not a property of a path + * — but it can refuse to let an unreviewed claim through. A covered file that + * announces a foreign origin must appear in `reviewedProvenance` with the + * decision that nonetheless put an ASF header on it. + * + * The markers are deliberately narrow. Measured over the whole tree, an SPDX + * identifier, an explicit copyright line, and `Adapted from` hit three files + * between them; `derived from` hits seventy, and an upstream project name like + * `opencode` hits forty-five because Maka supports it as a provider. A net + * that noisy gets answered with a list of paths added to quiet it, which is + * the failure this rule exists to avoid. + * + * This is a net, not a proof. It catches a file that states its origin; it + * cannot catch prose that merely alludes to one, and `edit-replace.ts` — which + * says it "matches opencode's replacers" — is invisible to it. + */ +const provenanceMarkers = [ + /\bSPDX-License-Identifier\b/, + /\bCopyright\s+(?:\(c\)|©|\d{4})/i, + /\bAdapted from\b/i, +]; + +/** + * Covered files whose provenance markers have been reviewed, with the reason + * they may carry the ASF header anyway. + */ +const reviewedProvenance = new Map([ + [ + '.github/ASF_SOURCE_HEADERS.md', + 'Documents the marker patterns; the match is the policy describing its own rule.', + ], + [ + 'docs/code-origin-audit.md', + 'Maka-authored audit report whose subject is other projects’ licensing. The copyright lines it quotes are its findings, not a claim over the file.', + ], + [ + 'scripts/asf-license-headers.mjs', + 'Defines the marker patterns; the match is this module quoting its own rule.', + ], + [ + 'scripts/asf-license-headers.test.mjs', + 'Synthetic fixtures written to exercise the provenance markers.', + ], + [ + 'scripts/generate-third-party-notices.mjs', + 'Maka-authored generator that emits upstream copyright lines into THIRD_PARTY_NOTICES.txt. The copyright it names is its output, not its own.', + ], + [ + 'scripts/sync-model-metadata.mjs', + 'Maka-authored generator that writes the models.dev attribution into the header of the catalog it generates. The copyright it names is its output, not its own.', + ], +]); + +/** + * Covered files that carry the license text as data as well as in their own + * header, so "exactly once" does not apply to them. + */ +const licenseTextAsData = new Map([ + [ + 'scripts/asf-license-headers.mjs', + 'Defines `licenseLines`, the header text this policy renders.', + ], +]); + +export function renderHeader(styleName) { + const style = commentStyles[styleName]; + if (!style) throw new Error(`Unknown comment style: ${styleName}`); + if (style.linePrefix) { + const body = licenseLines + .map((text) => (text ? `${style.linePrefix} ${text}` : style.linePrefix)) + .join('\n'); + return `${body}\n`; + } + const body = licenseLines + .map((text) => (text ? `${style.line} ${text}` : style.line.trimEnd())) + .join('\n'); + return `${style.open}\n${body}\n${style.close}\n`; +} + +export function commentStyleFor(path) { + const name = basename(path); + if (coveredNames.has(name)) return coveredNames.get(name); + const extension = name.includes('.') ? name.slice(name.lastIndexOf('.')) : ''; + return coveredExtensions.get(extension); +} + +/** + * Classification does not depend on which tree is being audited. A rule that + * held in one and not the other would be a rule whose reason is really about + * membership in the release, and membership is decided by the enumeration. + */ +export function classifyPath(path) { + const rule = exclusionRules.find((candidate) => candidate.matches(path)); + if (rule) return { rule: rule.id, status: 'excluded' }; + const style = commentStyleFor(path); + if (style) return { status: 'covered', style }; + return { status: 'unclassified' }; +} + +/** + * Acceptance, strictly: the canonical rendering byte for byte, first in the + * file apart from a shebang, a doctype, or Markdown front matter. + */ +export function findHeaderOffset(contents, styleName) { + const style = commentStyles[styleName]; + const prefix = style.prefixPattern?.exec(contents)?.[0] ?? ''; + return contents.startsWith(renderHeader(styleName), prefix.length) ? prefix.length : -1; +} + +export function hasHeader(contents, styleName) { + return findHeaderOffset(contents, styleName) >= 0; +} + +/** The opening line of the ASF header, which every rendering of it contains. */ +const licenseMarker = licenseLines[0]; + +/** + * Detection, loosely: comment punctuation and line wrapping flattened away, so + * the license text is found whatever syntax it was written in — a `//` header, + * a JSDoc block, `#`, an HTML comment, any indentation, an `https` variant of + * the URL, or a rewrapped paragraph. + */ +export function countLicenseText(contents) { + const flattened = contents.replace(/[*#/]/g, ' ').replace(/\s+/g, ' '); + let count = 0; + let index = flattened.indexOf(licenseMarker); + while (index >= 0) { + count += 1; + index = flattened.indexOf(licenseMarker, index + licenseMarker.length); + } + return count; +} + +/** + * How a covered file stands against property 2. Only `absent` is safe for a + * program to act on; every other state is one a person has to resolve. + */ +export function classifyHeader(contents, styleName, { textAsData = false } = {}) { + const occurrences = countLicenseText(contents); + if (occurrences === 0) return 'absent'; + if (occurrences > 1 && !textAsData) return 'duplicated'; + return hasHeader(contents, styleName) ? 'canonical' : 'unrecognized'; +} + +export class HeaderNotWritableError extends Error { + constructor(status) { + super( + status === 'duplicated' + ? 'the file already contains the ASF license text more than once; remove the extra copy by hand' + : 'the file already carries the ASF license text in a form this policy does not render; reconcile it by hand', + ); + this.name = 'HeaderNotWritableError'; + this.status = status; + } +} + +/** + * Inserts the header, and only ever that. A file that already carries the + * license text in some other shape is left alone and reported, because + * rewriting it would mean deciding what someone else's rendering meant. + */ +export function applyHeader(contents, styleName, options) { + const status = classifyHeader(contents, styleName, options); + if (status === 'canonical') return contents; + if (status !== 'absent') throw new HeaderNotWritableError(status); + const style = commentStyles[styleName]; + const prefix = style.prefixPattern?.exec(contents)?.[0] ?? ''; + const rest = contents.slice(prefix.length); + const separator = rest.trimStart() === '' ? '' : '\n'; + return `${prefix}${renderHeader(styleName)}${separator}${rest.replace(/^\n+/, '')}`; +} + +/** + * The paths `git archive` prunes from the source release, asked of Git rather + * than restated here. `export-ignore` on a directory prunes the whole subtree, + * but `git check-attr` reports one path at a time and does not inherit, so + * every ancestor is queried too — `.claude` carries the attribute while + * `.claude/launch.json` reports `unspecified`. + */ +function exportIgnoredPaths(root, paths) { + const candidates = new Set(); + for (const path of paths) { + const segments = path.split('/'); + for (let index = 1; index <= segments.length; index += 1) { + candidates.add(segments.slice(0, index).join('/')); + } + } + const queried = [...candidates].sort(); + if (queried.length === 0) return new Set(); + const report = execFileSync('git', ['check-attr', '-z', '--stdin', 'export-ignore'], { + cwd: root, + encoding: 'utf8', + input: `${queried.join('\0')}\0`, + maxBuffer: maxCommandBuffer, + }).split('\0'); + const ignored = new Set(); + // Each record is path, attribute, value. + for (let index = 0; index + 2 < report.length; index += 3) { + if (report[index + 2] === 'set') ignored.add(report[index]); + } + return ignored; +} + +/** + * The files a source release would carry: tracked files plus untracked files + * Git would not ignore, minus what `export-ignore` prunes from the archive. A + * new file is therefore audited before it is ever staged, while ignored local + * scratch files stay out of the gate entirely. + * + * Subtracting here is not the enumeration excusing itself — it is what decides + * which artifact the checkout stands in for. Nothing is subtracted from the + * archive, where the artifact is already fixed. + */ +function listCheckoutFiles(root) { + const names = execFileSync( + 'git', + ['ls-files', '-z', '--cached', '--others', '--exclude-standard'], + { cwd: root, encoding: 'utf8', maxBuffer: maxCommandBuffer }, + ) + .split('\0') + .filter(Boolean); + const unique = [...new Set(names)].sort(); + const ignored = exportIgnoredPaths(root, unique); + const released = unique.filter((path) => + path + .split('/') + .every((_, index, segments) => !ignored.has(segments.slice(0, index + 1).join('/'))), + ); + return { files: released, irregular: [] }; +} + +/** + * Every entry on disk, with nothing skipped by name. An extracted candidate + * that contains a build directory is not a tree to audit around: the files in + * it are unclassified and the gate says so. An entry that is neither a + * directory nor a regular file is reported rather than passed over, because + * silently dropping entries is how an audit comes to describe a smaller tree + * than the one being released. + */ +function listArchiveFiles(root) { + const files = []; + const irregular = []; + const walk = (directory) => { + const entries = readdirSync(directory, { withFileTypes: true }).sort((left, right) => + left.name < right.name ? -1 : 1, + ); + for (const entry of entries) { + const absolutePath = join(directory, entry.name); + const path = relative(root, absolutePath).split(sep).join('/'); + if (entry.isDirectory()) { + walk(absolutePath); + continue; + } + if (entry.isFile()) files.push(path); + else irregular.push(path); + } + }; + walk(root); + return { files, irregular }; +} + +/** + * A checkout is audited through Git so that ignored local scratch files cannot + * fail the gate. An extracted archive has no index, so every entry on disk is + * audited. + */ +export function listSourceFiles(root) { + if (existsSync(join(root, '.git'))) { + return { ...listCheckoutFiles(root), mode: 'checkout' }; + } + return { ...listArchiveFiles(root), mode: 'archive' }; +} + +export function auditSourceFiles({ files, irregular = [], mode }) { + const excludedByRule = new Map(); + const unclassified = []; + let covered = 0; + + for (const path of files) { + const classification = classifyPath(path); + if (classification.status === 'unclassified') { + unclassified.push(path); + continue; + } + if (classification.status === 'excluded') { + const paths = excludedByRule.get(classification.rule) ?? []; + paths.push(path); + excludedByRule.set(classification.rule, paths); + continue; + } + covered += 1; + } + + const staleRules = + mode === 'checkout' + ? exclusionRules.filter((rule) => !excludedByRule.has(rule.id)).map((rule) => rule.id) + : []; + + return { + covered, + duplicated: [], + excludedByRule, + irregular: [...irregular], + missing: [], + staleRules, + unclassified, + unrecognized: [], + unreviewedProvenance: [], + }; +} + +export function auditTree({ root = defaultRepoRoot } = {}) { + const listing = listSourceFiles(root); + const result = auditSourceFiles(listing); + for (const path of listing.files) { + const classification = classifyPath(path); + if (classification.status !== 'covered') continue; + const contents = readFileSync(join(root, path), 'utf8'); + const status = classifyHeader(contents, classification.style, { + textAsData: licenseTextAsData.has(path), + }); + if (status === 'absent') result.missing.push(path); + else if (status === 'duplicated') result.duplicated.push(path); + else if (status === 'unrecognized') result.unrecognized.push(path); + if ( + !reviewedProvenance.has(path) && + provenanceMarkers.some((marker) => marker.test(contents)) + ) { + result.unreviewedProvenance.push(path); + } + } + return { ...result, mode: listing.mode, root }; +} + +export function writeHeaders({ root = defaultRepoRoot } = {}) { + const { files } = listSourceFiles(root); + const changed = []; + for (const path of files) { + const classification = classifyPath(path); + if (classification.status !== 'covered') continue; + const absolutePath = join(root, path); + const contents = readFileSync(absolutePath, 'utf8'); + let updated; + try { + updated = applyHeader(contents, classification.style, { + textAsData: licenseTextAsData.has(path), + }); + } catch (error) { + if (error instanceof HeaderNotWritableError) throw new Error(`${path}: ${error.message}`); + throw error; + } + if (updated === contents) continue; + writeFileSync(absolutePath, updated); + changed.push(path); + } + return changed; +} + +function reportExclusions(result) { + console.log('Reviewed exclusions:'); + for (const rule of exclusionRules) { + const paths = result.excludedByRule.get(rule.id) ?? []; + console.log(` ${rule.id}: ${paths.length} file(s)`); + console.log(` ${rule.justification}`); + for (const path of paths) console.log(` ${path}`); + } +} + +function runCheck({ report, root }) { + const result = auditTree({ root }); + const excluded = [...result.excludedByRule.values()].reduce( + (total, paths) => total + paths.length, + 0, + ); + console.log( + `Audited ${result.covered} covered and ${excluded} excluded file(s) in ${result.mode} mode at ${result.root}`, + ); + if (report) reportExclusions(result); + + const failures = [ + [ + result.unclassified, + 'match no header rule and no reviewed exclusion. Cover the file type, or record an exclusion with its justification in scripts/asf-license-headers.mjs', + ], + [ + result.irregular, + 'are neither a directory nor a regular file. A source release carries files; remove them or classify what they are', + ], + [ + result.duplicated, + 'contain the ASF license text more than once. Remove the extra copy by hand', + ], + [ + result.unrecognized, + 'carry the ASF license text in a form this policy does not render. Reconcile each one by hand rather than adding a second header', + ], + [ + result.unreviewedProvenance, + 'claim a third-party origin — an SPDX identifier, a foreign copyright line, or an adaptation notice — while carrying an ASF header. Record the decision in `reviewedProvenance`, or exclude the file as third-party source', + ], + [result.missing, 'are missing the ASF license header. Run `npm run write:asf-headers`'], + ]; + + let failed = false; + for (const [paths, explanation] of failures) { + if (paths.length === 0) continue; + failed = true; + console.error(`\n${paths.length} file(s) ${explanation}:`); + for (const path of paths) console.error(` ${path}`); + } + if (result.staleRules.length > 0) { + failed = true; + console.error( + `\n${result.staleRules.length} exclusion rule(s) match nothing and should be removed: ${result.staleRules.join(', ')}`, + ); + } + if (failed) process.exitCode = 1; + else console.log('Every source file carries the ASF header or a reviewed exclusion.'); +} + +function parseCommandLine(arguments_) { + const [command, ...tokens] = arguments_; + let report = false; + let root = defaultRepoRoot; + for (let index = 0; index < tokens.length; index += 1) { + const token = tokens[index]; + if (token === '--report') { + report = true; + continue; + } + if (token === '--root') { + const value = tokens[index + 1]; + if (!value || value.startsWith('--')) throw new Error('Missing value for --root'); + root = resolve(value); + index += 1; + continue; + } + throw new Error(`Unexpected argument: ${token}`); + } + return { command, report, root }; +} + +function main() { + const { command, report, root } = parseCommandLine(process.argv.slice(2)); + if (!statSync(root).isDirectory()) throw new Error(`Not a directory: ${root}`); + if (command === 'check') { + runCheck({ report, root }); + return; + } + if (command === 'write') { + const changed = writeHeaders({ root }); + console.log(`Added the ASF header to ${changed.length} file(s)`); + for (const path of changed) console.log(` ${path}`); + return; + } + throw new Error('Usage: asf-license-headers.mjs [--root ] [--report]'); +} + +if ( + process.argv[1] && + realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1]) +) { + try { + main(); + } catch (error) { + console.error(error instanceof Error ? error.message : error); + process.exitCode = 1; + } +} diff --git a/scripts/asf-license-headers.test.mjs b/scripts/asf-license-headers.test.mjs new file mode 100644 index 0000000000..2fd6903a7f --- /dev/null +++ b/scripts/asf-license-headers.test.mjs @@ -0,0 +1,417 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import assert from 'node:assert/strict'; +import { mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { after, describe, test } from 'node:test'; + +import { + applyHeader, + auditSourceFiles, + auditTree, + classifyHeader, + classifyPath, + commentStyleFor, + countLicenseText, + exclusionRules, + hasHeader, + HeaderNotWritableError, + licenseLines, + renderHeader, +} from './asf-license-headers.mjs'; + +const blockHeader = renderHeader('block'); +const hashHeader = renderHeader('hash'); + +const temporaryRoots = []; +function fixtureTree(files) { + const root = mkdtempSync(join(tmpdir(), 'asf-headers-')); + temporaryRoots.push(root); + for (const [path, contents] of Object.entries(files)) { + const absolutePath = join(root, path); + mkdirSync(join(absolutePath, '..'), { recursive: true }); + writeFileSync(absolutePath, contents); + } + return root; +} + +after(() => { + for (const root of temporaryRoots) rmSync(root, { force: true, recursive: true }); +}); + +describe('ASF header rendering', () => { + test('renders the ASF text in each comment syntax', () => { + assert.match(blockHeader, /^\/\*\n \* Licensed to the Apache Software Foundation \(ASF\)/); + assert.match( + blockHeader, + / \*\n \* http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\n \*\n/, + ); + assert.match(blockHeader, /\n \* under the License\.\n \*\/\n$/); + assert.match(hashHeader, /^# Licensed to the Apache Software Foundation \(ASF\)/); + assert.match(hashHeader, /\n#\n# http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\n/); + assert.match(renderHeader('slash'), /^\/\/ Licensed to the Apache Software Foundation/); + assert.match(renderHeader('html'), /^\n$/); + }); + + test('leaves no trailing whitespace on the blank comment lines', () => { + for (const style of ['block', 'hash', 'slash', 'html']) { + for (const line of renderHeader(style).split('\n')) { + assert.equal(line, line.trimEnd(), `${style}: ${JSON.stringify(line)}`); + } + } + }); + + test('reproduces every line of the ASF header', () => { + for (const line of licenseLines) { + if (line) assert.ok(blockHeader.includes(line), line); + } + }); +}); + +describe('ASF header application', () => { + test('prepends the header and separates it from the body', () => { + assert.equal( + applyHeader("import 'node:fs';\n", 'block'), + `${blockHeader}\nimport 'node:fs';\n`, + ); + }); + + test('is idempotent', () => { + const once = applyHeader('const a = 1;\n', 'block'); + assert.equal(applyHeader(once, 'block'), once); + assert.ok(hasHeader(once, 'block')); + }); + + test('keeps a shebang first', () => { + const updated = applyHeader('#!/usr/bin/env node\nmain();\n', 'block'); + assert.equal(updated, `#!/usr/bin/env node\n${blockHeader}\nmain();\n`); + assert.ok(hasHeader(updated, 'block')); + }); + + test('keeps an HTML doctype first', () => { + const updated = applyHeader('\n\n', 'html'); + assert.equal(updated, `\n${renderHeader('html')}\n\n`); + assert.ok(hasHeader(updated, 'html')); + }); + + test('keeps Markdown front matter first', () => { + const source = '---\nname: skill\n---\n\n# Title\n'; + const updated = applyHeader(source, 'html'); + assert.equal(updated, `---\nname: skill\n---\n${renderHeader('html')}\n# Title\n`); + assert.ok(hasHeader(updated, 'html')); + }); + + test('does not accept a header that is not at the top of the file', () => { + assert.equal(hasHeader(`const a = 1;\n${blockHeader}`, 'block'), false); + }); + + test('handles an empty file without leaving a stray blank line', () => { + assert.equal(applyHeader('', 'block'), blockHeader); + }); + + test('leaves an unrelated leading comment in place below the header', () => { + assert.equal( + applyHeader('# just a note\nkey: value\n', 'hash'), + `${hashHeader}\n# just a note\nkey: value\n`, + ); + }); +}); + +/** + * Detection has to be looser than acceptance. When one byte-exact test answered + * both "does this file have a header?" and "is that header acceptable?", every + * rendering the test did not recognize was treated as absent and given a second + * license block — which the same byte-exact test then accepted, because the + * block it had just written sat at the top of the file. + */ +describe('ASF header detection is looser than acceptance', () => { + const variants = { + 'indented license URL': [hashHeader.replace('# http', '# http'), 'hash'], + 'https license URL': [blockHeader.replace('http://', 'https://'), 'block'], + 'slash comments in a block-comment file': [renderHeader('slash'), 'block'], + 'JSDoc block': [`/**\n${blockHeader.split('\n').slice(1).join('\n')}`, 'block'], + 'rewrapped prose': [`# ${licenseLines.filter(Boolean).join(' ')}\n`, 'hash'], + }; + + for (const [name, [variant, style]] of Object.entries(variants)) { + test(`finds the license text written as ${name}`, () => { + const source = `${variant}\nconst a = 1;\n`; + assert.equal(countLicenseText(source), 1); + assert.equal(classifyHeader(source, style), 'unrecognized'); + }); + + test(`refuses to rewrite ${name} instead of stacking a second header`, () => { + const source = `${variant}\nconst a = 1;\n`; + assert.throws(() => applyHeader(source, style), HeaderNotWritableError); + }); + } + + test('reports a file that already carries the license text twice', () => { + const source = `${hashHeader}\n${hashHeader}\nkey: value\n`; + assert.equal(countLicenseText(source), 2); + assert.equal(classifyHeader(source, 'hash'), 'duplicated'); + assert.throws(() => applyHeader(source, 'hash'), HeaderNotWritableError); + }); + + test('allows a second occurrence only where the license text is data', () => { + const source = `${hashHeader}\n# ${licenseLines[0]}\n`; + assert.equal(classifyHeader(source, 'hash'), 'duplicated'); + assert.equal(classifyHeader(source, 'hash', { textAsData: true }), 'canonical'); + }); + + test('does not see the license text in an unrelated comment', () => { + assert.equal(countLicenseText('# just a note\nkey: value\n'), 0); + assert.equal(classifyHeader('# just a note\nkey: value\n', 'hash'), 'absent'); + }); + + test('never produces a file carrying the license text more than once', () => { + const sources = [ + 'const a = 1;\n', + '#!/usr/bin/env node\nmain();\n', + '', + ...Object.values(variants).map(([variant]) => `${variant}\nconst a = 1;\n`), + ]; + for (const source of sources) { + let updated; + try { + updated = applyHeader(source, 'block'); + } catch (error) { + assert.ok(error instanceof HeaderNotWritableError); + continue; + } + assert.equal(countLicenseText(updated), 1, JSON.stringify(source.slice(0, 40))); + } + }); +}); + +describe('ASF header classification', () => { + test('covers product, script, and documentation source', () => { + for (const path of [ + 'packages/core/src/settings.ts', + 'apps/desktop/src/renderer/app-shell.tsx', + 'scripts/asf-source-release.mjs', + 'experiments/windows-sandbox/launcher/src/main.rs', + 'packages/eval/harbor/egress-proxy/Dockerfile', + 'packages/eval/harbor/egress-proxy/network-policy', + '.github/workflows/ci.yml', + 'README.md', + ]) { + assert.equal(classifyPath(path).status, 'covered', path); + } + }); + + test('excludes the reviewed categories', () => { + const excluded = { + LICENSE: 'asf-release-documents', + 'package.json': 'no-comment-syntax', + 'apps/desktop/assets/icon.png': 'binary-files', + 'patches/node-pty+1.2.0-beta.15.patch': 'third-party-source', + 'packages/ui/src/astryx-chat-reasoning.tsx': 'third-party-source', + 'apps/desktop/resources/licenses/git/LICENSE.txt': 'third-party-license-texts', + 'apps/desktop/resources/licenses/git/NOTICE.txt': 'maka-authored-legal-notices', + 'apps/desktop/resources/licenses/git/SOURCE_OFFER.txt': 'maka-authored-legal-notices', + 'packages/core/src/model-metadata.generated.ts': 'generated-files', + 'packages/runtime/resources/bundled-skills/computer-use/SKILL.md': + 'verbatim-runtime-payloads', + '.github/pull_request_template.md': 'verbatim-github-templates', + 'packages/storage/test-fixtures/workflow-schema-v8.sql': 'byte-significant-fixtures', + '.gitattributes': 'no-creative-content', + 'apps/desktop/.gitignore': 'no-creative-content', + }; + for (const [path, rule] of Object.entries(excluded)) { + assert.deepEqual(classifyPath(path), { rule, status: 'excluded' }, path); + } + }); + + test('excludes the mixed-origin files Maka adapted from upstream projects', () => { + for (const path of [ + 'packages/runtime/src/edit-replace.ts', + 'packages/runtime/src/model-protocol.ts', + 'packages/runtime/src/tool-output.ts', + ]) { + assert.deepEqual( + classifyPath(path), + { rule: 'third-party-source', status: 'excluded' }, + path, + ); + } + }); + + test('keeps Maka-authored files out of the third-party and fixture rules', () => { + assert.equal(classifyPath('patches/README.md').status, 'covered'); + assert.equal( + classifyPath('docs/eval/terminal-bench-2.1-maka-vs-kimi-code-v11.md').status, + 'covered', + ); + }); + + /** + * A directory prefix would lend its justification to whatever lands in that + * directory next. Each of these rules names its files or states a structural + * property, so a new file of a different kind stays unclassified. + */ + test('does not extend a reviewed exclusion to a directory', () => { + for (const path of [ + 'apps/desktop/resources/licenses/renderer/helper.ts', + 'apps/desktop/src/renderer/assets/provider-brands/README.md', + 'packages/runtime/resources/bundled-skills/new-skill/SKILL.md', + 'packages/runtime/resources/bundled-skills/README.md', + ]) { + assert.notEqual(classifyPath(path).status, 'excluded', path); + } + }); + + test('leaves an unknown file type unclassified so the audit fails closed', () => { + assert.equal(classifyPath('vendor/thing.kt').status, 'unclassified'); + assert.equal(commentStyleFor('vendor/thing.kt'), undefined); + }); + + test('gives every exclusion rule a unique id and a justification', () => { + const ids = new Set(); + for (const rule of exclusionRules) { + assert.equal(ids.has(rule.id), false, rule.id); + ids.add(rule.id); + assert.ok(rule.justification.length > 60, rule.id); + assert.equal(typeof rule.matches, 'function', rule.id); + } + }); + + /** + * `.gitattributes` decides what leaves the archive. A rule restating that + * here would excuse such a path when an extracted candidate contained it — + * using the reason as cover for the one thing it says cannot happen. + */ + test('records no exclusion for paths that export-ignore prunes', () => { + assert.equal(classifyPath('.claude/launch.json').status, 'excluded'); + assert.equal(classifyPath('.claude/launch.json').rule, 'no-comment-syntax'); + assert.equal(classifyPath('.claude/skills/local/SKILL.md').status, 'covered'); + assert.equal(classifyPath('maka-proposal-zh-review.txt').status, 'unclassified'); + }); +}); + +describe('ASF header audit', () => { + test('reports unclassified files separately from missing headers', () => { + const result = auditSourceFiles({ + files: ['LICENSE', 'packages/core/src/settings.ts', 'vendor/thing.kt'], + mode: 'archive', + }); + assert.deepEqual(result.unclassified, ['vendor/thing.kt']); + assert.equal(result.covered, 1); + assert.deepEqual(result.excludedByRule.get('asf-release-documents'), ['LICENSE']); + }); + + test('reports an exclusion rule that matches nothing in a checkout', () => { + const result = auditSourceFiles({ files: ['LICENSE'], mode: 'checkout' }); + assert.equal(result.staleRules.includes('asf-release-documents'), false); + assert.ok(result.staleRules.includes('binary-files')); + }); + + test('does not call an archive-absent rule stale', () => { + const result = auditSourceFiles({ files: ['LICENSE'], mode: 'archive' }); + assert.deepEqual(result.staleRules, []); + }); +}); + +/** + * The audit walks an extracted candidate, where there is no Git index to ask. + * Skipping entries by directory name once let a file inside `dist/` or + * `release/` reach a release candidate completely unaudited while the gate + * still reported success. + */ +describe('ASF header audit over an extracted candidate', () => { + test('classifies every entry, including one inside a build directory', () => { + const root = fixtureTree({ + 'README.md': renderHeader('html'), + 'dist/unexpected.kt': 'fun main() {}\n', + 'release/unexpected.kt': 'fun main() {}\n', + }); + const result = auditTree({ root }); + assert.equal(result.mode, 'archive'); + assert.deepEqual(result.unclassified.sort(), ['dist/unexpected.kt', 'release/unexpected.kt']); + }); + + /** + * These paths are absent from a correct archive because `export-ignore` + * prunes them. Finding one means it did not, which the audit has to report + * rather than excuse. + */ + test('does not excuse a path that export-ignore should have pruned', () => { + const root = fixtureTree({ + 'README.md': renderHeader('html'), + '.claude/skills/local/SKILL.md': '# Local\n', + 'maka-proposal-zh-review.txt': 'notes\n', + }); + const result = auditTree({ root }); + assert.deepEqual(result.unclassified, ['maka-proposal-zh-review.txt']); + assert.deepEqual(result.missing, ['.claude/skills/local/SKILL.md']); + }); + + test('reports an entry that is not a regular file', () => { + const root = fixtureTree({ 'README.md': renderHeader('html') }); + symlinkSync('README.md', join(root, 'LINK.md')); + assert.deepEqual(auditTree({ root }).irregular, ['LINK.md']); + }); + + test('reports a covered file that is missing the header', () => { + const root = fixtureTree({ 'notes.md': '# Notes\n' }); + assert.deepEqual(auditTree({ root }).missing, ['notes.md']); + }); + + test('reports a covered file whose header is not the canonical rendering', () => { + const root = fixtureTree({ + 'settings.ts': `${blockHeader.replace('http://', 'https://')}\nconst a = 1;\n`, + }); + assert.deepEqual(auditTree({ root }).unrecognized, ['settings.ts']); + }); + + /** + * The gate cannot determine provenance, so it fails on an unreviewed claim of + * one rather than deciding the question itself. + */ + test('reports an unreviewed third-party origin claimed inside a covered file', () => { + const root = fixtureTree({ + 'adapted.ts': `${blockHeader}\n// Adapted from an upstream project.\nconst a = 1;\n`, + 'foreign.ts': `${blockHeader}\n// Copyright (c) 2020 Someone Else\nconst b = 2;\n`, + 'spdx.ts': `${blockHeader}\n// SPDX-License-Identifier: MIT\nconst c = 3;\n`, + 'plain.ts': `${blockHeader}\nconst d = 4;\n`, + }); + assert.deepEqual(auditTree({ root }).unreviewedProvenance.sort(), [ + 'adapted.ts', + 'foreign.ts', + 'spdx.ts', + ]); + }); + + test('passes a tree whose covered files all carry the canonical header', () => { + const root = fixtureTree({ + 'README.md': renderHeader('html'), + 'settings.ts': `${blockHeader}\nconst a = 1;\n`, + 'package.json': '{}\n', + }); + const result = auditTree({ root }); + for (const key of ['duplicated', 'irregular', 'missing', 'unclassified', 'unrecognized']) { + assert.deepEqual(result[key], [], key); + } + assert.deepEqual(result.unreviewedProvenance, []); + assert.equal(result.covered, 2); + }); +}); diff --git a/scripts/asf-source-workflow-policy.test.mjs b/scripts/asf-source-workflow-policy.test.mjs index c7ce6ccce1..131e4b8d76 100644 --- a/scripts/asf-source-workflow-policy.test.mjs +++ b/scripts/asf-source-workflow-policy.test.mjs @@ -24,4 +24,20 @@ describe('ASF source workflow policy', () => { /RUNBOOK_URL: .*\/blob\/\$\{\{ github\.sha \}\}\/\.github\/ASF_SOURCE_RELEASE\.md/, ); }); + + test('audits source headers in the extracted candidate before it is installed into', () => { + const workflow = readFileSync(workflowPath, 'utf8'); + const auditIndex = workflow.indexOf('npm run check:asf-headers'); + const installIndex = workflow.indexOf('npm ci'); + assert.notEqual(auditIndex, -1); + assert.notEqual(installIndex, -1); + assert.ok( + auditIndex < installIndex, + 'the header audit must read the extracted archive, not a built tree', + ); + assert.match( + workflow, + /Audit source headers in the extracted candidate\n\s+working-directory: candidate-source\n/, + ); + }); }); diff --git a/scripts/ci-test-plan.mjs b/scripts/ci-test-plan.mjs index e03f1efc21..083c783b81 100644 --- a/scripts/ci-test-plan.mjs +++ b/scripts/ci-test-plan.mjs @@ -70,6 +70,8 @@ const CLI_PACKAGE_FILES = new Set([ const ASF_SOURCE_FILES = new Set([ '.github/workflows/asf-source-candidate.yml', + 'scripts/asf-license-headers.mjs', + 'scripts/asf-license-headers.test.mjs', 'scripts/asf-source-release.mjs', 'scripts/asf-source-release.test.mjs', 'scripts/asf-source-workflow-policy.test.mjs', diff --git a/scripts/protocol-epoch-check.mjs b/scripts/protocol-epoch-check.mjs index f27c49a6ba..819f4adfa2 100644 --- a/scripts/protocol-epoch-check.mjs +++ b/scripts/protocol-epoch-check.mjs @@ -14,6 +14,8 @@ import { execFileSync } from 'node:child_process'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; +import { applyHeader, classifyPath } from './asf-license-headers.mjs'; + const scriptPath = fileURLToPath(import.meta.url); const defaultRepoRoot = dirname(dirname(scriptPath)); @@ -76,6 +78,40 @@ export function epochAtRevision(revision, exec = execFileSync) { return extractCompatibilityEpoch(git(['show', `${revision}:${EPOCH_FILE}`], exec)); } +/** + * Whether a file changed only by gaining the ASF license header. + * + * The guard's question is whether the protocol changed. "A file under the + * protocol directory was touched" is a conservative proxy for that, and the + * asymmetry justifies it: a needless epoch bump costs a number, a missed one + * ships two incompatible protocols under one. But inserting a license header + * provably does not change the protocol, and answering that with a bump would + * tell every peer the wire is incompatible over a comment. + * + * The test is `applyHeader`, the same authority that writes the headers, so + * this exempts exactly the canonical insertion and nothing that resembles it. + * A file that gained a header *and* a real edit fails the comparison and still + * requires an epoch. + * + * Everything else is a protocol change. A file that exists on only one side — + * added, deleted, or one half of a rename, since the diff is taken with + * `--no-renames` — has no pair to compare and is one by definition, so the + * failing `git show` resolves to `false` rather than escaping. Every read is + * inside the guard for that reason: the exemption has to fail toward requiring + * an epoch, never toward crashing the check that would have demanded one. + */ +export function isHeaderOnlyChange(file, base, head, exec = execFileSync) { + const style = classifyPath(file).style; + if (!style) return false; + try { + const before = git(['show', `${base}:${file}`], exec); + const after = git(['show', `${head}:${file}`], exec); + return applyHeader(before, style) === after; + } catch { + return false; + } +} + function parseArgs(args) { const parsed = { base: undefined, head: 'HEAD' }; for (let index = 0; index < args.length; index += 1) { @@ -92,7 +128,9 @@ function main(args) { const verdict = evaluateEpochCheck({ baseEpoch: epochAtRevision(base), headEpoch: epochAtRevision(head), - changedProtocolFiles: changedProtocolFilesBetween(base, head), + changedProtocolFiles: changedProtocolFilesBetween(base, head).filter( + (file) => !isHeaderOnlyChange(file, base, head), + ), }); process.stderr.write(`Protocol epoch guard: ${verdict.reason}\n`); if (!verdict.ok) process.exitCode = 1; diff --git a/scripts/protocol-epoch-check.test.mjs b/scripts/protocol-epoch-check.test.mjs index 2a0a666a39..0c0c21a8f8 100644 --- a/scripts/protocol-epoch-check.test.mjs +++ b/scripts/protocol-epoch-check.test.mjs @@ -1,6 +1,6 @@ import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; -import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import test from 'node:test'; import { @@ -9,7 +9,9 @@ import { epochAtRevision, evaluateEpochCheck, extractCompatibilityEpoch, + isHeaderOnlyChange, } from './protocol-epoch-check.mjs'; +import { renderHeader } from './asf-license-headers.mjs'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -125,3 +127,135 @@ test('passes when nothing under the protocol directory changed', () => { assert.equal(verdict.ok, true); } }); + +/** + * The guard asks whether the protocol changed, and uses "a file under the + * protocol directory was touched" as a conservative proxy. Inserting the ASF + * license header provably does not change the protocol, and answering it with + * an epoch bump would tell every peer the wire is incompatible over a comment. + */ +test('exempts a protocol file that only gained the ASF license header', () => { + const repo = mkdtempSync(join(tmpdir(), 'maka-protocol-epoch-header-')); + const epochPath = join(repo, EPOCH_FILE); + const protocolDirectory = dirname(epochPath); + const runGit = (...args) => execFileSync('git', args, { cwd: repo, encoding: 'utf8' }); + const runInFixture = (file, args, options) => + execFileSync(file, args, { ...options, cwd: repo, encoding: 'utf8' }); + const body = 'export const turn = true;\n'; + const headerOnly = join(protocolDirectory, 'turn.ts'); + const alsoEdited = join(protocolDirectory, 'usage.ts'); + + try { + runGit('init', '--initial-branch=main'); + runGit('config', 'user.email', 'epoch-guard@example.invalid'); + runGit('config', 'user.name', 'Epoch Guard Test'); + mkdirSync(protocolDirectory, { recursive: true }); + writeFileSync(epochPath, 'export const RUNTIME_HOST_COMPATIBILITY_EPOCH = 27 as const;\n'); + writeFileSync(headerOnly, body); + writeFileSync(alsoEdited, body); + runGit('add', '.'); + runGit('commit', '-m', 'base'); + + writeFileSync(headerOnly, `${renderHeader('block')}\n${body}`); + writeFileSync(alsoEdited, `${renderHeader('block')}\n${body}export const extra = 1;\n`); + runGit('add', '.'); + runGit('commit', '-m', 'sweep plus one real edit'); + + assert.equal( + isHeaderOnlyChange( + 'packages/runtime-host/src/protocol/turn.ts', + 'HEAD^', + 'HEAD', + runInFixture, + ), + true, + ); + assert.equal( + isHeaderOnlyChange( + 'packages/runtime-host/src/protocol/usage.ts', + 'HEAD^', + 'HEAD', + runInFixture, + ), + false, + ); + + const changed = changedProtocolFilesBetween('HEAD^', 'HEAD', runInFixture).filter( + (file) => !isHeaderOnlyChange(file, 'HEAD^', 'HEAD', runInFixture), + ); + assert.deepEqual(changed, ['packages/runtime-host/src/protocol/usage.ts']); + + // The epoch still has to move for the file that gained a real edit. + const verdict = evaluateEpochCheck({ + baseEpoch: epochAtRevision('HEAD^', runInFixture), + headEpoch: epochAtRevision('HEAD', runInFixture), + changedProtocolFiles: changed, + }); + assert.equal(verdict.ok, false); + assert.match(verdict.reason, /usage\.ts/); + assert.equal(verdict.reason.includes('turn.ts'), false); + } finally { + rmSync(repo, { recursive: true, force: true }); + } +}); + +/** + * `changedProtocolFilesBetween` diffs with `--no-renames`, so an added file has + * no base revision, a deleted file has no head revision, and a rename is one of + * each. Each is a protocol change; none may crash the guard that would have + * demanded an epoch for it. + */ +test('treats added, deleted, and renamed protocol files as real changes', () => { + const repo = mkdtempSync(join(tmpdir(), 'maka-protocol-epoch-lifecycle-')); + const epochPath = join(repo, EPOCH_FILE); + const protocolDirectory = dirname(epochPath); + const runGit = (...args) => execFileSync('git', args, { cwd: repo, encoding: 'utf8' }); + const runInFixture = (file, args, options) => + execFileSync(file, args, { ...options, cwd: repo, encoding: 'utf8' }); + const withHeader = `${renderHeader('block')}\nexport const value = true;\n`; + + try { + runGit('init', '--initial-branch=main'); + runGit('config', 'user.email', 'epoch-guard@example.invalid'); + runGit('config', 'user.name', 'Epoch Guard Test'); + mkdirSync(protocolDirectory, { recursive: true }); + writeFileSync(epochPath, 'export const RUNTIME_HOST_COMPATIBILITY_EPOCH = 27 as const;\n'); + writeFileSync(join(protocolDirectory, 'removed.ts'), withHeader); + writeFileSync(join(protocolDirectory, 'before-rename.ts'), withHeader); + runGit('add', '.'); + runGit('commit', '-m', 'base'); + + writeFileSync(join(protocolDirectory, 'added.ts'), withHeader); + rmSync(join(protocolDirectory, 'removed.ts')); + renameSync( + join(protocolDirectory, 'before-rename.ts'), + join(protocolDirectory, 'after-rename.ts'), + ); + runGit('add', '--all'); + runGit('commit', '-m', 'add, delete, and rename protocol files'); + + const changed = changedProtocolFilesBetween('HEAD^', 'HEAD', runInFixture); + assert.deepEqual(changed.sort(), [ + 'packages/runtime-host/src/protocol/added.ts', + 'packages/runtime-host/src/protocol/after-rename.ts', + 'packages/runtime-host/src/protocol/before-rename.ts', + 'packages/runtime-host/src/protocol/removed.ts', + ]); + + for (const file of changed) { + assert.equal(isHeaderOnlyChange(file, 'HEAD^', 'HEAD', runInFixture), false, file); + } + + const verdict = evaluateEpochCheck({ + baseEpoch: epochAtRevision('HEAD^', runInFixture), + headEpoch: epochAtRevision('HEAD', runInFixture), + changedProtocolFiles: changed.filter( + (file) => !isHeaderOnlyChange(file, 'HEAD^', 'HEAD', runInFixture), + ), + }); + assert.equal(verdict.ok, false); + assert.match(verdict.reason, /added\.ts/); + } finally { + rmSync(repo, { recursive: true, force: true }); + } +}); From ad0c431f045f3da30db0025c79fb7b78fc86b575 Mon Sep 17 00:00:00 2001 From: AstroHan Date: Sat, 22 Aug 2026 15:23:34 +0800 Subject: [PATCH 2/2] chore: apply the ASF license header to every covered source file `npm run write:asf-headers` produced this commit, and `npm run check:asf-headers` now passes on the checkout and on the extracted source archive. Nothing here was hand-edited: every changed file is exactly its previous content with the standard ASF header inserted at the top, below an interpreter shebang, an HTML doctype, or Markdown front matter where one of those has to open the file. `.asf.yaml`, which already carried the header, is untouched. `DISCLAIMER-WIP` no longer discloses that source files lack Apache license headers, because they no longer do. The remaining disclosures about `NOTICE` and about the software grant and ICLAs are unchanged and still open. `.git-blame-ignore-revs` gets an entry for this sweep. Following the convention the file documents, the placeholder records the landed hash in a follow-up right after the squash-merge, since a hash that never reaches main makes `git blame` fail outright. Merging this will require open pull requests to rebase. That is the cost of doing the sweep once; splitting it per directory would multiply the rebases instead of avoiding them. Refs #3271 Generated-by: Claude Code --- .coderabbit.yaml | 17 ++++++++++++++++ .git-blame-ignore-revs | 3 +++ .github/ASF_SOURCE_RELEASE.md | 19 ++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.yml | 17 ++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 17 ++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yml | 17 ++++++++++++++++ .github/RELEASE_CHECKLIST.md | 19 ++++++++++++++++++ .github/copilot-instructions.md | 19 ++++++++++++++++++ .github/dependabot.yml | 17 ++++++++++++++++ .github/skills/code-review/SKILL.md | 18 +++++++++++++++++ .github/workflows/asf-source-candidate.yml | 17 ++++++++++++++++ .github/workflows/ci.yml | 17 ++++++++++++++++ .github/workflows/cli-package-validation.yml | 17 ++++++++++++++++ .github/workflows/copilot-auto-review.yml | 17 ++++++++++++++++ .github/workflows/dependency-audit.yml | 17 ++++++++++++++++ .github/workflows/release-cli-finalize.yml | 17 ++++++++++++++++ .github/workflows/release-cli-stage.yml | 17 ++++++++++++++++ .github/workflows/release-windows-check.yml | 17 ++++++++++++++++ .github/workflows/release.yml | 17 ++++++++++++++++ .github/workflows/windows-baseline.yml | 17 ++++++++++++++++ .github/workflows/windows-recovery.yml | 17 ++++++++++++++++ .github/workflows/windows-sandbox-w0.yml | 17 ++++++++++++++++ .pr_agent.toml | 17 ++++++++++++++++ ARCHITECTURE.md | 19 ++++++++++++++++++ ARCHITECTURE.zh-CN.md | 19 ++++++++++++++++++ CHANGELOG.md | 19 ++++++++++++++++++ CONTRIBUTING.md | 19 ++++++++++++++++++ CONTRIBUTING.zh-CN.md | 19 ++++++++++++++++++ DESIGN.md | 18 +++++++++++++++++ DISCLAIMER-WIP | 1 - README.md | 19 ++++++++++++++++++ README.zh-CN.md | 19 ++++++++++++++++++ SECURITY.md | 19 ++++++++++++++++++ apps/desktop/.storybook/main.ts | 19 ++++++++++++++++++ .../.storybook/node-crypto-boundary.ts | 19 ++++++++++++++++++ apps/desktop/.storybook/preview.tsx | 19 ++++++++++++++++++ apps/desktop/README.md | 19 ++++++++++++++++++ .../e2e/accessibility-coverage.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/code-scroll.spec.ts | 19 ++++++++++++++++++ .../e2e/composer-skill-invocation.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/fixtures.ts | 19 ++++++++++++++++++ apps/desktop/e2e/goal-dialog-budget.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/link-color-contract.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/new-task-reload.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/onboarding-viewport.spec.ts | 19 ++++++++++++++++++ .../e2e/parent-session-deletion.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/playwright.config.ts | 19 ++++++++++++++++++ apps/desktop/e2e/prompt-rail.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/quote-selection.spec.ts | 19 ++++++++++++++++++ .../e2e/request-header-row-contract.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/send-message.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/session-workbar.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/settings.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/sidebar-project-row.spec.ts | 19 ++++++++++++++++++ .../desktop/e2e/skill-draft-lifecycle.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/slash-command-menu.spec.ts | 19 ++++++++++++++++++ apps/desktop/e2e/streaming-remount.spec.ts | 19 ++++++++++++++++++ apps/desktop/electron-builder.config.mjs | 19 ++++++++++++++++++ .../scripts/browser-observe-act-smoke.mjs | 19 ++++++++++++++++++ .../copy-runtime-filesystem-worker.mjs | 19 ++++++++++++++++++ apps/desktop/scripts/dev-app-runtime.mjs | 19 ++++++++++++++++++ apps/desktop/scripts/dev.mjs | 19 ++++++++++++++++++ apps/desktop/scripts/prepare-dev-app.mjs | 19 ++++++++++++++++++ apps/desktop/scripts/start-dev-app.mjs | 19 ++++++++++++++++++ apps/desktop/src/global.d.ts | 19 ++++++++++++++++++ .../__tests__/about-settings-page.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/action-guard.test.ts | 19 ++++++++++++++++++ ...tive-execution-boundary-read-model.test.ts | 19 ++++++++++++++++++ .../agent-graph-panel-visibility.test.ts | 19 ++++++++++++++++++ .../main/__tests__/agent-graph-panel.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-graph-refresh.test.ts | 19 ++++++++++++++++++ .../__tests__/app-quit-coordinator.test.ts | 19 ++++++++++++++++++ .../app-shell-busy-race-settlement.test.ts | 19 ++++++++++++++++++ .../app-shell-command-actions.test.ts | 19 ++++++++++++++++++ .../app-shell-first-send-cleanup.test.ts | 19 ++++++++++++++++++ .../app-shell-pending-attachments.test.ts | 19 ++++++++++++++++++ .../app-shell-project-actions.test.ts | 19 ++++++++++++++++++ .../__tests__/app-shell-session-purge.test.ts | 19 ++++++++++++++++++ ...hell-session-row-actions-revisions.test.ts | 19 ++++++++++++++++++ ...app-shell-session-settings-actions.test.ts | 19 ++++++++++++++++++ .../app-shell-session-ui-state.test.ts | 19 ++++++++++++++++++ .../__tests__/app-shell-turn-actions.test.ts | 19 ++++++++++++++++++ .../__tests__/app-update-focus-check.test.ts | 19 ++++++++++++++++++ .../main/__tests__/app-update-install.test.ts | 19 ++++++++++++++++++ .../main/__tests__/app-update-service.test.ts | 19 ++++++++++++++++++ .../artifact-preview-registry.test.ts | 19 ++++++++++++++++++ .../main/__tests__/assistant-stream.test.ts | 19 ++++++++++++++++++ .../__tests__/attachment-approval.test.ts | 19 ++++++++++++++++++ .../attachment-ingest-payload.test.ts | 19 ++++++++++++++++++ .../attachment-ingest-resolve.test.ts | 19 ++++++++++++++++++ .../__tests__/attachment-preflight.test.ts | 19 ++++++++++++++++++ .../main/__tests__/attachment-preview.test.ts | 19 ++++++++++++++++++ .../main/__tests__/automation-host.test.ts | 19 ++++++++++++++++++ .../bootstrap-selection-lease.test.ts | 19 ++++++++++++++++++ .../bot-incoming-project-cwd.test.ts | 19 ++++++++++++++++++ .../bot-incoming-session-lifecycle.test.ts | 19 ++++++++++++++++++ .../__tests__/bot-incoming-typing.test.ts | 19 ++++++++++++++++++ .../__tests__/bot-onboarding-main.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/browser-logic.test.ts | 19 ++++++++++++++++++ .../main/__tests__/browser-selection.test.ts | 19 ++++++++++++++++++ .../main/__tests__/browser-session.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/browser-tools.test.ts | 19 ++++++++++++++++++ .../__tests__/browser-view-manager.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/build-info.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/cdp-bridge.test.ts | 19 ++++++++++++++++++ ...chat-composer-region-draft-handoff.test.ts | 19 ++++++++++++++++++ .../__tests__/client-settings-effects.test.ts | 19 ++++++++++++++++++ .../client-settings-ipc-main.test.ts | 19 ++++++++++++++++++ .../__tests__/client-settings-watcher.test.ts | 19 ++++++++++++++++++ .../__tests__/command-palette-retired.test.ts | 19 ++++++++++++++++++ .../main/__tests__/computer-use-host.test.ts | 19 ++++++++++++++++++ .../computer-use-real-model-policy.test.ts | 19 ++++++++++++++++++ .../computer-use-screen-lock.test.ts | 19 ++++++++++++++++++ .../computer-use-status-item-locale.test.ts | 19 ++++++++++++++++++ .../__tests__/config-transfer-service.test.ts | 19 ++++++++++++++++++ .../connection-catalog-fixture.test.ts | 19 ++++++++++++++++++ .../__tests__/conversation-markdown.test.ts | 19 ++++++++++++++++++ .../__tests__/create-session-input.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/cursor-engine.test.ts | 19 ++++++++++++++++++ .../__tests__/daily-review-fixture.test.ts | 19 ++++++++++++++++++ .../default-runtime-host-operation.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/desktop-assets.test.ts | 19 ++++++++++++++++++ .../desktop-locale-authority.test.ts | 19 ++++++++++++++++++ .../__tests__/desktop-native-copy.test.ts | 19 ++++++++++++++++++ .../desktop-session-projection.test.ts | 19 ++++++++++++++++++ .../desktop-transcript-range-store.test.ts | 19 ++++++++++++++++++ .../__tests__/external-link-guard.test.ts | 19 ++++++++++++++++++ ...xternal-session-catalog-projection.test.ts | 19 ++++++++++++++++++ apps/desktop/src/main/__tests__/fake-dom.ts | 19 ++++++++++++++++++ .../main/__tests__/git-review-main.test.ts | 19 ++++++++++++++++++ ...ithub-copilot-subscription-service.test.ts | 19 ++++++++++++++++++ .../history-compact-artifacts.test.ts | 19 ++++++++++++++++++ .../import-tasks-settings-page.test.ts | 19 ++++++++++++++++++ .../main/__tests__/keep-system-awake.test.ts | 19 ++++++++++++++++++ .../main/__tests__/live-content-seed.test.ts | 19 ++++++++++++++++++ .../main-process-diagnostics.test.ts | 19 ++++++++++++++++++ .../main-window-permission-policy.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/maka-uri.test.ts | 19 ++++++++++++++++++ .../__tests__/managed-skill-sources.test.ts | 19 ++++++++++++++++++ .../main/__tests__/mcp-command-line.test.ts | 19 ++++++++++++++++++ .../__tests__/mcp-editor-validation.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/mcp-import.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/mcp-ipc-main.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/mcp-page-model.test.ts | 19 ++++++++++++++++++ .../main/__tests__/mcp-runtime-e2e.test.ts | 19 ++++++++++++++++++ .../main/__tests__/mcp-secret-guard.test.ts | 19 ++++++++++++++++++ .../__tests__/model-catalog-choices.test.ts | 19 ++++++++++++++++++ .../multi-host-thread-search.test.ts | 19 ++++++++++++++++++ .../native-diagnostic-dialog.test.ts | 19 ++++++++++++++++++ .../__tests__/new-session-project.test.ts | 19 ++++++++++++++++++ .../__tests__/notifications-policy.test.ts | 19 ++++++++++++++++++ .../__tests__/oauth-login-flow-guard.test.ts | 19 ++++++++++++++++++ .../main/__tests__/open-path-guard.test.ts | 19 ++++++++++++++++++ ...timistic-settings-draft-controller.test.ts | 19 ++++++++++++++++++ .../__tests__/os-permission-policy.test.ts | 19 ++++++++++++++++++ .../__tests__/pending-session-view.test.ts | 19 ++++++++++++++++++ .../__tests__/permission-mode-default.test.ts | 19 ++++++++++++++++++ .../permission-overlay-controller.test.ts | 19 ++++++++++++++++++ .../permission-response-ipc-boundary.test.ts | 19 ++++++++++++++++++ .../__tests__/personalization-prompt.test.ts | 19 ++++++++++++++++++ .../main/__tests__/pet-pack-import.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/plan-mode-copy.test.ts | 19 ++++++++++++++++++ .../__tests__/project-context-root.test.ts | 19 ++++++++++++++++++ .../project-management-service.test.ts | 19 ++++++++++++++++++ .../__tests__/project-root-controller.test.ts | 19 ++++++++++++++++++ .../__tests__/provider-add-submission.test.ts | 19 ++++++++++++++++++ .../provider-connection-status.test.ts | 19 ++++++++++++++++++ .../main/__tests__/qq-bot-scan-login.test.ts | 19 ++++++++++++++++++ .../__tests__/quote-companion-cleanup.test.ts | 19 ++++++++++++++++++ .../quote-companion-panel-state.test.ts | 19 ++++++++++++++++++ .../desktop/src/main/__tests__/redact.test.ts | 19 ++++++++++++++++++ .../__tests__/relay-profile-draft.test.ts | 19 ++++++++++++++++++ .../__tests__/relay-thinking-bulk.test.ts | 19 ++++++++++++++++++ .../main/__tests__/rive-workflow-tool.test.ts | 19 ++++++++++++++++++ .../runtime-host-account-connection.test.ts | 19 ++++++++++++++++++ .../runtime-host-artifacts-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-bot-session-adapter.test.ts | 19 ++++++++++++++++++ ...host-capability-revision-publisher.test.ts | 19 ++++++++++++++++++ .../runtime-host-client-operations.test.ts | 19 ++++++++++++++++++ .../runtime-host-client-pricing-uds.test.ts | 19 ++++++++++++++++++ .../runtime-host-client-pricing.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-host-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-host-client.test.ts | 19 ++++++++++++++++++ .../runtime-host-config-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-connections-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-default-recovery.test.ts | 19 ++++++++++++++++++ .../runtime-host-desktop-candidate.test.ts | 19 ++++++++++++++++++ .../runtime-host-desktop-manager.test.ts | 19 ++++++++++++++++++ ...me-host-external-sessions-ipc-main.test.ts | 19 ++++++++++++++++++ ...ntime-host-github-copilot-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-memory-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-native-capabilities.test.ts | 19 ++++++++++++++++++ .../runtime-host-oauth-ipc-main.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-host-onboarding.test.ts | 19 ++++++++++++++++++ .../runtime-host-profile-service.test.ts | 19 ++++++++++++++++++ ...runtime-host-reconnecting-ipc-main.test.ts | 19 ++++++++++++++++++ ...time-host-session-catalog-ipc-main.test.ts | 19 ++++++++++++++++++ ...host-session-catalog-running-turns.test.ts | 19 ++++++++++++++++++ ...time-host-session-domains-ipc-main.test.ts | 19 ++++++++++++++++++ ...me-host-session-execution-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-session-observer.test.ts | 19 ++++++++++++++++++ .../runtime-host-session-test-fixture.ts | 19 ++++++++++++++++++ .../runtime-host-skills-ipc-main.test.ts | 19 ++++++++++++++++++ .../runtime-host-ssh-terminal.test.ts | 19 ++++++++++++++++++ .../runtime-host-upgrade-dialog.test.ts | 19 ++++++++++++++++++ .../__tests__/scroll-motion-policy.test.ts | 19 ++++++++++++++++++ .../main/__tests__/seed-completion.test.ts | 19 ++++++++++++++++++ .../__tests__/session-copy-attempt.test.ts | 19 ++++++++++++++++++ .../session-environment-prompt.test.ts | 19 ++++++++++++++++++ .../__tests__/session-event-health.test.ts | 19 ++++++++++++++++++ .../session-inspector-panel-model.test.ts | 19 ++++++++++++++++++ .../session-inspector-pricing-key.test.ts | 19 ++++++++++++++++++ .../__tests__/session-list-layout.test.ts | 19 ++++++++++++++++++ .../__tests__/session-mode-ipc-main.test.ts | 19 ++++++++++++++++++ .../session-observation-release.test.ts | 19 ++++++++++++++++++ ...session-project-hierarchy-contract.test.ts | 19 ++++++++++++++++++ .../main/__tests__/session-read-state.test.ts | 19 ++++++++++++++++++ .../main/__tests__/session-revisions.test.ts | 19 ++++++++++++++++++ .../session-terminal-hydration.test.ts | 19 ++++++++++++++++++ .../__tests__/session-trace-refresh.test.ts | 19 ++++++++++++++++++ .../__tests__/settings-ipc-helpers.test.ts | 19 ++++++++++++++++++ ...ettled-session-transient-reconcile.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/shell-env.test.ts | 19 ++++++++++++++++++ .../__tests__/shell-run-update-state.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/stale-sessions.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/startup-step.test.ts | 19 ++++++++++++++++++ .../__tests__/storage-root-startup.test.ts | 19 ++++++++++++++++++ .../main/__tests__/streaming-handoff.test.ts | 19 ++++++++++++++++++ .../subagent-preset-presentation.test.ts | 19 ++++++++++++++++++ .../main/__tests__/task-catalog-rows.test.ts | 19 ++++++++++++++++++ .../__tests__/task-readiness-notice.test.ts | 19 ++++++++++++++++++ .../task-submission-readiness-main.test.ts | 19 ++++++++++++++++++ .../main/__tests__/thinking-stream.test.ts | 19 ++++++++++++++++++ .../src/main/__tests__/thread-search.test.ts | 19 ++++++++++++++++++ .../main/__tests__/titlebar-modal-dim.test.ts | 19 ++++++++++++++++++ .../tool-args-redaction-contract.test.ts | 19 ++++++++++++++++++ .../main/__tests__/tool-output-stream.test.ts | 19 ++++++++++++++++++ .../__tests__/ui-locale-update-gate.test.ts | 19 ++++++++++++++++++ .../__tests__/use-keep-system-awake.test.ts | 19 ++++++++++++++++++ .../__tests__/use-onboarding-snapshot.test.ts | 19 ++++++++++++++++++ .../main/__tests__/use-session-trace.test.ts | 19 ++++++++++++++++++ .../__tests__/use-shell-connections.test.ts | 19 ++++++++++++++++++ .../__tests__/web-search-credentials.test.ts | 19 ++++++++++++++++++ .../main/__tests__/wechat-scan-login.test.ts | 19 ++++++++++++++++++ .../__tests__/workspace-file-search.test.ts | 19 ++++++++++++++++++ apps/desktop/src/main/app-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/app-quit-coordinator.ts | 19 ++++++++++++++++++ apps/desktop/src/main/app-update-service.ts | 19 ++++++++++++++++++ apps/desktop/src/main/application-menu.ts | 19 ++++++++++++++++++ apps/desktop/src/main/attachment-approval.ts | 19 ++++++++++++++++++ apps/desktop/src/main/attachment-ingest.ts | 19 ++++++++++++++++++ apps/desktop/src/main/attachment-preview.ts | 19 ++++++++++++++++++ .../src/main/attachment-resize-native.ts | 19 ++++++++++++++++++ apps/desktop/src/main/attachment-resize.ts | 19 ++++++++++++++++++ apps/desktop/src/main/bot-incoming-main.ts | 19 ++++++++++++++++++ .../src/main/bot-onboarding-e2e-fixture.ts | 19 ++++++++++++++++++ apps/desktop/src/main/bot-onboarding-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/bot-session-adapter.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/browser/automation-host.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/browser-host.ts | 19 ++++++++++++++++++ .../desktop/src/main/browser/browser-tools.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/cdp-bridge.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/controller.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/logic.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/options.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/session.ts | 19 ++++++++++++++++++ apps/desktop/src/main/browser/view-manager.ts | 19 ++++++++++++++++++ apps/desktop/src/main/build-info.ts | 19 ++++++++++++++++++ apps/desktop/src/main/capability-snapshot.ts | 19 ++++++++++++++++++ .../main/client-settings-confirmation-copy.ts | 19 ++++++++++++++++++ .../src/main/client-settings-effects.ts | 19 ++++++++++++++++++ .../src/main/client-settings-ipc-main.ts | 19 ++++++++++++++++++ .../desktop/src/main/client-settings-tools.ts | 19 ++++++++++++++++++ .../src/main/client-settings-watcher.ts | 19 ++++++++++++++++++ apps/desktop/src/main/computer-use-host.ts | 19 ++++++++++++++++++ .../main/computer-use-real-model-policy.ts | 19 ++++++++++++++++++ .../computer-use/cursor-overlay-window.ts | 19 ++++++++++++++++++ .../src/main/computer-use/pip-electron.ts | 19 ++++++++++++++++++ .../desktop/src/main/computer-use/pip-feed.ts | 19 ++++++++++++++++++ .../src/main/computer-use/pip-motion.ts | 19 ++++++++++++++++++ .../src/main/computer-use/pip-window.ts | 19 ++++++++++++++++++ .../src/main/computer-use/screen-lock.ts | 19 ++++++++++++++++++ .../src/main/computer-use/status-item.ts | 19 ++++++++++++++++++ .../src/main/config-transfer-service.ts | 19 ++++++++++++++++++ .../src/main/connections-ipc-validation.ts | 19 ++++++++++++++++++ apps/desktop/src/main/create-session-input.ts | 19 ++++++++++++++++++ .../main/deep-research-desktop-projection.ts | 19 ++++++++++++++++++ apps/desktop/src/main/desktop-assets.ts | 19 ++++++++++++++++++ .../src/main/desktop-diagnostics-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/desktop-locale-authority.ts | 19 ++++++++++++++++++ .../desktop-native-capability-assembly.ts | 19 ++++++++++++++++++ .../src/main/desktop-shell-presentation.ts | 19 ++++++++++++++++++ .../src/main/desktop-transcript-ipc.ts | 19 ++++++++++++++++++ .../src/main/desktop-transcript-replica.ts | 19 ++++++++++++++++++ apps/desktop/src/main/dock-presentation.ts | 19 ++++++++++++++++++ apps/desktop/src/main/e2e-fixture.ts | 19 ++++++++++++++++++ .../src/main/e2e-fixture/scenarios-chat.ts | 19 ++++++++++++++++++ .../src/main/e2e-fixture/scenarios-modules.ts | 19 ++++++++++++++++++ .../main/e2e-fixture/scenarios-sessions.ts | 19 ++++++++++++++++++ .../main/e2e-fixture/scenarios-settings.ts | 19 ++++++++++++++++++ .../src/main/e2e-fixture/scenarios-usage.ts | 19 ++++++++++++++++++ .../src/main/e2e-fixture/seed-helpers.ts | 19 ++++++++++++++++++ apps/desktop/src/main/external-link-guard.ts | 19 ++++++++++++++++++ apps/desktop/src/main/git-review-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/ipc-reconnect-policy.ts | 19 ++++++++++++++++++ apps/desktop/src/main/keep-system-awake.ts | 19 ++++++++++++++++++ .../src/main/main-process-diagnostics.ts | 19 ++++++++++++++++++ .../src/main/main-window-permission-policy.ts | 19 ++++++++++++++++++ apps/desktop/src/main/main-window.ts | 19 ++++++++++++++++++ apps/desktop/src/main/main.ts | 19 ++++++++++++++++++ .../desktop/src/main/managed-skill-sources.ts | 19 ++++++++++++++++++ .../src/main/markdown-save-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/markdown-save-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/mcp-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/mcp-secret-guard.ts | 19 ++++++++++++++++++ .../src/main/native-diagnostic-dialog.ts | 19 ++++++++++++++++++ apps/desktop/src/main/new-session-project.ts | 19 ++++++++++++++++++ .../src/main/notifications-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/notifications-policy.ts | 19 ++++++++++++++++++ .../src/main/oauth-connection-identities.ts | 19 ++++++++++++++++++ .../github-copilot-subscription-service.ts | 19 ++++++++++++++++++ apps/desktop/src/main/onboarding-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/onboarding-service.ts | 19 ++++++++++++++++++ apps/desktop/src/main/open-path-guard.ts | 19 ++++++++++++++++++ apps/desktop/src/main/os-permission-policy.ts | 19 ++++++++++++++++++ apps/desktop/src/main/overlay-assets.ts | 19 ++++++++++++++++++ .../src/main/permission-mode-default.ts | 19 ++++++++++++++++++ .../src/main/permission-overlay/app-bundle.ts | 19 ++++++++++++++++++ .../permission-overlay-controller.ts | 19 ++++++++++++++++++ .../permission-overlay-copy.ts | 19 ++++++++++++++++++ .../permission-overlay-main.ts | 19 ++++++++++++++++++ .../src/main/permission-response-guard.ts | 19 ++++++++++++++++++ .../main/permission-snapshot-e2e-fixture.ts | 19 ++++++++++++++++++ apps/desktop/src/main/permissions-actions.ts | 19 ++++++++++++++++++ apps/desktop/src/main/pet-pack-import.ts | 19 ++++++++++++++++++ apps/desktop/src/main/project-context-root.ts | 19 ++++++++++++++++++ .../src/main/project-management-service.ts | 19 ++++++++++++++++++ apps/desktop/src/main/project-picker-copy.ts | 19 ++++++++++++++++++ .../src/main/project-root-controller.ts | 19 ++++++++++++++++++ apps/desktop/src/main/qq-bot-scan-login.ts | 19 ++++++++++++++++++ .../src/main/quote-companion-cleanup.ts | 19 ++++++++++++++++++ apps/desktop/src/main/rive-cli.ts | 19 ++++++++++++++++++ apps/desktop/src/main/rive-workflow-tool.ts | 19 ++++++++++++++++++ .../main/runtime-host-account-connection.ts | 19 ++++++++++++++++++ .../main/runtime-host-artifacts-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/runtime-host-boot.ts | 19 ++++++++++++++++++ .../main/runtime-host-bot-session-adapter.ts | 19 ++++++++++++++++++ ...time-host-capability-revision-publisher.ts | 19 ++++++++++++++++++ apps/desktop/src/main/runtime-host-client.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-config-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-connections-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-default-recovery.ts | 19 ++++++++++++++++++ .../main/runtime-host-desktop-candidate.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-desktop-manager.ts | 19 ++++++++++++++++++ ...runtime-host-external-sessions-ipc-main.ts | 19 ++++++++++++++++++ .../runtime-host-github-copilot-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-memory-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-native-capabilities.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-oauth-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-oauth-presentation.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-onboarding.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-pairing-journal.ts | 19 ++++++++++++++++++ .../main/runtime-host-permissions-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-profile-service.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-project-catalog.ts | 19 ++++++++++++++++++ .../runtime-host-reconnecting-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-renderer-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-search-ipc-main.ts | 19 ++++++++++++++++++ .../runtime-host-session-catalog-ipc-main.ts | 19 ++++++++++++++++++ .../runtime-host-session-domains-ipc-main.ts | 19 ++++++++++++++++++ ...runtime-host-session-execution-ipc-main.ts | 19 ++++++++++++++++++ ...ntime-host-session-observation-registry.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-session-observer.ts | 19 ++++++++++++++++++ ...runtime-host-session-subscription-owner.ts | 19 ++++++++++++++++++ .../main/runtime-host-settings-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-shell-runs-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-skills-ipc-main.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-ssh-terminal.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-upgrade-copy.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-upgrade-dialog.ts | 19 ++++++++++++++++++ .../src/main/runtime-host-usage-ipc-main.ts | 19 ++++++++++++++++++ .../main/runtime-host-workspace-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/search/thread-search.ts | 19 ++++++++++++++++++ .../desktop/src/main/session-family-action.ts | 19 ++++++++++++++++++ apps/desktop/src/main/session-model-input.ts | 19 ++++++++++++++++++ .../session-workspace-inline-references.ts | 19 ++++++++++++++++++ .../src/main/settings-bots-ipc-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/settings-ipc-helpers.ts | 19 ++++++++++++++++++ apps/desktop/src/main/shell-env.ts | 19 ++++++++++++++++++ apps/desktop/src/main/skill-open-path.ts | 19 ++++++++++++++++++ apps/desktop/src/main/startup-context.ts | 19 ++++++++++++++++++ apps/desktop/src/main/startup-step.ts | 19 ++++++++++++++++++ apps/desktop/src/main/storage-root-startup.ts | 19 ++++++++++++++++++ .../main/task-submission-readiness-main.ts | 19 ++++++++++++++++++ apps/desktop/src/main/theme-source.ts | 19 ++++++++++++++++++ .../src/main/web-search/credentials.ts | 19 ++++++++++++++++++ apps/desktop/src/main/wechat-scan-login.ts | 19 ++++++++++++++++++ apps/desktop/src/main/window-reveal.ts | 19 ++++++++++++++++++ apps/desktop/src/main/window-state.ts | 19 ++++++++++++++++++ .../desktop/src/main/workspace-file-search.ts | 19 ++++++++++++++++++ .../src/main/workspace-search-ipc-main.ts | 19 ++++++++++++++++++ .../src/overlay/cursor-overlay-preload.ts | 19 ++++++++++++++++++ apps/desktop/src/overlay/cursor-overlay.html | 19 ++++++++++++++++++ apps/desktop/src/overlay/cursor-overlay.ts | 19 ++++++++++++++++++ .../src/overlay/permission-overlay-preload.ts | 19 ++++++++++++++++++ .../src/overlay/permission-overlay.html | 19 ++++++++++++++++++ .../desktop/src/overlay/permission-overlay.ts | 19 ++++++++++++++++++ apps/desktop/src/overlay/pip-preload.ts | 19 ++++++++++++++++++ apps/desktop/src/overlay/pip.html | 19 ++++++++++++++++++ apps/desktop/src/overlay/pip.ts | 19 ++++++++++++++++++ .../src/preload/attachment-ingest-payload.ts | 19 ++++++++++++++++++ apps/desktop/src/preload/bridge-contract.d.ts | 19 ++++++++++++++++++ apps/desktop/src/preload/browser-selection.ts | 19 ++++++++++++++++++ .../src/preload/diagnostics-contract.ts | 19 ++++++++++++++++++ .../src/preload/external-session-catalog.ts | 19 ++++++++++++++++++ .../preload/external-session-import-result.ts | 19 ++++++++++++++++++ .../src/preload/multi-host-thread-search.ts | 19 ++++++++++++++++++ apps/desktop/src/preload/preload.ts | 19 ++++++++++++++++++ .../runtime-host-renderer-operations.ts | 19 ++++++++++++++++++ apps/desktop/src/preload/seed-completion.ts | 19 ++++++++++++++++++ .../preload/session-observation-release.ts | 19 ++++++++++++++++++ .../src/preload/transcript-contract.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/README.md | 19 ++++++++++++++++++ .../renderer/agent-graph-panel-visibility.ts | 19 ++++++++++++++++++ .../src/renderer/agent-graph-panel.tsx | 19 ++++++++++++++++++ .../src/renderer/agent-graph-refresh.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-app-update.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-build-stamp.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-chat-actions.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-chrome-actions.tsx | 19 ++++++++++++++++++ .../src/renderer/app-shell-command-actions.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/app-shell-copy.ts | 19 ++++++++++++++++++ .../app-shell-daily-review-actions.ts | 19 ++++++++++++++++++ .../renderer/app-shell-daily-review-bridge.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-detail-panel.tsx | 19 ++++++++++++++++++ .../src/renderer/app-shell-e2e-fixture.ts | 19 ++++++++++++++++++ .../desktop/src/renderer/app-shell-effects.ts | 19 ++++++++++++++++++ .../renderer/app-shell-open-skill-action.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-overlays.tsx | 19 ++++++++++++++++++ .../renderer/app-shell-pending-attachments.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-project-actions.ts | 19 ++++++++++++++++++ .../renderer/app-shell-revision-actions.ts | 19 ++++++++++++++++++ .../app-shell-scheduled-task-actions.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-session-events.ts | 19 ++++++++++++++++++ .../renderer/app-shell-session-row-actions.ts | 19 ++++++++++++++++++ .../app-shell-session-settings-actions.ts | 19 ++++++++++++++++++ .../app-shell-session-start-actions.ts | 19 ++++++++++++++++++ .../renderer/app-shell-session-ui-state.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-skill-actions.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-stop-action.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-turn-actions.ts | 19 ++++++++++++++++++ .../src/renderer/app-shell-turn-view-model.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/app-shell.tsx | 19 ++++++++++++++++++ .../src/renderer/app-update-install.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/app.tsx | 19 ++++++++++++++++++ .../src/renderer/artifact-list-keyboard.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/artifact-pane.tsx | 19 ++++++++++++++++++ .../artifact-preview-registry-shell.tsx | 19 ++++++++++++++++++ .../desktop/src/renderer/artifact-preview.tsx | 19 ++++++++++++++++++ .../src/renderer/artifact-visibility.ts | 19 ++++++++++++++++++ .../desktop/src/renderer/astryx-theme-mode.ts | 19 ++++++++++++++++++ .../src/renderer/astryx-theme/makaTheme.ts | 19 ++++++++++++++++++ .../src/renderer/attachment-preflight.ts | 19 ++++++++++++++++++ .../src/renderer/bootstrap-selection-lease.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/branch-banner.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/browser-panel.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/browser-storage.ts | 19 ++++++++++++++++++ .../src/renderer/cached-theme-bootstrap.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/cascade-layers.css | 19 ++++++++++++++++++ .../src/renderer/chat-composer-region.tsx | 19 ++++++++++++++++++ .../src/renderer/chat-message-surface.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/chat-workbar.tsx | 19 ++++++++++++++++++ .../src/renderer/command-palette-commands.ts | 19 ++++++++++++++++++ .../src/renderer/command-palette-types.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/command-palette.tsx | 19 ++++++++++++++++++ .../desktop/src/renderer/composer-defaults.ts | 19 ++++++++++++++++++ .../engine/cursor-engine.ts | 19 ++++++++++++++++++ .../computer-use-overlay/engine/palette.ts | 19 ++++++++++++++++++ .../src/renderer/conversation-markdown.ts | 19 ++++++++++++++++++ .../renderer/custom-pet-companion-model.ts | 19 ++++++++++++++++++ .../src/renderer/custom-pet-companion.tsx | 19 ++++++++++++++++++ .../src/renderer/daily-review-actions.ts | 19 ++++++++++++++++++ .../default-runtime-host-operation.ts | 19 ++++++++++++++++++ .../renderer/derive-turn-lineage-badges.ts | 19 ++++++++++++++++++ .../desktop-execution-boundary-surface.ts | 19 ++++++++++++++++++ .../src/renderer/desktop-slash-command.ts | 19 ++++++++++++++++++ .../desktop-transcript-range-store.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/error-boundary.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/goal-dialog.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/index.html | 19 ++++++++++++++++++ .../src/renderer/interrupted-resume.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/keyboard-help.tsx | 19 ++++++++++++++++++ .../desktop/src/renderer/live-content-seed.ts | 19 ++++++++++++++++++ .../src/renderer/live-turn-reconciler.tsx | 19 ++++++++++++++++++ .../src/renderer/live-turn-snapshot.ts | 19 ++++++++++++++++++ .../src/renderer/local-memory-digest.ts | 19 ++++++++++++++++++ .../src/renderer/locales/artifact-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/browser-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/conversation-copy.ts | 19 ++++++++++++++++++ .../locales/external-session-import-copy.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/locales/mcp-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/onboarding-copy.ts | 19 ++++++++++++++++++ .../locales/permission-center-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/plan-mode-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/settings-bot-copy.ts | 19 ++++++++++++++++++ .../locales/settings-daily-review-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-data-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-health-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-memory-copy.ts | 19 ++++++++++++++++++ .../locales/settings-navigation-copy.ts | 19 ++++++++++++++++++ .../locales/settings-preferences-copy.ts | 19 ++++++++++++++++++ .../locales/settings-projects-copy.ts | 19 ++++++++++++++++++ .../locales/settings-provider-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-shared-copy.ts | 19 ++++++++++++++++++ .../locales/settings-subagents-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-tasks-copy.ts | 19 ++++++++++++++++++ .../locales/settings-test-result-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/settings-usage-copy.ts | 19 ++++++++++++++++++ .../locales/settings-web-search-copy.ts | 19 ++++++++++++++++++ .../src/renderer/locales/shell-copy.ts | 19 ++++++++++++++++++ .../renderer/locales/shell-remaining-copy.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/main.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/maka-tokens.css | 19 ++++++++++++++++++ .../src/renderer/mcp-brand-contrast.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-brand-marks.tsx | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-catalog.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-command-line.ts | 19 ++++++++++++++++++ .../src/renderer/mcp-editor-validation.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-import.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-page-model.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/mcp-page.tsx | 19 ++++++++++++++++++ .../src/renderer/model-catalog-choices.ts | 19 ++++++++++++++++++ .../src/renderer/model-connection-errors.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/model-wait-state.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/nav-selection.ts | 19 ++++++++++++++++++ .../src/renderer/new-task-reload-intent.ts | 19 ++++++++++++++++++ .../src/renderer/onboarding-hero-copy.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/onboarding-hero.tsx | 19 ++++++++++++++++++ .../src/renderer/onboarding-provider-types.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/open-path.ts | 19 ++++++++++++++++++ .../src/renderer/pending-session-view.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/plan-mode-panel.tsx | 19 ++++++++++++++++++ .../src/renderer/project-path-display.ts | 19 ++++++++++++++++++ .../src/renderer/quote-companion-core.ts | 19 ++++++++++++++++++ .../renderer/quote-companion-panel-state.ts | 19 ++++++++++++++++++ .../src/renderer/quote-companion-panel.tsx | 19 ++++++++++++++++++ .../renderer/quote-companion-visibility.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/reference-shell.css | 19 ++++++++++++++++++ .../remote-project-directory-dialog.tsx | 19 ++++++++++++++++++ .../src/renderer/scroll-motion-policy.ts | 19 ++++++++++++++++++ .../src/renderer/session-copy-attempt.ts | 19 ++++++++++++++++++ .../renderer/session-error-presentation.ts | 19 ++++++++++++++++++ .../src/renderer/session-event-health.ts | 19 ++++++++++++++++++ .../src/renderer/session-health-notice.ts | 19 ++++++++++++++++++ .../session-inspector-overview-model.ts | 19 ++++++++++++++++++ .../renderer/session-inspector-panel-model.ts | 19 ++++++++++++++++++ .../src/renderer/session-inspector-panel.tsx | 19 ++++++++++++++++++ .../src/renderer/session-list-layout.ts | 19 ++++++++++++++++++ .../renderer/session-message-settlement.ts | 19 ++++++++++++++++++ .../src/renderer/session-nav-filter.ts | 19 ++++++++++++++++++ .../src/renderer/session-project-grouping.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/session-rail.ts | 19 ++++++++++++++++++ .../src/renderer/session-read-state.ts | 19 ++++++++++++++++++ .../src/renderer/session-review-panel.tsx | 19 ++++++++++++++++++ .../desktop/src/renderer/session-revisions.ts | 19 ++++++++++++++++++ .../renderer/session-status-presentation.ts | 19 ++++++++++++++++++ .../renderer/session-terminal-hydration.ts | 19 ++++++++++++++++++ .../src/renderer/session-terminal-panel.tsx | 19 ++++++++++++++++++ .../src/renderer/session-trace-refresh.ts | 19 ++++++++++++++++++ .../src/renderer/session-workbar-layout.ts | 19 ++++++++++++++++++ .../src/renderer/session-workbar-tabs.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/session-workbar.tsx | 19 ++++++++++++++++++ .../src/renderer/session-workspace-errors.ts | 19 ++++++++++++++++++ .../renderer/settings/about-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/about-update-status.ts | 19 ++++++++++++++++++ .../src/renderer/settings/action-guard.ts | 19 ++++++++++++++++++ .../settings/appearance-settings-page.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/bot-chat-detail.tsx | 19 ++++++++++++++++++ .../renderer/settings/bot-chat-overview.tsx | 19 ++++++++++++++++++ .../settings/bot-chat-settings-page.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/bot-chat-shared.tsx | 19 ++++++++++++++++++ .../settings/bot-onboarding-modal.tsx | 19 ++++++++++++++++++ .../settings/bot-settings-view-model.ts | 19 ++++++++++++++++++ .../renderer/settings/bot-wechat-login.tsx | 19 ++++++++++++++++++ .../settings/custom-pet-library-model.ts | 19 ++++++++++++++++++ .../settings/custom-pet-settings-section.tsx | 19 ++++++++++++++++++ .../settings/daily-review-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/data-settings-page.tsx | 19 ++++++++++++++++++ .../settings/general-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/health-center-page.tsx | 19 ++++++++++++++++++ .../settings/import-tasks-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/memory-entry-list.tsx | 19 ++++++++++++++++++ .../settings/memory-settings-labels.ts | 19 ++++++++++++++++++ .../settings/memory-settings-page.tsx | 19 ++++++++++++++++++ .../settings/memory-settings-sections.tsx | 19 ++++++++++++++++++ .../settings/memory-settings-view-model.ts | 19 ++++++++++++++++++ .../renderer/settings/nav-group-summary.ts | 19 ++++++++++++++++++ .../settings/oauth-login-flow-guard.ts | 19 ++++++++++++++++++ .../optimistic-settings-draft-controller.ts | 19 ++++++++++++++++++ .../src/renderer/settings/password-input.tsx | 19 ++++++++++++++++++ .../settings/permission-center-page.tsx | 19 ++++++++++++++++++ .../personalization-settings-section.tsx | 19 ++++++++++++++++++ .../settings/projects-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/provider-add-form.tsx | 19 ++++++++++++++++++ .../settings/provider-add-model-dialog.tsx | 19 ++++++++++++++++++ .../settings/provider-add-submission.ts | 19 ++++++++++++++++++ .../settings/provider-brand-marks.tsx | 19 ++++++++++++++++++ .../settings/provider-catalog-page.tsx | 19 ++++++++++++++++++ .../settings/provider-connection-detail.tsx | 19 ++++++++++++++++++ .../settings/provider-connection-status.ts | 19 ++++++++++++++++++ .../settings/provider-display-copy.ts | 19 ++++++++++++++++++ .../renderer/settings/provider-display.tsx | 19 ++++++++++++++++++ .../provider-enabled-model-manager.tsx | 19 ++++++++++++++++++ .../settings/provider-oauth-section.tsx | 19 ++++++++++++++++++ .../settings/provider-panel-shared.ts | 19 ++++++++++++++++++ .../src/renderer/settings/providers-panel.tsx | 19 ++++++++++++++++++ .../renderer/settings/relay-profile-draft.ts | 19 ++++++++++++++++++ .../renderer/settings/relay-thinking-bulk.ts | 19 ++++++++++++++++++ .../settings/request-customization-editor.tsx | 19 ++++++++++++++++++ .../runtime-host-onboarding-dialog.tsx | 19 ++++++++++++++++++ .../runtime-host-profiles-section.tsx | 19 ++++++++++++++++++ .../settings/runtime-host-settings-bridge.ts | 19 ++++++++++++++++++ .../settings/runtime-host-settings-target.tsx | 19 ++++++++++++++++++ .../runtime-host-ssh-terminal-dialog.tsx | 19 ++++++++++++++++++ .../renderer/settings/settings-error-copy.ts | 19 ++++++++++++++++++ .../settings/settings-expandable-row.tsx | 19 ++++++++++++++++++ .../settings/settings-metric-card.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/settings-modal.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/settings-nav.ts | 19 ++++++++++++++++++ .../renderer/settings/settings-route-focus.ts | 19 ++++++++++++++++++ .../settings/settings-route-header.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/settings-rows.tsx | 19 ++++++++++++++++++ .../renderer/settings/settings-section.tsx | 19 ++++++++++++++++++ .../renderer/settings/settings-skeleton.tsx | 19 ++++++++++++++++++ .../settings/settings-status-badge.ts | 19 ++++++++++++++++++ .../renderer/settings/settings-surface.tsx | 19 ++++++++++++++++++ .../settings/subagent-preset-presentation.ts | 19 ++++++++++++++++++ .../settings/subagent-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settings/task-catalog-rows.ts | 19 ++++++++++++++++++ .../renderer/settings/tasks-settings-page.tsx | 19 ++++++++++++++++++ .../settings/ui-locale-update-gate.ts | 19 ++++++++++++++++++ .../renderer/settings/usage-settings-page.tsx | 19 ++++++++++++++++++ .../src/renderer/settings/use-action-guard.ts | 19 ++++++++++++++++++ .../settings/use-connection-detail.ts | 19 ++++++++++++++++++ .../use-memory-settings-controller.ts | 19 ++++++++++++++++++ .../renderer/settings/use-oauth-login-flow.ts | 19 ++++++++++++++++++ .../settings/use-optimistic-settings-draft.ts | 19 ++++++++++++++++++ .../settings/web-search-settings-page.tsx | 19 ++++++++++++++++++ .../renderer/settled-session-transients.ts | 19 ++++++++++++++++++ .../renderer/shell-chat-model-selection.ts | 19 ++++++++++++++++++ .../src/renderer/shell-run-update-state.ts | 19 ++++++++++++++++++ .../renderer/side-chat-close-confirmation.tsx | 19 ++++++++++++++++++ .../desktop/src/renderer/side-chat-command.ts | 19 ++++++++++++++++++ .../src/renderer/skill-invocation-feedback.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/stable-actions.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/stale-sessions.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles.css | 19 ++++++++++++++++++ .../src/renderer/styles/agent-graph.css | 19 ++++++++++++++++++ .../src/renderer/styles/astryx-mount.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/base.css | 18 +++++++++++++++++ .../src/renderer/styles/chat-detail.css | 19 ++++++++++++++++++ .../src/renderer/styles/chat-header.css | 19 ++++++++++++++++++ .../src/renderer/styles/chat-message.css | 19 ++++++++++++++++++ .../src/renderer/styles/composer-mention.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/composer.css | 19 ++++++++++++++++++ .../renderer/styles/custom-pet-companion.css | 19 ++++++++++++++++++ .../src/renderer/styles/daily-review.css | 19 ++++++++++++++++++ .../src/renderer/styles/deep-research.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/error.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/help.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/hero.css | 19 ++++++++++++++++++ .../renderer/styles/interaction-prompts.css | 19 ++++++++++++++++++ .../src/renderer/styles/model-switcher.css | 19 ++++++++++++++++++ .../src/renderer/styles/module-pages.css | 19 ++++++++++++++++++ .../styles/module-pages/capability-audit.css | 19 ++++++++++++++++++ .../src/renderer/styles/module-pages/mcp.css | 19 ++++++++++++++++++ .../styles/module-pages/module-shell.css | 19 ++++++++++++++++++ .../styles/module-pages/scheduled-tasks.css | 19 ++++++++++++++++++ .../renderer/styles/module-pages/skills.css | 19 ++++++++++++++++++ .../src/renderer/styles/native-cursor.css | 19 ++++++++++++++++++ .../src/renderer/styles/onboarding.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/palette.css | 19 ++++++++++++++++++ .../desktop/src/renderer/styles/plan-mode.css | 19 ++++++++++++++++++ .../src/renderer/styles/prompt-rail.css | 19 ++++++++++++++++++ .../renderer/styles/prompt-suggestions.css | 19 ++++++++++++++++++ .../src/renderer/styles/quote-side-panel.css | 19 ++++++++++++++++++ .../src/renderer/styles/search-modal.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/settings.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/about.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/bot.css | 19 ++++++++++++++++++ .../renderer/styles/settings/connection.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/form.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/health.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/memory.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/models.css | 19 ++++++++++++++++++ .../renderer/styles/settings/nav-sidebar.css | 19 ++++++++++++++++++ .../renderer/styles/settings/permission.css | 19 ++++++++++++++++++ .../styles/settings/provider-editor.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/route.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/rows.css | 19 ++++++++++++++++++ .../renderer/styles/settings/runtime-host.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/select.css | 19 ++++++++++++++++++ .../styles/settings/theme-preview.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/usage.css | 19 ++++++++++++++++++ .../renderer/styles/settings/web-search.css | 19 ++++++++++++++++++ .../src/renderer/styles/settings/wechat.css | 19 ++++++++++++++++++ .../src/renderer/styles/shell-layout.css | 19 ++++++++++++++++++ apps/desktop/src/renderer/styles/sidebar.css | 19 ++++++++++++++++++ .../src/renderer/styles/task-ledger.css | 19 ++++++++++++++++++ .../src/renderer/styles/theme-glass.css | 19 ++++++++++++++++++ .../src/renderer/task-readiness-notice.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/theme.ts | 19 ++++++++++++++++++ .../src/renderer/titlebar-dim-color.ts | 19 ++++++++++++++++++ .../src/renderer/titlebar-modal-sync.ts | 19 ++++++++++++++++++ .../src/renderer/turn-footer-actions.ts | 19 ++++++++++++++++++ .../renderer/use-active-execution-boundary.ts | 19 ++++++++++++++++++ .../use-app-shell-composer-attachments.ts | 19 ++++++++++++++++++ .../renderer/use-app-shell-composer-quotes.ts | 19 ++++++++++++++++++ .../renderer/use-app-shell-session-list.ts | 19 ++++++++++++++++++ .../use-app-shell-session-ui-reads.ts | 19 ++++++++++++++++++ .../use-app-shell-session-ui-selector.ts | 19 ++++++++++++++++++ .../use-app-shell-session-workspace.ts | 19 ++++++++++++++++++ .../src/renderer/use-composer-mentions.ts | 19 ++++++++++++++++++ .../src/renderer/use-deep-research-run.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-delayed-flag.ts | 19 ++++++++++++++++++ .../src/renderer/use-keep-system-awake.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-module-data.ts | 19 ++++++++++++++++++ .../src/renderer/use-new-task-choice.ts | 19 ++++++++++++++++++ .../src/renderer/use-new-task-target.ts | 19 ++++++++++++++++++ .../src/renderer/use-onboarding-snapshot.ts | 19 ++++++++++++++++++ .../renderer/use-pending-action-registry.ts | 19 ++++++++++++++++++ .../src/renderer/use-project-context.ts | 19 ++++++++++++++++++ .../src/renderer/use-quote-companion.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-session-goal.ts | 19 ++++++++++++++++++ .../desktop/src/renderer/use-session-tasks.ts | 19 ++++++++++++++++++ .../desktop/src/renderer/use-session-trace.ts | 19 ++++++++++++++++++ .../src/renderer/use-settings-modal.ts | 19 ++++++++++++++++++ .../src/renderer/use-shell-appearance.ts | 19 ++++++++++++++++++ .../src/renderer/use-shell-chat-model.ts | 19 ++++++++++++++++++ .../src/renderer/use-shell-connections.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-shell-layout.ts | 19 ++++++++++++++++++ .../src/renderer/use-shell-live-turn.ts | 19 ++++++++++++++++++ .../src/renderer/use-shell-memory-pill.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-shell-resume.ts | 19 ++++++++++++++++++ apps/desktop/src/renderer/use-shell-search.ts | 19 ++++++++++++++++++ .../use-side-conversation-workspace.ts | 19 ++++++++++++++++++ .../src/renderer/use-stable-actions.ts | 19 ++++++++++++++++++ .../src/renderer/use-system-ui-locale.ts | 19 ++++++++++++++++++ .../renderer/use-task-submission-readiness.ts | 19 ++++++++++++++++++ .../renderer/workspace-readiness-recovery.ts | 19 ++++++++++++++++++ .../src/shared/desktop-connection-snapshot.ts | 19 ++++++++++++++++++ .../src/shared/desktop-session-projection.ts | 19 ++++++++++++++++++ apps/desktop/src/shared/goal-arm.ts | 19 ++++++++++++++++++ .../src/shared/runtime-host-identity.ts | 19 ++++++++++++++++++ apps/desktop/src/shared/settings-ownership.ts | 19 ++++++++++++++++++ apps/desktop/stories/FIDELITY.md | 19 ++++++++++++++++++ .../accessibility-overlays.stories.tsx | 19 ++++++++++++++++++ ...accessibility-runtime-surfaces.stories.tsx | 19 ++++++++++++++++++ apps/desktop/stories/app-shell.stories.tsx | 19 ++++++++++++++++++ .../stories/ask-user-question.stories.tsx | 19 ++++++++++++++++++ .../stories/command-search.stories.tsx | 19 ++++++++++++++++++ apps/desktop/stories/maka-bridge.tsx | 19 ++++++++++++++++++ apps/desktop/stories/module-hubs.stories.tsx | 19 ++++++++++++++++++ apps/desktop/stories/onboarding.stories.tsx | 19 ++++++++++++++++++ .../stories/session-workbar.stories.tsx | 19 ++++++++++++++++++ .../settings/provider-settings.stories.tsx | 19 ++++++++++++++++++ .../settings/settings-pages.stories.tsx | 19 ++++++++++++++++++ .../stories/subagent-sessions.stories.tsx | 19 ++++++++++++++++++ apps/desktop/tests/smoke.md | 19 ++++++++++++++++++ apps/desktop/vite-bundled-packages.js | 19 ++++++++++++++++++ apps/desktop/vite-dependency-patches.ts | 19 ++++++++++++++++++ apps/desktop/vite.config.ts | 19 ++++++++++++++++++ biome.jsonc | 17 ++++++++++++++++ docs/README.md | 19 ++++++++++++++++++ docs/agent-swarm.md | 19 ++++++++++++++++++ .../agent-graph-stream-scheduling-draft.md | 18 +++++++++++++++++ ...ent-graph-stream-scheduling-draft.zh-CN.md | 18 +++++++++++++++++ .../bot-onboarding-runtime.zh-CN.md | 19 ++++++++++++++++++ docs/architecture/bundled-git-runtime-v1.md | 19 ++++++++++++++++++ ...-compaction-events-log-projection-draft.md | 18 +++++++++++++++++ ...ction-events-log-projection-draft.zh-CN.md | 18 +++++++++++++++++ ...d-dependency-storage-authority-v1.zh-CN.md | 18 +++++++++++++++++ .../mcp-runtime-architecture-draft.zh-CN.md | 19 ++++++++++++++++++ .../openai-responses-incremental-transport.md | 19 ++++++++++++++++++ .../runtime-core-architecture-draft.md | 18 +++++++++++++++++ .../runtime-core-architecture-draft.zh-CN.md | 18 +++++++++++++++++ .../architecture/runtime-host-architecture.md | 18 +++++++++++++++++ .../runtime-host-architecture.zh-CN.md | 18 +++++++++++++++++ ...anaged-workspace-baseline-open-v1.zh-CN.md | 19 ++++++++++++++++++ ...-workspace-execution-admission-v1.zh-CN.md | 19 ++++++++++++++++++ ...untime-managed-workspace-owner-v1.zh-CN.md | 19 ++++++++++++++++++ .../runtime-recovery-resolver-adr.zh-CN.md | 19 ++++++++++++++++++ .../runtime-resume-architecture.md | 18 +++++++++++++++++ .../runtime-resume-architecture.zh-CN.md | 18 +++++++++++++++++ .../runtime-resume-extraction-ledger.zh-CN.md | 19 ++++++++++++++++++ .../runtime-resume-phase0-crash-contract.md | 19 ++++++++++++++++++ ...me-resume-phase1-safe-boundary-contract.md | 19 ++++++++++++++++++ ...hase4-workspace-checkpoint-design.zh-CN.md | 19 ++++++++++++++++++ ...me-workspace-version-authority-v1.zh-CN.md | 19 ++++++++++++++++++ docs/architecture/scheduled-task-unified.md | 19 ++++++++++++++++++ docs/architecture/windows-sandbox-rfc-v1.md | 19 ++++++++++++++++++ .../windows-sandbox-rfc-v1.zh-CN.md | 19 ++++++++++++++++++ .../2026-06-24-runtime-ledger-backfill.md | 19 ++++++++++++++++++ docs/archive/README.md | 19 ++++++++++++++++++ .../composer-mentions-spec-2026-07-14.md | 19 ++++++++++++++++++ docs/archive/computer-use-delivery-state.md | 19 ++++++++++++++++++ .../computer-use-evidence-hardening.md | 19 ++++++++++++++++++ .../computer-use-executor-hardening.md | 19 ++++++++++++++++++ .../computer-use-physical-input-guard.md | 19 ++++++++++++++++++ .../computer-use-process-restart-e2e.md | 19 ++++++++++++++++++ .../archive/computer-use-real-ax-model-e2e.md | 19 ++++++++++++++++++ .../archive/computer-use-runtime-hardening.md | 19 ++++++++++++++++++ .../deepseek-reasonix-cost-runtime-design.md | 18 +++++++++++++++++ .../design-refinement-roadmap-2026-07.md | 19 ++++++++++++++++++ docs/archive/design-system-v0.2-wave-10.md | 19 ++++++++++++++++++ docs/archive/desktop-smoke-plan-legacy.md | 19 ++++++++++++++++++ docs/archive/economic-mechanisms-benchmark.md | 19 ++++++++++++++++++ docs/archive/expert-team-implementation.md | 19 ++++++++++++++++++ docs/archive/expert-team-plan.md | 19 ++++++++++++++++++ .../frontend-simplification-map-2026-07-13.md | 19 ++++++++++++++++++ .../archive/full-product-test-plan-2026-05.md | 19 ++++++++++++++++++ .../heavy-task-mainline-system-design.md | 18 +++++++++++++++++ .../archive/maka-bug-flow-audit-2026-05-22.md | 19 ++++++++++++++++++ .../maka-capability-audit-v1-2026-05.md | 19 ++++++++++++++++++ docs/archive/maka-core-tech-walkthrough.md | 19 ++++++++++++++++++ docs/archive/maka-memory-whitebox-contract.md | 19 ++++++++++++++++++ .../memory-threat-model-pr-memory-1.md | 19 ++++++++++++++++++ docs/archive/pr-oauth-subscription-0-gate.md | 19 ++++++++++++++++++ ...work-mcp-reverse-engineering-2026-07-18.md | 19 ++++++++++++++++++ docs/archive/reference-atlas.md | 19 ++++++++++++++++++ docs/archive/reference-settings.md | 19 ++++++++++++++++++ docs/archive/runtime-kernel.md | 19 ++++++++++++++++++ .../runtime-mainline-teaching-manual.md | 18 +++++++++++++++++ .../runtime-v2-architecture-evolution.md | 19 ++++++++++++++++++ .../runtime-v2-implementation-notes.md | 19 ++++++++++++++++++ ...search-service-threat-model-pr-search-0.md | 19 ++++++++++++++++++ docs/archive/ui-convergence-map-2026-07-09.md | 19 ++++++++++++++++++ docs/archive/ui-quality-plan-2026-05.md | 19 ++++++++++++++++++ .../archive/ui-skills-deep-read-2026-06-23.md | 19 ++++++++++++++++++ .../archive/ui-skills-deep-read-2026-06-24.md | 19 ++++++++++++++++++ docs/astryx-alignment-inventory.md | 19 ++++++++++++++++++ docs/astryx-full-surface-audit.md | 19 ++++++++++++++++++ docs/cli-distribution.md | 19 ++++++++++++++++++ docs/cli-npm-release.md | 19 ++++++++++++++++++ docs/cli-npm-release.zh-CN.md | 19 ++++++++++++++++++ docs/code-origin-audit.md | 19 ++++++++++++++++++ docs/codex-pip-reverse-engineering.md | 19 ++++++++++++++++++ docs/computer-use-cursor-provenance.md | 19 ++++++++++++++++++ docs/computer-use-evidence-classes.md | 19 ++++++++++++++++++ docs/computer-use-foundation-contract.md | 19 ++++++++++++++++++ docs/computer-use-host-events-contract.md | 19 ++++++++++++++++++ docs/computer-use-model-loop-foundation.md | 19 ++++++++++++++++++ docs/computer-use-provenance.md | 19 ++++++++++++++++++ docs/computer-use-provider-evidence.md | 19 ++++++++++++++++++ docs/computer-use-ui-coverage.md | 19 ++++++++++++++++++ docs/deep-research-durable-workspace.md | 19 ++++++++++++++++++ ...al-bench-2.1-deepseek-v4-flash-four-arm.md | 19 ++++++++++++++++++ ...-2.1-deepseek-v4-flash-maka-vs-opencode.md | 19 ++++++++++++++++++ ...erminal-bench-2.1-maka-vs-kimi-code-v11.md | 19 ++++++++++++++++++ ...d-architecture-astryx-review-2026-08-09.md | 19 ++++++++++++++++++ docs/frontend-css-governance.md | 19 ++++++++++++++++++ docs/frontend-css-governance.zh-CN.md | 19 ++++++++++++++++++ ...model-metadata-firstscreen-optimization.md | 19 ++++++++++++++++++ docs/permission-onboarding-plan.md | 19 ++++++++++++++++++ docs/runtime-host-remote-access.md | 19 ++++++++++++++++++ docs/runtime-host-remote-access.zh-CN.md | 19 ++++++++++++++++++ docs/session-task-ledger-lifecycle.md | 19 ++++++++++++++++++ docs/settings-astryx-deep-review.zh-CN.md | 19 ++++++++++++++++++ docs/side-conversation.md | 19 ++++++++++++++++++ docs/skill-catalog-policy.md | 19 ++++++++++++++++++ docs/web-search-provider-capability.md | 19 ++++++++++++++++++ docs/windows-support.md | 19 ++++++++++++++++++ docs/work-board-contract.md | 19 ++++++++++++++++++ docs/workspace-privacy-context.md | 19 ++++++++++++++++++ experiments/windows-sandbox/README.md | 19 ++++++++++++++++++ .../windows-sandbox/acl-recovery-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/appcontainer-smoke.ps1 | 17 ++++++++++++++++ .../atomic-launch-capability.ps1 | 17 ++++++++++++++++ .../windows-sandbox/atomic-launch-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/broker-client-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/broker-local-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/broker-pipe-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/launcher-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/launcher/Cargo.toml | 17 ++++++++++++++++ .../launcher/src/acl_ledger.rs | 19 ++++++++++++++++++ .../launcher/src/acl_ledger_tests.rs | 19 ++++++++++++++++++ .../launcher/src/broker_authorization.rs | 19 ++++++++++++++++++ .../src/broker_authorization_tests.rs | 19 ++++++++++++++++++ .../launcher/src/broker_client.rs | 19 ++++++++++++++++++ .../launcher/src/broker_framing.rs | 19 ++++++++++++++++++ .../launcher/src/broker_framing_tests.rs | 19 ++++++++++++++++++ .../launcher/src/broker_pipe.rs | 19 ++++++++++++++++++ .../launcher/src/broker_pipe_security.rs | 19 ++++++++++++++++++ .../src/broker_pipe_security_tests.rs | 19 ++++++++++++++++++ .../launcher/src/broker_pipe_tests.rs | 19 ++++++++++++++++++ .../windows-sandbox/launcher/src/main.rs | 19 ++++++++++++++++++ .../windows-sandbox/launcher/src/protocol.rs | 19 ++++++++++++++++++ .../launcher/src/protocol_tests.rs | 19 ++++++++++++++++++ .../launcher/src/windows_launcher.rs | 19 ++++++++++++++++++ .../src/windows_launcher_desktop_tests.rs | 19 ++++++++++++++++++ .../launcher/src/windows_launcher_tests.rs | 19 ++++++++++++++++++ .../windows-sandbox/readiness-probe-smoke.ps1 | 17 ++++++++++++++++ .../windows-sandbox/stdio-relay-smoke.ps1 | 17 ++++++++++++++++ packages/cli/README.md | 19 ++++++++++++++++++ packages/cli/README.zh-CN.md | 19 ++++++++++++++++++ packages/cli/scripts/chmod-bin.mjs | 18 +++++++++++++++++ .../src/__tests__/activation-command.test.ts | 19 ++++++++++++++++++ .../__tests__/bounded-chunk-buffer.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/cli-invocation.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/cli-ui-locale.test.ts | 19 ++++++++++++++++++ packages/cli/src/__tests__/cli.test.ts | 19 ++++++++++++++++++ .../context-diagnostics-render.test.ts | 19 ++++++++++++++++++ .../src/__tests__/eval-bundle-path.test.ts | 19 ++++++++++++++++++ packages/cli/src/__tests__/pi-goal.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/pi-transcript.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/pi-tui-runner.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/pi-tui-turn.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/run-command.test.ts | 19 ++++++++++++++++++ .../__tests__/run-session-selection.test.ts | 19 ++++++++++++++++++ ...e-host-capability-provider-command.test.ts | 19 ++++++++++++++++++ .../runtime-host-cli-context.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-host-onboarding.test.ts | 19 ++++++++++++++++++ .../runtime-host-operator-command.test.ts | 19 ++++++++++++++++++ .../runtime-host-profile-command.test.ts | 19 ++++++++++++++++++ .../runtime-host-run-command.test.ts | 19 ++++++++++++++++++ .../runtime-host-service-manager.test.ts | 19 ++++++++++++++++++ .../runtime-host-session-driver.test.ts | 19 ++++++++++++++++++ .../src/__tests__/runtime-host-setup.test.ts | 19 ++++++++++++++++++ .../runtime-host-tui-context.test.ts | 19 ++++++++++++++++++ .../__tests__/tui-autocomplete-layout.test.ts | 19 ++++++++++++++++++ .../__tests__/tui-primary-guidance.test.ts | 19 ++++++++++++++++++ .../cli/src/__tests__/tui-terminal-mock.ts | 19 ++++++++++++++++++ packages/cli/src/activation-command.ts | 19 ++++++++++++++++++ packages/cli/src/bounded-chunk-buffer.ts | 19 ++++++++++++++++++ packages/cli/src/cli-core.ts | 19 ++++++++++++++++++ packages/cli/src/cli-invocation.ts | 19 ++++++++++++++++++ packages/cli/src/cli-ui-locale.ts | 19 ++++++++++++++++++ packages/cli/src/cli.ts | 18 +++++++++++++++++ packages/cli/src/dev-cli.ts | 18 +++++++++++++++++ packages/cli/src/eval-bundle-path.ts | 19 ++++++++++++++++++ packages/cli/src/onboarding-catalog.ts | 19 ++++++++++++++++++ packages/cli/src/pi-goal.ts | 19 ++++++++++++++++++ packages/cli/src/pi-transcript-format.ts | 19 ++++++++++++++++++ packages/cli/src/pi-transcript-tools.ts | 19 ++++++++++++++++++ packages/cli/src/pi-transcript.ts | 19 ++++++++++++++++++ packages/cli/src/pi-tui-contracts.ts | 19 ++++++++++++++++++ packages/cli/src/pi-tui-layout.ts | 19 ++++++++++++++++++ packages/cli/src/pi-tui-pickers.ts | 19 ++++++++++++++++++ packages/cli/src/pi-tui-runner.ts | 19 ++++++++++++++++++ packages/cli/src/pi-tui-turn.ts | 19 ++++++++++++++++++ packages/cli/src/run-command-core.ts | 19 ++++++++++++++++++ packages/cli/src/run-session-selection.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-access-command.ts | 19 ++++++++++++++++++ ...untime-host-capability-provider-command.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-cli-context.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-cli.ts | 19 ++++++++++++++++++ .../src/runtime-host-managed-deployment.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-onboarding.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-profile-command.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-project-command.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-run-command.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-service-command.ts | 19 ++++++++++++++++++ ...runtime-host-service-management-command.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-service-manager.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-session-channel.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-session-driver.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-setup-command.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-systemd-service.ts | 19 ++++++++++++++++++ .../cli/src/runtime-host-task-readiness.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-tui-command.ts | 19 ++++++++++++++++++ packages/cli/src/runtime-host-tui-context.ts | 19 ++++++++++++++++++ packages/cli/src/sandbox-boundary-failure.ts | 19 ++++++++++++++++++ packages/cli/src/session-driver-policy.ts | 19 ++++++++++++++++++ packages/cli/src/session-driver.ts | 19 ++++++++++++++++++ packages/cli/src/session-recap.ts | 19 ++++++++++++++++++ packages/cli/src/shell-run-elapsed-ticker.ts | 19 ++++++++++++++++++ packages/cli/src/shell-run-hydration.ts | 19 ++++++++++++++++++ packages/cli/src/skill-highlight-editor.ts | 19 ++++++++++++++++++ packages/cli/src/tui-ansi.ts | 19 ++++++++++++++++++ packages/cli/src/tui-attention.ts | 19 ++++++++++++++++++ packages/cli/src/tui-autocomplete-layout.ts | 19 ++++++++++++++++++ packages/cli/src/tui-diff.ts | 19 ++++++++++++++++++ packages/cli/src/tui-primary-guidance.ts | 19 ++++++++++++++++++ packages/cli/src/workspace-root.ts | 19 ++++++++++++++++++ .../computer-use-cumulative-e2e.test.ts | 19 ++++++++++++++++++ .../computer-use-overlay-hook.test.ts | 19 ++++++++++++++++++ .../src/__tests__/display-snapshot.test.ts | 19 ++++++++++++++++++ .../src/__tests__/maka-cu-backend.test.ts | 19 ++++++++++++++++++ .../src/__tests__/maka-cu-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/maka-cu-service.test.ts | 19 ++++++++++++++++++ .../select-backend-host-events.test.ts | 19 ++++++++++++++++++ packages/computer-use/src/abortable-delay.ts | 19 ++++++++++++++++++ .../src/computer-use-overlay-hook.ts | 19 ++++++++++++++++++ packages/computer-use/src/display-snapshot.ts | 19 ++++++++++++++++++ packages/computer-use/src/frame-budget.ts | 19 ++++++++++++++++++ packages/computer-use/src/index.ts | 19 ++++++++++++++++++ packages/computer-use/src/maka-cu-backend.ts | 19 ++++++++++++++++++ packages/computer-use/src/maka-cu-protocol.ts | 19 ++++++++++++++++++ packages/computer-use/src/maka-cu-service.ts | 19 ++++++++++++++++++ packages/computer-use/src/select-backend.ts | 19 ++++++++++++++++++ packages/computer-use/src/stdio-json-rpc.ts | 19 ++++++++++++++++++ .../__tests__/additional-permissions.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-graph-control.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-graph-schedule.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-graph-topology.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-run-authority.test.ts | 19 ++++++++++++++++++ .../agent-run-continuation-source.test.ts | 19 ++++++++++++++++++ .../agent-run-event-contract.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-run-hosted-root.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-swarm-result.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/artifacts.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/attachments.test.ts | 19 ++++++++++++++++++ .../src/__tests__/bot-chat-settings.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/bot-events.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/browser.test.ts | 19 ++++++++++++++++++ .../__tests__/canonical-runtime-event.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/capabilities.test.ts | 19 ++++++++++++++++++ .../computer-use-model-call-args.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/computer-use.test.ts | 19 ++++++++++++++++++ .../__tests__/connection-readiness.test.ts | 19 ++++++++++++++++++ .../src/__tests__/cron-expression.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/daily-review.test.ts | 19 ++++++++++++++++++ .../src/__tests__/deep-research-run.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/diagnostic-log.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/events.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/explore-agent.test.ts | 19 ++++++++++++++++++ .../src/__tests__/foreign-session.test.ts | Bin 19562 -> 20373 bytes .../core/src/__tests__/goal-authority.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/graph-command.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/health.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/incognito.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/interaction.test.ts | 19 ++++++++++++++++++ .../src/__tests__/llm-connections.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/local-memory.test.ts | 19 ++++++++++++++++++ .../src/__tests__/long-term-memory.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/mcp-secrets.test.ts | 19 ++++++++++++++++++ .../src/__tests__/model-call-attempt.test.ts | 19 ++++++++++++++++++ .../model-call-usage-projection.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/model-catalog.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/model-metadata.test.ts | 19 ++++++++++++++++++ .../__tests__/model-switch-transcript.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/model-thinking.test.ts | 19 ++++++++++++++++++ .../src/__tests__/model-web-search.test.ts | 19 ++++++++++++++++++ .../src/__tests__/oauth-subscription.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/onboarding.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/orchestration.test.ts | 19 ++++++++++++++++++ .../permission-profile-compiler.test.ts | 19 ++++++++++++++++++ .../src/__tests__/permission-profile.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/pet.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/provider-auth.test.ts | 19 ++++++++++++++++++ .../provider-catalog-contract.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/redaction.test.ts | 19 ++++++++++++++++++ .../__tests__/request-customization.test.ts | 19 ++++++++++++++++++ .../src/__tests__/run-composition.test.ts | 19 ++++++++++++++++++ .../src/__tests__/runtime-boundary.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/runtime-event.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-policy-codec.test.ts | 19 ++++++++++++++++++ .../src/__tests__/sandbox-boundary.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/scheduled-task.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/search.test.ts | 19 ++++++++++++++++++ .../__tests__/serialized-byte-length.test.ts | 19 ++++++++++++++++++ .../__tests__/session-event-health.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-revisions.test.ts | 19 ++++++++++++++++++ .../__tests__/session-send-projection.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/session-status.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/session-trace.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/settings.test.ts | 19 ++++++++++++++++++ .../src/__tests__/shell-run-result.test.ts | 19 ++++++++++++++++++ .../__tests__/subagent-session-parent.test.ts | 19 ++++++++++++++++++ .../src/__tests__/subagent-workspace.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/task-ledger.test.ts | 19 ++++++++++++++++++ .../task-submission-readiness.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/terminal-input.test.ts | 19 ++++++++++++++++++ packages/core/src/__tests__/test-helpers.ts | 19 ++++++++++++++++++ .../src/__tests__/text-file-import.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-activity-args.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-args-identity.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-quiet-preview.test.ts | 19 ++++++++++++++++++ .../__tests__/tool-recovery-authority.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-result-preview.test.ts | 19 ++++++++++++++++++ .../tool-result-record-schema.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/unified-diff.test.ts | 19 ++++++++++++++++++ .../src/__tests__/usage-ledger-merge.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/web-search.test.ts | 19 ++++++++++++++++++ .../core/src/__tests__/work-board.test.ts | 19 ++++++++++++++++++ .../workspace-version-authority.test.ts | 19 ++++++++++++++++++ packages/core/src/absolute-path.ts | 19 ++++++++++++++++++ packages/core/src/additional-permissions.ts | 19 ++++++++++++++++++ .../core/src/agent-graph-client-projection.ts | 19 ++++++++++++++++++ packages/core/src/agent-graph-control.ts | 19 ++++++++++++++++++ packages/core/src/agent-graph-epoch.ts | 19 ++++++++++++++++++ packages/core/src/agent-graph-schedule.ts | 19 ++++++++++++++++++ .../core/src/agent-graph-supervisor-wake.ts | 19 ++++++++++++++++++ packages/core/src/agent-graph-timeline.ts | 19 ++++++++++++++++++ packages/core/src/agent-graph-topology.ts | 19 ++++++++++++++++++ packages/core/src/agent-run.ts | 19 ++++++++++++++++++ packages/core/src/agent-swarm.ts | 19 ++++++++++++++++++ packages/core/src/artifacts.ts | 19 ++++++++++++++++++ packages/core/src/attachments.ts | 19 ++++++++++++++++++ packages/core/src/backend-types.ts | 19 ++++++++++++++++++ packages/core/src/bot-chat-settings.ts | 19 ++++++++++++++++++ packages/core/src/bot-events.ts | 19 ++++++++++++++++++ packages/core/src/bot-onboarding.ts | 19 ++++++++++++++++++ packages/core/src/browser.ts | 19 ++++++++++++++++++ packages/core/src/canonical-runtime-event.ts | 19 ++++++++++++++++++ packages/core/src/capabilities.ts | 19 ++++++++++++++++++ packages/core/src/capability-audit.ts | 19 ++++++++++++++++++ packages/core/src/chat-model-choice.ts | 19 ++++++++++++++++++ .../core/src/codex-model-compatibility.ts | 19 ++++++++++++++++++ packages/core/src/collaboration.ts | 19 ++++++++++++++++++ packages/core/src/computer-use.ts | 19 ++++++++++++++++++ packages/core/src/connection-error-copy.ts | 19 ++++++++++++++++++ packages/core/src/connection-readiness.ts | 19 ++++++++++++++++++ packages/core/src/connections.ts | 19 ++++++++++++++++++ packages/core/src/cron-expression.ts | 19 ++++++++++++++++++ packages/core/src/daily-review.ts | 19 ++++++++++++++++++ .../core/src/deep-research-client-progress.ts | 19 ++++++++++++++++++ packages/core/src/deep-research-run.ts | 19 ++++++++++++++++++ packages/core/src/diagnostic-log.ts | 19 ++++++++++++++++++ packages/core/src/display-redaction.ts | 19 ++++++++++++++++++ packages/core/src/e2e-fixture.ts | 19 ++++++++++++++++++ packages/core/src/events.ts | 19 ++++++++++++++++++ packages/core/src/execution-inspect.ts | 19 ++++++++++++++++++ packages/core/src/execution-log-coverage.ts | 19 ++++++++++++++++++ packages/core/src/explore-agent.ts | 19 ++++++++++++++++++ packages/core/src/external-session.ts | 19 ++++++++++++++++++ packages/core/src/foreign-session.ts | 19 ++++++++++++++++++ packages/core/src/git-review.ts | 19 ++++++++++++++++++ packages/core/src/goal.ts | 19 ++++++++++++++++++ packages/core/src/graph-command.ts | 19 ++++++++++++++++++ packages/core/src/health.ts | 19 ++++++++++++++++++ packages/core/src/incognito.ts | 19 ++++++++++++++++++ .../core/src/interaction-permission-review.ts | 19 ++++++++++++++++++ .../core/src/interaction-record-schema.ts | 19 ++++++++++++++++++ packages/core/src/interaction.ts | 19 ++++++++++++++++++ packages/core/src/llm-connections.ts | 19 ++++++++++++++++++ packages/core/src/local-memory.ts | 19 ++++++++++++++++++ packages/core/src/long-term-memory.ts | 19 ++++++++++++++++++ packages/core/src/mcp-secrets.ts | 19 ++++++++++++++++++ packages/core/src/mcp.ts | 19 ++++++++++++++++++ packages/core/src/model-call-attempt.ts | 19 ++++++++++++++++++ .../core/src/model-call-usage-projection.ts | 19 ++++++++++++++++++ packages/core/src/model-catalog.ts | 19 ++++++++++++++++++ packages/core/src/model-metadata.ts | 19 ++++++++++++++++++ packages/core/src/model-thinking.ts | 19 ++++++++++++++++++ packages/core/src/model-web-search.ts | 19 ++++++++++++++++++ packages/core/src/node-diagnostic-log.ts | 19 ++++++++++++++++++ packages/core/src/oauth-subscription.ts | 19 ++++++++++++++++++ packages/core/src/onboarding-milestone.ts | 19 ++++++++++++++++++ packages/core/src/onboarding.ts | 19 ++++++++++++++++++ packages/core/src/orchestration.ts | 19 ++++++++++++++++++ .../core/src/permission-profile-compiler.ts | 19 ++++++++++++++++++ packages/core/src/permission-profile.ts | 19 ++++++++++++++++++ packages/core/src/permission.ts | 19 ++++++++++++++++++ packages/core/src/pet.ts | 19 ++++++++++++++++++ packages/core/src/plan.ts | 19 ++++++++++++++++++ packages/core/src/project.ts | 19 ++++++++++++++++++ packages/core/src/provider-auth.ts | 19 ++++++++++++++++++ packages/core/src/provider-registry.ts | 19 ++++++++++++++++++ packages/core/src/pty-output-view.ts | 19 ++++++++++++++++++ packages/core/src/record-schema.ts | 19 ++++++++++++++++++ packages/core/src/redaction.ts | 19 ++++++++++++++++++ packages/core/src/relative-time.ts | 19 ++++++++++++++++++ packages/core/src/request-customization.ts | 19 ++++++++++++++++++ packages/core/src/result.ts | 19 ++++++++++++++++++ packages/core/src/run-composition.ts | 19 ++++++++++++++++++ packages/core/src/runtime-boundary.ts | 19 ++++++++++++++++++ packages/core/src/runtime-event-store.ts | 19 ++++++++++++++++++ packages/core/src/runtime-event.ts | 19 ++++++++++++++++++ packages/core/src/runtime-inputs.ts | 19 ++++++++++++++++++ packages/core/src/runtime-policy.ts | 19 ++++++++++++++++++ .../connection-catalog-codec.ts | 19 ++++++++++++++++++ .../runtime-policy/credential-vault-codec.ts | 19 ++++++++++++++++++ .../core/src/runtime-policy/domain-codec.ts | 19 ++++++++++++++++++ .../core/src/runtime-policy/policy-codec.ts | 19 ++++++++++++++++++ packages/core/src/sandbox-boundary.ts | 19 ++++++++++++++++++ packages/core/src/scheduled-task.ts | 19 ++++++++++++++++++ packages/core/src/search.ts | 19 ++++++++++++++++++ packages/core/src/serialized-byte-length.ts | 19 ++++++++++++++++++ packages/core/src/session-event-health.ts | 19 ++++++++++++++++++ packages/core/src/session-name.ts | 19 ++++++++++++++++++ packages/core/src/session-revisions.ts | 19 ++++++++++++++++++ packages/core/src/session-send-projection.ts | 19 ++++++++++++++++++ packages/core/src/session-trace.ts | 19 ++++++++++++++++++ packages/core/src/session.ts | 19 ++++++++++++++++++ packages/core/src/settings.ts | 19 ++++++++++++++++++ .../src/settings/__tests__/sensitive.test.ts | 19 ++++++++++++++++++ .../core/src/settings/network-settings.ts | 19 ++++++++++++++++++ packages/core/src/shell-run-result.ts | 19 ++++++++++++++++++ packages/core/src/shell-run.ts | 19 ++++++++++++++++++ packages/core/src/side-conversation.ts | 19 ++++++++++++++++++ packages/core/src/skill-invocation-token.ts | 19 ++++++++++++++++++ packages/core/src/skill-invocation.ts | 19 ++++++++++++++++++ packages/core/src/slash-command-catalog.ts | 19 ++++++++++++++++++ packages/core/src/subagent-settings.ts | 19 ++++++++++++++++++ packages/core/src/subagent-workspace.ts | 19 ++++++++++++++++++ packages/core/src/swarm-command.ts | 19 ++++++++++++++++++ packages/core/src/task-ledger.ts | 19 ++++++++++++++++++ .../core/src/task-submission-readiness.ts | 19 ++++++++++++++++++ packages/core/src/terminal-input.ts | 19 ++++++++++++++++++ packages/core/src/terminal-mouse-input.ts | 19 ++++++++++++++++++ packages/core/src/text-file-import.ts | 19 ++++++++++++++++++ packages/core/src/text-sanitize.ts | 19 ++++++++++++++++++ packages/core/src/tool-activity-args.ts | 19 ++++++++++++++++++ packages/core/src/tool-args-identity.ts | 19 ++++++++++++++++++ packages/core/src/tool-catalog.ts | 19 ++++++++++++++++++ packages/core/src/tool-ledger-scanner.ts | 19 ++++++++++++++++++ packages/core/src/tool-mode.ts | 19 ++++++++++++++++++ packages/core/src/tool-quiet-preview.ts | 19 ++++++++++++++++++ packages/core/src/tool-recovery-bundle.ts | 19 ++++++++++++++++++ packages/core/src/tool-recovery-fact.ts | 19 ++++++++++++++++++ packages/core/src/tool-result-preview.ts | 19 ++++++++++++++++++ .../core/src/tool-result-record-schema.ts | 19 ++++++++++++++++++ packages/core/src/tool-result-status.ts | 19 ++++++++++++++++++ packages/core/src/turn-origin.ts | 19 ++++++++++++++++++ packages/core/src/ui-locale.ts | 19 ++++++++++++++++++ packages/core/src/unified-diff.ts | 19 ++++++++++++++++++ packages/core/src/usage-ledger-merge.ts | 19 ++++++++++++++++++ packages/core/src/usage-record-schema.ts | 19 ++++++++++++++++++ .../src/usage-stats/__tests__/pricing.test.ts | 19 ++++++++++++++++++ packages/core/src/usage-stats/bucket-key.ts | 19 ++++++++++++++++++ packages/core/src/usage-stats/pricing.ts | 19 ++++++++++++++++++ packages/core/src/usage-stats/types.ts | 19 ++++++++++++++++++ packages/core/src/user-question.ts | 19 ++++++++++++++++++ packages/core/src/web-search.ts | 19 ++++++++++++++++++ packages/core/src/windows-path.ts | 19 ++++++++++++++++++ packages/core/src/work-board.ts | 19 ++++++++++++++++++ .../core/src/workspace-version-authority.ts | 19 ++++++++++++++++++ packages/core/src/workspace.ts | 19 ++++++++++++++++++ packages/eval/README.md | 19 ++++++++++++++++++ .../deepseek-harness-profile/cordis.patch.yml | 17 ++++++++++++++++ .../deepseek-harness-profile/cordis.yml | 17 ++++++++++++++++ .../patch-subprocess-local.mjs | 19 ++++++++++++++++++ .../harbor/docker-compose-egress-proxy.yaml | 17 ++++++++++++++++ packages/eval/harbor/egress-proxy/Dockerfile | 17 ++++++++++++++++ .../eval/harbor/egress-proxy/entrypoint.sh | 17 ++++++++++++++++ .../eval/harbor/egress-proxy/network-policy | 17 ++++++++++++++++ packages/eval/harbor/egress_filter.py | 17 ++++++++++++++++ packages/eval/harbor/eval_framework.py | 17 ++++++++++++++++ packages/eval/harbor/relay_agent.py | 17 ++++++++++++++++ packages/eval/harbor/run_trial.py | 17 ++++++++++++++++ .../eval/harbor/test_cell_egress_namespace.py | 17 ++++++++++++++++ packages/eval/harbor/test_egress_filter.py | 17 ++++++++++++++++ packages/eval/harbor/test_eval_framework.py | 17 ++++++++++++++++ packages/eval/harbor/test_relay_artifacts.py | 17 ++++++++++++++++ packages/eval/harbor/test_relay_contract.py | 17 ++++++++++++++++ packages/eval/harbor/test_relay_lifecycle.py | 17 ++++++++++++++++ packages/eval/harbor/test_run_trial_policy.py | 17 ++++++++++++++++ packages/eval/src/__tests__/cli.test.ts | 19 ++++++++++++++++++ .../eval/src/__tests__/egress-audit.test.ts | 19 ++++++++++++++++++ .../src/__tests__/external-subject.test.ts | 19 ++++++++++++++++++ .../src/__tests__/install-preflight.test.ts | 19 ++++++++++++++++++ .../__tests__/lifecycle-boundaries.test.ts | 19 ++++++++++++++++++ .../eval/src/__tests__/maka-artifacts.test.ts | 19 ++++++++++++++++++ .../src/__tests__/metering-checkpoint.test.ts | 19 ++++++++++++++++++ .../provider-admission-integration.test.ts | 19 ++++++++++++++++++ .../src/__tests__/provider-admission.test.ts | 19 ++++++++++++++++++ .../provider-web-tool-surface.test.ts | 19 ++++++++++++++++++ packages/eval/src/attempt-store.ts | 19 ++++++++++++++++++ packages/eval/src/cli.ts | 19 ++++++++++++++++++ packages/eval/src/experiment-directory.ts | 19 ++++++++++++++++++ packages/eval/src/experiment.ts | 19 ++++++++++++++++++ packages/eval/src/external-subject.ts | 19 ++++++++++++++++++ packages/eval/src/harbor-external-subject.ts | 19 ++++++++++++++++++ packages/eval/src/harbor-maka-subject.ts | 19 ++++++++++++++++++ packages/eval/src/harness-environment.ts | 19 ++++++++++++++++++ packages/eval/src/harness-executor.ts | 19 ++++++++++++++++++ packages/eval/src/index.ts | 19 ++++++++++++++++++ packages/eval/src/install-preflight.ts | 19 ++++++++++++++++++ packages/eval/src/maka-artifacts.ts | 19 ++++++++++++++++++ packages/eval/src/maka-runtime-policy.ts | 19 ++++++++++++++++++ packages/eval/src/maka-subject.ts | 19 ++++++++++++++++++ packages/eval/src/metering-checkpoint.ts | 19 ++++++++++++++++++ packages/eval/src/provider-admission.ts | 19 ++++++++++++++++++ packages/eval/src/provider-metering.ts | 19 ++++++++++++++++++ .../eval/src/provider-web-tool-surface.ts | 19 ++++++++++++++++++ packages/eval/src/relay-result-frame.ts | 19 ++++++++++++++++++ packages/eval/src/result.ts | 19 ++++++++++++++++++ packages/eval/src/runner.ts | 19 ++++++++++++++++++ packages/eval/src/spec.ts | 19 ++++++++++++++++++ packages/eval/src/toolchain-verification.ts | 19 ++++++++++++++++++ packages/mcp/src/__fixtures__/stdio-server.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/diagnostic-text.test.ts | 19 ++++++++++++++++++ .../src/__tests__/manager-fallback.test.ts | 19 ++++++++++++++++++ .../__tests__/manager-subscription.test.ts | 19 ++++++++++++++++++ packages/mcp/src/__tests__/manager.test.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/modern-manager.test.ts | 19 ++++++++++++++++++ packages/mcp/src/__tests__/sep-2243.test.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/tool-binding.test.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/tool-call-error.test.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/tool-definition.test.ts | 19 ++++++++++++++++++ .../mcp/src/__tests__/tool-discovery.test.ts | 19 ++++++++++++++++++ .../__tests__/tool-output-validation.test.ts | 19 ++++++++++++++++++ packages/mcp/src/diagnostic-text.ts | 19 ++++++++++++++++++ packages/mcp/src/index.ts | 19 ++++++++++++++++++ packages/mcp/src/sep-2243.ts | 19 ++++++++++++++++++ packages/mcp/src/tool-binding.ts | 19 ++++++++++++++++++ packages/mcp/src/tool-call-error.ts | 19 ++++++++++++++++++ packages/mcp/src/tool-definition.ts | 19 ++++++++++++++++++ packages/mcp/src/tool-discovery.ts | 19 ++++++++++++++++++ packages/mcp/src/tool-output-validation.ts | 19 ++++++++++++++++++ .../transcript-data-plane-benchmark.mjs | 19 ++++++++++++++++++ .../__tests__/agent-graph-coordinator.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-graph-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-graph-reader.test.ts | 19 ++++++++++++++++++ .../agent-graph-two-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/artifact-coordinator.test.ts | 19 ++++++++++++++++++ .../src/__tests__/artifact-protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/artifact-two-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/authenticated-websocket.test.ts | 19 ++++++++++++++++++ .../bootstrap-runtime-policy.test.ts | 19 ++++++++++++++++++ .../src/__tests__/bundled-git-runtime.test.ts | 19 ++++++++++++++++++ .../src/__tests__/candidate-cli.test.ts | 19 ++++++++++++++++++ .../candidate-launch-barrier.test.ts | 19 ++++++++++++++++++ .../candidate-startup-failure.test.ts | 19 ++++++++++++++++++ ...anonical-permission-outcome-reader.test.ts | 19 ++++++++++++++++++ .../canonical-session-projection.test.ts | 19 ++++++++++++++++++ .../capability-provider-service.test.ts | 19 ++++++++++++++++++ .../src/__tests__/catalog-reader.test.ts | 19 ++++++++++++++++++ .../client-capability-channel.test.ts | 19 ++++++++++++++++++ .../client-capability-coordinator.test.ts | 19 ++++++++++++++++++ .../client-capability-protocol.test.ts | 19 ++++++++++++++++++ .../client-capability-recovery.test.ts | 19 ++++++++++++++++++ .../__tests__/client-capability-uds.test.ts | 19 ++++++++++++++++++ .../client-instance-identity.test.ts | 19 ++++++++++++++++++ .../connection-effect-coordinator.test.ts | 19 ++++++++++++++++++ .../connection-effects-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/connection-resource.test.ts | 19 ++++++++++++++++++ .../src/__tests__/connection-session.test.ts | 19 ++++++++++++++++++ .../src/__tests__/context-coordinator.test.ts | 19 ++++++++++++++++++ .../src/__tests__/context-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/control-endpoint.test.ts | 19 ++++++++++++++++++ .../daily-review-coordinator.test.ts | 19 ++++++++++++++++++ .../__tests__/daily-review-protocol.test.ts | 19 ++++++++++++++++++ .../daily-review-two-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/deep-research-protocol.test.ts | 19 ++++++++++++++++++ .../deep-research-two-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/desktop-e2e-execution.test.ts | 19 ++++++++++++++++++ .../src/__tests__/execution-artifacts.test.ts | 19 ++++++++++++++++++ .../execution-candidate-main.test.ts | 19 ++++++++++++++++++ .../__tests__/execution-composition.test.ts | 19 ++++++++++++++++++ .../execution-host-continuation.test.ts | 19 ++++++++++++++++++ .../__tests__/execution-host-message.test.ts | 19 ++++++++++++++++++ .../__tests__/execution-host-queue.test.ts | 19 ++++++++++++++++++ .../__tests__/execution-host-recovery.test.ts | 19 ++++++++++++++++++ .../src/__tests__/execution-host.test.ts | 19 ++++++++++++++++++ .../execution-inspect-coordinator.test.ts | 19 ++++++++++++++++++ .../execution-inspect-protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/execution-inspect-uds.test.ts | 19 ++++++++++++++++++ .../execution-model-composition.test.ts | 19 ++++++++++++++++++ .../external-session-coordinator.test.ts | 19 ++++++++++++++++++ .../external-session-protocol.test.ts | 19 ++++++++++++++++++ .../fixtures/agent-graph-provider-scenario.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/client-capability.ts | 19 ++++++++++++++++++ .../src/__tests__/fixtures/connect-client.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/detached-launcher.ts | 19 ++++++++++++++++++ .../fixtures/electron-connect-parent.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/endpoint-hygiene.ts | 19 ++++++++++++++++++ .../fixtures/execution-host-suite.ts | 19 ++++++++++++++++++ .../src/__tests__/fixtures/execution-host.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/kernel-candidate.ts | 19 ++++++++++++++++++ .../fixtures/owned-candidate-exit.ts | 19 ++++++++++++++++++ .../fixtures/owned-candidate-wait.ts | 19 ++++++++++++++++++ .../fixtures/session-transcript-reader.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/uncooperative-host.ts | 19 ++++++++++++++++++ .../fixtures/windows-local-ipc-trust-host.ts | 19 ++++++++++++++++++ .../src/__tests__/framed-transport.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-coordinator.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-root-authority.test.ts | 19 ++++++++++++++++++ .../__tests__/handshake-compatibility.test.ts | 19 ++++++++++++++++++ .../src/__tests__/host-change-feed.test.ts | 19 ++++++++++++++++++ .../src/__tests__/host-composition.test.ts | 19 ++++++++++++++++++ .../src/__tests__/host-kernel.test.ts | 19 ++++++++++++++++++ .../src/__tests__/host-profile.test.ts | 19 ++++++++++++++++++ .../__tests__/host-residency-registry.test.ts | 19 ++++++++++++++++++ .../__tests__/hosted-execution-client.test.ts | 19 ++++++++++++++++++ .../hosted-execution-coordinator.test.ts | 19 ++++++++++++++++++ .../hosted-execution-registry.test.ts | 19 ++++++++++++++++++ .../__tests__/hosted-execution-runner.test.ts | 19 ++++++++++++++++++ .../__tests__/hosted-execution-target.test.ts | 19 ++++++++++++++++++ .../hosted-execution-tool-profile.test.ts | 19 ++++++++++++++++++ .../__tests__/hosted-execution-wait.test.ts | 19 ++++++++++++++++++ .../__tests__/interaction-coordinator.test.ts | 19 ++++++++++++++++++ .../__tests__/interaction-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/memory-coordinator.test.ts | 19 ++++++++++++++++++ .../memory-extraction-coordinator.test.ts | 19 ++++++++++++++++++ .../memory-extraction-session-lane.test.ts | 19 ++++++++++++++++++ .../src/__tests__/memory-protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/memory-two-client-uds.test.ts | 19 ++++++++++++++++++ .../src/__tests__/message-coordinator.test.ts | 19 ++++++++++++++++++ .../src/__tests__/oauth-coordinator.test.ts | 19 ++++++++++++++++++ .../oauth-execution-authority.test.ts | 19 ++++++++++++++++++ .../src/__tests__/oauth-protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/oauth-two-client-uds.test.ts | 19 ++++++++++++++++++ .../__tests__/operation-dispatcher.test.ts | 19 ++++++++++++++++++ .../src/__tests__/owned-candidate.test.ts | 19 ++++++++++++++++++ .../src/__tests__/plan-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/plan-two-client-uds.test.ts | 19 ++++++++++++++++++ .../src/__tests__/process-lifecycle.test.ts | 19 ++++++++++++++++++ .../project-catalog-coordinator.test.ts | 19 ++++++++++++++++++ .../project-catalog-protocol.test.ts | 19 ++++++++++++++++++ .../project-catalog-two-client-uds.test.ts | 19 ++++++++++++++++++ .../project-directory-authority.test.ts | 19 ++++++++++++++++++ .../src/__tests__/protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/reconnecting-connection.test.ts | 19 ++++++++++++++++++ .../__tests__/root-admission-owner.test.ts | 19 ++++++++++++++++++ .../__tests__/root-turn-coordinator.test.ts | 19 ++++++++++++++++++ .../runtime-policy-activation-gate.test.ts | 19 ++++++++++++++++++ .../runtime-policy-coordinator.test.ts | 19 ++++++++++++++++++ .../runtime-resource-coordinator.test.ts | 19 ++++++++++++++++++ .../runtime-resource-process.test.ts | 19 ++++++++++++++++++ .../runtime-resource-protocol.test.ts | 19 ++++++++++++++++++ .../runtime-resource-two-client-uds.test.ts | 19 ++++++++++++++++++ .../sandbox-boundary-graph-wake.test.ts | 19 ++++++++++++++++++ .../__tests__/scheduled-task-protocol.test.ts | 19 ++++++++++++++++++ .../__tests__/session-admission-gate.test.ts | 19 ++++++++++++++++++ .../session-catalog-coordinator.test.ts | 19 ++++++++++++++++++ .../session-catalog-protocol.test.ts | 19 ++++++++++++++++++ .../session-catalog-two-client-uds.test.ts | 19 ++++++++++++++++++ .../session-continuity-coordinator.test.ts | 19 ++++++++++++++++++ .../session-effect-coordinator.test.ts | 19 ++++++++++++++++++ .../session-effect-two-client-uds.test.ts | 19 ++++++++++++++++++ .../session-effects-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-projector.test.ts | 19 ++++++++++++++++++ .../session-retirement-coordinator.test.ts | 19 ++++++++++++++++++ .../session-retirement-protocol.test.ts | 19 ++++++++++++++++++ .../session-revision-graph-references.test.ts | 19 ++++++++++++++++++ .../session-revision-protocol.test.ts | 19 ++++++++++++++++++ .../session-revision-two-client-uds.test.ts | 19 ++++++++++++++++++ .../session-subscription-client.test.ts | 19 ++++++++++++++++++ .../session-transcript-pager.test.ts | 19 ++++++++++++++++++ .../session-transcript-protocol.test.ts | 19 ++++++++++++++++++ .../session-transcript-reader.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-turns.test.ts | 19 ++++++++++++++++++ .../skill-catalog-coordinator.test.ts | 19 ++++++++++++++++++ .../__tests__/skill-catalog-protocol.test.ts | 19 ++++++++++++++++++ .../skill-catalog-repository.test.ts | 19 ++++++++++++++++++ .../skill-catalog-transaction.test.ts | 19 ++++++++++++++++++ .../skill-catalog-two-client-uds.test.ts | 19 ++++++++++++++++++ .../src/__tests__/ssh-tunnel.test.ts | 19 ++++++++++++++++++ .../src/__tests__/startup-diagnostic.test.ts | 19 ++++++++++++++++++ .../src/__tests__/startup-error.test.ts | 19 ++++++++++++++++++ .../__tests__/task-ledger-protocol.test.ts | 19 ++++++++++++++++++ .../usage-pricing-client-correlation.test.ts | 19 ++++++++++++++++++ .../__tests__/usage-pricing-protocol.test.ts | 19 ++++++++++++++++++ .../usage-pricing-root-identity.test.ts | 19 ++++++++++++++++++ .../usage-pricing-two-client-uds.test.ts | 19 ++++++++++++++++++ .../src/__tests__/wait-for-ready.test.ts | 19 ++++++++++++++++++ .../src/__tests__/web-fetch-tool.test.ts | 19 ++++++++++++++++++ .../src/__tests__/web-search-tool.test.ts | 19 ++++++++++++++++++ .../src/__tests__/websocket-listener.test.ts | 19 ++++++++++++++++++ .../workspace-execution-composition.test.ts | 19 ++++++++++++++++++ packages/runtime-host/src/adapter/index.ts | 19 ++++++++++++++++++ .../src/adapter/session-projector.ts | 19 ++++++++++++++++++ packages/runtime-host/src/candidate-cli.ts | 19 ++++++++++++++++++ packages/runtime-host/src/candidate-entry.ts | 19 ++++++++++++++++++ .../src/candidate-startup-failure.ts | 19 ++++++++++++++++++ .../src/client/agent-graph-reader.ts | 19 ++++++++++++++++++ .../src/client/candidate-launch-barrier.ts | 19 ++++++++++++++++++ .../src/client/capability-provider-service.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/catalog-reader.ts | 19 ++++++++++++++++++ .../src/client/client-capability-channel.ts | 19 ++++++++++++++++++ .../src/client/client-capability.ts | 19 ++++++++++++++++++ .../src/client/client-instance-identity.ts | 19 ++++++++++++++++++ .../src/client/connect-or-spawn.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/connection.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/host-profile.ts | 19 ++++++++++++++++++ .../src/client/hosted-execution-target.ts | 19 ++++++++++++++++++ .../src/client/hosted-execution.ts | 19 ++++++++++++++++++ packages/runtime-host/src/client/index.ts | 19 ++++++++++++++++++ packages/runtime-host/src/client/launcher.ts | 19 ++++++++++++++++++ .../src/client/oauth-presentation.ts | 19 ++++++++++++++++++ .../src/client/reconnect-lifecycle.ts | 19 ++++++++++++++++++ .../src/client/reconnecting-connection.ts | 19 ++++++++++++++++++ .../src/client/remote-compatibility-error.ts | 19 ++++++++++++++++++ .../src/client/session-subscription.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/setup-frame.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/ssh-tunnel.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/startup-error.ts | 19 ++++++++++++++++++ .../runtime-host/src/client/wait-for-ready.ts | 19 ++++++++++++++++++ .../src/control/access-credential-delivery.ts | 19 ++++++++++++++++++ packages/runtime-host/src/control/endpoint.ts | 19 ++++++++++++++++++ .../runtime-host/src/control/registration.ts | 19 ++++++++++++++++++ .../src/control/startup-diagnostic.ts | 19 ++++++++++++++++++ .../src/execution-candidate-main.ts | 19 ++++++++++++++++++ .../runtime-host/src/process-diagnostics.ts | 19 ++++++++++++++++++ .../src/protocol/access-authority.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/agent-graph.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/artifact.ts | 19 ++++++++++++++++++ .../src/protocol/client-capability.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/codec.ts | 19 ++++++++++++++++++ .../src/protocol/configuration-change.ts | 19 ++++++++++++++++++ .../src/protocol/configuration.ts | 19 ++++++++++++++++++ .../src/protocol/connection-effects.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/context.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/daily-review.ts | 19 ++++++++++++++++++ .../src/protocol/deep-research.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/errors.ts | 19 ++++++++++++++++++ .../src/protocol/execution-inspect.ts | 19 ++++++++++++++++++ .../src/protocol/external-session.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/goal.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/host-status.ts | 19 ++++++++++++++++++ .../src/protocol/hosted-execution.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/index.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/interaction.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/memory.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/message.ts | 19 ++++++++++++++++++ .../src/protocol/network-proxy.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/oauth.ts | 19 ++++++++++++++++++ .../src/protocol/operation-spec.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/operations.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/plan.ts | 19 ++++++++++++++++++ .../src/protocol/project-catalog-change.ts | 19 ++++++++++++++++++ .../src/protocol/project-catalog.ts | 19 ++++++++++++++++++ .../src/protocol/runtime-policy.ts | 19 ++++++++++++++++++ .../src/protocol/runtime-resource.ts | 19 ++++++++++++++++++ .../src/protocol/scheduled-task-change.ts | 19 ++++++++++++++++++ .../src/protocol/scheduled-task.ts | 19 ++++++++++++++++++ .../src/protocol/session-catalog-change.ts | 19 ++++++++++++++++++ .../src/protocol/session-catalog.ts | 19 ++++++++++++++++++ .../src/protocol/session-continuity.ts | 19 ++++++++++++++++++ .../src/protocol/session-effects.ts | 19 ++++++++++++++++++ .../src/protocol/session-retirement.ts | 19 ++++++++++++++++++ .../src/protocol/session-revision.ts | 19 ++++++++++++++++++ .../src/protocol/session-status.ts | 19 ++++++++++++++++++ .../src/protocol/session-transcript.ts | 19 ++++++++++++++++++ .../src/protocol/session-turns.ts | 19 ++++++++++++++++++ .../src/protocol/skill-catalog.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/task-ledger.ts | 19 ++++++++++++++++++ packages/runtime-host/src/protocol/turn.ts | 19 ++++++++++++++++++ .../src/protocol/usage-pricing.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/web-search.ts | 19 ++++++++++++++++++ .../src/protocol/websocket-path.ts | 19 ++++++++++++++++++ .../runtime-host/src/protocol/workspace.ts | 19 ++++++++++++++++++ .../src/server/access-authority.ts | 19 ++++++++++++++++++ .../src/server/access-credential-store.ts | 19 ++++++++++++++++++ .../src/server/agent-graph-coordinator.ts | 19 ++++++++++++++++++ .../agent-graph-execution-coordinator.ts | 19 ++++++++++++++++++ .../src/server/agent-settings-tools.ts | 19 ++++++++++++++++++ .../src/server/artifact-coordinator.ts | 19 ++++++++++++++++++ .../src/server/bootstrap-runtime-policy.ts | 19 ++++++++++++++++++ .../src/server/bundled-git-runtime.ts | 19 ++++++++++++++++++ packages/runtime-host/src/server/candidate.ts | 19 ++++++++++++++++++ .../canonical-permission-outcome-reader.ts | 19 ++++++++++++++++++ .../server/canonical-session-projection.ts | 19 ++++++++++++++++++ .../src/server/canonical-turn-snapshot.ts | 19 ++++++++++++++++++ .../src/server/canonical-usage-reader.ts | 19 ++++++++++++++++++ .../src/server/child-agent-composition.ts | 19 ++++++++++++++++++ .../server/client-capability-coordinator.ts | 19 ++++++++++++++++++ .../client-capability-invocation-broker.ts | 19 ++++++++++++++++++ .../src/server/client-capability-recovery.ts | 19 ++++++++++++++++++ .../src/server/client-capability-service.ts | 19 ++++++++++++++++++ .../src/server/configuration-coordinator.ts | 19 ++++++++++++++++++ .../src/server/connection-authority.ts | 19 ++++++++++++++++++ .../server/connection-bound-chunk-uploads.ts | 19 ++++++++++++++++++ .../server/connection-effect-coordinator.ts | 19 ++++++++++++++++++ .../src/server/connection-session.ts | 19 ++++++++++++++++++ .../src/server/context-coordinator.ts | 19 ++++++++++++++++++ .../src/server/daily-review-coordinator.ts | 19 ++++++++++++++++++ .../src/server/deep-research-coordinator.ts | 19 ++++++++++++++++++ .../src/server/execution-artifacts.ts | 19 ++++++++++++++++++ .../src/server/execution-candidate.ts | 19 ++++++++++++++++++ .../server/execution-composition-factory.ts | 19 ++++++++++++++++++ .../src/server/execution-composition.ts | 19 ++++++++++++++++++ .../server/execution-inspect-coordinator.ts | 19 ++++++++++++++++++ .../src/server/execution-model-authority.ts | 19 ++++++++++++++++++ .../src/server/execution-model-composition.ts | 19 ++++++++++++++++++ .../src/server/execution-service.ts | 19 ++++++++++++++++++ .../server/external-session-coordinator.ts | 19 ++++++++++++++++++ .../src/server/goal-coordinator.ts | 19 ++++++++++++++++++ .../src/server/goal-execution-coordinator.ts | 19 ++++++++++++++++++ .../src/server/goal-projection.ts | 19 ++++++++++++++++++ .../src/server/host-change-feed.ts | 19 ++++++++++++++++++ .../src/server/host-composition.ts | 19 ++++++++++++++++++ .../runtime-host/src/server/host-kernel.ts | 19 ++++++++++++++++++ .../src/server/host-residency-registry.ts | 19 ++++++++++++++++++ .../src/server/host-run-composer.ts | 19 ++++++++++++++++++ .../src/server/host-session-availability.ts | 19 ++++++++++++++++++ .../hosted-execution-admission-registry.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-authority.ts | 19 ++++++++++++++++++ .../server/hosted-execution-coordinator.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-projection.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-recovery.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-registry.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-runner.ts | 19 ++++++++++++++++++ .../server/hosted-execution-tool-profile.ts | 19 ++++++++++++++++++ .../src/server/hosted-execution-wait.ts | 19 ++++++++++++++++++ packages/runtime-host/src/server/index.ts | 19 ++++++++++++++++++ .../src/server/interaction-coordinator.ts | 19 ++++++++++++++++++ .../src/server/interaction-projection.ts | 19 ++++++++++++++++++ .../src/server/interactive-run-composer.ts | 19 ++++++++++++++++++ .../server/interactive-turn-coordinator.ts | 19 ++++++++++++++++++ .../runtime-host/src/server/listener-set.ts | 19 ++++++++++++++++++ .../src/server/local-ipc-listener.ts | 19 ++++++++++++++++++ .../src/server/memory-coordinator.ts | 19 ++++++++++++++++++ .../server/memory-extraction-coordinator.ts | 19 ++++++++++++++++++ .../server/memory-extraction-session-lane.ts | 19 ++++++++++++++++++ .../src/server/memory-projection.ts | 19 ++++++++++++++++++ .../src/server/message-content-digest.ts | 19 ++++++++++++++++++ .../src/server/message-coordinator.ts | 19 ++++++++++++++++++ .../src/server/message-queue-capacity.ts | 19 ++++++++++++++++++ .../src/server/network-proxy-coordinator.ts | 19 ++++++++++++++++++ .../src/server/oauth-coordinator.ts | 19 ++++++++++++++++++ .../src/server/oauth-execution-authority.ts | 19 ++++++++++++++++++ .../src/server/operation-dispatcher.ts | 19 ++++++++++++++++++ .../src/server/plan-coordinator.ts | 19 ++++++++++++++++++ .../src/server/process-lifecycle.ts | 19 ++++++++++++++++++ .../src/server/project-catalog-coordinator.ts | 19 ++++++++++++++++++ .../src/server/project-directory-authority.ts | 19 ++++++++++++++++++ .../src/server/project-membership-gate.ts | 19 ++++++++++++++++++ .../src/server/root-admission-owner.ts | 19 ++++++++++++++++++ .../src/server/root-turn-coordinator.ts | 19 ++++++++++++++++++ .../server/runtime-policy-activation-gate.ts | 19 ++++++++++++++++++ .../src/server/runtime-policy-coordinator.ts | 19 ++++++++++++++++++ .../src/server/runtime-policy-proxy.ts | 19 ++++++++++++++++++ .../server/runtime-resource-coordinator.ts | 19 ++++++++++++++++++ .../src/server/runtime-resource-projection.ts | 19 ++++++++++++++++++ .../src/server/sandbox-boundary-graph-wake.ts | 19 ++++++++++++++++++ .../src/server/scheduled-task-coordinator.ts | 19 ++++++++++++++++++ .../src/server/serial-outbound-writer.ts | 19 ++++++++++++++++++ .../src/server/session-admission-gate.ts | 19 ++++++++++++++++++ .../src/server/session-catalog-coordinator.ts | 19 ++++++++++++++++++ .../server/session-continuity-coordinator.ts | 19 ++++++++++++++++++ .../src/server/session-continuity-service.ts | 19 ++++++++++++++++++ .../src/server/session-effect-coordinator.ts | 19 ++++++++++++++++++ .../src/server/session-presence.ts | 19 ++++++++++++++++++ .../server/session-retirement-coordinator.ts | 19 ++++++++++++++++++ .../server/session-revision-coordinator.ts | 19 ++++++++++++++++++ .../session-revision-graph-references.ts | 19 ++++++++++++++++++ .../src/server/session-sidecar-purge.ts | 19 ++++++++++++++++++ .../src/server/session-transcript-pager.ts | 19 ++++++++++++++++++ .../src/server/session-transcript-reader.ts | 19 ++++++++++++++++++ .../src/server/skill-catalog-coordinator.ts | 19 ++++++++++++++++++ .../src/server/skill-catalog-repository.ts | 19 ++++++++++++++++++ .../src/server/skill-catalog-transaction.ts | 19 ++++++++++++++++++ .../src/server/task-ledger-coordinator.ts | 19 ++++++++++++++++++ .../src/server/turn-control-coordinator.ts | 19 ++++++++++++++++++ .../src/server/usage-pricing-coordinator.ts | 19 ++++++++++++++++++ .../runtime-host/src/server/web-fetch-tool.ts | 19 ++++++++++++++++++ .../src/server/web-search-coordinator.ts | 19 ++++++++++++++++++ .../src/server/web-search-tool.ts | 19 ++++++++++++++++++ .../src/server/websocket-listener.ts | 19 ++++++++++++++++++ .../server/workspace-execution-composition.ts | 19 ++++++++++++++++++ .../src/server/workspace-resolver.ts | 19 ++++++++++++++++++ .../src/test-only/desktop-e2e-execution.ts | 19 ++++++++++++++++++ .../test-only/execution-candidate-e2e-main.ts | 19 ++++++++++++++++++ .../src/transport/framed-transport.ts | 19 ++++++++++++++++++ .../src/transport/local-ipc-framing.ts | 19 ++++++++++++++++++ .../src/transport/message-transport.ts | 19 ++++++++++++++++++ .../src/transport/websocket-transport.ts | 19 ++++++++++++++++++ packages/runtime/README.md | 19 ++++++++++++++++++ .../scripts/build-filesystem-worker.mjs | 19 ++++++++++++++++++ .../active-compaction-kernel.test.ts | 19 ++++++++++++++++++ .../active-tool-result-prune.test.ts | 19 ++++++++++++++++++ .../src/__tests__/admission-limiter.test.ts | 19 ++++++++++++++++++ .../agent-graph-supervisor-wake.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-graph-timeline.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-run-inspect.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-run-recovery.test.ts | 19 ++++++++++++++++++ .../agent-run-steering-recovery.test.ts | 19 ++++++++++++++++++ .../__tests__/agent-swarm-status-tool.test.ts | 19 ++++++++++++++++++ .../src/__tests__/ai-sdk-backend.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/ai-sdk-flow.test.ts | 19 ++++++++++++++++++ .../src/__tests__/apply-patch-profile.test.ts | 19 ++++++++++++++++++ .../src/__tests__/ask-user-question.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/async-queue.test.ts | 19 ++++++++++++++++++ .../src/__tests__/await-registry.test.ts | 19 ++++++++++++++++++ .../src/__tests__/bash-tail-buffer.test.ts | 19 ++++++++++++++++++ .../builtin-tools-file-worker.test.ts | 19 ++++++++++++++++++ .../src/__tests__/builtin-tools.test.ts | 19 ++++++++++++++++++ .../__tests__/child-process-lifecycle.test.ts | 19 ++++++++++++++++++ .../claude-subscription-runtime.test.ts | 19 ++++++++++++++++++ .../src/__tests__/code-mode-backend.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/code-mode.test.ts | 19 ++++++++++++++++++ .../__tests__/codex-oauth-enrollment.test.ts | 19 ++++++++++++++++++ .../computer-use-args-violation.test.ts | 19 ++++++++++++++++++ .../computer-use-codec-adapt.test.ts | 19 ++++++++++++++++++ .../computer-use-codec-summary.test.ts | 19 ++++++++++++++++++ .../computer-use-frame-survival.test.ts | 19 ++++++++++++++++++ .../__tests__/computer-use-list-apps.test.ts | 19 ++++++++++++++++++ .../src/__tests__/computer-use-menu.test.ts | 19 ++++++++++++++++++ .../__tests__/computer-use-model-loop.test.ts | 19 ++++++++++++++++++ .../computer-use-observation-text.test.ts | 19 ++++++++++++++++++ .../computer-use-privacy-boundary.test.ts | 19 ++++++++++++++++++ .../computer-use-provider-protocol.test.ts | 19 ++++++++++++++++++ .../src/__tests__/computer-use-query.test.ts | 19 ++++++++++++++++++ .../computer-use-schema-parity.test.ts | 19 ++++++++++++++++++ .../computer-use-screen-lock-gate.test.ts | 19 ++++++++++++++++++ .../src/__tests__/computer-use-tools.test.ts | 19 ++++++++++++++++++ .../__tests__/computer-use-wait-for.test.ts | 19 ++++++++++++++++++ .../computer-use-window-action.test.ts | 19 ++++++++++++++++++ .../computer-use-wire-schema.test.ts | 19 ++++++++++++++++++ .../configured-subagent-catalog.test.ts | 19 ++++++++++++++++++ .../src/__tests__/conformance-harness.ts | 19 ++++++++++++++++++ .../context-budget-mid-turn-policy.test.ts | 19 ++++++++++++++++++ .../context-budget-model-facts.test.ts | 19 ++++++++++++++++++ ...ext-budget-semantic-compact-policy.test.ts | 19 ++++++++++++++++++ .../src/__tests__/context-budget.test.ts | 19 ++++++++++++++++++ .../src/__tests__/context-diagnostics.test.ts | 19 ++++++++++++++++++ .../src/__tests__/continuation-replay.test.ts | 19 ++++++++++++++++++ .../src/__tests__/conversation-copy.test.ts | 19 ++++++++++++++++++ packages/runtime/src/__tests__/cost.test.ts | 19 ++++++++++++++++++ .../src/__tests__/cua-frame-state.test.ts | 19 ++++++++++++++++++ .../src/__tests__/cua-session-state.test.ts | 19 ++++++++++++++++++ .../src/__tests__/deep-research-tools.test.ts | 19 ++++++++++++++++++ .../__tests__/default-sandbox-manager.test.ts | 19 ++++++++++++++++++ .../src/__tests__/deferred-guard.test.ts | 19 ++++++++++++++++++ .../__tests__/deferred-tools-backend.test.ts | 19 ++++++++++++++++++ .../src/__tests__/deferred-tools-wire.test.ts | 19 ++++++++++++++++++ .../src/__tests__/durable-turn-harness.ts | 19 ++++++++++++++++++ .../src/__tests__/edit-replace.test.ts | 19 ++++++++++++++++++ .../execution-boundary-test-helpers.ts | 19 ++++++++++++++++++ .../src/__tests__/execution-inspect.test.ts | 19 ++++++++++++++++++ .../src/__tests__/explore-agent-tool.test.ts | 19 ++++++++++++++++++ .../src/__tests__/fake-backend.test.ts | 19 ++++++++++++++++++ .../src/__tests__/file-write-lock.test.ts | 19 ++++++++++++++++++ .../__tests__/filesystem-apply-patch.test.ts | 19 ++++++++++++++++++ .../__tests__/filesystem-authority.test.ts | 19 ++++++++++++++++++ .../filesystem-worker-client.test.ts | 19 ++++++++++++++++++ .../filesystem-worker-launch-spec.test.ts | 19 ++++++++++++++++++ .../filesystem-worker-linux-smoke.test.ts | 19 ++++++++++++++++++ .../filesystem-worker-process-runner.test.ts | 19 ++++++++++++++++++ .../__tests__/filesystem-worker-smoke.test.ts | 19 ++++++++++++++++++ .../filesystem-worker-windows-smoke.test.ts | 19 ++++++++++++++++++ .../src/__tests__/filesystem-worker.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-continuation.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-evaluator.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/goal-state.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/goal-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-turn-lifecycle.test.ts | 19 ++++++++++++++++++ .../history-compact-artifacts.test.ts | 19 ++++++++++++++++++ .../history-compact-checkpoint.test.ts | 19 ++++++++++++++++++ .../history-compact-input-fit.test.ts | 19 ++++++++++++++++++ ...istory-compact-mid-turn-checkpoint.test.ts | 19 ++++++++++++++++++ .../history-compact-summarizer.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/image-file.test.ts | 19 ++++++++++++++++++ .../__tests__/interaction-authority.test.ts | 19 ++++++++++++++++++ .../__tests__/latest-context-commit.test.ts | 19 ++++++++++++++++++ .../src/__tests__/linux-sandbox-smoke.test.ts | 19 ++++++++++++++++++ .../src/__tests__/linux-sandbox.test.ts | 19 ++++++++++++++++++ .../src/__tests__/local-web-fetch.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/loop-gate.test.ts | 19 ++++++++++++++++++ .../macos-executable-dependencies.test.ts | 19 ++++++++++++++++++ .../__tests__/macos-seatbelt-smoke.test.ts | 19 ++++++++++++++++++ .../src/__tests__/macos-seatbelt.test.ts | 19 ++++++++++++++++++ .../src/__tests__/materializer.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/mcp-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/memory-artifact-store.ts | 19 ++++++++++++++++++ .../memory-extraction-evidence.test.ts | 19 ++++++++++++++++++ .../memory-extraction-provider-prefix.test.ts | 19 ++++++++++++++++++ .../src/__tests__/memory-extraction.test.ts | 19 ++++++++++++++++++ .../mid-turn-capacity-backend.test.ts | 19 ++++++++++++++++++ .../mid-turn-capacity-compact.test.ts | 19 ++++++++++++++++++ .../__tests__/model-adapter-onerror.test.ts | 19 ++++++++++++++++++ .../model-adapter-stream-activity.test.ts | 19 ++++++++++++++++++ .../src/__tests__/model-adapter.test.ts | 19 ++++++++++++++++++ .../__tests__/model-factory-thinking.test.ts | 19 ++++++++++++++++++ .../model-factory-tool-call-index.test.ts | 19 ++++++++++++++++++ .../src/__tests__/model-fetcher.test.ts | 19 ++++++++++++++++++ .../__tests__/native-web-search-tool.test.ts | 19 ++++++++++++++++++ .../node-pty-write-lifecycle.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/oauth-login.test.ts | 19 ++++++++++++++++++ .../src/__tests__/observation-text-reader.ts | 19 ++++++++++++++++++ .../openai-codex-history-compactor.test.ts | 19 ++++++++++++++++++ .../openai-responses-continuation.test.ts | 19 ++++++++++++++++++ .../openai-responses-model-adapter.test.ts | 19 ++++++++++++++++++ ...enai-responses-plaintext-reasoning.test.ts | 19 ++++++++++++++++++ .../openai-responses-websocket.test.ts | 19 ++++++++++++++++++ .../__tests__/openai-strict-function.test.ts | 19 ++++++++++++++++++ .../__tests__/opencode-free-anonymous.test.ts | 19 ++++++++++++++++++ .../overflow-reactive-recovery.test.ts | 19 ++++++++++++++++++ .../src/__tests__/path-containment.test.ts | 19 ++++++++++++++++++ .../src/__tests__/pipe-process-driver.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/plan-mode.test.ts | 19 ++++++++++++++++++ .../pre-dispatch-refusal-ledger.test.ts | 19 ++++++++++++++++++ .../src/__tests__/prompt-composition.test.ts | 19 ++++++++++++++++++ .../__tests__/provider-conformance.test.ts | 19 ++++++++++++++++++ .../provider-contract-matrix.test.ts | 19 ++++++++++++++++++ .../src/__tests__/provider-contract-matrix.ts | 19 ++++++++++++++++++ .../__tests__/provider-contract-overrides.ts | 19 ++++++++++++++++++ .../provider-error-classification.test.ts | 19 ++++++++++++++++++ .../provider-request-telemetry.test.ts | 19 ++++++++++++++++++ .../src/__tests__/pty-process-driver.test.ts | 19 ++++++++++++++++++ .../__tests__/pty-screen-collector.test.ts | 19 ++++++++++++++++++ .../recovery-authority-equivalence.test.ts | 19 ++++++++++++++++++ .../src/__tests__/recovery-resolver.test.ts | 19 ++++++++++++++++++ .../request-customization-fetch.test.ts | 19 ++++++++++++++++++ .../src/__tests__/request-shape.test.ts | 19 ++++++++++++++++++ .../__tests__/responses-wire-contract.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/run-trace.test.ts | 19 ++++++++++++++++++ .../src/__tests__/runtime-commit-sink.test.ts | 19 ++++++++++++++++++ .../runtime-continuation-crash.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-continuation.test.ts | 19 ++++++++++++++++++ .../runtime-event-read-model.test.ts | 19 ++++++++++++++++++ .../runtime-kernel-interaction.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-ledger-repair.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-resume-crash.test.ts | 19 ++++++++++++++++++ .../src/__tests__/runtime-resume.test.ts | 19 ++++++++++++++++++ ...time-runner-continuation-admission.test.ts | 19 ++++++++++++++++++ .../src/__tests__/runtime-runner.test.ts | 19 ++++++++++++++++++ .../sandbox-boundary-restart-recovery.test.ts | 19 ++++++++++++++++++ .../src/__tests__/sandbox-detect.test.ts | 19 ++++++++++++++++++ .../src/__tests__/sandbox-diagnostics.test.ts | 19 ++++++++++++++++++ .../src/__tests__/sandbox-manager.test.ts | 19 ++++++++++++++++++ .../src/__tests__/semantic-compact.test.ts | 19 ++++++++++++++++++ .../session-manager-terminal-ledger.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-manager.test.ts | 19 ++++++++++++++++++ .../session-projection-helpers.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-title.test.ts | 19 ++++++++++++++++++ .../session-trace-projection.test.ts | 19 ++++++++++++++++++ .../src/__tests__/shell-detect.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/shell-exec.test.ts | 19 ++++++++++++++++++ .../src/__tests__/shell-run-manager.test.ts | 19 ++++++++++++++++++ .../__tests__/shell-run-tool-result.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/shell-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/skill-invocation.test.ts | 19 ++++++++++++++++++ .../src/__tests__/skills-governance.test.ts | 19 ++++++++++++++++++ packages/runtime/src/__tests__/skills.test.ts | 19 ++++++++++++++++++ .../__tests__/stream-graph-admission.test.ts | 19 ++++++++++++++++++ .../stream-graph-coordinator.test.ts | 19 ++++++++++++++++++ .../__tests__/stream-graph-handoff.test.ts | 19 ++++++++++++++++++ .../__tests__/stream-graph-projection.test.ts | 19 ++++++++++++++++++ .../__tests__/stream-graph-read-model.test.ts | 19 ++++++++++++++++++ .../__tests__/stream-graph-readiness.test.ts | 19 ++++++++++++++++++ .../stream-graph-schedule-reconcile.test.ts | 19 ++++++++++++++++++ .../stream-graph-supervisor-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/stream-graph-trace.test.ts | 19 ++++++++++++++++++ .../src/__tests__/stream-watchdog.test.ts | 19 ++++++++++++++++++ .../src/__tests__/subagent-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/subscription-auth.test.ts | 19 ++++++++++++++++++ .../subscription-credentials.test.ts | 19 ++++++++++++++++++ .../subscription-model-fetch.test.ts | 19 ++++++++++++++++++ .../src/__tests__/swarm-orchestration.test.ts | 19 ++++++++++++++++++ .../synthesis-cache-artifacts.test.ts | 19 ++++++++++++++++++ .../src/__tests__/task-ledger-tools.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tavily-search.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-args-violation.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-artifacts.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-availability.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-catalog-derive.test.ts | 19 ++++++++++++++++++ .../src/__tests__/tool-output-delta.test.ts | 19 ++++++++++++++++++ .../runtime/src/__tests__/tool-output.test.ts | 19 ++++++++++++++++++ ...-result-archive-capability-backend.test.ts | 19 ++++++++++++++++++ .../tool-result-archive-resource.test.ts | 19 ++++++++++++++++++ .../tool-runtime-argument-ownership.test.ts | 19 ++++++++++++++++++ .../tool-runtime-durable-boundary.test.ts | 19 ++++++++++++++++++ .../tool-runtime-sandbox-boundary.test.ts | 19 ++++++++++++++++++ .../__tests__/tool-runtime-settlement.test.ts | 19 ++++++++++++++++++ .../tool-runtime-sqlite-boundary.test.ts | 19 ++++++++++++++++++ .../tool-runtime-turn-close-outcome.test.ts | 19 ++++++++++++++++++ .../src/__tests__/web-fetch-tool.test.ts | 19 ++++++++++++++++++ .../__tests__/windows-broker-errors.test.ts | 19 ++++++++++++++++++ .../__tests__/windows-sandbox-profile.test.ts | 19 ++++++++++++++++++ .../src/__tests__/windows-sandbox.test.ts | 19 ++++++++++++++++++ .../src/__tests__/workspace-executor.test.ts | 19 ++++++++++++++++++ .../__tests__/workspace-instructions.test.ts | 19 ++++++++++++++++++ .../__tests__/xai-oauth-enrollment.test.ts | 19 ++++++++++++++++++ .../runtime/src/active-compaction-kernel.ts | 19 ++++++++++++++++++ .../runtime/src/active-tool-result-prune.ts | 19 ++++++++++++++++++ .../src/active-tool-result-working-set.ts | 19 ++++++++++++++++++ packages/runtime/src/admission-limiter.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-catalog.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-flow.ts | 19 ++++++++++++++++++ .../src/agent-graph-supervisor-wake.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-graph-timeline.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-run-inspect.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-run-recovery.ts | 19 ++++++++++++++++++ packages/runtime/src/agent-run.ts | 19 ++++++++++++++++++ .../runtime/src/agent-swarm-status-tool.ts | 19 ++++++++++++++++++ packages/runtime/src/ai-sdk-backend.ts | 19 ++++++++++++++++++ .../runtime/src/ai-sdk-compaction-contract.ts | 19 ++++++++++++++++++ packages/runtime/src/ai-sdk-compaction.ts | 19 ++++++++++++++++++ packages/runtime/src/ai-sdk-flow.ts | 19 ++++++++++++++++++ packages/runtime/src/apply-patch-batch.ts | 19 ++++++++++++++++++ packages/runtime/src/apply-patch-file.ts | 19 ++++++++++++++++++ packages/runtime/src/apply-patch-profile.ts | 19 ++++++++++++++++++ packages/runtime/src/archive-read-tool.ts | 19 ++++++++++++++++++ .../runtime/src/ask-user-question-tool.ts | 19 ++++++++++++++++++ packages/runtime/src/async-queue.ts | 19 ++++++++++++++++++ packages/runtime/src/await-registry.ts | 19 ++++++++++++++++++ packages/runtime/src/bash-model-output.ts | 19 ++++++++++++++++++ packages/runtime/src/bash-tail-buffer.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/base-adapter.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/bot-registry.test.ts | 19 ++++++++++++++++++ .../bots/__tests__/bot-user-allowlist.test.ts | 19 ++++++++++++++++++ .../bots/__tests__/dingtalk-bridge.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/discord-bridge.test.ts | 19 ++++++++++++++++++ .../__tests__/gateway-bridge-base.test.ts | 19 ++++++++++++++++++ .../bots/__tests__/im-channel-mapping.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/proxied-fetch.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/qq-bridge.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/slack-bridge.test.ts | 19 ++++++++++++++++++ .../telegram-ratelimit-retry.test.ts | 19 ++++++++++++++++++ .../__tests__/telegram-reply-stream.test.ts | 19 ++++++++++++++++++ .../bots/__tests__/telegram-reply-to.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/telegram-utf16.test.ts | 19 ++++++++++++++++++ .../src/bots/__tests__/wechat-bridge.test.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/base-adapter.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/bot-registry.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/bot-test.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/dingtalk-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/discord-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/feishu-bridge.ts | 19 ++++++++++++++++++ .../runtime/src/bots/gateway-bridge-base.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/index.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/proxied-fetch.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/qq-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/slack-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/telegram-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/types.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/wechat-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/wecom-bridge.ts | 19 ++++++++++++++++++ packages/runtime/src/bots/ws-bridge-base.ts | 19 ++++++++++++++++++ packages/runtime/src/builtin-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/child-agent-progress.ts | 19 ++++++++++++++++++ packages/runtime/src/child-fd-input.ts | 19 ++++++++++++++++++ .../runtime/src/child-process-lifecycle.ts | 19 ++++++++++++++++++ packages/runtime/src/code-mode.ts | 19 ++++++++++++++++++ .../runtime/src/codex-oauth-enrollment.ts | 19 ++++++++++++++++++ packages/runtime/src/codex-v4a-patch.ts | 19 ++++++++++++++++++ packages/runtime/src/compaction-boundary.ts | 19 ++++++++++++++++++ packages/runtime/src/completion-latch.ts | 19 ++++++++++++++++++ packages/runtime/src/computer-use-codec.ts | 19 ++++++++++++++++++ .../src/computer-use-observation-text.ts | 19 ++++++++++++++++++ packages/runtime/src/computer-use-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/computer-use-types.ts | 19 ++++++++++++++++++ .../src/configured-subagent-catalog.ts | 19 ++++++++++++++++++ .../runtime/src/connection-effect-fetch.ts | 19 ++++++++++++++++++ .../runtime/src/connection-effect-outcome.ts | 19 ++++++++++++++++++ .../runtime/src/context-budget-helpers.ts | 19 ++++++++++++++++++ packages/runtime/src/context-budget-policy.ts | 19 ++++++++++++++++++ packages/runtime/src/context-budget.ts | 19 ++++++++++++++++++ packages/runtime/src/context-diagnostics.ts | 19 ++++++++++++++++++ packages/runtime/src/context-source-ref.ts | 19 ++++++++++++++++++ packages/runtime/src/continuation-replay.ts | 19 ++++++++++++++++++ packages/runtime/src/continuation-safety.ts | 19 ++++++++++++++++++ packages/runtime/src/conversation-copy.ts | 19 ++++++++++++++++++ packages/runtime/src/cua-frame-state.ts | 19 ++++++++++++++++++ packages/runtime/src/cua-session-state.ts | 19 ++++++++++++++++++ packages/runtime/src/deep-research-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/delivery-ack-queue.ts | 19 ++++++++++++++++++ packages/runtime/src/execution-inspect.ts | 19 ++++++++++++++++++ packages/runtime/src/explore-agent-tool.ts | 19 ++++++++++++++++++ .../runtime/src/file-tool-model-output.ts | 19 ++++++++++++++++++ packages/runtime/src/file-write-lock.ts | 19 ++++++++++++++++++ packages/runtime/src/filesystem-executor.ts | 19 ++++++++++++++++++ .../runtime/src/filesystem-worker/client.ts | 19 ++++++++++++++++++ .../runtime/src/filesystem-worker/index.ts | 19 ++++++++++++++++++ .../src/filesystem-worker/launch-spec.ts | 19 ++++++++++++++++++ .../macos-executable-dependencies.ts | 19 ++++++++++++++++++ .../src/filesystem-worker/operations.ts | 19 ++++++++++++++++++ .../src/filesystem-worker/process-runner.ts | 19 ++++++++++++++++++ .../runtime/src/filesystem-worker/protocol.ts | 19 ++++++++++++++++++ .../filesystem-worker/resource-resolver.ts | 19 ++++++++++++++++++ .../src/filesystem-worker/sandbox-paths.ts | 19 ++++++++++++++++++ .../src/filesystem-worker/worker-entry.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-continuation.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-evaluator.ts | 19 ++++++++++++++++++ .../runtime/src/goal-session-close-fence.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-state.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-task-gate-policy.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/goal-turn-lifecycle.ts | 19 ++++++++++++++++++ packages/runtime/src/graph-mode.ts | 19 ++++++++++++++++++ .../runtime/src/history-compact-artifacts.ts | 19 ++++++++++++++++++ .../history-compact-checkpoint-coordinator.ts | 19 ++++++++++++++++++ .../runtime/src/history-compact-checkpoint.ts | 19 ++++++++++++++++++ packages/runtime/src/history-compact-error.ts | 19 ++++++++++++++++++ .../runtime/src/history-compact-input-fit.ts | 19 ++++++++++++++++++ .../runtime/src/history-compact-ledger.ts | 19 ++++++++++++++++++ .../runtime/src/history-compact-summarizer.ts | 19 ++++++++++++++++++ .../src/history-compact-summary-validation.ts | 19 ++++++++++++++++++ packages/runtime/src/history-compact.ts | 19 ++++++++++++++++++ packages/runtime/src/http-response.ts | 19 ++++++++++++++++++ packages/runtime/src/image-file.ts | 19 ++++++++++++++++++ packages/runtime/src/interaction-authority.ts | 19 ++++++++++++++++++ packages/runtime/src/invocation-context.ts | 19 ++++++++++++++++++ .../runtime/src/latest-context-snapshot.ts | 19 ++++++++++++++++++ packages/runtime/src/local-web-fetch.ts | 19 ++++++++++++++++++ packages/runtime/src/managed-skill-sources.ts | 19 ++++++++++++++++++ packages/runtime/src/materializer.ts | 19 ++++++++++++++++++ packages/runtime/src/mcp-tools.ts | 19 ++++++++++++++++++ .../runtime/src/memory-extraction-evidence.ts | 19 ++++++++++++++++++ .../runtime/src/memory-extraction-proposal.ts | 19 ++++++++++++++++++ packages/runtime/src/memory-extraction.ts | 19 ++++++++++++++++++ packages/runtime/src/message-authority.ts | 19 ++++++++++++++++++ .../runtime/src/mid-turn-capacity-compact.ts | 19 ++++++++++++++++++ packages/runtime/src/model-adapter.ts | 19 ++++++++++++++++++ packages/runtime/src/model-factory.ts | 19 ++++++++++++++++++ packages/runtime/src/model-fetcher.ts | 19 ++++++++++++++++++ packages/runtime/src/model-history.ts | 19 ++++++++++++++++++ packages/runtime/src/model-runtime.ts | 19 ++++++++++++++++++ .../runtime/src/native-web-search-tool.ts | 19 ++++++++++++++++++ .../network/__tests__/bypass-matcher.test.ts | 19 ++++++++++++++++++ .../src/network/__tests__/proxy-env.test.ts | 19 ++++++++++++++++++ .../network/__tests__/proxy-parser.test.ts | 19 ++++++++++++++++++ .../src/network/__tests__/proxy-test.test.ts | 19 ++++++++++++++++++ .../__tests__/scoped-fetch-transport.test.ts | 19 ++++++++++++++++++ .../runtime/src/network/active-proxy-state.ts | 19 ++++++++++++++++++ .../runtime/src/network/bypass-matcher.ts | 19 ++++++++++++++++++ .../runtime/src/network/proxy-dispatcher.ts | 19 ++++++++++++++++++ packages/runtime/src/network/proxy-env.ts | 19 ++++++++++++++++++ packages/runtime/src/network/proxy-parser.ts | 19 ++++++++++++++++++ packages/runtime/src/network/proxy-test.ts | 19 ++++++++++++++++++ .../src/network/scoped-fetch-transport.ts | 19 ++++++++++++++++++ packages/runtime/src/oauth-login.ts | 19 ++++++++++++++++++ .../runtime/src/oauth-provider-contracts.ts | 19 ++++++++++++++++++ packages/runtime/src/openai-apply-patch.ts | 19 ++++++++++++++++++ .../src/openai-chat-reasoning-transport.ts | 19 ++++++++++++++++++ .../src/openai-codex-history-compactor.ts | 19 ++++++++++++++++++ .../src/openai-responses-continuation.ts | 19 ++++++++++++++++++ .../runtime/src/openai-responses-websocket.ts | 19 ++++++++++++++++++ .../runtime/src/openai-strict-function.ts | 19 ++++++++++++++++++ packages/runtime/src/path-containment.ts | 19 ++++++++++++++++++ packages/runtime/src/pipe-process-driver.ts | 19 ++++++++++++++++++ packages/runtime/src/pipe-tail-collector.ts | 19 ++++++++++++++++++ packages/runtime/src/plan-mode.ts | 19 ++++++++++++++++++ packages/runtime/src/plan-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/prior-run-context.ts | 19 ++++++++++++++++++ .../runtime/src/process-tree-terminator.ts | 19 ++++++++++++++++++ packages/runtime/src/prompt-composition.ts | 19 ++++++++++++++++++ .../src/provider-error-classification.ts | 19 ++++++++++++++++++ .../runtime/src/provider-request-telemetry.ts | 19 ++++++++++++++++++ packages/runtime/src/provider-urls.ts | 19 ++++++++++++++++++ packages/runtime/src/pty-process-driver.ts | 19 ++++++++++++++++++ packages/runtime/src/pty-screen-collector.ts | 19 ++++++++++++++++++ packages/runtime/src/pty-stack.ts | 19 ++++++++++++++++++ packages/runtime/src/recovery-resolver.ts | 19 ++++++++++++++++++ .../src/request-customization-fetch.ts | 19 ++++++++++++++++++ packages/runtime/src/request-projection.ts | 19 ++++++++++++++++++ packages/runtime/src/request-shape.ts | 19 ++++++++++++++++++ packages/runtime/src/run-trace.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-commit-sink.ts | 19 ++++++++++++++++++ .../src/runtime-continuation-admission.ts | 19 ++++++++++++++++++ .../runtime/src/runtime-event-backfill.ts | 19 ++++++++++++++++++ .../src/runtime-event-history-search.ts | 19 ++++++++++++++++++ .../runtime/src/runtime-event-read-model.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-kernel.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-ledger-repair.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-read-model.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-resume.ts | 19 ++++++++++++++++++ packages/runtime/src/runtime-runner.ts | 19 ++++++++++++++++++ .../src/sandbox-boundary-declaration.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox-boundary-path.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox-boundary-tool.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/README.md | 19 ++++++++++++++++++ .../src/sandbox/default-sandbox-manager.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/detect.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/diagnostics.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/errors.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/index.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/linux-capability.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/linux-profile-path.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/linux-sandbox.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/macos-seatbelt.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/sandbox-manager.ts | 19 ++++++++++++++++++ packages/runtime/src/sandbox/types.ts | 19 ++++++++++++++++++ .../src/sandbox/windows-broker-errors.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/windows-profile.ts | 19 ++++++++++++++++++ .../runtime/src/sandbox/windows-sandbox.ts | 19 ++++++++++++++++++ packages/runtime/src/scheduled-task-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/semantic-compact.ts | 19 ++++++++++++++++++ packages/runtime/src/session-manager.ts | 19 ++++++++++++++++++ .../runtime/src/session-projection-helpers.ts | 19 ++++++++++++++++++ packages/runtime/src/session-recap.ts | 19 ++++++++++++++++++ packages/runtime/src/session-title.ts | 19 ++++++++++++++++++ .../runtime/src/session-trace-projection.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-detect.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-exec.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-run-contract.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-run-manager.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-run-tool-result.ts | 19 ++++++++++++++++++ packages/runtime/src/shell-tools.ts | 19 ++++++++++++++++++ .../runtime/src/skill-invocation-receipt.ts | 19 ++++++++++++++++++ packages/runtime/src/skill-invocation.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-agent-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-context.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-discovery.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-governance.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-metadata.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-starter.ts | 19 ++++++++++++++++++ packages/runtime/src/skills-state.ts | 19 ++++++++++++++++++ packages/runtime/src/skills.ts | 19 ++++++++++++++++++ .../runtime/src/stream-graph-admission.ts | 19 ++++++++++++++++++ .../runtime/src/stream-graph-coordinator.ts | 19 ++++++++++++++++++ packages/runtime/src/stream-graph-dispatch.ts | 19 ++++++++++++++++++ packages/runtime/src/stream-graph-handoff.ts | 19 ++++++++++++++++++ packages/runtime/src/stream-graph-identity.ts | 19 ++++++++++++++++++ .../runtime/src/stream-graph-projection.ts | 19 ++++++++++++++++++ .../runtime/src/stream-graph-read-model.ts | 19 ++++++++++++++++++ .../runtime/src/stream-graph-readiness.ts | 19 ++++++++++++++++++ .../src/stream-graph-schedule-reconcile.ts | 19 ++++++++++++++++++ .../src/stream-graph-supervisor-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/stream-graph-trace.ts | 19 ++++++++++++++++++ packages/runtime/src/stream-watchdog.ts | 19 ++++++++++++++++++ packages/runtime/src/subagent-execution.ts | 19 ++++++++++++++++++ packages/runtime/src/subagent-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/subscription-auth.ts | 19 ++++++++++++++++++ .../runtime/src/subscription-credentials.ts | 19 ++++++++++++++++++ .../runtime/src/subscription-model-fetch.ts | 19 ++++++++++++++++++ packages/runtime/src/swarm-mode.ts | 19 ++++++++++++++++++ .../runtime/src/synthesis-cache-artifacts.ts | 19 ++++++++++++++++++ packages/runtime/src/synthesis-cache.ts | 19 ++++++++++++++++++ .../src/system-prompt/main-session-prompt.ts | 19 ++++++++++++++++++ .../system-prompt/personalization-prompt.ts | 19 ++++++++++++++++++ .../src/system-prompt/project-context.ts | 19 ++++++++++++++++++ .../system-prompt/sandbox-context-prompt.ts | 19 ++++++++++++++++++ .../session-environment-prompt.ts | 19 ++++++++++++++++++ .../system-prompt/workspace-instructions.ts | 19 ++++++++++++++++++ packages/runtime/src/task-ledger-tools.ts | 19 ++++++++++++++++++ packages/runtime/src/tavily-search.ts | 19 ++++++++++++++++++ .../runtime/src/telemetry/builtin-pricing.ts | 19 ++++++++++++++++++ packages/runtime/src/telemetry/cost.ts | 19 ++++++++++++++++++ packages/runtime/src/telemetry/index.ts | 19 ++++++++++++++++++ .../runtime/src/telemetry/llm-call-usage.ts | 19 ++++++++++++++++++ packages/runtime/src/telemetry/pricing.ts | 19 ++++++++++++++++++ .../runtime/src/telemetry/record-llm-call.ts | 19 ++++++++++++++++++ .../src/telemetry/record-tool-invocation.ts | 19 ++++++++++++++++++ packages/runtime/src/telemetry/types.ts | 19 ++++++++++++++++++ packages/runtime/src/terminal-run-commit.ts | 19 ++++++++++++++++++ packages/runtime/src/test-connection.ts | 19 ++++++++++++++++++ packages/runtime/src/test-helpers.ts | 19 ++++++++++++++++++ .../runtime/src/test-only/fake-backend.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-artifacts.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-availability.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-catalog-derive.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-free-model-call.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-output-delta.ts | 19 ++++++++++++++++++ .../src/tool-result-archive-capability.ts | 19 ++++++++++++++++++ .../src/tool-result-archive-resource.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-result-archive.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-result-output.ts | 19 ++++++++++++++++++ packages/runtime/src/tool-runtime.ts | 19 ++++++++++++++++++ packages/runtime/src/unified-diff.ts | 19 ++++++++++++++++++ packages/runtime/src/web-fetch-tool.ts | 19 ++++++++++++++++++ packages/runtime/src/web-search-tool.ts | 19 ++++++++++++++++++ packages/runtime/src/workspace-executor.ts | 19 ++++++++++++++++++ packages/runtime/src/xai-oauth-enrollment.ts | 19 ++++++++++++++++++ .../activation-secret-injector.test.ts | 19 ++++++++++++++++++ .../src/__tests__/agent-graph-epochs.test.ts | 19 ++++++++++++++++++ .../agent-graph-intent-claims.test.ts | 19 ++++++++++++++++++ .../agent-graph-schedule-updates.test.ts | 19 ++++++++++++++++++ ...nt-graph-supervisor-root-admission.test.ts | 19 ++++++++++++++++++ .../agent-graph-supervisor-wakes.test.ts | 19 ++++++++++++++++++ .../agent-graph-timeline-metadata.test.ts | 19 ++++++++++++++++++ .../__tests__/artifact-attachments.test.ts | 19 ++++++++++++++++++ .../src/__tests__/artifact-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/artifact-stores.test.ts | 19 ++++++++++++++++++ .../__tests__/artifact-writer-lock.test.ts | 19 ++++++++++++++++++ .../bundled-git-workspace-smoke.test.ts | 19 ++++++++++++++++++ ...claimed-agent-graph-root-admission.test.ts | 19 ++++++++++++++++++ .../claude-code-session-adapter.test.ts | 19 ++++++++++++++++++ .../claude-code-transcript-lineage.test.ts | 19 ++++++++++++++++++ .../__tests__/codex-session-adapter.test.ts | 19 ++++++++++++++++++ .../src/__tests__/config-transfer.test.ts | 19 ++++++++++++++++++ .../src/__tests__/credential-store.test.ts | 19 ++++++++++++++++++ .../__tests__/daily-review-authority.test.ts | 19 ++++++++++++++++++ .../dugite-native-environment.test.ts | 19 ++++++++++++++++++ .../external-session-importer.test.ts | 19 ++++++++++++++++++ .../fixtures/artifact-writer-lock-holder.ts | 19 ++++++++++++++++++ .../src/__tests__/fixtures/git-repository.ts | 19 ++++++++++++++++++ .../git-workspace-service-crash-child.ts | 19 ++++++++++++++++++ ...aged-dependency-environment-crash-child.ts | 19 ++++++++++++++++++ ...aged-dependency-environment-owner-child.ts | 19 ++++++++++++++++++ .../fixtures/root-initialization-race.ts | 19 ++++++++++++++++++ .../__tests__/fixtures/root-lock-holder.ts | 19 ++++++++++++++++++ .../src/__tests__/fixtures/root-resolver.ts | 19 ++++++++++++++++++ .../session-bundle-hydration-binding-crash.ts | 19 ++++++++++++++++++ ...on-bundle-hydration-owner-write-failure.ts | 19 ++++++++++++++++++ .../fixtures/session-bundle-inspect-child.ts | 19 ++++++++++++++++++ .../session-bundle-inspect-source-mutator.ts | 19 ++++++++++++++++++ ...ession-bundle-pack-destination-replacer.ts | 19 ++++++++++++++++++ .../session-bundle-pack-link-replacer.ts | 19 ++++++++++++++++++ ...session-bundle-pack-linked-temp-remover.ts | 19 ++++++++++++++++++ .../session-bundle-pack-temp-replacer.ts | 19 ++++++++++++++++++ .../settle-sandbox-boundary-worker.ts | 19 ++++++++++++++++++ .../sqlite-recovery-concurrency-child.ts | 19 ++++++++++++++++++ .../fixtures/work-board-cas-worker.ts | 19 ++++++++++++++++++ .../__tests__/foreign-session-store.test.ts | 19 ++++++++++++++++++ .../__tests__/git-workspace-service.test.ts | 19 ++++++++++++++++++ .../git-worktree-child-executor.test.ts | 19 ++++++++++++++++++ .../src/__tests__/goal-authority.test.ts | 19 ++++++++++++++++++ .../__tests__/legacy-cron-expression.test.ts | 19 ++++++++++++++++++ ...naged-dependency-environment-crash.test.ts | 19 ++++++++++++++++++ .../managed-dependency-environment.test.ts | 19 ++++++++++++++++++ .../__tests__/managed-secret-store.test.ts | 19 ++++++++++++++++++ .../managed-workspace-baseline.test.ts | 19 ++++++++++++++++++ ...space-execution-authority-internal.test.ts | 19 ++++++++++++++++++ .../__tests__/managed-workspace-owner.test.ts | 19 ++++++++++++++++++ ...d-workspace-worker-bridge-internal.test.ts | 19 ++++++++++++++++++ .../storage/src/__tests__/marker-file.test.ts | 19 ++++++++++++++++++ .../src/__tests__/mcp-config-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/memory-bundle-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/model-call-ledger.test.ts | 19 ++++++++++++++++++ .../operational-state-backup.test.ts | 19 ++++++++++++++++++ .../__tests__/operational-state-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/pet-pack-store.test.ts | 19 ++++++++++++++++++ .../project-catalog-authority.test.ts | 19 ++++++++++++++++++ .../src/__tests__/project-catalog.test.ts | 19 ++++++++++++++++++ .../provider-request-capture-artifact.test.ts | 19 ++++++++++++++++++ .../recovery-persistence-authority.test.ts | 19 ++++++++++++++++++ .../regenerate-root-admission.test.ts | 19 ++++++++++++++++++ .../src/__tests__/root-authority.test.ts | 19 ++++++++++++++++++ .../root-turn-admission-normalization.test.ts | 19 ++++++++++++++++++ .../__tests__/runtime-policy-stores.test.ts | 19 ++++++++++++++++++ .../session-bundle-canonical-tree.test.ts | 19 ++++++++++++++++++ .../__tests__/session-bundle-contract.test.ts | 19 ++++++++++++++++++ .../session-bundle-file-service.test.ts | 19 ++++++++++++++++++ .../__tests__/session-bundle-manifest.test.ts | 19 ++++++++++++++++++ .../__tests__/session-bundle-policy.test.ts | 19 ++++++++++++++++++ .../__tests__/session-bundle-ustar.test.ts | 19 ++++++++++++++++++ .../src/__tests__/session-store.test.ts | 19 ++++++++++++++++++ .../settings-store-onboarding.test.ts | 19 ++++++++++++++++++ .../__tests__/settings-store-usage.test.ts | 19 ++++++++++++++++++ .../src/__tests__/shell-run-authority.test.ts | 19 ++++++++++++++++++ .../sqlite-core-execution-store.test.ts | 19 ++++++++++++++++++ .../sqlite-long-term-memory-crash.test.ts | 19 ++++++++++++++++++ .../sqlite-long-term-memory-store.test.ts | 19 ++++++++++++++++++ .../sqlite-recovery-concurrency.test.ts | 19 ++++++++++++++++++ .../__tests__/sqlite-runtime-crash.test.ts | 19 ++++++++++++++++++ .../__tests__/sqlite-runtime-schema.test.ts | 19 ++++++++++++++++++ .../__tests__/sqlite-runtime-store.test.ts | 19 ++++++++++++++++++ .../sqlite-session-metadata-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/sqlite-usage-schema.test.ts | 19 ++++++++++++++++++ .../__tests__/sqlite-workflow-store.test.ts | 19 ++++++++++++++++++ .../__tests__/state-root-composition.test.ts | 19 ++++++++++++++++++ .../storage-writer-composition.test.ts | 19 ++++++++++++++++++ .../__tests__/task-ledger-authority.test.ts | 19 ++++++++++++++++++ .../src/__tests__/usage-stores.test.ts | 19 ++++++++++++++++++ .../src/__tests__/work-board-store.test.ts | 19 ++++++++++++++++++ .../src/__tests__/workspace-identity.test.ts | 19 ++++++++++++++++++ .../src/__tests__/workspace-root.test.ts | 19 ++++++++++++++++++ ...pace-version-authority-persistence.test.ts | 19 ++++++++++++++++++ .../storage/src/__tests__/write-queue.test.ts | 19 ++++++++++++++++++ .../storage/src/activation-secret-injector.ts | 19 ++++++++++++++++++ .../storage/src/agent-graph-control-store.ts | 19 ++++++++++++++++++ packages/storage/src/agent-run-store.ts | 19 ++++++++++++++++++ packages/storage/src/artifact-attachments.ts | 19 ++++++++++++++++++ .../storage/src/artifact-metadata-codec.ts | 19 ++++++++++++++++++ .../src/artifact-metadata-repository.ts | 19 ++++++++++++++++++ .../storage/src/artifact-storage-layout.ts | 19 ++++++++++++++++++ packages/storage/src/artifact-store.ts | 19 ++++++++++++++++++ packages/storage/src/artifact-stores.ts | 19 ++++++++++++++++++ .../src/artifact-writer-bootstrap-lock.ts | 19 ++++++++++++++++++ packages/storage/src/artifact-writer-lock.ts | 19 ++++++++++++++++++ packages/storage/src/bounded-evidence.ts | 19 ++++++++++++++++++ .../src/claude-code-session-adapter.ts | 19 ++++++++++++++++++ .../src/claude-code-transcript-lineage.ts | 19 ++++++++++++++++++ packages/storage/src/codex-session-adapter.ts | 19 ++++++++++++++++++ packages/storage/src/config-transfer.ts | 19 ++++++++++++++++++ .../src/conversation-operational-state.ts | 19 ++++++++++++++++++ packages/storage/src/credential-store.ts | 19 ++++++++++++++++++ .../storage/src/daily-review-authority.ts | 19 ++++++++++++++++++ .../storage/src/deep-research-authority.ts | 19 ++++++++++++++++++ packages/storage/src/deep-research-store.ts | 19 ++++++++++++++++++ .../storage/src/dugite-native-environment.ts | 19 ++++++++++++++++++ .../encrypted-file-managed-secret-store.ts | 19 ++++++++++++++++++ .../storage/src/execution-record-codec.ts | 19 ++++++++++++++++++ packages/storage/src/execution-stores.ts | 19 ++++++++++++++++++ .../storage/src/external-session-adapters.ts | 19 ++++++++++++++++++ .../storage/src/external-session-importer.ts | 19 ++++++++++++++++++ packages/storage/src/external-sessions.ts | 19 ++++++++++++++++++ packages/storage/src/failure-utils.ts | 19 ++++++++++++++++++ packages/storage/src/file-update-lock.ts | 19 ++++++++++++++++++ packages/storage/src/foreign-session-store.ts | 19 ++++++++++++++++++ .../storage/src/fs-native-extensions.d.ts | 19 ++++++++++++++++++ packages/storage/src/git-entry.ts | 19 ++++++++++++++++++ packages/storage/src/git-workspace-service.ts | 19 ++++++++++++++++++ .../src/git-worktree-child-executor.ts | 19 ++++++++++++++++++ packages/storage/src/goal-authority.ts | 19 ++++++++++++++++++ packages/storage/src/index.ts | 19 ++++++++++++++++++ .../storage/src/interaction-store-public.ts | 19 ++++++++++++++++++ packages/storage/src/interaction-store.ts | 19 ++++++++++++++++++ .../storage/src/legacy-cron-expression.ts | 19 ++++++++++++++++++ .../storage/src/long-term-memory-store.ts | 19 ++++++++++++++++++ ...ged-baseline-receipt-authority-internal.ts | 19 ++++++++++++++++++ .../src/managed-dependency-environment.ts | 19 ++++++++++++++++++ packages/storage/src/managed-secret-store.ts | 19 ++++++++++++++++++ ...-workspace-execution-authority-internal.ts | 19 ++++++++++++++++++ .../storage/src/managed-workspace-owner.ts | 19 ++++++++++++++++++ ...anaged-workspace-worker-bridge-internal.ts | 19 ++++++++++++++++++ packages/storage/src/marker-file.ts | 19 ++++++++++++++++++ packages/storage/src/mcp-config-store.ts | 19 ++++++++++++++++++ packages/storage/src/memory-bundle-io.ts | 19 ++++++++++++++++++ packages/storage/src/memory-bundle-model.ts | 19 ++++++++++++++++++ packages/storage/src/memory-bundle-store.ts | 19 ++++++++++++++++++ packages/storage/src/message-receipt-store.ts | 19 ++++++++++++++++++ packages/storage/src/model-call-ledger.ts | 19 ++++++++++++++++++ .../storage/src/operational-state-backup.ts | 19 ++++++++++++++++++ .../storage/src/operational-state-store.ts | 19 ++++++++++++++++++ .../storage/src/operational-target-schema.ts | 19 ++++++++++++++++++ packages/storage/src/pet-pack-store.ts | 19 ++++++++++++++++++ packages/storage/src/plan-authority.ts | 19 ++++++++++++++++++ packages/storage/src/plan-store.ts | 19 ++++++++++++++++++ packages/storage/src/pricing-store.ts | 19 ++++++++++++++++++ .../storage/src/project-catalog-authority.ts | 19 ++++++++++++++++++ packages/storage/src/project-catalog.ts | 19 ++++++++++++++++++ .../src/provider-request-capture-artifact.ts | 19 ++++++++++++++++++ packages/storage/src/root-authority.ts | 19 ++++++++++++++++++ .../storage/src/runtime-event-authority.ts | 19 ++++++++++++++++++ .../storage/src/runtime-event-invariants.ts | 19 ++++++++++++++++++ .../storage/src/runtime-event-persistence.ts | 19 ++++++++++++++++++ packages/storage/src/runtime-policy-stores.ts | 19 ++++++++++++++++++ packages/storage/src/runtime-policy/codec.ts | 19 ++++++++++++++++++ .../connection-catalog-document.ts | 19 ++++++++++++++++++ .../storage/src/runtime-policy/coordinator.ts | 19 ++++++++++++++++++ .../credential-vault-document.ts | 19 ++++++++++++++++++ .../storage/src/runtime-policy/document-io.ts | 19 ++++++++++++++++++ packages/storage/src/runtime-policy/errors.ts | 19 ++++++++++++++++++ .../runtime-policy/onboarding-transaction.ts | 19 ++++++++++++++++++ .../storage/src/runtime-policy/operations.ts | 19 ++++++++++++++++++ .../src/runtime-policy/policy-document.ts | 19 ++++++++++++++++++ packages/storage/src/scheduled-task-store.ts | 19 ++++++++++++++++++ .../storage/src/serialized-operation-lane.ts | 19 ++++++++++++++++++ .../src/session-bundle-canonical-tree.ts | 19 ++++++++++++++++++ .../storage/src/session-bundle-contract.ts | 19 ++++++++++++++++++ .../src/session-bundle-file-service.ts | 19 ++++++++++++++++++ .../storage/src/session-bundle-manifest.ts | 19 ++++++++++++++++++ packages/storage/src/session-bundle-policy.ts | 19 ++++++++++++++++++ packages/storage/src/session-bundle-ustar.ts | 19 ++++++++++++++++++ .../storage/src/session-conversation-copy.ts | 19 ++++++++++++++++++ packages/storage/src/session-store.ts | 19 ++++++++++++++++++ packages/storage/src/settings-store.ts | 19 ++++++++++++++++++ packages/storage/src/shell-run-authority.ts | 19 ++++++++++++++++++ packages/storage/src/shell-run-store.ts | 19 ++++++++++++++++++ .../storage/src/sqlite-artifact-metadata.ts | 19 ++++++++++++++++++ .../storage/src/sqlite-artifact-schema.ts | 19 ++++++++++++++++++ .../src/sqlite-core-execution-schema.ts | 19 ++++++++++++++++++ .../storage/src/sqlite-legacy-scheduling.ts | 19 ++++++++++++++++++ .../src/sqlite-long-term-memory-schema.ts | 19 ++++++++++++++++++ .../src/sqlite-long-term-memory-store.ts | 19 ++++++++++++++++++ packages/storage/src/sqlite-runtime-schema.ts | 19 ++++++++++++++++++ packages/storage/src/sqlite-runtime-store.ts | 19 ++++++++++++++++++ .../src/sqlite-session-catalog-query.ts | 19 ++++++++++++++++++ .../src/sqlite-session-metadata-schema.ts | 19 ++++++++++++++++++ .../src/sqlite-session-metadata-store.ts | 19 ++++++++++++++++++ packages/storage/src/sqlite-usage-schema.ts | 19 ++++++++++++++++++ packages/storage/src/sqlite-usage-store.ts | 19 ++++++++++++++++++ .../storage/src/sqlite-workflow-schema.ts | 19 ++++++++++++++++++ packages/storage/src/stable-storage.ts | 19 ++++++++++++++++++ .../storage/src/state-root-composition.ts | 19 ++++++++++++++++++ .../storage/src/storage-writer-composition.ts | 19 ++++++++++++++++++ packages/storage/src/task-ledger-authority.ts | 19 ++++++++++++++++++ .../storage/src/task-ledger-store-internal.ts | 19 ++++++++++++++++++ packages/storage/src/task-ledger-store.ts | 19 ++++++++++++++++++ packages/storage/src/telemetry-file-schema.ts | 19 ++++++++++++++++++ packages/storage/src/telemetry-repo.ts | 19 ++++++++++++++++++ packages/storage/src/usage-stats-store.ts | 19 ++++++++++++++++++ packages/storage/src/usage-stores.ts | 19 ++++++++++++++++++ packages/storage/src/work-board-list-query.ts | 19 ++++++++++++++++++ .../storage/src/work-board-store-error.ts | 19 ++++++++++++++++++ packages/storage/src/work-board-store.ts | 19 ++++++++++++++++++ packages/storage/src/workspace-identity.ts | 19 ++++++++++++++++++ packages/storage/src/workspace-root.ts | 19 ++++++++++++++++++ .../workspace-version-authority-internal.ts | 19 ++++++++++++++++++ packages/storage/src/write-queue.ts | 19 ++++++++++++++++++ .../v0.1.6-operational-state/README.md | 19 ++++++++++++++++++ packages/ui/README.md | 19 ++++++++++++++++++ .../scripts/benchmark-streaming-redaction.mjs | 19 ++++++++++++++++++ .../src/__tests__/arrival-bottom-pin.test.ts | 19 ++++++++++++++++++ .../ui/src/__tests__/astryx-i18n.test.tsx | 19 ++++++++++++++++++ .../__tests__/chat-conversation-items.test.ts | 19 ++++++++++++++++++ .../src/__tests__/chat-input-behavior.test.ts | 19 ++++++++++++++++++ .../src/__tests__/chat-scroll-anchor.test.ts | 19 ++++++++++++++++++ .../chat-turn-answer-identity.test.tsx | 19 ++++++++++++++++++ .../chat-turn-steering-order.test.ts | 19 ++++++++++++++++++ .../src/__tests__/composer-plus-menu.test.tsx | 19 ++++++++++++++++++ .../__tests__/composer-send-toggle.test.tsx | 19 ++++++++++++++++++ .../src/__tests__/interaction-queue.test.ts | 19 ++++++++++++++++++ .../__tests__/live-turn-projection.test.ts | 19 ++++++++++++++++++ .../ui/src/__tests__/markdown-body.test.ts | 19 ++++++++++++++++++ .../markdown-rhythm-contract.test.tsx | 19 ++++++++++++++++++ packages/ui/src/__tests__/materialize.test.ts | 19 ++++++++++++++++++ .../message-selection-quote-boundary.test.ts | 19 ++++++++++++++++++ .../src/__tests__/prompt-anchor-rail.test.ts | 19 ++++++++++++++++++ .../src/__tests__/search-modal-source.test.ts | 19 ++++++++++++++++++ .../__tests__/selection-quote-target.test.ts | 19 ++++++++++++++++++ .../session-context-layer-goal.test.tsx | 19 ++++++++++++++++++ .../session-history-row-actions.test.tsx | 19 ++++++++++++++++++ .../__tests__/shell-run-projection.test.ts | 19 ++++++++++++++++++ .../__tests__/sidebar-build-stamp.test.tsx | 19 ++++++++++++++++++ .../streaming-display-redaction.test.ts | 19 ++++++++++++++++++ .../ui/src/__tests__/streaming-text.test.tsx | 19 ++++++++++++++++++ .../src/__tests__/task-ledger-panel.test.ts | 19 ++++++++++++++++++ .../tool-activity-presentation.test.ts | 19 ++++++++++++++++++ .../__tests__/transcript-projection.test.ts | 19 ++++++++++++++++++ .../src/__tests__/turn-height-index.test.ts | 19 ++++++++++++++++++ .../ui/src/__tests__/turn-virtualizer.test.ts | 19 ++++++++++++++++++ .../__tests__/use-turn-virtualizer.test.tsx | 19 ++++++++++++++++++ packages/ui/src/arrival-bottom-pin.ts | 19 ++++++++++++++++++ packages/ui/src/artifact-preview-registry.ts | 19 ++++++++++++++++++ packages/ui/src/assistant-stream.ts | 19 ++++++++++++++++++ packages/ui/src/astryx-copy.ts | 19 ++++++++++++++++++ packages/ui/src/astryx-i18n.tsx | 19 ++++++++++++++++++ packages/ui/src/attachment-kinds.tsx | 19 ++++++++++++++++++ packages/ui/src/bot-brand-logo.tsx | 19 ++++++++++++++++++ packages/ui/src/bot-brand.ts | 19 ++++++++++++++++++ packages/ui/src/capability-audit-strip.tsx | 19 ++++++++++++++++++ packages/ui/src/chat-conversation-items.ts | 19 ++++++++++++++++++ packages/ui/src/chat-display-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/chat-empty-hero.tsx | 19 ++++++++++++++++++ packages/ui/src/chat-input-behavior.ts | 19 ++++++++++++++++++ packages/ui/src/chat-model-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/chat-model-switcher.tsx | 19 ++++++++++++++++++ packages/ui/src/chat-scroll-anchor.ts | 19 ++++++++++++++++++ packages/ui/src/chat-surface-layout.tsx | 19 ++++++++++++++++++ packages/ui/src/chat-turn.tsx | 19 ++++++++++++++++++ packages/ui/src/chat-view.tsx | 19 ++++++++++++++++++ packages/ui/src/clipboard-feedback.ts | 19 ++++++++++++++++++ packages/ui/src/components.tsx | 19 ++++++++++++++++++ packages/ui/src/composer-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/composer.tsx | 19 ++++++++++++++++++ packages/ui/src/conversation-copy.ts | 19 ++++++++++++++++++ packages/ui/src/daily-review-copy.ts | 19 ++++++++++++++++++ packages/ui/src/daily-review-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/daily-review-panel.tsx | 19 ++++++++++++++++++ packages/ui/src/daily-review-view-state.ts | 19 ++++++++++++++++++ packages/ui/src/icons.tsx | 19 ++++++++++++++++++ packages/ui/src/index.ts | 19 ++++++++++++++++++ packages/ui/src/inline-reference.tsx | 19 ++++++++++++++++++ packages/ui/src/inline-rename-input.tsx | 19 ++++++++++++++++++ packages/ui/src/input-history.ts | 19 ++++++++++++++++++ packages/ui/src/interaction-queue.ts | 19 ++++++++++++++++++ packages/ui/src/live-turn-projection.ts | 19 ++++++++++++++++++ packages/ui/src/locale-context.tsx | 19 ++++++++++++++++++ packages/ui/src/locale-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/maka-uri.ts | 19 ++++++++++++++++++ packages/ui/src/maka-wordmark.tsx | 19 ++++++++++++++++++ packages/ui/src/markdown-body.tsx | 19 ++++++++++++++++++ packages/ui/src/markdown.tsx | 19 ++++++++++++++++++ packages/ui/src/materialize.ts | 19 ++++++++++++++++++ packages/ui/src/mermaid-diagram.tsx | 19 ++++++++++++++++++ packages/ui/src/model-picker-internals.ts | 19 ++++++++++++++++++ packages/ui/src/model-picker.tsx | 19 ++++++++++++++++++ packages/ui/src/module-hub-selector.tsx | 19 ++++++++++++++++++ packages/ui/src/module-pages.tsx | 19 ++++++++++++++++++ packages/ui/src/module-panel-types.ts | 19 ++++++++++++++++++ packages/ui/src/nav-selection.ts | 19 ++++++++++++++++++ packages/ui/src/permission-mode-menu.tsx | 19 ++++++++++++++++++ packages/ui/src/primitives/chat.tsx | 19 ++++++++++++++++++ packages/ui/src/primitives/module-page.tsx | 19 ++++++++++++++++++ packages/ui/src/primitives/page-header.tsx | 19 ++++++++++++++++++ packages/ui/src/primitives/stat-tile.tsx | 19 ++++++++++++++++++ packages/ui/src/prompt-anchor-rail.tsx | 19 ++++++++++++++++++ packages/ui/src/quote-ref-chip.tsx | 19 ++++++++++++++++++ packages/ui/src/redact.ts | 19 ++++++++++++++++++ packages/ui/src/relative-time.tsx | 19 ++++++++++++++++++ packages/ui/src/runtime-resume-copy.ts | 19 ++++++++++++++++++ packages/ui/src/sandbox-boundary-prompt.tsx | 19 ++++++++++++++++++ packages/ui/src/scheduled-task-copy.ts | 19 ++++++++++++++++++ .../ui/src/scheduled-task-form-dialog.tsx | 19 ++++++++++++++++++ packages/ui/src/scheduled-task-helpers.ts | 19 ++++++++++++++++++ packages/ui/src/scheduled-task-inspector.tsx | 19 ++++++++++++++++++ packages/ui/src/scheduled-task-panel.tsx | 19 ++++++++++++++++++ packages/ui/src/scheduled-task-status.ts | 19 ++++++++++++++++++ packages/ui/src/search-modal.tsx | 19 ++++++++++++++++++ packages/ui/src/selection-quote-target.ts | 19 ++++++++++++++++++ packages/ui/src/session-context-layer.tsx | 19 ++++++++++++++++++ packages/ui/src/session-history-list.tsx | 19 ++++++++++++++++++ packages/ui/src/session-list-panel.tsx | 19 ++++++++++++++++++ packages/ui/src/session-rename-dialog.tsx | 19 ++++++++++++++++++ packages/ui/src/session-sidebar-nav.tsx | 19 ++++++++++++++++++ .../ui/src/session-status-presentation.ts | 19 ++++++++++++++++++ packages/ui/src/shared-ui-copy.ts | 19 ++++++++++++++++++ packages/ui/src/shell-controls-copy.ts | 19 ++++++++++++++++++ packages/ui/src/skill-inspector.tsx | 19 ++++++++++++++++++ packages/ui/src/skill-status.ts | 19 ++++++++++++++++++ packages/ui/src/skills-copy.ts | 19 ++++++++++++++++++ packages/ui/src/skills-panel.tsx | 19 ++++++++++++++++++ packages/ui/src/status-vocabulary.ts | 19 ++++++++++++++++++ .../ui/src/streaming-display-redaction.ts | 19 ++++++++++++++++++ packages/ui/src/streaming-presentation.ts | 19 ++++++++++++++++++ packages/ui/src/styles.css | 19 ++++++++++++++++++ packages/ui/src/task-ledger-panel.tsx | 19 ++++++++++++++++++ packages/ui/src/thinking-stream.ts | 19 ++++++++++++++++++ packages/ui/src/timeline-fold.ts | 19 ++++++++++++++++++ packages/ui/src/titlebar-session-identity.tsx | 19 ++++++++++++++++++ packages/ui/src/toast.tsx | 19 ++++++++++++++++++ packages/ui/src/tool-activity.tsx | 19 ++++++++++++++++++ .../ui/src/tool-activity/agent-preview.tsx | 19 ++++++++++++++++++ .../ui/src/tool-activity/builtin-preview.ts | 19 ++++++++++++++++++ .../tool-activity/computer-action-label.ts | 19 ++++++++++++++++++ packages/ui/src/tool-activity/copy.ts | 19 ++++++++++++++++++ .../src/tool-activity/diff-code-preview.tsx | 19 ++++++++++++++++++ packages/ui/src/tool-activity/diff-syntax.ts | 19 ++++++++++++++++++ packages/ui/src/tool-activity/display-name.ts | 19 ++++++++++++++++++ .../ui/src/tool-activity/preview-utils.ts | 19 ++++++++++++++++++ .../ui/src/tool-activity/result-projection.ts | 19 ++++++++++++++++++ .../ui/src/tool-activity/sandbox-denial.ts | 19 ++++++++++++++++++ .../ui/src/tool-activity/tool-code-block.tsx | 19 ++++++++++++++++++ .../src/tool-activity/tool-result-preview.tsx | 19 ++++++++++++++++++ packages/ui/src/tool-format.ts | 19 ++++++++++++++++++ packages/ui/src/tool-output-stream.ts | 19 ++++++++++++++++++ packages/ui/src/transcript-projection.ts | 19 ++++++++++++++++++ packages/ui/src/turn-height-index.ts | 19 ++++++++++++++++++ packages/ui/src/turn-virtualizer.ts | 19 ++++++++++++++++++ packages/ui/src/ui.tsx | 19 ++++++++++++++++++ packages/ui/src/use-chat-scroll.ts | 19 ++++++++++++++++++ packages/ui/src/use-composer-draft.ts | 19 ++++++++++++++++++ packages/ui/src/use-composer-history.ts | 19 ++++++++++++++++++ .../ui/src/use-message-selection-quote.ts | 19 ++++++++++++++++++ packages/ui/src/use-mounted-ref.ts | 19 ++++++++++++++++++ packages/ui/src/use-roving-row-focus.ts | 19 ++++++++++++++++++ packages/ui/src/use-transcript-projection.ts | 19 ++++++++++++++++++ packages/ui/src/use-turn-virtualizer.ts | 19 ++++++++++++++++++ packages/ui/src/user-question-prompt-state.ts | 19 ++++++++++++++++++ packages/ui/src/user-question-prompt.tsx | 19 ++++++++++++++++++ packages/ui/src/utils.ts | 19 ++++++++++++++++++ packages/ui/src/workspace-picker.tsx | 19 ++++++++++++++++++ .../stories/accessibility-dialogs.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/attachment.stories.tsx | 19 ++++++++++++++++++ .../capability-audit-strip.stories.tsx | 19 ++++++++++++++++++ .../stories/composite-row-states.stories.tsx | 19 ++++++++++++++++++ .../ui/stories/functional-motion.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/icons.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/markdown.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/model-picker.stories.tsx | 19 ++++++++++++++++++ .../ui/stories/palette-matrix.stories.tsx | 19 ++++++++++++++++++ .../sandbox-boundary-prompt.stories.tsx | 19 ++++++++++++++++++ .../ui/stories/session-list-panel.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/stat-tile.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/toast.stories.tsx | 19 ++++++++++++++++++ packages/ui/stories/tool-activity.fixtures.ts | 19 ++++++++++++++++++ packages/ui/stories/tool-activity.stories.tsx | 19 ++++++++++++++++++ patches/README.md | 19 ++++++++++++++++++ scripts/apply-dependency-patches.mjs | 19 ++++++++++++++++++ scripts/asf-source-release.mjs | 19 ++++++++++++++++++ scripts/asf-source-release.test.mjs | 19 ++++++++++++++++++ scripts/asf-source-workflow-policy.test.mjs | 19 ++++++++++++++++++ scripts/audit-alignment.mjs | 19 ++++++++++++++++++ scripts/audit-shipped-dependencies.mjs | 19 ++++++++++++++++++ scripts/ax-tree-audit.mjs | 19 ++++++++++++++++++ scripts/ax-tree-audit.test.mjs | 19 ++++++++++++++++++ scripts/build-astryx-theme.mjs | 19 ++++++++++++++++++ scripts/build-cursor-overlay.mjs | 19 ++++++++++++++++++ scripts/check-astryx-surface-inventory.mjs | 19 ++++++++++++++++++ scripts/check-stale-dist.mjs | 19 ++++++++++++++++++ scripts/check-third-party-notices.mjs | 19 ++++++++++++++++++ scripts/ci-test-plan.mjs | 18 +++++++++++++++++ scripts/ci-test-plan.test.mjs | 19 ++++++++++++++++++ scripts/clean-build.mjs | 19 ++++++++++++++++++ scripts/clean-paths.mjs | 19 ++++++++++++++++++ scripts/computer-use.mjs | 18 +++++++++++++++++ scripts/computer-use/anthropic-model.mjs | 19 ++++++++++++++++++ scripts/computer-use/ax-oracle.swift | 19 ++++++++++++++++++ scripts/computer-use/cursor-accuracy-real.mjs | 19 ++++++++++++++++++ .../computer-use/direct-runtime-ledger.mjs | 19 ++++++++++++++++++ scripts/computer-use/e2e-fixture.d.mts | 19 ++++++++++++++++++ scripts/computer-use/e2e-fixture.mjs | 19 ++++++++++++++++++ scripts/computer-use/e2e-scenarios.d.mts | 19 ++++++++++++++++++ scripts/computer-use/e2e-scenarios.mjs | 19 ++++++++++++++++++ scripts/computer-use/function-model.mjs | 19 ++++++++++++++++++ scripts/computer-use/physical-input-age.swift | 19 ++++++++++++++++++ scripts/computer-use/prepare-provenance.mjs | 19 ++++++++++++++++++ scripts/computer-use/prepare.mjs | 19 ++++++++++++++++++ .../computer-use/process-restart-harness.mjs | 19 ++++++++++++++++++ .../computer-use/process-restart-launcher.mjs | 19 ++++++++++++++++++ scripts/computer-use/provider-matrix.mjs | 19 ++++++++++++++++++ scripts/computer-use/real-ax-harness.mjs | 19 ++++++++++++++++++ scripts/computer-use/real-ax-launcher.mjs | 19 ++++++++++++++++++ scripts/computer-use/real-e2e-monitor.swift | 19 ++++++++++++++++++ scripts/computer-use/real-model-fixture.mjs | 19 ++++++++++++++++++ scripts/computer-use/real-model.mjs | 19 ++++++++++++++++++ scripts/computer-use/report-sanitize.mjs | 19 ++++++++++++++++++ scripts/computer-use/runtime-model.mjs | 19 ++++++++++++++++++ .../computer-use/synthetic-model-scenario.mjs | 19 ++++++++++++++++++ scripts/computer-use/trace-analyse.mjs | 19 ++++++++++++++++++ scripts/desktop-real-window-smoke.mjs | 19 ++++++++++++++++++ scripts/electron-lifecycle.mjs | 19 ++++++++++++++++++ scripts/fixture-env.mjs | 19 ++++++++++++++++++ scripts/fixture-window.mjs | 19 ++++++++++++++++++ scripts/gen-bundled-skill-catalog.mjs | 18 +++++++++++++++++ scripts/generate-astryx-surface-inventory.mjs | 19 ++++++++++++++++++ scripts/generate-third-party-notices.mjs | 19 ++++++++++++++++++ scripts/generate-third-party-notices.test.mjs | 19 ++++++++++++++++++ scripts/generate-windows-cargo-notices.mjs | 19 ++++++++++++++++++ scripts/install-electron-with-retry.mjs | 19 ++++++++++++++++++ scripts/npm-spawn.mjs | 19 ++++++++++++++++++ scripts/package-macos-arm64-cli.mjs | 19 ++++++++++++++++++ scripts/package-macos-arm64.mjs | 19 ++++++++++++++++++ scripts/package-windows-autoupdate-next.mjs | 19 ++++++++++++++++++ scripts/package-windows-x64.mjs | 19 ++++++++++++++++++ scripts/pip-interaction-smoke.mjs | 19 ++++++++++++++++++ scripts/prepare-bundled-git-source.mjs | 19 ++++++++++++++++++ scripts/prepare-bundled-git.mjs | 19 ++++++++++++++++++ .../prepare-deepseek-harness-toolchain.mjs | 19 ++++++++++++++++++ scripts/prepare-windows-upgrade-baseline.mjs | 19 ++++++++++++++++++ scripts/product-release-artifacts.mjs | 19 ++++++++++++++++++ scripts/product-release-artifacts.test.mjs | 19 ++++++++++++++++++ scripts/product-release-authority.mjs | 19 ++++++++++++++++++ scripts/product-release-authority.test.mjs | 19 ++++++++++++++++++ scripts/product-release-identity.mjs | 19 ++++++++++++++++++ scripts/product-release-tag.mjs | 19 ++++++++++++++++++ scripts/product-release.test.mjs | 19 ++++++++++++++++++ scripts/protocol-epoch-check.mjs | 18 +++++++++++++++++ scripts/protocol-epoch-check.test.mjs | 19 ++++++++++++++++++ scripts/release-cli-artifact-policy.mjs | 19 ++++++++++++++++++ scripts/release-cli-artifact-policy.test.mjs | 19 ++++++++++++++++++ scripts/release-cli-eval-package.mjs | 19 ++++++++++++++++++ scripts/release-cli-eval-support.mjs | 19 ++++++++++++++++++ scripts/release-cli-eval-support.test.mjs | 19 ++++++++++++++++++ scripts/release-cli-file-policy.mjs | 19 ++++++++++++++++++ scripts/release-cli-file-policy.test.mjs | 19 ++++++++++++++++++ scripts/release-cli-package.mjs | 19 ++++++++++++++++++ scripts/release-cli-publication.mjs | 19 ++++++++++++++++++ scripts/release-cli-publication.test.mjs | 19 ++++++++++++++++++ .../release-cli-runtime-host-diagnostics.mjs | 19 ++++++++++++++++++ ...ease-cli-runtime-host-diagnostics.test.mjs | 19 ++++++++++++++++++ scripts/release-cli-workflow-policy.test.mjs | 19 ++++++++++++++++++ scripts/release-eval-smoke-sitecustomize.py | 17 ++++++++++++++++ scripts/release-version.mjs | 19 ++++++++++++++++++ scripts/run-electron-installer.cjs | 18 +++++++++++++++++ scripts/run-workspace-tests-parallel.mjs | 19 ++++++++++++++++++ scripts/smoke-release-cli-package.mjs | 19 ++++++++++++++++++ scripts/storybook-visual-smoke.mjs | 19 ++++++++++++++++++ scripts/sync-model-metadata.mjs | 19 ++++++++++++++++++ scripts/third-party-closure.mjs | 19 ++++++++++++++++++ scripts/third-party-closure.test.mjs | 19 ++++++++++++++++++ scripts/verify-macos-arm64-cli.mjs | 19 ++++++++++++++++++ scripts/verify-macos-arm64-dmg.mjs | 19 ++++++++++++++++++ scripts/verify-packaged-app.mjs | 19 ++++++++++++++++++ scripts/verify-packaged-app.test.mjs | 19 ++++++++++++++++++ scripts/verify-windows-autoupdate.mjs | 19 ++++++++++++++++++ scripts/verify-windows-harness.test.mjs | 19 ++++++++++++++++++ .../verify-windows-installer-lifecycle.mjs | 19 ++++++++++++++++++ scripts/verify-windows-sandbox-e2e.mjs | 19 ++++++++++++++++++ scripts/verify-windows-x64.mjs | 19 ++++++++++++++++++ scripts/windows-process-identity.ps1 | 17 ++++++++++++++++ .../windows-runtime-host-local-ipc-trust.ps1 | 17 ++++++++++++++++ scripts/windows-smoke.mjs | 18 +++++++++++++++++ scripts/windows-test-inventory.mjs | 18 +++++++++++++++++ scripts/windows-test-inventory.test.mjs | 19 ++++++++++++++++++ skills/maka-architecture-docs/SKILL.md | 18 +++++++++++++++++ .../maka-architecture-docs/agents/openai.yaml | 17 ++++++++++++++++ .../assets/article-template.md | 18 +++++++++++++++++ .../references/bilingual-standard.md | 19 ++++++++++++++++++ .../references/quality-gate.md | 19 ++++++++++++++++++ .../references/writing-standard.md | 19 ++++++++++++++++++ 2640 files changed, 49975 insertions(+), 1 deletion(-) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 32d80925e3..7554846922 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json language: "en-US" diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 1f3715d22c..6de923fc21 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -11,3 +11,6 @@ # style: apply Biome format baseline outside the UI surface (#415) # -> squash-commit hash added in a follow-up immediately after this PR lands. + +# chore: apply the ASF source header sweep (#3271) +# -> squash-commit hash added in a follow-up immediately after this PR lands. diff --git a/.github/ASF_SOURCE_RELEASE.md b/.github/ASF_SOURCE_RELEASE.md index e688057f73..d936e14637 100644 --- a/.github/ASF_SOURCE_RELEASE.md +++ b/.github/ASF_SOURCE_RELEASE.md @@ -1,3 +1,22 @@ + + # Apache Maka source release runbook This runbook prepares the official Apache Incubator source-release component. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 508c828e09..4a09e482b1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Bug report description: Report a defect in Maka (Desktop, TUI/CLI, Runtime Host, or Eval) labels: ["bug"] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 63230a8178..c6b6805cf0 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + blank_issues_enabled: true contact_links: - name: Report a security vulnerability diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 112fa35063..d151e66277 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Feature request description: Propose an improvement or new capability for Maka labels: ["enhancement"] diff --git a/.github/RELEASE_CHECKLIST.md b/.github/RELEASE_CHECKLIST.md index 426a6e6f43..819a2cccaf 100644 --- a/.github/RELEASE_CHECKLIST.md +++ b/.github/RELEASE_CHECKLIST.md @@ -1,3 +1,22 @@ + + # Product release checklist The `Release` workflow is Maka's convenience-artifact release entry point. Desktop, CLI/TUI, and diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 4c447e9498..50acdff47c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,3 +1,22 @@ + + # Code Review When reviewing a pull request, always apply diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 06bc2b8d6f..93d4c9c013 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + version: 2 updates: - package-ecosystem: npm diff --git a/.github/skills/code-review/SKILL.md b/.github/skills/code-review/SKILL.md index 6af166df64..2e9cd9ef5f 100644 --- a/.github/skills/code-review/SKILL.md +++ b/.github/skills/code-review/SKILL.md @@ -2,6 +2,24 @@ name: code-review description: Adversarially review pull requests and code changes against the actual problem. Use for GitHub Copilot code review to assess correctness, root cause, simplicity, deletions, test quality, maintainability, and merge readiness. --- + # Adversarial Code Review diff --git a/.github/workflows/asf-source-candidate.yml b/.github/workflows/asf-source-candidate.yml index 42affbc816..c16fc390fc 100644 --- a/.github/workflows/asf-source-candidate.yml +++ b/.github/workflows/asf-source-candidate.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Prepare ASF source candidate on: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08d8d5d567..1f378123c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: CI on: diff --git a/.github/workflows/cli-package-validation.yml b/.github/workflows/cli-package-validation.yml index 1f9a749afb..972fb07d60 100644 --- a/.github/workflows/cli-package-validation.yml +++ b/.github/workflows/cli-package-validation.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: CLI package validation on: diff --git a/.github/workflows/copilot-auto-review.yml b/.github/workflows/copilot-auto-review.yml index da1b1d7759..858a9a08c8 100644 --- a/.github/workflows/copilot-auto-review.yml +++ b/.github/workflows/copilot-auto-review.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Copilot auto review on: diff --git a/.github/workflows/dependency-audit.yml b/.github/workflows/dependency-audit.yml index 84aa64b8f6..b1b4540837 100644 --- a/.github/workflows/dependency-audit.yml +++ b/.github/workflows/dependency-audit.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Dependency audit on: diff --git a/.github/workflows/release-cli-finalize.yml b/.github/workflows/release-cli-finalize.yml index 5ae0a20900..7909ce03ca 100644 --- a/.github/workflows/release-cli-finalize.yml +++ b/.github/workflows/release-cli-finalize.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Finalize CLI npm channel on: diff --git a/.github/workflows/release-cli-stage.yml b/.github/workflows/release-cli-stage.yml index c4f894a9e1..bda8058009 100644 --- a/.github/workflows/release-cli-stage.yml +++ b/.github/workflows/release-cli-stage.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Stage CLI npm release on: diff --git a/.github/workflows/release-windows-check.yml b/.github/workflows/release-windows-check.yml index 774ace8d3d..c015b4ae0e 100644 --- a/.github/workflows/release-windows-check.yml +++ b/.github/workflows/release-windows-check.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Release Windows check # The Windows release path used to run for the first time on release day, on diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5b2ede9cf..d768fc02f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Release on: diff --git a/.github/workflows/windows-baseline.yml b/.github/workflows/windows-baseline.yml index e2b5aca90d..a2f812c7a3 100644 --- a/.github/workflows/windows-baseline.yml +++ b/.github/workflows/windows-baseline.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Windows baseline on: diff --git a/.github/workflows/windows-recovery.yml b/.github/workflows/windows-recovery.yml index b1a3741714..90dc9b1e5c 100644 --- a/.github/workflows/windows-recovery.yml +++ b/.github/workflows/windows-recovery.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Windows recovery on: diff --git a/.github/workflows/windows-sandbox-w0.yml b/.github/workflows/windows-sandbox-w0.yml index f24c02c858..6ac97ef2b2 100644 --- a/.github/workflows/windows-sandbox-w0.yml +++ b/.github/workflows/windows-sandbox-w0.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + name: Windows sandbox W0 evidence # The paths below are a pre-filter, not this lane's real input. The real input diff --git a/.pr_agent.toml b/.pr_agent.toml index 3c9f286589..1ac272dbdc 100644 --- a/.pr_agent.toml +++ b/.pr_agent.toml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [review_agent] comments_location_policy = "both" inline_comments_severity_threshold = 3 diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index cb9adb49e1..8973fd8746 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1,3 +1,22 @@ + + [中文](./ARCHITECTURE.zh-CN.md) # Maka Backend Architecture diff --git a/ARCHITECTURE.zh-CN.md b/ARCHITECTURE.zh-CN.md index 0083347798..5557d425b1 100644 --- a/ARCHITECTURE.zh-CN.md +++ b/ARCHITECTURE.zh-CN.md @@ -1,3 +1,22 @@ + + [ENGLISH](./ARCHITECTURE.md) # Maka 后端架构 diff --git a/CHANGELOG.md b/CHANGELOG.md index 85796a92cc..ec19aef38b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ + + # Changelog ## Unreleased diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f1f33cd5f..5c7b771632 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,22 @@ + + # Contributing to Maka [![docs](https://img.shields.io/badge/docs-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-blue?logo=googletranslate&logoColor=white)](./CONTRIBUTING.zh-CN.md) diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md index 20d8c1b11b..33e098a485 100644 --- a/CONTRIBUTING.zh-CN.md +++ b/CONTRIBUTING.zh-CN.md @@ -1,3 +1,22 @@ + + # 为 Maka 贡献代码 [![docs](https://img.shields.io/badge/docs-English-blue?logo=googletranslate&logoColor=white)](./CONTRIBUTING.md) diff --git a/DESIGN.md b/DESIGN.md index 7eaceec028..6ac285453e 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -54,6 +54,24 @@ components: badge: { typography: "{typography.badge-label}", rounded: "{rounded.pill}", padding: "0 8px", height: "20px" } card-default: { rounded: "{rounded.container}", padding: "12px" } --- + # Design System: Maka diff --git a/DISCLAIMER-WIP b/DISCLAIMER-WIP index 228be31c6e..f02ca631c4 100644 --- a/DISCLAIMER-WIP +++ b/DISCLAIMER-WIP @@ -11,7 +11,6 @@ policy. For example, releases may have incomplete or un-reviewed licensing conditions. What follows is a list of issues the project is currently aware of (this list is likely to be incomplete): - * Source files do not yet carry Apache license headers. * NOTICE has not yet been reworked into ASF form. * The software grant and committer ICLAs are not yet complete. diff --git a/README.md b/README.md index 823edfa554..9bd122e672 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ + + # Apache Maka (Incubating) [![CI](https://github.com/apache/maka/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/maka/actions/workflows/ci.yml) diff --git a/README.zh-CN.md b/README.zh-CN.md index 093400acb6..176a55a587 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,3 +1,22 @@ + + # Apache Maka (Incubating) [![CI](https://github.com/apache/maka/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/maka/actions/workflows/ci.yml) diff --git a/SECURITY.md b/SECURITY.md index 47cda4c257..22021811da 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,22 @@ + + # Maka Security Policy This document names the trust boundaries Maka treats as load-bearing, diff --git a/apps/desktop/.storybook/main.ts b/apps/desktop/.storybook/main.ts index 5f6a627fcc..8aa012a7dd 100644 --- a/apps/desktop/.storybook/main.ts +++ b/apps/desktop/.storybook/main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import type { StorybookConfig } from '@storybook/react-vite'; diff --git a/apps/desktop/.storybook/node-crypto-boundary.ts b/apps/desktop/.storybook/node-crypto-boundary.ts index 060bbfa875..f8851859e2 100644 --- a/apps/desktop/.storybook/node-crypto-boundary.ts +++ b/apps/desktop/.storybook/node-crypto-boundary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function createHash(): never { throw new Error('Node crypto is unavailable in the Storybook browser preview'); } diff --git a/apps/desktop/.storybook/preview.tsx b/apps/desktop/.storybook/preview.tsx index a75d7037de..f460a84495 100644 --- a/apps/desktop/.storybook/preview.tsx +++ b/apps/desktop/.storybook/preview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Decorator, Preview } from '@storybook/react-vite'; import '../src/renderer/styles.css'; import { Theme } from '@astryxdesign/core/theme'; diff --git a/apps/desktop/README.md b/apps/desktop/README.md index ac980b5e81..0ef70668ff 100644 --- a/apps/desktop/README.md +++ b/apps/desktop/README.md @@ -1,3 +1,22 @@ + + # @maka/desktop The Electron desktop app: `main` (Node/Electron main process) + `preload` (context bridge) + `renderer` (React UI). This file covers the three-layer split and the IPC contract. For build/test commands and the test-layer selection guide, see the top-level `README.md`; for the renderer interior, see `src/renderer/README.md`. diff --git a/apps/desktop/e2e/accessibility-coverage.spec.ts b/apps/desktop/e2e/accessibility-coverage.spec.ts index 2986117f02..8279c7c8e8 100644 --- a/apps/desktop/e2e/accessibility-coverage.spec.ts +++ b/apps/desktop/e2e/accessibility-coverage.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CDPSession, Page } from '@playwright/test'; import { expect, test, COMPOSER_INPUT } from './fixtures'; import { auditAxTree } from '../../../scripts/ax-tree-audit.mjs'; diff --git a/apps/desktop/e2e/code-scroll.spec.ts b/apps/desktop/e2e/code-scroll.spec.ts index 388afb486a..cb73873c60 100644 --- a/apps/desktop/e2e/code-scroll.spec.ts +++ b/apps/desktop/e2e/code-scroll.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, test, COMPOSER_INPUT } from './fixtures'; test('a one-line Markdown code block exposes native and selection horizontal scrolling', async ({ diff --git a/apps/desktop/e2e/composer-skill-invocation.spec.ts b/apps/desktop/e2e/composer-skill-invocation.spec.ts index b63da95f1d..3f0fab53e5 100644 --- a/apps/desktop/e2e/composer-skill-invocation.spec.ts +++ b/apps/desktop/e2e/composer-skill-invocation.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, test, COMPOSER_INPUT } from './fixtures'; test('staged Skills come back as chips after leaving and returning', async ({ diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.ts index 48af56b4e8..846414eb1b 100644 --- a/apps/desktop/e2e/fixtures.ts +++ b/apps/desktop/e2e/fixtures.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { _electron as electron, test as base, expect } from '@playwright/test'; import type { ElectronApplication, Page } from '@playwright/test'; import { execFile } from 'node:child_process'; diff --git a/apps/desktop/e2e/goal-dialog-budget.spec.ts b/apps/desktop/e2e/goal-dialog-budget.spec.ts index 6154e2fbec..28f7d1efc1 100644 --- a/apps/desktop/e2e/goal-dialog-budget.spec.ts +++ b/apps/desktop/e2e/goal-dialog-budget.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test, expect, COMPOSER_INPUT } from './fixtures'; /** diff --git a/apps/desktop/e2e/link-color-contract.spec.ts b/apps/desktop/e2e/link-color-contract.spec.ts index 30e0b582c9..3781d4253c 100644 --- a/apps/desktop/e2e/link-color-contract.spec.ts +++ b/apps/desktop/e2e/link-color-contract.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Page } from '@playwright/test'; import { test, expect } from './fixtures'; diff --git a/apps/desktop/e2e/new-task-reload.spec.ts b/apps/desktop/e2e/new-task-reload.spec.ts index 2ad5c86fea..1afcc3b21e 100644 --- a/apps/desktop/e2e/new-task-reload.spec.ts +++ b/apps/desktop/e2e/new-task-reload.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { COMPOSER_INPUT, expect, test } from './fixtures'; test('an explicit new task survives a renderer reload without reopening history', async ({ diff --git a/apps/desktop/e2e/onboarding-viewport.spec.ts b/apps/desktop/e2e/onboarding-viewport.spec.ts index 56776701b6..aec6a1683f 100644 --- a/apps/desktop/e2e/onboarding-viewport.spec.ts +++ b/apps/desktop/e2e/onboarding-viewport.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, test } from './fixtures'; test('first-run onboarding stays within the chat viewport', async ({ onboardingWindow }) => { diff --git a/apps/desktop/e2e/parent-session-deletion.spec.ts b/apps/desktop/e2e/parent-session-deletion.spec.ts index c372e3bca6..cdee277d19 100644 --- a/apps/desktop/e2e/parent-session-deletion.spec.ts +++ b/apps/desktop/e2e/parent-session-deletion.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, PARENT_REMOVAL_CHILD_NAME, diff --git a/apps/desktop/e2e/playwright.config.ts b/apps/desktop/e2e/playwright.config.ts index 462db13813..a0962dcecf 100644 --- a/apps/desktop/e2e/playwright.config.ts +++ b/apps/desktop/e2e/playwright.config.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineConfig } from '@playwright/test'; /** diff --git a/apps/desktop/e2e/prompt-rail.spec.ts b/apps/desktop/e2e/prompt-rail.spec.ts index caa5ce8204..acef92f51e 100644 --- a/apps/desktop/e2e/prompt-rail.spec.ts +++ b/apps/desktop/e2e/prompt-rail.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROMPT_RAIL_PROMPT_COUNT } from '../src/main/e2e-fixture/seed-helpers'; import { expect, test } from './fixtures'; import type { Page } from '@playwright/test'; diff --git a/apps/desktop/e2e/quote-selection.spec.ts b/apps/desktop/e2e/quote-selection.spec.ts index 99c91c8fa4..a903b3fa27 100644 --- a/apps/desktop/e2e/quote-selection.spec.ts +++ b/apps/desktop/e2e/quote-selection.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, test, COMPOSER_INPUT } from './fixtures'; test('a transcript drag releases outside the window through its owning Turn', async ({ diff --git a/apps/desktop/e2e/request-header-row-contract.spec.ts b/apps/desktop/e2e/request-header-row-contract.spec.ts index 49dc967e18..743afe201d 100644 --- a/apps/desktop/e2e/request-header-row-contract.spec.ts +++ b/apps/desktop/e2e/request-header-row-contract.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expect, test } from './fixtures'; import { getProviderSettingsCopy } from '../src/renderer/locales/settings-provider-copy'; diff --git a/apps/desktop/e2e/send-message.spec.ts b/apps/desktop/e2e/send-message.spec.ts index db97f3601e..55fbc49611 100644 --- a/apps/desktop/e2e/send-message.spec.ts +++ b/apps/desktop/e2e/send-message.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test, expect, COMPOSER_INPUT } from './fixtures'; /** diff --git a/apps/desktop/e2e/session-workbar.spec.ts b/apps/desktop/e2e/session-workbar.spec.ts index 6f754ba4fb..84eed02b44 100644 --- a/apps/desktop/e2e/session-workbar.spec.ts +++ b/apps/desktop/e2e/session-workbar.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { COMPOSER_INPUT, test, expect } from './fixtures'; import type { Page } from '@playwright/test'; import { writeFile } from 'node:fs/promises'; diff --git a/apps/desktop/e2e/settings.spec.ts b/apps/desktop/e2e/settings.spec.ts index 7e7f259a4b..70aea23098 100644 --- a/apps/desktop/e2e/settings.spec.ts +++ b/apps/desktop/e2e/settings.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test, expect, COMPOSER_INPUT } from './fixtures'; test('opening settings commits an active titlebar rename', async ({ window: page }) => { diff --git a/apps/desktop/e2e/sidebar-project-row.spec.ts b/apps/desktop/e2e/sidebar-project-row.spec.ts index 4e5c818503..81935e52c2 100644 --- a/apps/desktop/e2e/sidebar-project-row.spec.ts +++ b/apps/desktop/e2e/sidebar-project-row.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { LONG_SIDEBAR_PROJECT_ID, LONG_SIDEBAR_PROJECT_NAME, diff --git a/apps/desktop/e2e/skill-draft-lifecycle.spec.ts b/apps/desktop/e2e/skill-draft-lifecycle.spec.ts index 5d104f3413..227a8bc2a7 100644 --- a/apps/desktop/e2e/skill-draft-lifecycle.spec.ts +++ b/apps/desktop/e2e/skill-draft-lifecycle.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Page } from '@playwright/test'; import { expect, test, COMPOSER_INPUT } from './fixtures'; diff --git a/apps/desktop/e2e/slash-command-menu.spec.ts b/apps/desktop/e2e/slash-command-menu.spec.ts index 7aae5a5828..49c705992c 100644 --- a/apps/desktop/e2e/slash-command-menu.spec.ts +++ b/apps/desktop/e2e/slash-command-menu.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { FAKE_HOLD_OPEN_PROMPT } from '@maka/runtime/test-only/fake-backend'; import { expect, test, COMPOSER_INPUT } from './fixtures'; diff --git a/apps/desktop/e2e/streaming-remount.spec.ts b/apps/desktop/e2e/streaming-remount.spec.ts index cb64cbf8e6..f57bd2636f 100644 --- a/apps/desktop/e2e/streaming-remount.spec.ts +++ b/apps/desktop/e2e/streaming-remount.spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { FAKE_HOLD_OPEN_PROMPT, FAKE_HOLD_OPEN_REWRITE_PROMPT, diff --git a/apps/desktop/electron-builder.config.mjs b/apps/desktop/electron-builder.config.mjs index 03436ca5ff..4bd817473b 100644 --- a/apps/desktop/electron-builder.config.mjs +++ b/apps/desktop/electron-builder.config.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFileSync } from 'node:fs'; import { resolveProductManifestIdentity } from '../../scripts/product-release-identity.mjs'; diff --git a/apps/desktop/scripts/browser-observe-act-smoke.mjs b/apps/desktop/scripts/browser-observe-act-smoke.mjs index b5324f9736..5366de5eb4 100644 --- a/apps/desktop/scripts/browser-observe-act-smoke.mjs +++ b/apps/desktop/scripts/browser-observe-act-smoke.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env electron +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * P5 — real Electron observe→act smoke for the embedded browser. * diff --git a/apps/desktop/scripts/copy-runtime-filesystem-worker.mjs b/apps/desktop/scripts/copy-runtime-filesystem-worker.mjs index e83bbc2caa..a04ad3f09c 100644 --- a/apps/desktop/scripts/copy-runtime-filesystem-worker.mjs +++ b/apps/desktop/scripts/copy-runtime-filesystem-worker.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { copyFile, mkdir, stat } from 'node:fs/promises'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/apps/desktop/scripts/dev-app-runtime.mjs b/apps/desktop/scripts/dev-app-runtime.mjs index 2db7ddfc2f..9eb5181e66 100644 --- a/apps/desktop/scripts/dev-app-runtime.mjs +++ b/apps/desktop/scripts/dev-app-runtime.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * macOS development app for OS-permission work. * diff --git a/apps/desktop/scripts/dev.mjs b/apps/desktop/scripts/dev.mjs index 34e89da44e..3988b75b14 100644 --- a/apps/desktop/scripts/dev.mjs +++ b/apps/desktop/scripts/dev.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Dev launcher with PARALLEL + INCREMENTAL builds. * diff --git a/apps/desktop/scripts/prepare-dev-app.mjs b/apps/desktop/scripts/prepare-dev-app.mjs index e84e78b4cb..2b784bb823 100644 --- a/apps/desktop/scripts/prepare-dev-app.mjs +++ b/apps/desktop/scripts/prepare-dev-app.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { developmentAppPath, prepareDevelopmentApp } from './dev-app-runtime.mjs'; await prepareDevelopmentApp(); diff --git a/apps/desktop/scripts/start-dev-app.mjs b/apps/desktop/scripts/start-dev-app.mjs index e06a3dedd6..2b574f01c2 100644 --- a/apps/desktop/scripts/start-dev-app.mjs +++ b/apps/desktop/scripts/start-dev-app.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { monitorDevelopmentApp, startDevelopmentApp } from './dev-app-runtime.mjs'; let app = null; diff --git a/apps/desktop/src/global.d.ts b/apps/desktop/src/global.d.ts index cce8068c75..2e85e07a81 100644 --- a/apps/desktop/src/global.d.ts +++ b/apps/desktop/src/global.d.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { MakaBridge } from './preload/bridge-contract.js'; declare global { diff --git a/apps/desktop/src/main/__tests__/about-settings-page.test.ts b/apps/desktop/src/main/__tests__/about-settings-page.test.ts index 2ebd3bd6fa..8cc5f24002 100644 --- a/apps/desktop/src/main/__tests__/about-settings-page.test.ts +++ b/apps/desktop/src/main/__tests__/about-settings-page.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createElement } from 'react'; diff --git a/apps/desktop/src/main/__tests__/action-guard.test.ts b/apps/desktop/src/main/__tests__/action-guard.test.ts index 46d4421345..c95e09c5fe 100644 --- a/apps/desktop/src/main/__tests__/action-guard.test.ts +++ b/apps/desktop/src/main/__tests__/action-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Behavioral coverage for createKeyedActionGuard — the framework-free * multi-latch sibling of useOAuthLoginFlow's one-shot action guard, consumed diff --git a/apps/desktop/src/main/__tests__/active-execution-boundary-read-model.test.ts b/apps/desktop/src/main/__tests__/active-execution-boundary-read-model.test.ts index 168a4fdacf..f00a507cd6 100644 --- a/apps/desktop/src/main/__tests__/active-execution-boundary-read-model.test.ts +++ b/apps/desktop/src/main/__tests__/active-execution-boundary-read-model.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { createReadOnlyPermissionProfile, createWorkspaceWritePermissionProfile } from '@maka/core/permission-profile'; diff --git a/apps/desktop/src/main/__tests__/agent-graph-panel-visibility.test.ts b/apps/desktop/src/main/__tests__/agent-graph-panel-visibility.test.ts index 1f05c7a765..8a5e0bb041 100644 --- a/apps/desktop/src/main/__tests__/agent-graph-panel-visibility.test.ts +++ b/apps/desktop/src/main/__tests__/agent-graph-panel-visibility.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/agent-graph-panel.test.ts b/apps/desktop/src/main/__tests__/agent-graph-panel.test.ts index 7430011602..18b1690317 100644 --- a/apps/desktop/src/main/__tests__/agent-graph-panel.test.ts +++ b/apps/desktop/src/main/__tests__/agent-graph-panel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { afterEach, describe, it } from 'node:test'; import { parseHTML } from 'linkedom'; diff --git a/apps/desktop/src/main/__tests__/agent-graph-refresh.test.ts b/apps/desktop/src/main/__tests__/agent-graph-refresh.test.ts index d03b9697d0..061508e13e 100644 --- a/apps/desktop/src/main/__tests__/agent-graph-refresh.test.ts +++ b/apps/desktop/src/main/__tests__/agent-graph-refresh.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { createAgentGraphRefreshScheduler } from '../../renderer/agent-graph-refresh.js'; diff --git a/apps/desktop/src/main/__tests__/app-quit-coordinator.test.ts b/apps/desktop/src/main/__tests__/app-quit-coordinator.test.ts index e243103f92..838a8a9b29 100644 --- a/apps/desktop/src/main/__tests__/app-quit-coordinator.test.ts +++ b/apps/desktop/src/main/__tests__/app-quit-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { createAppQuitCoordinator } from '../app-quit-coordinator.js'; diff --git a/apps/desktop/src/main/__tests__/app-shell-busy-race-settlement.test.ts b/apps/desktop/src/main/__tests__/app-shell-busy-race-settlement.test.ts index e3ddbb407d..446ed53f71 100644 --- a/apps/desktop/src/main/__tests__/app-shell-busy-race-settlement.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-busy-race-settlement.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * #1954 busy-race settlement: a sessions:send that raced a root turn another * client opened can come back `steered` (the send owns no turn) or under a diff --git a/apps/desktop/src/main/__tests__/app-shell-command-actions.test.ts b/apps/desktop/src/main/__tests__/app-shell-command-actions.test.ts index 651a9bfa7a..cbdbbd31b1 100644 --- a/apps/desktop/src/main/__tests__/app-shell-command-actions.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-command-actions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { resolveManualDiagnosticTarget } from '../../renderer/app-shell-command-actions.js'; diff --git a/apps/desktop/src/main/__tests__/app-shell-first-send-cleanup.test.ts b/apps/desktop/src/main/__tests__/app-shell-first-send-cleanup.test.ts index 7807296c97..d394c1300e 100644 --- a/apps/desktop/src/main/__tests__/app-shell-first-send-cleanup.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-first-send-cleanup.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * #1433: the composer is now the only path that starts a conversation, and it * creates the session BEFORE it sends. Every way that first send can fail has diff --git a/apps/desktop/src/main/__tests__/app-shell-pending-attachments.test.ts b/apps/desktop/src/main/__tests__/app-shell-pending-attachments.test.ts index 25c0fef211..cbd67fadae 100644 --- a/apps/desktop/src/main/__tests__/app-shell-pending-attachments.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-pending-attachments.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { appendPending, clearPending, removePending, removePendingItems, selectPending } from '../../renderer/app-shell-pending-attachments.js'; diff --git a/apps/desktop/src/main/__tests__/app-shell-project-actions.test.ts b/apps/desktop/src/main/__tests__/app-shell-project-actions.test.ts index 65580604cc..f65a67fdca 100644 --- a/apps/desktop/src/main/__tests__/app-shell-project-actions.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-project-actions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp } from 'node:fs/promises'; import { dirname, resolve } from 'node:path'; diff --git a/apps/desktop/src/main/__tests__/app-shell-session-purge.test.ts b/apps/desktop/src/main/__tests__/app-shell-session-purge.test.ts index 6e5e42e15d..4e4057977f 100644 --- a/apps/desktop/src/main/__tests__/app-shell-session-purge.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-session-purge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/app-shell-session-row-actions-revisions.test.ts b/apps/desktop/src/main/__tests__/app-shell-session-row-actions-revisions.test.ts index b26c28f272..d3e37e4e69 100644 --- a/apps/desktop/src/main/__tests__/app-shell-session-row-actions-revisions.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-session-row-actions-revisions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/app-shell-session-settings-actions.test.ts b/apps/desktop/src/main/__tests__/app-shell-session-settings-actions.test.ts index 20f9a9dfc2..c72853f287 100644 --- a/apps/desktop/src/main/__tests__/app-shell-session-settings-actions.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-session-settings-actions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/app-shell-session-ui-state.test.ts b/apps/desktop/src/main/__tests__/app-shell-session-ui-state.test.ts index 88f5057461..0ae90c179b 100644 --- a/apps/desktop/src/main/__tests__/app-shell-session-ui-state.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-session-ui-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { SandboxBoundaryRequestEvent } from '@maka/core/events'; diff --git a/apps/desktop/src/main/__tests__/app-shell-turn-actions.test.ts b/apps/desktop/src/main/__tests__/app-shell-turn-actions.test.ts index 02152cca9f..7a27ebb13f 100644 --- a/apps/desktop/src/main/__tests__/app-shell-turn-actions.test.ts +++ b/apps/desktop/src/main/__tests__/app-shell-turn-actions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/app-update-focus-check.test.ts b/apps/desktop/src/main/__tests__/app-update-focus-check.test.ts index efb4b5c800..d453f7b05c 100644 --- a/apps/desktop/src/main/__tests__/app-update-focus-check.test.ts +++ b/apps/desktop/src/main/__tests__/app-update-focus-check.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AppUpdater } from 'electron-updater'; diff --git a/apps/desktop/src/main/__tests__/app-update-install.test.ts b/apps/desktop/src/main/__tests__/app-update-install.test.ts index 65671f95ae..f1467a24b7 100644 --- a/apps/desktop/src/main/__tests__/app-update-install.test.ts +++ b/apps/desktop/src/main/__tests__/app-update-install.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { diff --git a/apps/desktop/src/main/__tests__/app-update-service.test.ts b/apps/desktop/src/main/__tests__/app-update-service.test.ts index d98d4aa2a1..e42dce6e32 100644 --- a/apps/desktop/src/main/__tests__/app-update-service.test.ts +++ b/apps/desktop/src/main/__tests__/app-update-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { EventEmitter } from 'node:events'; import { describe, test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/artifact-preview-registry.test.ts b/apps/desktop/src/main/__tests__/artifact-preview-registry.test.ts index 65b5693cf3..609376de4a 100644 --- a/apps/desktop/src/main/__tests__/artifact-preview-registry.test.ts +++ b/apps/desktop/src/main/__tests__/artifact-preview-registry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { ArtifactBinaryReadResult } from '@maka/core/artifacts'; diff --git a/apps/desktop/src/main/__tests__/assistant-stream.test.ts b/apps/desktop/src/main/__tests__/assistant-stream.test.ts index 299d9ef86f..e0db00c5d5 100644 --- a/apps/desktop/src/main/__tests__/assistant-stream.test.ts +++ b/apps/desktop/src/main/__tests__/assistant-stream.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/attachment-approval.test.ts b/apps/desktop/src/main/__tests__/attachment-approval.test.ts index 370e33a0c6..7b5ec591a9 100644 --- a/apps/desktop/src/main/__tests__/attachment-approval.test.ts +++ b/apps/desktop/src/main/__tests__/attachment-approval.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { resolve } from 'node:path'; diff --git a/apps/desktop/src/main/__tests__/attachment-ingest-payload.test.ts b/apps/desktop/src/main/__tests__/attachment-ingest-payload.test.ts index 56527d3495..1c045ea75d 100644 --- a/apps/desktop/src/main/__tests__/attachment-ingest-payload.test.ts +++ b/apps/desktop/src/main/__tests__/attachment-ingest-payload.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { encodeIngestItems } from '../../preload/attachment-ingest-payload.js'; diff --git a/apps/desktop/src/main/__tests__/attachment-ingest-resolve.test.ts b/apps/desktop/src/main/__tests__/attachment-ingest-resolve.test.ts index 6ce6d8062d..8eb812f74c 100644 --- a/apps/desktop/src/main/__tests__/attachment-ingest-resolve.test.ts +++ b/apps/desktop/src/main/__tests__/attachment-ingest-resolve.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/attachment-preflight.test.ts b/apps/desktop/src/main/__tests__/attachment-preflight.test.ts index cc85778782..d38c2c008c 100644 --- a/apps/desktop/src/main/__tests__/attachment-preflight.test.ts +++ b/apps/desktop/src/main/__tests__/attachment-preflight.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { preflightAttachmentItems } from '../../renderer/attachment-preflight.js'; diff --git a/apps/desktop/src/main/__tests__/attachment-preview.test.ts b/apps/desktop/src/main/__tests__/attachment-preview.test.ts index 8ba017d58b..1fc5ecd4cf 100644 --- a/apps/desktop/src/main/__tests__/attachment-preview.test.ts +++ b/apps/desktop/src/main/__tests__/attachment-preview.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { createAttachmentApprovalRegistry } from '../attachment-approval.js'; diff --git a/apps/desktop/src/main/__tests__/automation-host.test.ts b/apps/desktop/src/main/__tests__/automation-host.test.ts index 2ca741a384..ae37c5ad84 100644 --- a/apps/desktop/src/main/__tests__/automation-host.test.ts +++ b/apps/desktop/src/main/__tests__/automation-host.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * createBrowserViewHost.canDrive — the visible-lease gate, with the * permission-modal viewport-restore wait. Driven through a fake manager + diff --git a/apps/desktop/src/main/__tests__/bootstrap-selection-lease.test.ts b/apps/desktop/src/main/__tests__/bootstrap-selection-lease.test.ts index 533fb29d2c..3179171fa3 100644 --- a/apps/desktop/src/main/__tests__/bootstrap-selection-lease.test.ts +++ b/apps/desktop/src/main/__tests__/bootstrap-selection-lease.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { createBootstrapSelectionLease } from '../../renderer/bootstrap-selection-lease.js'; diff --git a/apps/desktop/src/main/__tests__/bot-incoming-project-cwd.test.ts b/apps/desktop/src/main/__tests__/bot-incoming-project-cwd.test.ts index d874c07fd5..09ca4eb915 100644 --- a/apps/desktop/src/main/__tests__/bot-incoming-project-cwd.test.ts +++ b/apps/desktop/src/main/__tests__/bot-incoming-project-cwd.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { BotIncomingMessage, BotRegistry } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/main/__tests__/bot-incoming-session-lifecycle.test.ts b/apps/desktop/src/main/__tests__/bot-incoming-session-lifecycle.test.ts index 46aef550f8..a9fc383cc2 100644 --- a/apps/desktop/src/main/__tests__/bot-incoming-session-lifecycle.test.ts +++ b/apps/desktop/src/main/__tests__/bot-incoming-session-lifecycle.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { BotIncomingMessage, BotRegistry } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/main/__tests__/bot-incoming-typing.test.ts b/apps/desktop/src/main/__tests__/bot-incoming-typing.test.ts index 844188e0d9..c8ec9a9c77 100644 --- a/apps/desktop/src/main/__tests__/bot-incoming-typing.test.ts +++ b/apps/desktop/src/main/__tests__/bot-incoming-typing.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { getEventListeners } from 'node:events'; import { test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/bot-onboarding-main.test.ts b/apps/desktop/src/main/__tests__/bot-onboarding-main.test.ts index 4adeae57f7..ef77a151e3 100644 --- a/apps/desktop/src/main/__tests__/bot-onboarding-main.test.ts +++ b/apps/desktop/src/main/__tests__/bot-onboarding-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/browser-logic.test.ts b/apps/desktop/src/main/__tests__/browser-logic.test.ts index d0ba6e8ab3..54e7d39079 100644 --- a/apps/desktop/src/main/__tests__/browser-logic.test.ts +++ b/apps/desktop/src/main/__tests__/browser-logic.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Pure embedded-browser logic (controller.ts's testable core). */ import { strict as assert } from 'node:assert'; diff --git a/apps/desktop/src/main/__tests__/browser-selection.test.ts b/apps/desktop/src/main/__tests__/browser-selection.test.ts index 96069455e3..2fdc3c5781 100644 --- a/apps/desktop/src/main/__tests__/browser-selection.test.ts +++ b/apps/desktop/src/main/__tests__/browser-selection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { createBrowserSelectionCoordinator } from '../../preload/browser-selection.js'; diff --git a/apps/desktop/src/main/__tests__/browser-session.test.ts b/apps/desktop/src/main/__tests__/browser-session.test.ts index fef72faa35..3b967fadd9 100644 --- a/apps/desktop/src/main/__tests__/browser-session.test.ts +++ b/apps/desktop/src/main/__tests__/browser-session.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * BrowserSession lifecycle: lazy connect + cache, single-flight first acquire, * connection-loss invalidation, takeover-reload, timeout/abort severing, and diff --git a/apps/desktop/src/main/__tests__/browser-tools.test.ts b/apps/desktop/src/main/__tests__/browser-tools.test.ts index 40a7ce45b6..d121388874 100644 --- a/apps/desktop/src/main/__tests__/browser-tools.test.ts +++ b/apps/desktop/src/main/__tests__/browser-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Browser tools: ref normalization, takeover note, browser_wait * argument validation, and each tool's output formatting driven end-to-end diff --git a/apps/desktop/src/main/__tests__/browser-view-manager.test.ts b/apps/desktop/src/main/__tests__/browser-view-manager.test.ts index f7e10eeb82..f39dcca846 100644 --- a/apps/desktop/src/main/__tests__/browser-view-manager.test.ts +++ b/apps/desktop/src/main/__tests__/browser-view-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** BrowserViewManager bookkeeping: lazy create, reuse, live-change, dispose, leak invariant. */ import { strict as assert } from 'node:assert'; diff --git a/apps/desktop/src/main/__tests__/build-info.test.ts b/apps/desktop/src/main/__tests__/build-info.test.ts index 8be020f826..02ad30dd59 100644 --- a/apps/desktop/src/main/__tests__/build-info.test.ts +++ b/apps/desktop/src/main/__tests__/build-info.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The build stamp exists to tell a locally built tree apart from a release. * A linked worktree is the checkout where that matters most — it is the one diff --git a/apps/desktop/src/main/__tests__/cdp-bridge.test.ts b/apps/desktop/src/main/__tests__/cdp-bridge.test.ts index 35bf10ddf5..5903db85a9 100644 --- a/apps/desktop/src/main/__tests__/cdp-bridge.test.ts +++ b/apps/desktop/src/main/__tests__/cdp-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * CdpBridge security + relay contract. Ported from PawWork (bun:test → node:test). * A stub `webContents.debugger` (EventEmitter) stands in for the real target, so diff --git a/apps/desktop/src/main/__tests__/chat-composer-region-draft-handoff.test.ts b/apps/desktop/src/main/__tests__/chat-composer-region-draft-handoff.test.ts index 8d49a8e453..125671291c 100644 --- a/apps/desktop/src/main/__tests__/chat-composer-region-draft-handoff.test.ts +++ b/apps/desktop/src/main/__tests__/chat-composer-region-draft-handoff.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { act, createElement, createRef } from 'react'; diff --git a/apps/desktop/src/main/__tests__/client-settings-effects.test.ts b/apps/desktop/src/main/__tests__/client-settings-effects.test.ts index 09f63d2a9f..5c6065321b 100644 --- a/apps/desktop/src/main/__tests__/client-settings-effects.test.ts +++ b/apps/desktop/src/main/__tests__/client-settings-effects.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createDefaultSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/client-settings-ipc-main.test.ts b/apps/desktop/src/main/__tests__/client-settings-ipc-main.test.ts index 8fc4570a35..3b6f9e4438 100644 --- a/apps/desktop/src/main/__tests__/client-settings-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/client-settings-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import test from "node:test"; import { diff --git a/apps/desktop/src/main/__tests__/client-settings-watcher.test.ts b/apps/desktop/src/main/__tests__/client-settings-watcher.test.ts index b0b1747088..2cd22d501d 100644 --- a/apps/desktop/src/main/__tests__/client-settings-watcher.test.ts +++ b/apps/desktop/src/main/__tests__/client-settings-watcher.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { test } from "node:test"; import { startClientSettingsWatcher } from "../client-settings-watcher.js"; diff --git a/apps/desktop/src/main/__tests__/command-palette-retired.test.ts b/apps/desktop/src/main/__tests__/command-palette-retired.test.ts index 41107921f9..7b37a223db 100644 --- a/apps/desktop/src/main/__tests__/command-palette-retired.test.ts +++ b/apps/desktop/src/main/__tests__/command-palette-retired.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/computer-use-host.test.ts b/apps/desktop/src/main/__tests__/computer-use-host.test.ts index b01b35c051..51c89b636e 100644 --- a/apps/desktop/src/main/__tests__/computer-use-host.test.ts +++ b/apps/desktop/src/main/__tests__/computer-use-host.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { chmod, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/__tests__/computer-use-real-model-policy.test.ts b/apps/desktop/src/main/__tests__/computer-use-real-model-policy.test.ts index b461058fb1..0799e3055c 100644 --- a/apps/desktop/src/main/__tests__/computer-use-real-model-policy.test.ts +++ b/apps/desktop/src/main/__tests__/computer-use-real-model-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { ComputerUseToolSet } from '@maka/runtime/computer-use-tools'; diff --git a/apps/desktop/src/main/__tests__/computer-use-screen-lock.test.ts b/apps/desktop/src/main/__tests__/computer-use-screen-lock.test.ts index fe5e719fb4..ae848e39f1 100644 --- a/apps/desktop/src/main/__tests__/computer-use-screen-lock.test.ts +++ b/apps/desktop/src/main/__tests__/computer-use-screen-lock.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Behavior contract for the Computer Use screen-lock monitor. Driven against // injected signals (no Electron main process), because the whole point of the // monitor is that neither macOS signal is trustworthy alone: diff --git a/apps/desktop/src/main/__tests__/computer-use-status-item-locale.test.ts b/apps/desktop/src/main/__tests__/computer-use-status-item-locale.test.ts index b0a0df8e5f..cf3912e50e 100644 --- a/apps/desktop/src/main/__tests__/computer-use-status-item-locale.test.ts +++ b/apps/desktop/src/main/__tests__/computer-use-status-item-locale.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createDefaultSettings, mergeSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/config-transfer-service.test.ts b/apps/desktop/src/main/__tests__/config-transfer-service.test.ts index e04aa1d316..3952a3ddf8 100644 --- a/apps/desktop/src/main/__tests__/config-transfer-service.test.ts +++ b/apps/desktop/src/main/__tests__/config-transfer-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { AppSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/connection-catalog-fixture.test.ts b/apps/desktop/src/main/__tests__/connection-catalog-fixture.test.ts index 09929679dc..0627ceadd4 100644 --- a/apps/desktop/src/main/__tests__/connection-catalog-fixture.test.ts +++ b/apps/desktop/src/main/__tests__/connection-catalog-fixture.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/conversation-markdown.test.ts b/apps/desktop/src/main/__tests__/conversation-markdown.test.ts index 568f0e6e08..cd8cafacec 100644 --- a/apps/desktop/src/main/__tests__/conversation-markdown.test.ts +++ b/apps/desktop/src/main/__tests__/conversation-markdown.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Export must prefer the human-facing user message view so skill-injection * envelopes do not leak into clipboard / file exports. diff --git a/apps/desktop/src/main/__tests__/create-session-input.test.ts b/apps/desktop/src/main/__tests__/create-session-input.test.ts index 85a0d456fe..1319062b5f 100644 --- a/apps/desktop/src/main/__tests__/create-session-input.test.ts +++ b/apps/desktop/src/main/__tests__/create-session-input.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * #1433: `quickChat:start` was a second session-creation IPC whose only * distinct job was turning a product mode into session fields. The IPC is diff --git a/apps/desktop/src/main/__tests__/cursor-engine.test.ts b/apps/desktop/src/main/__tests__/cursor-engine.test.ts index f6cd92f711..6bb7806f95 100644 --- a/apps/desktop/src/main/__tests__/cursor-engine.test.ts +++ b/apps/desktop/src/main/__tests__/cursor-engine.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/apps/desktop/src/main/__tests__/daily-review-fixture.test.ts b/apps/desktop/src/main/__tests__/daily-review-fixture.test.ts index 418e3232fb..101dd161f9 100644 --- a/apps/desktop/src/main/__tests__/daily-review-fixture.test.ts +++ b/apps/desktop/src/main/__tests__/daily-review-fixture.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/default-runtime-host-operation.test.ts b/apps/desktop/src/main/__tests__/default-runtime-host-operation.test.ts index 2221114412..ab3609b121 100644 --- a/apps/desktop/src/main/__tests__/default-runtime-host-operation.test.ts +++ b/apps/desktop/src/main/__tests__/default-runtime-host-operation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/desktop-assets.test.ts b/apps/desktop/src/main/__tests__/desktop-assets.test.ts index ab34bd43ee..fd25d7fe2f 100644 --- a/apps/desktop/src/main/__tests__/desktop-assets.test.ts +++ b/apps/desktop/src/main/__tests__/desktop-assets.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { join } from 'node:path'; import { test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/desktop-locale-authority.test.ts b/apps/desktop/src/main/__tests__/desktop-locale-authority.test.ts index acd52d9fa6..1b6ae08f01 100644 --- a/apps/desktop/src/main/__tests__/desktop-locale-authority.test.ts +++ b/apps/desktop/src/main/__tests__/desktop-locale-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createDefaultSettings, mergeSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/desktop-native-copy.test.ts b/apps/desktop/src/main/__tests__/desktop-native-copy.test.ts index 9d0ebebca1..f5678fc671 100644 --- a/apps/desktop/src/main/__tests__/desktop-native-copy.test.ts +++ b/apps/desktop/src/main/__tests__/desktop-native-copy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/desktop-session-projection.test.ts b/apps/desktop/src/main/__tests__/desktop-session-projection.test.ts index bea2f2a5b5..1e76a2afca 100644 --- a/apps/desktop/src/main/__tests__/desktop-session-projection.test.ts +++ b/apps/desktop/src/main/__tests__/desktop-session-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/apps/desktop/src/main/__tests__/desktop-transcript-range-store.test.ts b/apps/desktop/src/main/__tests__/desktop-transcript-range-store.test.ts index e8d34b68b2..b99b79ced0 100644 --- a/apps/desktop/src/main/__tests__/desktop-transcript-range-store.test.ts +++ b/apps/desktop/src/main/__tests__/desktop-transcript-range-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { StoredMessage } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/external-link-guard.test.ts b/apps/desktop/src/main/__tests__/external-link-guard.test.ts index 939c2a3557..12280ba8d1 100644 --- a/apps/desktop/src/main/__tests__/external-link-guard.test.ts +++ b/apps/desktop/src/main/__tests__/external-link-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Tests for the URL-scheme whitelist used by main's external-link guard. * diff --git a/apps/desktop/src/main/__tests__/external-session-catalog-projection.test.ts b/apps/desktop/src/main/__tests__/external-session-catalog-projection.test.ts index 15a45fc0f6..ded8a47305 100644 --- a/apps/desktop/src/main/__tests__/external-session-catalog-projection.test.ts +++ b/apps/desktop/src/main/__tests__/external-session-catalog-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/fake-dom.ts b/apps/desktop/src/main/__tests__/fake-dom.ts index 3b148178a8..2dac76ccde 100644 --- a/apps/desktop/src/main/__tests__/fake-dom.ts +++ b/apps/desktop/src/main/__tests__/fake-dom.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * A DOM small enough to render a hook into, and no larger. * diff --git a/apps/desktop/src/main/__tests__/git-review-main.test.ts b/apps/desktop/src/main/__tests__/git-review-main.test.ts index 8aa1c9d063..b41b7c65b8 100644 --- a/apps/desktop/src/main/__tests__/git-review-main.test.ts +++ b/apps/desktop/src/main/__tests__/git-review-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/__tests__/github-copilot-subscription-service.test.ts b/apps/desktop/src/main/__tests__/github-copilot-subscription-service.test.ts index 215544f7a4..1d2742316c 100644 --- a/apps/desktop/src/main/__tests__/github-copilot-subscription-service.test.ts +++ b/apps/desktop/src/main/__tests__/github-copilot-subscription-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/history-compact-artifacts.test.ts b/apps/desktop/src/main/__tests__/history-compact-artifacts.test.ts index 89d5f1dc6c..4c0cbfce66 100644 --- a/apps/desktop/src/main/__tests__/history-compact-artifacts.test.ts +++ b/apps/desktop/src/main/__tests__/history-compact-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/__tests__/import-tasks-settings-page.test.ts b/apps/desktop/src/main/__tests__/import-tasks-settings-page.test.ts index 1cce0d1583..6b4cb62aeb 100644 --- a/apps/desktop/src/main/__tests__/import-tasks-settings-page.test.ts +++ b/apps/desktop/src/main/__tests__/import-tasks-settings-page.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { afterEach, describe, it } from 'node:test'; import { parseHTML } from 'linkedom'; diff --git a/apps/desktop/src/main/__tests__/keep-system-awake.test.ts b/apps/desktop/src/main/__tests__/keep-system-awake.test.ts index 7ff85be506..776afebbbb 100644 --- a/apps/desktop/src/main/__tests__/keep-system-awake.test.ts +++ b/apps/desktop/src/main/__tests__/keep-system-awake.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { diff --git a/apps/desktop/src/main/__tests__/live-content-seed.test.ts b/apps/desktop/src/main/__tests__/live-content-seed.test.ts index 1f3dda6fe0..8322a8a43d 100644 --- a/apps/desktop/src/main/__tests__/live-content-seed.test.ts +++ b/apps/desktop/src/main/__tests__/live-content-seed.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/main-process-diagnostics.test.ts b/apps/desktop/src/main/__tests__/main-process-diagnostics.test.ts index f8e08cc841..edbea77609 100644 --- a/apps/desktop/src/main/__tests__/main-process-diagnostics.test.ts +++ b/apps/desktop/src/main/__tests__/main-process-diagnostics.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { IpcMain } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/main-window-permission-policy.test.ts b/apps/desktop/src/main/__tests__/main-window-permission-policy.test.ts index 9b6e3be503..df34f9b276 100644 --- a/apps/desktop/src/main/__tests__/main-window-permission-policy.test.ts +++ b/apps/desktop/src/main/__tests__/main-window-permission-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { WebContents } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/maka-uri.test.ts b/apps/desktop/src/main/__tests__/maka-uri.test.ts index 28d09e09ac..1f752978ba 100644 --- a/apps/desktop/src/main/__tests__/maka-uri.test.ts +++ b/apps/desktop/src/main/__tests__/maka-uri.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/managed-skill-sources.test.ts b/apps/desktop/src/main/__tests__/managed-skill-sources.test.ts index 6637613766..b1946c346a 100644 --- a/apps/desktop/src/main/__tests__/managed-skill-sources.test.ts +++ b/apps/desktop/src/main/__tests__/managed-skill-sources.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { chmod, mkdir, mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/__tests__/mcp-command-line.test.ts b/apps/desktop/src/main/__tests__/mcp-command-line.test.ts index 615e6af7ad..e0e8bdf718 100644 --- a/apps/desktop/src/main/__tests__/mcp-command-line.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-command-line.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/mcp-editor-validation.test.ts b/apps/desktop/src/main/__tests__/mcp-editor-validation.test.ts index 14282b2904..cdb06cefab 100644 --- a/apps/desktop/src/main/__tests__/mcp-editor-validation.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-editor-validation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { validateMcpEditorDraft } from '../../renderer/mcp-editor-validation.js'; diff --git a/apps/desktop/src/main/__tests__/mcp-import.test.ts b/apps/desktop/src/main/__tests__/mcp-import.test.ts index 197286205e..1af492b790 100644 --- a/apps/desktop/src/main/__tests__/mcp-import.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-import.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { MCP_CONFIG_VERSION } from '@maka/core/mcp'; diff --git a/apps/desktop/src/main/__tests__/mcp-ipc-main.test.ts b/apps/desktop/src/main/__tests__/mcp-ipc-main.test.ts index 1f928ebf68..23ad463d7b 100644 --- a/apps/desktop/src/main/__tests__/mcp-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { MCP_CONFIG_VERSION, type McpConfigFile, type McpServerStatus } from '@maka/core/mcp'; diff --git a/apps/desktop/src/main/__tests__/mcp-page-model.test.ts b/apps/desktop/src/main/__tests__/mcp-page-model.test.ts index a46e8afe45..47b1236bec 100644 --- a/apps/desktop/src/main/__tests__/mcp-page-model.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-page-model.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { isMcpStdioConfig, type McpServerStatus } from '@maka/core/mcp'; diff --git a/apps/desktop/src/main/__tests__/mcp-runtime-e2e.test.ts b/apps/desktop/src/main/__tests__/mcp-runtime-e2e.test.ts index a37e541b7b..3d9e5142d7 100644 --- a/apps/desktop/src/main/__tests__/mcp-runtime-e2e.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-runtime-e2e.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fileURLToPath } from 'node:url'; import { test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/mcp-secret-guard.test.ts b/apps/desktop/src/main/__tests__/mcp-secret-guard.test.ts index 8488dcfc1b..02fe319de6 100644 --- a/apps/desktop/src/main/__tests__/mcp-secret-guard.test.ts +++ b/apps/desktop/src/main/__tests__/mcp-secret-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { MCP_CONFIG_VERSION, type McpConfigFile } from '@maka/core/mcp'; diff --git a/apps/desktop/src/main/__tests__/model-catalog-choices.test.ts b/apps/desktop/src/main/__tests__/model-catalog-choices.test.ts index 2a384a716b..cc8c995d42 100644 --- a/apps/desktop/src/main/__tests__/model-catalog-choices.test.ts +++ b/apps/desktop/src/main/__tests__/model-catalog-choices.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/multi-host-thread-search.test.ts b/apps/desktop/src/main/__tests__/multi-host-thread-search.test.ts index ec3b040e31..6946b680de 100644 --- a/apps/desktop/src/main/__tests__/multi-host-thread-search.test.ts +++ b/apps/desktop/src/main/__tests__/multi-host-thread-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { SearchError, SearchResult } from '@maka/core/search'; diff --git a/apps/desktop/src/main/__tests__/native-diagnostic-dialog.test.ts b/apps/desktop/src/main/__tests__/native-diagnostic-dialog.test.ts index efc638ba94..275c46d73c 100644 --- a/apps/desktop/src/main/__tests__/native-diagnostic-dialog.test.ts +++ b/apps/desktop/src/main/__tests__/native-diagnostic-dialog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { MessageBoxOptions, MessageBoxReturnValue } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/new-session-project.test.ts b/apps/desktop/src/main/__tests__/new-session-project.test.ts index 57050fcd30..94edfe171d 100644 --- a/apps/desktop/src/main/__tests__/new-session-project.test.ts +++ b/apps/desktop/src/main/__tests__/new-session-project.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { resolveDesktopSessionWorkspace } from '../new-session-project.js'; diff --git a/apps/desktop/src/main/__tests__/notifications-policy.test.ts b/apps/desktop/src/main/__tests__/notifications-policy.test.ts index c58a9ddeb6..fde041c2b9 100644 --- a/apps/desktop/src/main/__tests__/notifications-policy.test.ts +++ b/apps/desktop/src/main/__tests__/notifications-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { it } from 'node:test'; import assert from 'node:assert/strict'; import { diff --git a/apps/desktop/src/main/__tests__/oauth-login-flow-guard.test.ts b/apps/desktop/src/main/__tests__/oauth-login-flow-guard.test.ts index 631ddb075e..1f8e5a7685 100644 --- a/apps/desktop/src/main/__tests__/oauth-login-flow-guard.test.ts +++ b/apps/desktop/src/main/__tests__/oauth-login-flow-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Behavioral coverage for the framework-free primitives behind * useOAuthLoginFlow — the shared browser-loopback login controller that both diff --git a/apps/desktop/src/main/__tests__/open-path-guard.test.ts b/apps/desktop/src/main/__tests__/open-path-guard.test.ts index bc62853b7d..ccc26fd2d3 100644 --- a/apps/desktop/src/main/__tests__/open-path-guard.test.ts +++ b/apps/desktop/src/main/__tests__/open-path-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/optimistic-settings-draft-controller.test.ts b/apps/desktop/src/main/__tests__/optimistic-settings-draft-controller.test.ts index f645a3b4e9..ad6002ffee 100644 --- a/apps/desktop/src/main/__tests__/optimistic-settings-draft-controller.test.ts +++ b/apps/desktop/src/main/__tests__/optimistic-settings-draft-controller.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Unit test for the shared optimistic last-write-wins draft controller that * backs `useOptimisticSettingsDraft`. The React shell is covered by the diff --git a/apps/desktop/src/main/__tests__/os-permission-policy.test.ts b/apps/desktop/src/main/__tests__/os-permission-policy.test.ts index 7f04fcd6b4..c6086fbbbc 100644 --- a/apps/desktop/src/main/__tests__/os-permission-policy.test.ts +++ b/apps/desktop/src/main/__tests__/os-permission-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/pending-session-view.test.ts b/apps/desktop/src/main/__tests__/pending-session-view.test.ts index 30b1f601a3..e085509a63 100644 --- a/apps/desktop/src/main/__tests__/pending-session-view.test.ts +++ b/apps/desktop/src/main/__tests__/pending-session-view.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { pendingSessionView } from '../../renderer/pending-session-view.js'; diff --git a/apps/desktop/src/main/__tests__/permission-mode-default.test.ts b/apps/desktop/src/main/__tests__/permission-mode-default.test.ts index 244d9d2fed..e7a2a8ef79 100644 --- a/apps/desktop/src/main/__tests__/permission-mode-default.test.ts +++ b/apps/desktop/src/main/__tests__/permission-mode-default.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Behavior tests for the chat-default permission-mode resolver. This is the * SINGLE authority for a new session's starting permission mode: the renderer diff --git a/apps/desktop/src/main/__tests__/permission-overlay-controller.test.ts b/apps/desktop/src/main/__tests__/permission-overlay-controller.test.ts index aa43c203d1..8e84e7608f 100644 --- a/apps/desktop/src/main/__tests__/permission-overlay-controller.test.ts +++ b/apps/desktop/src/main/__tests__/permission-overlay-controller.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Drag-to-grant overlay lifecycle contract. * diff --git a/apps/desktop/src/main/__tests__/permission-response-ipc-boundary.test.ts b/apps/desktop/src/main/__tests__/permission-response-ipc-boundary.test.ts index a94f592d90..9cc8ab1f1e 100644 --- a/apps/desktop/src/main/__tests__/permission-response-ipc-boundary.test.ts +++ b/apps/desktop/src/main/__tests__/permission-response-ipc-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/personalization-prompt.test.ts b/apps/desktop/src/main/__tests__/personalization-prompt.test.ts index 3484c1b77a..2cb63caab0 100644 --- a/apps/desktop/src/main/__tests__/personalization-prompt.test.ts +++ b/apps/desktop/src/main/__tests__/personalization-prompt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/pet-pack-import.test.ts b/apps/desktop/src/main/__tests__/pet-pack-import.test.ts index 3cd04ce2d8..328355bf71 100644 --- a/apps/desktop/src/main/__tests__/pet-pack-import.test.ts +++ b/apps/desktop/src/main/__tests__/pet-pack-import.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/plan-mode-copy.test.ts b/apps/desktop/src/main/__tests__/plan-mode-copy.test.ts index afe208a05f..fbe73bb661 100644 --- a/apps/desktop/src/main/__tests__/plan-mode-copy.test.ts +++ b/apps/desktop/src/main/__tests__/plan-mode-copy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { getPlanModeCopy } from '../../renderer/locales/plan-mode-copy.js'; diff --git a/apps/desktop/src/main/__tests__/project-context-root.test.ts b/apps/desktop/src/main/__tests__/project-context-root.test.ts index 5eaa49f49f..2087021d05 100644 --- a/apps/desktop/src/main/__tests__/project-context-root.test.ts +++ b/apps/desktop/src/main/__tests__/project-context-root.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { chmod, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/project-management-service.test.ts b/apps/desktop/src/main/__tests__/project-management-service.test.ts index 6776bc2e46..fc98e39750 100644 --- a/apps/desktop/src/main/__tests__/project-management-service.test.ts +++ b/apps/desktop/src/main/__tests__/project-management-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { mkdir, mkdtemp, realpath, rm } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/__tests__/project-root-controller.test.ts b/apps/desktop/src/main/__tests__/project-root-controller.test.ts index 9995a8354c..2ab8b25426 100644 --- a/apps/desktop/src/main/__tests__/project-root-controller.test.ts +++ b/apps/desktop/src/main/__tests__/project-root-controller.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/provider-add-submission.test.ts b/apps/desktop/src/main/__tests__/provider-add-submission.test.ts index b40cc2b07e..8d0302037d 100644 --- a/apps/desktop/src/main/__tests__/provider-add-submission.test.ts +++ b/apps/desktop/src/main/__tests__/provider-add-submission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/provider-connection-status.test.ts b/apps/desktop/src/main/__tests__/provider-connection-status.test.ts index 6bdbe55cae..a0429cb72f 100644 --- a/apps/desktop/src/main/__tests__/provider-connection-status.test.ts +++ b/apps/desktop/src/main/__tests__/provider-connection-status.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/qq-bot-scan-login.test.ts b/apps/desktop/src/main/__tests__/qq-bot-scan-login.test.ts index 60781756f1..58cb994b53 100644 --- a/apps/desktop/src/main/__tests__/qq-bot-scan-login.test.ts +++ b/apps/desktop/src/main/__tests__/qq-bot-scan-login.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createCipheriv, randomBytes } from 'node:crypto'; import { describe, test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/quote-companion-cleanup.test.ts b/apps/desktop/src/main/__tests__/quote-companion-cleanup.test.ts index e028844e50..90a268e9f6 100644 --- a/apps/desktop/src/main/__tests__/quote-companion-cleanup.test.ts +++ b/apps/desktop/src/main/__tests__/quote-companion-cleanup.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/quote-companion-panel-state.test.ts b/apps/desktop/src/main/__tests__/quote-companion-panel-state.test.ts index 79c0ee6112..9345cf46bc 100644 --- a/apps/desktop/src/main/__tests__/quote-companion-panel-state.test.ts +++ b/apps/desktop/src/main/__tests__/quote-companion-panel-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { QuoteRef } from '@maka/core/events'; diff --git a/apps/desktop/src/main/__tests__/redact.test.ts b/apps/desktop/src/main/__tests__/redact.test.ts index 757b501351..af842bbcb3 100644 --- a/apps/desktop/src/main/__tests__/redact.test.ts +++ b/apps/desktop/src/main/__tests__/redact.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { redactSecrets } from '@maka/ui'; diff --git a/apps/desktop/src/main/__tests__/relay-profile-draft.test.ts b/apps/desktop/src/main/__tests__/relay-profile-draft.test.ts index 6395e6c4c7..4499abfbf0 100644 --- a/apps/desktop/src/main/__tests__/relay-profile-draft.test.ts +++ b/apps/desktop/src/main/__tests__/relay-profile-draft.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/relay-thinking-bulk.test.ts b/apps/desktop/src/main/__tests__/relay-thinking-bulk.test.ts index 220c2d12c5..7361860c94 100644 --- a/apps/desktop/src/main/__tests__/relay-thinking-bulk.test.ts +++ b/apps/desktop/src/main/__tests__/relay-thinking-bulk.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/rive-workflow-tool.test.ts b/apps/desktop/src/main/__tests__/rive-workflow-tool.test.ts index d6611d6cc5..36dc12ac85 100644 --- a/apps/desktop/src/main/__tests__/rive-workflow-tool.test.ts +++ b/apps/desktop/src/main/__tests__/rive-workflow-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { chmod, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-account-connection.test.ts b/apps/desktop/src/main/__tests__/runtime-host-account-connection.test.ts index 15a80b8196..c02770cec1 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-account-connection.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-account-connection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { ConnectionCatalogSnapshot, ConnectionTarget } from '@maka/core/runtime-policy'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-artifacts-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-artifacts-ipc-main.test.ts index c9c9242fff..b5023bd229 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-artifacts-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-artifacts-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { mkdtemp, readFile, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-bot-session-adapter.test.ts b/apps/desktop/src/main/__tests__/runtime-host-bot-session-adapter.test.ts index f48fe34509..216ceb4e47 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-bot-session-adapter.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-bot-session-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { RuntimeHostOperationError } from '@maka/runtime-host/client'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-capability-revision-publisher.test.ts b/apps/desktop/src/main/__tests__/runtime-host-capability-revision-publisher.test.ts index ab60a77571..556aaed166 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-capability-revision-publisher.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-capability-revision-publisher.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createCapabilityRevisionPublisher } from '../runtime-host-capability-revision-publisher.js'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-client-operations.test.ts b/apps/desktop/src/main/__tests__/runtime-host-client-operations.test.ts index 9620780a9a..ee39add186 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-client-operations.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-client-operations.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createDefaultRuntimePolicy } from '@maka/core/runtime-policy'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-client-pricing-uds.test.ts b/apps/desktop/src/main/__tests__/runtime-host-client-pricing-uds.test.ts index b190e874fc..7e41b62a41 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-client-pricing-uds.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-client-pricing-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-client-pricing.test.ts b/apps/desktop/src/main/__tests__/runtime-host-client-pricing.test.ts index 388143be74..95bc234739 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-client-pricing.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-client-pricing.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/runtime-host-client-uds.test.ts b/apps/desktop/src/main/__tests__/runtime-host-client-uds.test.ts index b4233e4e17..0ef1424b89 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-client-uds.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-client.test.ts b/apps/desktop/src/main/__tests__/runtime-host-client.test.ts index ea799aaf41..7eec64685a 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-client.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-client.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { diff --git a/apps/desktop/src/main/__tests__/runtime-host-config-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-config-ipc-main.test.ts index 1b9c923ae7..322748cc47 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-config-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-config-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { AppSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-connections-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-connections-ipc-main.test.ts index a994f2362c..7eda0a88ce 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-connections-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-connections-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { OPENCODE_FREE_DEFAULT_ENABLED_MODELS } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-default-recovery.test.ts b/apps/desktop/src/main/__tests__/runtime-host-default-recovery.test.ts index b2e29a5f7d..370686c9cc 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-default-recovery.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-default-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createRuntimeHostDefaultRecovery } from '../runtime-host-default-recovery.js'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-desktop-candidate.test.ts b/apps/desktop/src/main/__tests__/runtime-host-desktop-candidate.test.ts index a87a64d2a6..7eee1772a4 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-desktop-candidate.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-desktop-candidate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { EventEmitter } from 'node:events'; import test from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-desktop-manager.test.ts b/apps/desktop/src/main/__tests__/runtime-host-desktop-manager.test.ts index da9762da31..448ad4d152 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-desktop-manager.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-desktop-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { BotIncomingMessage } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-external-sessions-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-external-sessions-ipc-main.test.ts index 4632b5ca87..19d5158557 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-external-sessions-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-external-sessions-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { IpcMain } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-github-copilot-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-github-copilot-ipc-main.test.ts index c92f27a6a6..517d089756 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-github-copilot-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-github-copilot-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { IpcMainInvokeEvent } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-memory-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-memory-ipc-main.test.ts index 60e2943767..17391c12fc 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-memory-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-memory-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createDefaultRuntimePolicy } from '@maka/core/runtime-policy'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-native-capabilities.test.ts b/apps/desktop/src/main/__tests__/runtime-host-native-capabilities.test.ts index a80026c696..f45bca13b1 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-native-capabilities.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-native-capabilities.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { buildComputerUseTools, type ComputerUseToolSet } from '@maka/runtime/computer-use-tools'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-oauth-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-oauth-ipc-main.test.ts index ae726e1124..d09bb0a58b 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-oauth-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-oauth-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { IpcMainInvokeEvent } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-onboarding.test.ts b/apps/desktop/src/main/__tests__/runtime-host-onboarding.test.ts index f39930d387..63181d3cce 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-onboarding.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-onboarding.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { DesktopRuntimeHostProfileAddInput } from '../../preload/bridge-contract.js'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-profile-service.test.ts b/apps/desktop/src/main/__tests__/runtime-host-profile-service.test.ts index 0cfdbbc74d..197f1e7da9 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-profile-service.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-profile-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-reconnecting-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-reconnecting-ipc-main.test.ts index 7cb9dfb738..9964fc13cf 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-reconnecting-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-reconnecting-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import test from "node:test"; import type { IpcMain } from "electron"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-catalog-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-session-catalog-ipc-main.test.ts index 04a54dc3a2..1c4526dd12 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-catalog-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-catalog-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { SessionCatalogProjection } from '@maka/runtime-host/protocol'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-catalog-running-turns.test.ts b/apps/desktop/src/main/__tests__/runtime-host-session-catalog-running-turns.test.ts index afb3af03e5..a12ec1dfb1 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-catalog-running-turns.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-catalog-running-turns.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { SessionCatalogProjection } from '@maka/runtime-host/protocol'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-domains-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-session-domains-ipc-main.test.ts index 7ca0597205..8b645a7775 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-domains-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-domains-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { IpcMain } from 'electron'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-execution-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-session-execution-ipc-main.test.ts index ec3ab770eb..dc8087fecd 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-execution-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-execution-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { EventEmitter } from 'node:events'; import { mkdtemp, rm, writeFile } from "node:fs/promises"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-observer.test.ts b/apps/desktop/src/main/__tests__/runtime-host-session-observer.test.ts index 0a17550a82..42d0ed4906 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-observer.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-observer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { EventEmitter } from "node:events"; import test from "node:test"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-session-test-fixture.ts b/apps/desktop/src/main/__tests__/runtime-host-session-test-fixture.ts index 32a562dd3b..c213a0ee45 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-session-test-fixture.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-session-test-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import type { DecodedSessionTranscriptPage } from '@maka/runtime-host/client'; import type { diff --git a/apps/desktop/src/main/__tests__/runtime-host-skills-ipc-main.test.ts b/apps/desktop/src/main/__tests__/runtime-host-skills-ipc-main.test.ts index 245fc93eb3..b85e169067 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-skills-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-skills-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { test } from "node:test"; import type { IpcHandler } from "../ipc-reconnect-policy.js"; diff --git a/apps/desktop/src/main/__tests__/runtime-host-ssh-terminal.test.ts b/apps/desktop/src/main/__tests__/runtime-host-ssh-terminal.test.ts index 55e915a1b8..0c42fccb9c 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-ssh-terminal.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-ssh-terminal.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/runtime-host-upgrade-dialog.test.ts b/apps/desktop/src/main/__tests__/runtime-host-upgrade-dialog.test.ts index a69d9661e5..3f515e2c9b 100644 --- a/apps/desktop/src/main/__tests__/runtime-host-upgrade-dialog.test.ts +++ b/apps/desktop/src/main/__tests__/runtime-host-upgrade-dialog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { buildRuntimeHostUpgradeDialogOptions } from '../runtime-host-upgrade-copy.js'; diff --git a/apps/desktop/src/main/__tests__/scroll-motion-policy.test.ts b/apps/desktop/src/main/__tests__/scroll-motion-policy.test.ts index 3df06162e0..19f69aa98e 100644 --- a/apps/desktop/src/main/__tests__/scroll-motion-policy.test.ts +++ b/apps/desktop/src/main/__tests__/scroll-motion-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { resolveScrollMotionBehavior } from '../../renderer/scroll-motion-policy.js'; diff --git a/apps/desktop/src/main/__tests__/seed-completion.test.ts b/apps/desktop/src/main/__tests__/seed-completion.test.ts index e6e63cf2d5..37482395a8 100644 --- a/apps/desktop/src/main/__tests__/seed-completion.test.ts +++ b/apps/desktop/src/main/__tests__/seed-completion.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { notifyWhenSeeded } from '../../preload/seed-completion.js'; diff --git a/apps/desktop/src/main/__tests__/session-copy-attempt.test.ts b/apps/desktop/src/main/__tests__/session-copy-attempt.test.ts index f64d4f33b0..54de542ab9 100644 --- a/apps/desktop/src/main/__tests__/session-copy-attempt.test.ts +++ b/apps/desktop/src/main/__tests__/session-copy-attempt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type * as SessionCopyAttemptModule from '../../renderer/session-copy-attempt.js'; diff --git a/apps/desktop/src/main/__tests__/session-environment-prompt.test.ts b/apps/desktop/src/main/__tests__/session-environment-prompt.test.ts index 6fe154f9b4..5ec7ea794c 100644 --- a/apps/desktop/src/main/__tests__/session-environment-prompt.test.ts +++ b/apps/desktop/src/main/__tests__/session-environment-prompt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { buildSessionEnvironmentPromptFragment } from '@maka/runtime/system-prompt/session-environment-prompt'; diff --git a/apps/desktop/src/main/__tests__/session-event-health.test.ts b/apps/desktop/src/main/__tests__/session-event-health.test.ts index 8af0f296f5..9fde04fca7 100644 --- a/apps/desktop/src/main/__tests__/session-event-health.test.ts +++ b/apps/desktop/src/main/__tests__/session-event-health.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts b/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts index f35d2ebcc6..c8c5d045bc 100644 --- a/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts +++ b/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/session-inspector-pricing-key.test.ts b/apps/desktop/src/main/__tests__/session-inspector-pricing-key.test.ts index 9722ad1efc..ba0e41157e 100644 --- a/apps/desktop/src/main/__tests__/session-inspector-pricing-key.test.ts +++ b/apps/desktop/src/main/__tests__/session-inspector-pricing-key.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/session-list-layout.test.ts b/apps/desktop/src/main/__tests__/session-list-layout.test.ts index 3c9ff34d77..161711d1d1 100644 --- a/apps/desktop/src/main/__tests__/session-list-layout.test.ts +++ b/apps/desktop/src/main/__tests__/session-list-layout.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, describe, it } from 'node:test'; import { diff --git a/apps/desktop/src/main/__tests__/session-mode-ipc-main.test.ts b/apps/desktop/src/main/__tests__/session-mode-ipc-main.test.ts index bba8c3f5f2..73ecf9189c 100644 --- a/apps/desktop/src/main/__tests__/session-mode-ipc-main.test.ts +++ b/apps/desktop/src/main/__tests__/session-mode-ipc-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Plan and orchestration are two Session fields with two lifetimes, so they * are two channels here, and each writes only its own field. A Plan excursion diff --git a/apps/desktop/src/main/__tests__/session-observation-release.test.ts b/apps/desktop/src/main/__tests__/session-observation-release.test.ts index 3ba848d45f..c5609e0008 100644 --- a/apps/desktop/src/main/__tests__/session-observation-release.test.ts +++ b/apps/desktop/src/main/__tests__/session-observation-release.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { releaseSessionObservation } from '../../preload/session-observation-release.js'; diff --git a/apps/desktop/src/main/__tests__/session-project-hierarchy-contract.test.ts b/apps/desktop/src/main/__tests__/session-project-hierarchy-contract.test.ts index e183b0dd7a..3cba90553e 100644 --- a/apps/desktop/src/main/__tests__/session-project-hierarchy-contract.test.ts +++ b/apps/desktop/src/main/__tests__/session-project-hierarchy-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { existsSync, readFileSync } from 'node:fs'; import { describe, it } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/session-read-state.test.ts b/apps/desktop/src/main/__tests__/session-read-state.test.ts index 10f54fb407..04a4b2a9e6 100644 --- a/apps/desktop/src/main/__tests__/session-read-state.test.ts +++ b/apps/desktop/src/main/__tests__/session-read-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { SessionSummary, StoredMessage } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/session-revisions.test.ts b/apps/desktop/src/main/__tests__/session-revisions.test.ts index c854f4113c..3a20042092 100644 --- a/apps/desktop/src/main/__tests__/session-revisions.test.ts +++ b/apps/desktop/src/main/__tests__/session-revisions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { collapseSessionRevisions, revisionFamilySessionIds } from '@maka/core/session-revisions'; diff --git a/apps/desktop/src/main/__tests__/session-terminal-hydration.test.ts b/apps/desktop/src/main/__tests__/session-terminal-hydration.test.ts index 7069a40872..bcb05fcd2d 100644 --- a/apps/desktop/src/main/__tests__/session-terminal-hydration.test.ts +++ b/apps/desktop/src/main/__tests__/session-terminal-hydration.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { SessionTerminalHydration } from '../../renderer/session-terminal-hydration.js'; diff --git a/apps/desktop/src/main/__tests__/session-trace-refresh.test.ts b/apps/desktop/src/main/__tests__/session-trace-refresh.test.ts index 38b93ed9e3..40000b1d03 100644 --- a/apps/desktop/src/main/__tests__/session-trace-refresh.test.ts +++ b/apps/desktop/src/main/__tests__/session-trace-refresh.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/apps/desktop/src/main/__tests__/settings-ipc-helpers.test.ts b/apps/desktop/src/main/__tests__/settings-ipc-helpers.test.ts index 7afacab7cd..12aca10f85 100644 --- a/apps/desktop/src/main/__tests__/settings-ipc-helpers.test.ts +++ b/apps/desktop/src/main/__tests__/settings-ipc-helpers.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { describe, test } from "node:test"; import { createDefaultSettings, mergeSettings } from "@maka/core/settings"; diff --git a/apps/desktop/src/main/__tests__/settled-session-transient-reconcile.test.ts b/apps/desktop/src/main/__tests__/settled-session-transient-reconcile.test.ts index 92e9d8f95a..ea1bbc67c8 100644 --- a/apps/desktop/src/main/__tests__/settled-session-transient-reconcile.test.ts +++ b/apps/desktop/src/main/__tests__/settled-session-transient-reconcile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/shell-env.test.ts b/apps/desktop/src/main/__tests__/shell-env.test.ts index 229c637a63..cf0e158020 100644 --- a/apps/desktop/src/main/__tests__/shell-env.test.ts +++ b/apps/desktop/src/main/__tests__/shell-env.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR #1316 review coverage: lock the per-shell capture-command quoting, the * marker-adjacency contract (which is why the dead xonsh branch was dropped), diff --git a/apps/desktop/src/main/__tests__/shell-run-update-state.test.ts b/apps/desktop/src/main/__tests__/shell-run-update-state.test.ts index c14253d2ae..01e10d5c83 100644 --- a/apps/desktop/src/main/__tests__/shell-run-update-state.test.ts +++ b/apps/desktop/src/main/__tests__/shell-run-update-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { ShellRunSnapshotResult, ShellRunUpdate } from '@maka/core/events'; diff --git a/apps/desktop/src/main/__tests__/stale-sessions.test.ts b/apps/desktop/src/main/__tests__/stale-sessions.test.ts index e17a968fc0..92d186e864 100644 --- a/apps/desktop/src/main/__tests__/stale-sessions.test.ts +++ b/apps/desktop/src/main/__tests__/stale-sessions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { deriveStaleSessionIds } from '../../renderer/stale-sessions.js'; diff --git a/apps/desktop/src/main/__tests__/startup-step.test.ts b/apps/desktop/src/main/__tests__/startup-step.test.ts index 2195ff8d97..0aa1ed3642 100644 --- a/apps/desktop/src/main/__tests__/startup-step.test.ts +++ b/apps/desktop/src/main/__tests__/startup-step.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/storage-root-startup.test.ts b/apps/desktop/src/main/__tests__/storage-root-startup.test.ts index 19dfe07dd1..d2bb953fa4 100644 --- a/apps/desktop/src/main/__tests__/storage-root-startup.test.ts +++ b/apps/desktop/src/main/__tests__/storage-root-startup.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rename, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/apps/desktop/src/main/__tests__/streaming-handoff.test.ts b/apps/desktop/src/main/__tests__/streaming-handoff.test.ts index 9e66bf07eb..b35a635ce5 100644 --- a/apps/desktop/src/main/__tests__/streaming-handoff.test.ts +++ b/apps/desktop/src/main/__tests__/streaming-handoff.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { createElement, type ReactNode } from 'react'; diff --git a/apps/desktop/src/main/__tests__/subagent-preset-presentation.test.ts b/apps/desktop/src/main/__tests__/subagent-preset-presentation.test.ts index 08e2028b27..be2ffc2497 100644 --- a/apps/desktop/src/main/__tests__/subagent-preset-presentation.test.ts +++ b/apps/desktop/src/main/__tests__/subagent-preset-presentation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/task-catalog-rows.test.ts b/apps/desktop/src/main/__tests__/task-catalog-rows.test.ts index 4c6154f8ef..abf5d9039a 100644 --- a/apps/desktop/src/main/__tests__/task-catalog-rows.test.ts +++ b/apps/desktop/src/main/__tests__/task-catalog-rows.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/task-readiness-notice.test.ts b/apps/desktop/src/main/__tests__/task-readiness-notice.test.ts index 48bc6f5d77..43d1f59cd9 100644 --- a/apps/desktop/src/main/__tests__/task-readiness-notice.test.ts +++ b/apps/desktop/src/main/__tests__/task-readiness-notice.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { TaskSubmissionReadinessSnapshot } from '@maka/core/task-submission-readiness'; diff --git a/apps/desktop/src/main/__tests__/task-submission-readiness-main.test.ts b/apps/desktop/src/main/__tests__/task-submission-readiness-main.test.ts index 787abb6d1c..62b22538a9 100644 --- a/apps/desktop/src/main/__tests__/task-submission-readiness-main.test.ts +++ b/apps/desktop/src/main/__tests__/task-submission-readiness-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/__tests__/thinking-stream.test.ts b/apps/desktop/src/main/__tests__/thinking-stream.test.ts index cf324d76ea..8d33f1df80 100644 --- a/apps/desktop/src/main/__tests__/thinking-stream.test.ts +++ b/apps/desktop/src/main/__tests__/thinking-stream.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Thinking may echo credentials, so renderer state keeps a second redaction boundary. */ import { strict as assert } from 'node:assert'; diff --git a/apps/desktop/src/main/__tests__/thread-search.test.ts b/apps/desktop/src/main/__tests__/thread-search.test.ts index c5ec7779ba..df2299ca58 100644 --- a/apps/desktop/src/main/__tests__/thread-search.test.ts +++ b/apps/desktop/src/main/__tests__/thread-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { SessionSummary, StoredMessage } from '@maka/core/session'; diff --git a/apps/desktop/src/main/__tests__/titlebar-modal-dim.test.ts b/apps/desktop/src/main/__tests__/titlebar-modal-dim.test.ts index ebdeb0ccda..d888140766 100644 --- a/apps/desktop/src/main/__tests__/titlebar-modal-dim.test.ts +++ b/apps/desktop/src/main/__tests__/titlebar-modal-dim.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { compositeScrimOverBackground, parseCssRgbColor } from '../../renderer/titlebar-dim-color.js'; diff --git a/apps/desktop/src/main/__tests__/tool-args-redaction-contract.test.ts b/apps/desktop/src/main/__tests__/tool-args-redaction-contract.test.ts index 8af84a7257..077b31d7c9 100644 --- a/apps/desktop/src/main/__tests__/tool-args-redaction-contract.test.ts +++ b/apps/desktop/src/main/__tests__/tool-args-redaction-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { formatRedactedJson, formatToolIntent } from '@maka/ui'; diff --git a/apps/desktop/src/main/__tests__/tool-output-stream.test.ts b/apps/desktop/src/main/__tests__/tool-output-stream.test.ts index 029fd67284..ca66c39051 100644 --- a/apps/desktop/src/main/__tests__/tool-output-stream.test.ts +++ b/apps/desktop/src/main/__tests__/tool-output-stream.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Tests for the PR-UI-12 fixup #2 `applyToolOutputChunk` pure helper * (@kenji A3 review msg 365ff8b9). diff --git a/apps/desktop/src/main/__tests__/ui-locale-update-gate.test.ts b/apps/desktop/src/main/__tests__/ui-locale-update-gate.test.ts index a4e719b377..87ff3c2f8f 100644 --- a/apps/desktop/src/main/__tests__/ui-locale-update-gate.test.ts +++ b/apps/desktop/src/main/__tests__/ui-locale-update-gate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/apps/desktop/src/main/__tests__/use-keep-system-awake.test.ts b/apps/desktop/src/main/__tests__/use-keep-system-awake.test.ts index d1a947cd74..8c3e6e46e0 100644 --- a/apps/desktop/src/main/__tests__/use-keep-system-awake.test.ts +++ b/apps/desktop/src/main/__tests__/use-keep-system-awake.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { act, createElement } from 'react'; diff --git a/apps/desktop/src/main/__tests__/use-onboarding-snapshot.test.ts b/apps/desktop/src/main/__tests__/use-onboarding-snapshot.test.ts index 8baa12eeb4..16a9822e9c 100644 --- a/apps/desktop/src/main/__tests__/use-onboarding-snapshot.test.ts +++ b/apps/desktop/src/main/__tests__/use-onboarding-snapshot.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { OnboardingState } from '@maka/core/onboarding'; diff --git a/apps/desktop/src/main/__tests__/use-session-trace.test.ts b/apps/desktop/src/main/__tests__/use-session-trace.test.ts index 8bc3a902b5..ae430e6ff8 100644 --- a/apps/desktop/src/main/__tests__/use-session-trace.test.ts +++ b/apps/desktop/src/main/__tests__/use-session-trace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { afterEach, describe, it } from 'node:test'; import { act, createElement } from 'react'; diff --git a/apps/desktop/src/main/__tests__/use-shell-connections.test.ts b/apps/desktop/src/main/__tests__/use-shell-connections.test.ts index ada64febbf..ab07836de5 100644 --- a/apps/desktop/src/main/__tests__/use-shell-connections.test.ts +++ b/apps/desktop/src/main/__tests__/use-shell-connections.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { act, createElement } from 'react'; diff --git a/apps/desktop/src/main/__tests__/web-search-credentials.test.ts b/apps/desktop/src/main/__tests__/web-search-credentials.test.ts index eb0d428682..a1ff4d011c 100644 --- a/apps/desktop/src/main/__tests__/web-search-credentials.test.ts +++ b/apps/desktop/src/main/__tests__/web-search-credentials.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createDefaultSettings, mergeSettings } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/__tests__/wechat-scan-login.test.ts b/apps/desktop/src/main/__tests__/wechat-scan-login.test.ts index e9c866fd5f..e784220168 100644 --- a/apps/desktop/src/main/__tests__/wechat-scan-login.test.ts +++ b/apps/desktop/src/main/__tests__/wechat-scan-login.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, describe, test } from 'node:test'; import { fetchWeChatQrcode, pollWeChatQrcodeStatus } from '../wechat-scan-login.js'; diff --git a/apps/desktop/src/main/__tests__/workspace-file-search.test.ts b/apps/desktop/src/main/__tests__/workspace-file-search.test.ts index 0061d1a58f..664488d16e 100644 --- a/apps/desktop/src/main/__tests__/workspace-file-search.test.ts +++ b/apps/desktop/src/main/__tests__/workspace-file-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { mkdir, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; import { describe, it } from 'node:test'; diff --git a/apps/desktop/src/main/app-ipc-main.ts b/apps/desktop/src/main/app-ipc-main.ts index 93a696cee7..0662d66024 100644 --- a/apps/desktop/src/main/app-ipc-main.ts +++ b/apps/desktop/src/main/app-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import { arch as osArch, homedir, release as osRelease } from 'node:os'; import { app, ipcMain, shell } from 'electron'; diff --git a/apps/desktop/src/main/app-quit-coordinator.ts b/apps/desktop/src/main/app-quit-coordinator.ts index 8bc7b50dc3..734fcd7787 100644 --- a/apps/desktop/src/main/app-quit-coordinator.ts +++ b/apps/desktop/src/main/app-quit-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface AppQuitEvent { preventDefault(): void; } diff --git a/apps/desktop/src/main/app-update-service.ts b/apps/desktop/src/main/app-update-service.ts index 1076283ab9..b6d82672a2 100644 --- a/apps/desktop/src/main/app-update-service.ts +++ b/apps/desktop/src/main/app-update-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import electronUpdater from 'electron-updater'; import type { AppUpdater, UpdateCheckResult } from 'electron-updater'; import type { ProgressInfo, UpdateInfo } from 'electron-updater'; diff --git a/apps/desktop/src/main/application-menu.ts b/apps/desktop/src/main/application-menu.ts index ca50f61d74..fa2f587093 100644 --- a/apps/desktop/src/main/application-menu.ts +++ b/apps/desktop/src/main/application-menu.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRequire } from 'node:module'; import type { Menu as ElectronMenu, MenuItemConstructorOptions } from 'electron'; import type { WindowCommand } from '../preload/bridge-contract.js'; diff --git a/apps/desktop/src/main/attachment-approval.ts b/apps/desktop/src/main/attachment-approval.ts index b891715d73..1f287cd400 100644 --- a/apps/desktop/src/main/attachment-approval.ts +++ b/apps/desktop/src/main/attachment-approval.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { resolve } from 'node:path'; diff --git a/apps/desktop/src/main/attachment-ingest.ts b/apps/desktop/src/main/attachment-ingest.ts index f6ffa7bde4..96194d6560 100644 --- a/apps/desktop/src/main/attachment-ingest.ts +++ b/apps/desktop/src/main/attachment-ingest.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { open } from 'node:fs/promises'; import { basename } from 'node:path'; diff --git a/apps/desktop/src/main/attachment-preview.ts b/apps/desktop/src/main/attachment-preview.ts index e2faca33be..a6b3c6651a 100644 --- a/apps/desktop/src/main/attachment-preview.ts +++ b/apps/desktop/src/main/attachment-preview.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { attachmentKindFromMimeType, guessMimeFromName, MAX_ATTACHMENT_BYTES } from '@maka/core/attachments'; import type { AttachmentApprovalRegistry } from './attachment-approval.js'; diff --git a/apps/desktop/src/main/attachment-resize-native.ts b/apps/desktop/src/main/attachment-resize-native.ts index ecaa0e06ef..9342ba3a6f 100644 --- a/apps/desktop/src/main/attachment-resize-native.ts +++ b/apps/desktop/src/main/attachment-resize-native.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { nativeImage } from 'electron'; import { computeResizeDimensions } from './attachment-resize.js'; diff --git a/apps/desktop/src/main/attachment-resize.ts b/apps/desktop/src/main/attachment-resize.ts index 0a62561f4e..cd2a42189a 100644 --- a/apps/desktop/src/main/attachment-resize.ts +++ b/apps/desktop/src/main/attachment-resize.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_MODEL_IMAGE_EDGE } from '@maka/core/attachments'; export const ATTACHMENT_IMAGE_MAX_EDGE = MAX_MODEL_IMAGE_EDGE; diff --git a/apps/desktop/src/main/bot-incoming-main.ts b/apps/desktop/src/main/bot-incoming-main.ts index 69a54feeea..545518a885 100644 --- a/apps/desktop/src/main/bot-incoming-main.ts +++ b/apps/desktop/src/main/bot-incoming-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { botConversationKey, diff --git a/apps/desktop/src/main/bot-onboarding-e2e-fixture.ts b/apps/desktop/src/main/bot-onboarding-e2e-fixture.ts index 0ccce5a576..0ce8a03b6e 100644 --- a/apps/desktop/src/main/bot-onboarding-e2e-fixture.ts +++ b/apps/desktop/src/main/bot-onboarding-e2e-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotOnboardingProvider } from '@maka/core/bot-onboarding'; import type { BotOnboardingProviderAdapter } from './bot-onboarding-main.js'; diff --git a/apps/desktop/src/main/bot-onboarding-main.ts b/apps/desktop/src/main/bot-onboarding-main.ts index e133556414..663f72f91a 100644 --- a/apps/desktop/src/main/bot-onboarding-main.ts +++ b/apps/desktop/src/main/bot-onboarding-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { createRequire } from 'node:module'; import type { AppSettings, UpdateAppSettingsInput } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/bot-session-adapter.ts b/apps/desktop/src/main/bot-session-adapter.ts index 533b6813a3..9188dc8309 100644 --- a/apps/desktop/src/main/bot-session-adapter.ts +++ b/apps/desktop/src/main/bot-session-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface BotSessionCreateInput { readonly name: string; readonly labels: readonly string[]; diff --git a/apps/desktop/src/main/browser-ipc-main.ts b/apps/desktop/src/main/browser-ipc-main.ts index 0f00aa87ce..56e0e0f579 100644 --- a/apps/desktop/src/main/browser-ipc-main.ts +++ b/apps/desktop/src/main/browser-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ipcMain } from 'electron'; import { createBrowserViewHost } from './browser/automation-host.js'; import { provideBrowserViewHost } from './browser/browser-host.js'; diff --git a/apps/desktop/src/main/browser/automation-host.ts b/apps/desktop/src/main/browser/automation-host.ts index e587ee5331..ca296f1360 100644 --- a/apps/desktop/src/main/browser/automation-host.ts +++ b/apps/desktop/src/main/browser/automation-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BrowserViewHost } from './browser-host.js'; import type { BrowserViewController } from './controller.js'; import { browserActionAllowed } from './logic.js'; diff --git a/apps/desktop/src/main/browser/browser-host.ts b/apps/desktop/src/main/browser/browser-host.ts index 5089f4975c..3c48ae8a27 100644 --- a/apps/desktop/src/main/browser/browser-host.ts +++ b/apps/desktop/src/main/browser/browser-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Injection seam between the browser tools / BrowserSession (pure logic, no * Electron) and the desktop view controller that owns each conversation's diff --git a/apps/desktop/src/main/browser/browser-tools.ts b/apps/desktop/src/main/browser/browser-tools.ts index 78828be84a..bf6947b65b 100644 --- a/apps/desktop/src/main/browser/browser-tools.ts +++ b/apps/desktop/src/main/browser/browser-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { htmlToMarkdown } from '@jackwener/opencli/utils'; import type { MakaTool } from '@maka/runtime/tool-runtime'; diff --git a/apps/desktop/src/main/browser/cdp-bridge.ts b/apps/desktop/src/main/browser/cdp-bridge.ts index 39650fc6d2..1943026a84 100644 --- a/apps/desktop/src/main/browser/cdp-bridge.ts +++ b/apps/desktop/src/main/browser/cdp-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomBytes, timingSafeEqual } from 'node:crypto'; import { createServer, type IncomingMessage, type Server as HttpServer } from 'node:http'; import type { Duplex } from 'node:stream'; diff --git a/apps/desktop/src/main/browser/controller.ts b/apps/desktop/src/main/browser/controller.ts index 0246461e46..a214fcdd6b 100644 --- a/apps/desktop/src/main/browser/controller.ts +++ b/apps/desktop/src/main/browser/controller.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type BrowserWindow, type Session, shell, WebContentsView } from 'electron'; import { CdpBridge, type AutomationEndpoint } from './cdp-bridge.js'; import { browserViewWebPreferences } from './options.js'; diff --git a/apps/desktop/src/main/browser/logic.ts b/apps/desktop/src/main/browser/logic.ts index 4fcc188ce2..dd75e4ccc6 100644 --- a/apps/desktop/src/main/browser/logic.ts +++ b/apps/desktop/src/main/browser/logic.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure embedded-browser logic — no electron import, so every rule here is pinned * by plain unit tests. The electron-bound view lives in controller.ts. diff --git a/apps/desktop/src/main/browser/options.ts b/apps/desktop/src/main/browser/options.ts index 8da738a0d2..78668d5583 100644 --- a/apps/desktop/src/main/browser/options.ts +++ b/apps/desktop/src/main/browser/options.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Embedded-browser tuning constants. Ported from PawWork's browser/options.ts. */ diff --git a/apps/desktop/src/main/browser/session.ts b/apps/desktop/src/main/browser/session.ts index ea5ccfe2a0..05e2d5532e 100644 --- a/apps/desktop/src/main/browser/session.ts +++ b/apps/desktop/src/main/browser/session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { CDPBridge } from '@jackwener/opencli/browser/cdp'; import type { IPage } from '@jackwener/opencli/types'; import { browserAutomationAvailable, browserViewHost } from './browser-host.js'; diff --git a/apps/desktop/src/main/browser/view-manager.ts b/apps/desktop/src/main/browser/view-manager.ts index 269a7300f0..8cc329bb21 100644 --- a/apps/desktop/src/main/browser/view-manager.ts +++ b/apps/desktop/src/main/browser/view-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BrowserViewRect } from './logic.js'; /** diff --git a/apps/desktop/src/main/build-info.ts b/apps/desktop/src/main/build-info.ts index 4d8a2704b6..5f8a78a824 100644 --- a/apps/desktop/src/main/build-info.ts +++ b/apps/desktop/src/main/build-info.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BUILD-HYGIENE-0: surface a build-info stamp (mode + short commit * sha) so dev builds can clearly distinguish themselves from a diff --git a/apps/desktop/src/main/capability-snapshot.ts b/apps/desktop/src/main/capability-snapshot.ts index 4acf8748f6..8c430d9b00 100644 --- a/apps/desktop/src/main/capability-snapshot.ts +++ b/apps/desktop/src/main/capability-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Notification, systemPreferences } from 'electron'; import { BOT_PROVIDERS, type BotProvider } from '@maka/core/bot-chat-settings'; import { diff --git a/apps/desktop/src/main/client-settings-confirmation-copy.ts b/apps/desktop/src/main/client-settings-confirmation-copy.ts index 05fb58cd0d..4bec4fd2b9 100644 --- a/apps/desktop/src/main/client-settings-confirmation-copy.ts +++ b/apps/desktop/src/main/client-settings-confirmation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { ClientSettingsChange } from './client-settings-tools.js'; diff --git a/apps/desktop/src/main/client-settings-effects.ts b/apps/desktop/src/main/client-settings-effects.ts index 93ecfc1d1c..c1aa18f24d 100644 --- a/apps/desktop/src/main/client-settings-effects.ts +++ b/apps/desktop/src/main/client-settings-effects.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings } from '@maka/core/settings'; import type { SettingsStore } from '@maka/storage'; diff --git a/apps/desktop/src/main/client-settings-ipc-main.ts b/apps/desktop/src/main/client-settings-ipc-main.ts index 2b46e58d96..84150086cd 100644 --- a/apps/desktop/src/main/client-settings-ipc-main.ts +++ b/apps/desktop/src/main/client-settings-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, UpdateAppSettingsInput, diff --git a/apps/desktop/src/main/client-settings-tools.ts b/apps/desktop/src/main/client-settings-tools.ts index 20c624b9ff..be792cbf92 100644 --- a/apps/desktop/src/main/client-settings-tools.ts +++ b/apps/desktop/src/main/client-settings-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { THEME_PALETTES, type AppSettings, type UpdateAppSettingsInput } from '@maka/core/settings'; import { UI_LOCALE_PREFERENCES } from '@maka/core/ui-locale'; import type { MakaTool } from '@maka/runtime/tool-runtime'; diff --git a/apps/desktop/src/main/client-settings-watcher.ts b/apps/desktop/src/main/client-settings-watcher.ts index 8aa8d3babe..32f127a1e4 100644 --- a/apps/desktop/src/main/client-settings-watcher.ts +++ b/apps/desktop/src/main/client-settings-watcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { watch as watchDirectory } from "node:fs"; import { basename } from "node:path"; diff --git a/apps/desktop/src/main/computer-use-host.ts b/apps/desktop/src/main/computer-use-host.ts index af695048b0..5b5c964b74 100644 --- a/apps/desktop/src/main/computer-use-host.ts +++ b/apps/desktop/src/main/computer-use-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { accessSync, diff --git a/apps/desktop/src/main/computer-use-real-model-policy.ts b/apps/desktop/src/main/computer-use-real-model-policy.ts index 3c64ec82db..36e6fabfa2 100644 --- a/apps/desktop/src/main/computer-use-real-model-policy.ts +++ b/apps/desktop/src/main/computer-use-real-model-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ComputerUseToolSet } from '@maka/runtime/computer-use-tools'; import type { MakaTool } from '@maka/runtime/tool-runtime'; diff --git a/apps/desktop/src/main/computer-use/cursor-overlay-window.ts b/apps/desktop/src/main/computer-use/cursor-overlay-window.ts index 9065ff82b4..8ef5236da5 100644 --- a/apps/desktop/src/main/computer-use/cursor-overlay-window.ts +++ b/apps/desktop/src/main/computer-use/cursor-overlay-window.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Cursor overlay window (main-process half) — the Maka-owned, Codex-style agent * cursor. A transparent, always-on-top, click-through BrowserWindow that hosts a diff --git a/apps/desktop/src/main/computer-use/pip-electron.ts b/apps/desktop/src/main/computer-use/pip-electron.ts index 1c34fb24a8..0195400052 100644 --- a/apps/desktop/src/main/computer-use/pip-electron.ts +++ b/apps/desktop/src/main/computer-use/pip-electron.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/main/computer-use/pip-electron.ts // // Where the picture-in-picture mirror meets Electron: the window options it is diff --git a/apps/desktop/src/main/computer-use/pip-feed.ts b/apps/desktop/src/main/computer-use/pip-feed.ts index ec25d9d5bc..ee6be34aa3 100644 --- a/apps/desktop/src/main/computer-use/pip-feed.ts +++ b/apps/desktop/src/main/computer-use/pip-feed.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/main/computer-use/pip-feed.ts // // What the mirror is shown after an action: the overlay hook wrapper that taps diff --git a/apps/desktop/src/main/computer-use/pip-motion.ts b/apps/desktop/src/main/computer-use/pip-motion.ts index cd5d2f8f31..5463c66868 100644 --- a/apps/desktop/src/main/computer-use/pip-motion.ts +++ b/apps/desktop/src/main/computer-use/pip-motion.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Motion for the Computer Use picture-in-picture mirror: where it can rest, * where a flick should send it, and how it travels there. diff --git a/apps/desktop/src/main/computer-use/pip-window.ts b/apps/desktop/src/main/computer-use/pip-window.ts index c8758f4f93..2526595cc0 100644 --- a/apps/desktop/src/main/computer-use/pip-window.ts +++ b/apps/desktop/src/main/computer-use/pip-window.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRequire } from 'node:module'; import { defaultCreateWindow, diff --git a/apps/desktop/src/main/computer-use/screen-lock.ts b/apps/desktop/src/main/computer-use/screen-lock.ts index c6bf15140d..ea62c52048 100644 --- a/apps/desktop/src/main/computer-use/screen-lock.ts +++ b/apps/desktop/src/main/computer-use/screen-lock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRequire } from 'node:module'; import type { CuOverlayHook } from '@maka/runtime/computer-use-types'; diff --git a/apps/desktop/src/main/computer-use/status-item.ts b/apps/desktop/src/main/computer-use/status-item.ts index 86fe8022a9..0506a4d5a9 100644 --- a/apps/desktop/src/main/computer-use/status-item.ts +++ b/apps/desktop/src/main/computer-use/status-item.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRequire } from 'node:module'; import { join } from 'node:path'; import type { Menu as MenuType, Tray } from 'electron'; diff --git a/apps/desktop/src/main/config-transfer-service.ts b/apps/desktop/src/main/config-transfer-service.ts index 458fec5545..c916b77847 100644 --- a/apps/desktop/src/main/config-transfer-service.ts +++ b/apps/desktop/src/main/config-transfer-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, UpdateAppSettingsInput } from '@maka/core/settings'; import { reconcileConnectionAfterEnabledModelsChange, diff --git a/apps/desktop/src/main/connections-ipc-validation.ts b/apps/desktop/src/main/connections-ipc-validation.ts index 3fe667738e..603ee5a65a 100644 --- a/apps/desktop/src/main/connections-ipc-validation.ts +++ b/apps/desktop/src/main/connections-ipc-validation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { normalizeConnectionBaseUrl, type CreateConnectionInput, diff --git a/apps/desktop/src/main/create-session-input.ts b/apps/desktop/src/main/create-session-input.ts index 98823941d7..0e2e157672 100644 --- a/apps/desktop/src/main/create-session-input.ts +++ b/apps/desktop/src/main/create-session-input.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * What a `sessions:create` request resolves to. * diff --git a/apps/desktop/src/main/deep-research-desktop-projection.ts b/apps/desktop/src/main/deep-research-desktop-projection.ts index edf1bc3249..6e497a1f35 100644 --- a/apps/desktop/src/main/deep-research-desktop-projection.ts +++ b/apps/desktop/src/main/deep-research-desktop-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { projectDeepResearchClientProgress } from '@maka/core/deep-research-client-progress'; import { type DeepResearchClientProgress, type DeepResearchRun } from '@maka/core/deep-research-run'; import type { DeepResearchQueryResult } from '@maka/runtime-host/protocol'; diff --git a/apps/desktop/src/main/desktop-assets.ts b/apps/desktop/src/main/desktop-assets.ts index e3466a1a75..815f46b639 100644 --- a/apps/desktop/src/main/desktop-assets.ts +++ b/apps/desktop/src/main/desktop-assets.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; /** diff --git a/apps/desktop/src/main/desktop-diagnostics-ipc-main.ts b/apps/desktop/src/main/desktop-diagnostics-ipc-main.ts index d72a0631d7..048f033a7c 100644 --- a/apps/desktop/src/main/desktop-diagnostics-ipc-main.ts +++ b/apps/desktop/src/main/desktop-diagnostics-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from 'electron'; import { copyDesktopDiagnosticReport, diff --git a/apps/desktop/src/main/desktop-locale-authority.ts b/apps/desktop/src/main/desktop-locale-authority.ts index 47bfca86c6..8690d2ce73 100644 --- a/apps/desktop/src/main/desktop-locale-authority.ts +++ b/apps/desktop/src/main/desktop-locale-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveSystemUiLocale, resolveUiLocale, diff --git a/apps/desktop/src/main/desktop-native-capability-assembly.ts b/apps/desktop/src/main/desktop-native-capability-assembly.ts index 51409a4b18..0fcef1e123 100644 --- a/apps/desktop/src/main/desktop-native-capability-assembly.ts +++ b/apps/desktop/src/main/desktop-native-capability-assembly.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app, nativeImage, powerMonitor, screen } from 'electron'; import { createComputerUseOverlayHook } from '@maka/computer-use'; import { buildBrowserTools } from './browser/browser-tools.js'; diff --git a/apps/desktop/src/main/desktop-shell-presentation.ts b/apps/desktop/src/main/desktop-shell-presentation.ts index 755606c8d3..60f05cf4f8 100644 --- a/apps/desktop/src/main/desktop-shell-presentation.ts +++ b/apps/desktop/src/main/desktop-shell-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app, nativeImage } from 'electron'; import { join } from 'node:path'; import { installApplicationMenu } from './application-menu.js'; diff --git a/apps/desktop/src/main/desktop-transcript-ipc.ts b/apps/desktop/src/main/desktop-transcript-ipc.ts index 2c2e83b0a1..86bf93495b 100644 --- a/apps/desktop/src/main/desktop-transcript-ipc.ts +++ b/apps/desktop/src/main/desktop-transcript-ipc.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import { DESKTOP_TRANSCRIPT_FRAGMENT_MAX_BYTES, diff --git a/apps/desktop/src/main/desktop-transcript-replica.ts b/apps/desktop/src/main/desktop-transcript-replica.ts index 208148e681..b7408ca4ac 100644 --- a/apps/desktop/src/main/desktop-transcript-replica.ts +++ b/apps/desktop/src/main/desktop-transcript-replica.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { StoredMessage } from '@maka/core/session'; import { diff --git a/apps/desktop/src/main/dock-presentation.ts b/apps/desktop/src/main/dock-presentation.ts index c665ffb6e4..55e7d34107 100644 --- a/apps/desktop/src/main/dock-presentation.ts +++ b/apps/desktop/src/main/dock-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * What the macOS dock should show for this run. * diff --git a/apps/desktop/src/main/e2e-fixture.ts b/apps/desktop/src/main/e2e-fixture.ts index d404ca8de2..9e5dcb56c9 100644 --- a/apps/desktop/src/main/e2e-fixture.ts +++ b/apps/desktop/src/main/e2e-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, rm } from 'node:fs/promises'; import { join } from 'node:path'; import type { E2eFixtureScenario, E2eFixtureState } from '@maka/core/e2e-fixture'; diff --git a/apps/desktop/src/main/e2e-fixture/scenarios-chat.ts b/apps/desktop/src/main/e2e-fixture/scenarios-chat.ts index b05ed86d3a..5df48fd8f7 100644 --- a/apps/desktop/src/main/e2e-fixture/scenarios-chat.ts +++ b/apps/desktop/src/main/e2e-fixture/scenarios-chat.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader, StoredMessage } from '@maka/core/session'; import { header, diff --git a/apps/desktop/src/main/e2e-fixture/scenarios-modules.ts b/apps/desktop/src/main/e2e-fixture/scenarios-modules.ts index 9fd08f0506..76b0c341f5 100644 --- a/apps/desktop/src/main/e2e-fixture/scenarios-modules.ts +++ b/apps/desktop/src/main/e2e-fixture/scenarios-modules.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; import { MCP_CONFIG_VERSION } from '@maka/core/mcp'; diff --git a/apps/desktop/src/main/e2e-fixture/scenarios-sessions.ts b/apps/desktop/src/main/e2e-fixture/scenarios-sessions.ts index 9045aea86b..a7a88d55c3 100644 --- a/apps/desktop/src/main/e2e-fixture/scenarios-sessions.ts +++ b/apps/desktop/src/main/e2e-fixture/scenarios-sessions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader, StoredMessage } from '@maka/core/session'; import { header, diff --git a/apps/desktop/src/main/e2e-fixture/scenarios-settings.ts b/apps/desktop/src/main/e2e-fixture/scenarios-settings.ts index 7fbd880e21..0236a0de9f 100644 --- a/apps/desktop/src/main/e2e-fixture/scenarios-settings.ts +++ b/apps/desktop/src/main/e2e-fixture/scenarios-settings.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import type { DailyReviewArchive } from '@maka/core/daily-review'; import type { E2eFixtureScenario } from '@maka/core/e2e-fixture'; diff --git a/apps/desktop/src/main/e2e-fixture/scenarios-usage.ts b/apps/desktop/src/main/e2e-fixture/scenarios-usage.ts index 15f35b523a..7ed957643e 100644 --- a/apps/desktop/src/main/e2e-fixture/scenarios-usage.ts +++ b/apps/desktop/src/main/e2e-fixture/scenarios-usage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader, StoredMessage } from '@maka/core/session'; import { header } from './seed-helpers.js'; diff --git a/apps/desktop/src/main/e2e-fixture/seed-helpers.ts b/apps/desktop/src/main/e2e-fixture/seed-helpers.ts index 2a10dc836d..bf4935cc76 100644 --- a/apps/desktop/src/main/e2e-fixture/seed-helpers.ts +++ b/apps/desktop/src/main/e2e-fixture/seed-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, writeFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; import type { SessionHeader, StoredMessage } from '@maka/core/session'; diff --git a/apps/desktop/src/main/external-link-guard.ts b/apps/desktop/src/main/external-link-guard.ts index 6433e28e72..822cf30827 100644 --- a/apps/desktop/src/main/external-link-guard.ts +++ b/apps/desktop/src/main/external-link-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * URL-scheme whitelist for the renderer's external-link guard. Used by both * `setWindowOpenHandler` and `will-navigate` to decide which URLs should be diff --git a/apps/desktop/src/main/git-review-main.ts b/apps/desktop/src/main/git-review-main.ts index 0d8b7dae56..a75b209c13 100644 --- a/apps/desktop/src/main/git-review-main.ts +++ b/apps/desktop/src/main/git-review-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { createHash } from 'node:crypto'; import { lstat, readFile } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/ipc-reconnect-policy.ts b/apps/desktop/src/main/ipc-reconnect-policy.ts index a25129f963..147b44f4c7 100644 --- a/apps/desktop/src/main/ipc-reconnect-policy.ts +++ b/apps/desktop/src/main/ipc-reconnect-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from "electron"; import type { Result } from "@maka/core/result"; import { diff --git a/apps/desktop/src/main/keep-system-awake.ts b/apps/desktop/src/main/keep-system-awake.ts index 377fba8015..f740e15a8e 100644 --- a/apps/desktop/src/main/keep-system-awake.ts +++ b/apps/desktop/src/main/keep-system-awake.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Keep-system-awake controller. * diff --git a/apps/desktop/src/main/main-process-diagnostics.ts b/apps/desktop/src/main/main-process-diagnostics.ts index ce6811bb1d..200af1cf9b 100644 --- a/apps/desktop/src/main/main-process-diagnostics.ts +++ b/apps/desktop/src/main/main-process-diagnostics.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { collapseHomePath, DiagnosticLogBuffer, truncateUtf8 } from '@maka/core/diagnostic-log'; import { installConsoleDiagnosticLogCapture } from '@maka/core/node-diagnostic-log'; import { redactSecrets } from '@maka/core/redaction'; diff --git a/apps/desktop/src/main/main-window-permission-policy.ts b/apps/desktop/src/main/main-window-permission-policy.ts index f0561dfbe8..33fb18976c 100644 --- a/apps/desktop/src/main/main-window-permission-policy.ts +++ b/apps/desktop/src/main/main-window-permission-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { WebContents } from 'electron'; export interface MainWindowPermissionCheck { diff --git a/apps/desktop/src/main/main-window.ts b/apps/desktop/src/main/main-window.ts index 67703c5158..956738c84b 100644 --- a/apps/desktop/src/main/main-window.ts +++ b/apps/desktop/src/main/main-window.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app, BrowserWindow, dialog, nativeTheme, screen, shell } from 'electron'; import { mkdir } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/apps/desktop/src/main/main.ts b/apps/desktop/src/main/main.ts index 2d70c34292..1cf8bf3419 100644 --- a/apps/desktop/src/main/main.ts +++ b/apps/desktop/src/main/main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveSystemUiLocale } from '@maka/core/ui-locale'; import { app, clipboard, dialog } from 'electron'; import { join } from 'node:path'; diff --git a/apps/desktop/src/main/managed-skill-sources.ts b/apps/desktop/src/main/managed-skill-sources.ts index d0232895fd..7c755720ca 100644 --- a/apps/desktop/src/main/managed-skill-sources.ts +++ b/apps/desktop/src/main/managed-skill-sources.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { lstat, mkdir, readFile, realpath, rename, unlink, writeFile } from 'node:fs/promises'; import { basename, dirname, extname, join } from 'node:path'; diff --git a/apps/desktop/src/main/markdown-save-ipc-main.ts b/apps/desktop/src/main/markdown-save-ipc-main.ts index 0ad5b26df6..cdee09b8ad 100644 --- a/apps/desktop/src/main/markdown-save-ipc-main.ts +++ b/apps/desktop/src/main/markdown-save-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from 'electron'; import { saveMarkdownViaDialog } from './markdown-save-main.js'; import type { createMainWindowController } from './main-window.js'; diff --git a/apps/desktop/src/main/markdown-save-main.ts b/apps/desktop/src/main/markdown-save-main.ts index dc552d4448..8e34fac54a 100644 --- a/apps/desktop/src/main/markdown-save-main.ts +++ b/apps/desktop/src/main/markdown-save-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface MarkdownSaveDialog { showSaveDialog(options: { title: string; diff --git a/apps/desktop/src/main/mcp-ipc-main.ts b/apps/desktop/src/main/mcp-ipc-main.ts index 226e1657bc..1c5613ace4 100644 --- a/apps/desktop/src/main/mcp-ipc-main.ts +++ b/apps/desktop/src/main/mcp-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from 'electron'; import type { McpConfigFile, McpServerConfig, McpServerStatus } from '@maka/core/mcp'; import type { McpClientManager } from '@maka/mcp'; diff --git a/apps/desktop/src/main/mcp-secret-guard.ts b/apps/desktop/src/main/mcp-secret-guard.ts index 3e6b0d09ea..471d9c6488 100644 --- a/apps/desktop/src/main/mcp-secret-guard.ts +++ b/apps/desktop/src/main/mcp-secret-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/main/mcp-secret-guard.ts // // mcp.json carries credential material in several positions: a static diff --git a/apps/desktop/src/main/native-diagnostic-dialog.ts b/apps/desktop/src/main/native-diagnostic-dialog.ts index 65fff3443d..194e0c7e1f 100644 --- a/apps/desktop/src/main/native-diagnostic-dialog.ts +++ b/apps/desktop/src/main/native-diagnostic-dialog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { MessageBoxOptions, MessageBoxReturnValue } from 'electron'; import { diff --git a/apps/desktop/src/main/new-session-project.ts b/apps/desktop/src/main/new-session-project.ts index 90eb2a463d..097dcd280d 100644 --- a/apps/desktop/src/main/new-session-project.ts +++ b/apps/desktop/src/main/new-session-project.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProjectCatalog } from '@maka/storage'; import type { WorkspaceTarget } from '@maka/runtime-host/protocol'; diff --git a/apps/desktop/src/main/notifications-ipc-main.ts b/apps/desktop/src/main/notifications-ipc-main.ts index b1b38a35cd..be06ab7763 100644 --- a/apps/desktop/src/main/notifications-ipc-main.ts +++ b/apps/desktop/src/main/notifications-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ipcMain, Notification } from 'electron'; import type { AppSettings } from '@maka/core/settings'; import type { createMainWindowController } from './main-window.js'; diff --git a/apps/desktop/src/main/notifications-policy.ts b/apps/desktop/src/main/notifications-policy.ts index 599e5a700a..efd72ba96b 100644 --- a/apps/desktop/src/main/notifications-policy.ts +++ b/apps/desktop/src/main/notifications-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; /** diff --git a/apps/desktop/src/main/oauth-connection-identities.ts b/apps/desktop/src/main/oauth-connection-identities.ts index e8c88a6470..a23f73a92c 100644 --- a/apps/desktop/src/main/oauth-connection-identities.ts +++ b/apps/desktop/src/main/oauth-connection-identities.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OAuthLoginProvider } from '@maka/runtime-host/protocol'; /** Stable Desktop connection identities for Host-supported interactive OAuth providers. */ diff --git a/apps/desktop/src/main/oauth/github-copilot-subscription-service.ts b/apps/desktop/src/main/oauth/github-copilot-subscription-service.ts index 957b642a76..5a62fa6b5d 100644 --- a/apps/desktop/src/main/oauth/github-copilot-subscription-service.ts +++ b/apps/desktop/src/main/oauth/github-copilot-subscription-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { promisify } from 'node:util'; diff --git a/apps/desktop/src/main/onboarding-ipc-main.ts b/apps/desktop/src/main/onboarding-ipc-main.ts index 62b091f682..d617fbfee5 100644 --- a/apps/desktop/src/main/onboarding-ipc-main.ts +++ b/apps/desktop/src/main/onboarding-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ipcMain } from 'electron'; import type { createOnboardingService } from './onboarding-service.js'; import { diff --git a/apps/desktop/src/main/onboarding-service.ts b/apps/desktop/src/main/onboarding-service.ts index 5de8c5a321..db98878289 100644 --- a/apps/desktop/src/main/onboarding-service.ts +++ b/apps/desktop/src/main/onboarding-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Onboarding service — main-process glue between the @maka/core * onboarding contract and the desktop stores/IPC (PR110b). diff --git a/apps/desktop/src/main/open-path-guard.ts b/apps/desktop/src/main/open-path-guard.ts index 735f41ac27..9f5b098535 100644 --- a/apps/desktop/src/main/open-path-guard.ts +++ b/apps/desktop/src/main/open-path-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath, stat } from 'node:fs/promises'; import { join, resolve, relative, sep } from 'node:path'; diff --git a/apps/desktop/src/main/os-permission-policy.ts b/apps/desktop/src/main/os-permission-policy.ts index 2986b68a9f..ff190085f3 100644 --- a/apps/desktop/src/main/os-permission-policy.ts +++ b/apps/desktop/src/main/os-permission-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OsPermissionId, OsPermissionState } from '@maka/core/capabilities'; export function mapMediaAccessStatus(status: string): OsPermissionState { diff --git a/apps/desktop/src/main/overlay-assets.ts b/apps/desktop/src/main/overlay-assets.ts index 01f5676046..0e8355bdc7 100644 --- a/apps/desktop/src/main/overlay-assets.ts +++ b/apps/desktop/src/main/overlay-assets.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { basename, dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/apps/desktop/src/main/permission-mode-default.ts b/apps/desktop/src/main/permission-mode-default.ts index 7a921881c6..93bf91f0e2 100644 --- a/apps/desktop/src/main/permission-mode-default.ts +++ b/apps/desktop/src/main/permission-mode-default.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, ChatDefaultPermissionMode } from '@maka/core/settings'; /** Read the configured chat-default permission mode; fall back to 'ask' if diff --git a/apps/desktop/src/main/permission-overlay/app-bundle.ts b/apps/desktop/src/main/permission-overlay/app-bundle.ts index 01767a101d..304d024a36 100644 --- a/apps/desktop/src/main/permission-overlay/app-bundle.ts +++ b/apps/desktop/src/main/permission-overlay/app-bundle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Resolving the `.app` bundle to drag into System Settings. * diff --git a/apps/desktop/src/main/permission-overlay/permission-overlay-controller.ts b/apps/desktop/src/main/permission-overlay/permission-overlay-controller.ts index ae9d774f91..a7106ca5ce 100644 --- a/apps/desktop/src/main/permission-overlay/permission-overlay-controller.ts +++ b/apps/desktop/src/main/permission-overlay/permission-overlay-controller.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Drag-to-grant permission onboarding — the lifecycle half. * diff --git a/apps/desktop/src/main/permission-overlay/permission-overlay-copy.ts b/apps/desktop/src/main/permission-overlay/permission-overlay-copy.ts index 4b35dd1d70..afb7814138 100644 --- a/apps/desktop/src/main/permission-overlay/permission-overlay-copy.ts +++ b/apps/desktop/src/main/permission-overlay/permission-overlay-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Copy for the drag-to-grant card. * diff --git a/apps/desktop/src/main/permission-overlay/permission-overlay-main.ts b/apps/desktop/src/main/permission-overlay/permission-overlay-main.ts index 9aa7701974..6536545dc0 100644 --- a/apps/desktop/src/main/permission-overlay/permission-overlay-main.ts +++ b/apps/desktop/src/main/permission-overlay/permission-overlay-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Electron binding for the drag-to-grant overlay. * diff --git a/apps/desktop/src/main/permission-response-guard.ts b/apps/desktop/src/main/permission-response-guard.ts index 44c5bbb74a..bbe96ed952 100644 --- a/apps/desktop/src/main/permission-response-guard.ts +++ b/apps/desktop/src/main/permission-response-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BranchFromTurnInput, RegenerateTurnInput, diff --git a/apps/desktop/src/main/permission-snapshot-e2e-fixture.ts b/apps/desktop/src/main/permission-snapshot-e2e-fixture.ts index c4a3072557..79484d70cb 100644 --- a/apps/desktop/src/main/permission-snapshot-e2e-fixture.ts +++ b/apps/desktop/src/main/permission-snapshot-e2e-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OsPermissionSnapshot, OsPermissionState, PermissionSnapshot } from '@maka/core/capabilities'; /** diff --git a/apps/desktop/src/main/permissions-actions.ts b/apps/desktop/src/main/permissions-actions.ts index 6799792b93..4787a68e3b 100644 --- a/apps/desktop/src/main/permissions-actions.ts +++ b/apps/desktop/src/main/permissions-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-PERMISSION-PAGE-REDESIGN — actionable side of the Permission Center. * diff --git a/apps/desktop/src/main/pet-pack-import.ts b/apps/desktop/src/main/pet-pack-import.ts index 1f3a996185..b6a4b2dfbb 100644 --- a/apps/desktop/src/main/pet-pack-import.ts +++ b/apps/desktop/src/main/pet-pack-import.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { lstat, open, realpath } from 'node:fs/promises'; import { join, relative, sep } from 'node:path'; diff --git a/apps/desktop/src/main/project-context-root.ts b/apps/desktop/src/main/project-context-root.ts index 3700a40403..58aa355292 100644 --- a/apps/desktop/src/main/project-context-root.ts +++ b/apps/desktop/src/main/project-context-root.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { constants } from 'node:fs'; import { access, stat } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/project-management-service.ts b/apps/desktop/src/main/project-management-service.ts index 4d7393e22b..9b5effd22f 100644 --- a/apps/desktop/src/main/project-management-service.ts +++ b/apps/desktop/src/main/project-management-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { findProjectByIdentity, type ProjectRecord } from '@maka/core/project'; import type { DesktopProjectCapabilities, diff --git a/apps/desktop/src/main/project-picker-copy.ts b/apps/desktop/src/main/project-picker-copy.ts index fff488fda7..80e2a347be 100644 --- a/apps/desktop/src/main/project-picker-copy.ts +++ b/apps/desktop/src/main/project-picker-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; export function projectPickerTitle(locale: UiLocale): string { diff --git a/apps/desktop/src/main/project-root-controller.ts b/apps/desktop/src/main/project-root-controller.ts index 03a0cd2a2b..8f3eea0a99 100644 --- a/apps/desktop/src/main/project-root-controller.ts +++ b/apps/desktop/src/main/project-root-controller.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { readFile, rename, rm, stat, writeFile } from 'node:fs/promises'; import { resolveProjectRoot } from '@maka/runtime/system-prompt/project-context'; diff --git a/apps/desktop/src/main/qq-bot-scan-login.ts b/apps/desktop/src/main/qq-bot-scan-login.ts index d9bac0a779..c27c1fe18d 100644 --- a/apps/desktop/src/main/qq-bot-scan-login.ts +++ b/apps/desktop/src/main/qq-bot-scan-login.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createDecipheriv, randomBytes } from 'node:crypto'; import { proxiedFetch } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/main/quote-companion-cleanup.ts b/apps/desktop/src/main/quote-companion-cleanup.ts index 4889d15d40..09d4576255 100644 --- a/apps/desktop/src/main/quote-companion-cleanup.ts +++ b/apps/desktop/src/main/quote-companion-cleanup.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { acquireOperationalStateDatabase } from '@maka/storage'; diff --git a/apps/desktop/src/main/rive-cli.ts b/apps/desktop/src/main/rive-cli.ts index 057849e3c7..0e5f7189c2 100644 --- a/apps/desktop/src/main/rive-cli.ts +++ b/apps/desktop/src/main/rive-cli.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { access } from 'node:fs/promises'; import { constants } from 'node:fs'; import { spawn } from 'node:child_process'; diff --git a/apps/desktop/src/main/rive-workflow-tool.ts b/apps/desktop/src/main/rive-workflow-tool.ts index 2c4af8839a..a758733ec5 100644 --- a/apps/desktop/src/main/rive-workflow-tool.ts +++ b/apps/desktop/src/main/rive-workflow-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import type { MakaTool } from '@maka/runtime/tool-runtime'; import { diff --git a/apps/desktop/src/main/runtime-host-account-connection.ts b/apps/desktop/src/main/runtime-host-account-connection.ts index d57862f3d7..ddb1d428f8 100644 --- a/apps/desktop/src/main/runtime-host-account-connection.ts +++ b/apps/desktop/src/main/runtime-host-account-connection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, type ProviderType, diff --git a/apps/desktop/src/main/runtime-host-artifacts-ipc-main.ts b/apps/desktop/src/main/runtime-host-artifacts-ipc-main.ts index 055538b2fd..5ba6f5ed74 100644 --- a/apps/desktop/src/main/runtime-host-artifacts-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-artifacts-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from "node:crypto"; import { open, mkdir, rename, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; diff --git a/apps/desktop/src/main/runtime-host-boot.ts b/apps/desktop/src/main/runtime-host-boot.ts index 9be7269fee..04fe33dace 100644 --- a/apps/desktop/src/main/runtime-host-boot.ts +++ b/apps/desktop/src/main/runtime-host-boot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app, clipboard, diff --git a/apps/desktop/src/main/runtime-host-bot-session-adapter.ts b/apps/desktop/src/main/runtime-host-bot-session-adapter.ts index 1d485d31fc..e0d0f31a90 100644 --- a/apps/desktop/src/main/runtime-host-bot-session-adapter.ts +++ b/apps/desktop/src/main/runtime-host-bot-session-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { RuntimeHostOperationError } from '@maka/runtime-host/client'; import type { diff --git a/apps/desktop/src/main/runtime-host-capability-revision-publisher.ts b/apps/desktop/src/main/runtime-host-capability-revision-publisher.ts index 48d49203f6..bb8539b693 100644 --- a/apps/desktop/src/main/runtime-host-capability-revision-publisher.ts +++ b/apps/desktop/src/main/runtime-host-capability-revision-publisher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + interface ActivePublisher { readonly generation: symbol; readonly publish: () => Promise; diff --git a/apps/desktop/src/main/runtime-host-client.ts b/apps/desktop/src/main/runtime-host-client.ts index c5248220a2..b2dc6289de 100644 --- a/apps/desktop/src/main/runtime-host-client.ts +++ b/apps/desktop/src/main/runtime-host-client.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from "node:crypto"; import type { AttachmentRef, ShellRunUpdate } from "@maka/core/events"; import type { PlanSessionState, PlanUserControlInput } from "@maka/core/plan"; diff --git a/apps/desktop/src/main/runtime-host-config-ipc-main.ts b/apps/desktop/src/main/runtime-host-config-ipc-main.ts index a8919e2267..7edc25d629 100644 --- a/apps/desktop/src/main/runtime-host-config-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-config-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, writeFile } from 'node:fs/promises'; import type { IpcMain } from 'electron'; import type { AppSettings, UpdateAppSettingsInput } from '@maka/core/settings'; diff --git a/apps/desktop/src/main/runtime-host-connections-ipc-main.ts b/apps/desktop/src/main/runtime-host-connections-ipc-main.ts index 97f57bd631..64716cf624 100644 --- a/apps/desktop/src/main/runtime-host-connections-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-connections-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionTestResult, CreateConnectionInput, diff --git a/apps/desktop/src/main/runtime-host-default-recovery.ts b/apps/desktop/src/main/runtime-host-default-recovery.ts index 682f2e144b..f2df72246f 100644 --- a/apps/desktop/src/main/runtime-host-default-recovery.ts +++ b/apps/desktop/src/main/runtime-host-default-recovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { LOCAL_RUNTIME_HOST_PROFILE } from '@maka/runtime-host/client'; export type RuntimeHostDefaultRecoveryDecision = diff --git a/apps/desktop/src/main/runtime-host-desktop-candidate.ts b/apps/desktop/src/main/runtime-host-desktop-candidate.ts index 22fe5fd70d..bf945b7a0e 100644 --- a/apps/desktop/src/main/runtime-host-desktop-candidate.ts +++ b/apps/desktop/src/main/runtime-host-desktop-candidate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from "node:crypto"; import type { IpcMain } from "electron"; import type { ActiveInteractionRequestEvent } from '@maka/core/events'; diff --git a/apps/desktop/src/main/runtime-host-desktop-manager.ts b/apps/desktop/src/main/runtime-host-desktop-manager.ts index ed8ee13f7a..dfad952d90 100644 --- a/apps/desktop/src/main/runtime-host-desktop-manager.ts +++ b/apps/desktop/src/main/runtime-host-desktop-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { BotIncomingMessage } from '@maka/runtime/bots'; import { diff --git a/apps/desktop/src/main/runtime-host-external-sessions-ipc-main.ts b/apps/desktop/src/main/runtime-host-external-sessions-ipc-main.ts index 4cb681ab92..91e871f800 100644 --- a/apps/desktop/src/main/runtime-host-external-sessions-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-external-sessions-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionChangedReason } from '@maka/core/session'; import { RuntimeHostOperationError } from '@maka/runtime-host/client'; import type { diff --git a/apps/desktop/src/main/runtime-host-github-copilot-ipc-main.ts b/apps/desktop/src/main/runtime-host-github-copilot-ipc-main.ts index 0f8ba42b3b..d04224cb16 100644 --- a/apps/desktop/src/main/runtime-host-github-copilot-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-github-copilot-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelInfo } from '@maka/core/llm-connections'; import type { SubscriptionActionResult } from '@maka/core/oauth-subscription'; import { diff --git a/apps/desktop/src/main/runtime-host-memory-ipc-main.ts b/apps/desktop/src/main/runtime-host-memory-ipc-main.ts index 42db8b88ee..1004f497e3 100644 --- a/apps/desktop/src/main/runtime-host-memory-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-memory-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from "node:crypto"; import { lstat, realpath } from "node:fs/promises"; import { join } from "node:path"; diff --git a/apps/desktop/src/main/runtime-host-native-capabilities.ts b/apps/desktop/src/main/runtime-host-native-capabilities.ts index 8742cc5cf6..9b059f54a8 100644 --- a/apps/desktop/src/main/runtime-host-native-capabilities.ts +++ b/apps/desktop/src/main/runtime-host-native-capabilities.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from "node:buffer"; import type { ComputerUseToolSet } from '@maka/runtime/computer-use-tools'; import type { MakaTool } from '@maka/runtime/tool-runtime'; diff --git a/apps/desktop/src/main/runtime-host-oauth-ipc-main.ts b/apps/desktop/src/main/runtime-host-oauth-ipc-main.ts index fc16c66418..4a2f7d755b 100644 --- a/apps/desktop/src/main/runtime-host-oauth-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-oauth-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isOAuthEnrollmentProviderEnabled } from '@maka/runtime/oauth-provider-contracts'; import { diff --git a/apps/desktop/src/main/runtime-host-oauth-presentation.ts b/apps/desktop/src/main/runtime-host-oauth-presentation.ts index 372ecdf69f..8f9743b9b6 100644 --- a/apps/desktop/src/main/runtime-host-oauth-presentation.ts +++ b/apps/desktop/src/main/runtime-host-oauth-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OAuthPresentationBackend } from '@maka/runtime-host/client'; const PRESENTATION_TIMEOUT_MS = 30_000; diff --git a/apps/desktop/src/main/runtime-host-onboarding.ts b/apps/desktop/src/main/runtime-host-onboarding.ts index a36490a007..0cecce2d04 100644 --- a/apps/desktop/src/main/runtime-host-onboarding.ts +++ b/apps/desktop/src/main/runtime-host-onboarding.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { IpcMain } from 'electron'; import { diff --git a/apps/desktop/src/main/runtime-host-pairing-journal.ts b/apps/desktop/src/main/runtime-host-pairing-journal.ts index b793f7906c..42bd64ace4 100644 --- a/apps/desktop/src/main/runtime-host-pairing-journal.ts +++ b/apps/desktop/src/main/runtime-host-pairing-journal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeRemoteRuntimeHostProfile, RUNTIME_HOST_ACCESS_CREDENTIAL_MAX_BYTES, diff --git a/apps/desktop/src/main/runtime-host-permissions-ipc-main.ts b/apps/desktop/src/main/runtime-host-permissions-ipc-main.ts index 0e74fbaf6d..7c05fa3f22 100644 --- a/apps/desktop/src/main/runtime-host-permissions-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-permissions-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildHealthSnapshot, healthSignalFromCapability, diff --git a/apps/desktop/src/main/runtime-host-profile-service.ts b/apps/desktop/src/main/runtime-host-profile-service.ts index b7aa962f45..cd48790d53 100644 --- a/apps/desktop/src/main/runtime-host-profile-service.ts +++ b/apps/desktop/src/main/runtime-host-profile-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from "node:crypto"; import { open, readFile, rename, rm } from "node:fs/promises"; import { dirname, join } from "node:path"; diff --git a/apps/desktop/src/main/runtime-host-project-catalog.ts b/apps/desktop/src/main/runtime-host-project-catalog.ts index fe37fb171a..5122317f2d 100644 --- a/apps/desktop/src/main/runtime-host-project-catalog.ts +++ b/apps/desktop/src/main/runtime-host-project-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { findProjectByIdentity, type ProjectRecord } from '@maka/core/project'; import type { ProjectCatalogProject, diff --git a/apps/desktop/src/main/runtime-host-reconnecting-ipc-main.ts b/apps/desktop/src/main/runtime-host-reconnecting-ipc-main.ts index c2e125a7d7..305125e43e 100644 --- a/apps/desktop/src/main/runtime-host-reconnecting-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-reconnecting-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from "electron"; import { isReconnectableReadFailure, diff --git a/apps/desktop/src/main/runtime-host-renderer-ipc-main.ts b/apps/desktop/src/main/runtime-host-renderer-ipc-main.ts index 9bb25af465..611b2023a1 100644 --- a/apps/desktop/src/main/runtime-host-renderer-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-renderer-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { HOST_OPERATION_SPECS, isOperationKey, diff --git a/apps/desktop/src/main/runtime-host-search-ipc-main.ts b/apps/desktop/src/main/runtime-host-search-ipc-main.ts index d8290e0651..8323baca9d 100644 --- a/apps/desktop/src/main/runtime-host-search-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-search-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { runThreadSearch } from './search/thread-search.js'; import type { DesktopRuntimeHostClient } from './runtime-host-client.js'; import { toDesktopHostSessionSummary } from './runtime-host-session-catalog-ipc-main.js'; diff --git a/apps/desktop/src/main/runtime-host-session-catalog-ipc-main.ts b/apps/desktop/src/main/runtime-host-session-catalog-ipc-main.ts index b7a1d885c7..a146d86ecf 100644 --- a/apps/desktop/src/main/runtime-host-session-catalog-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-session-catalog-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isCollaborationMode } from '@maka/core/collaboration'; import { isOrchestrationMode } from '@maka/core/orchestration'; diff --git a/apps/desktop/src/main/runtime-host-session-domains-ipc-main.ts b/apps/desktop/src/main/runtime-host-session-domains-ipc-main.ts index 964da3699b..24b70c1d1f 100644 --- a/apps/desktop/src/main/runtime-host-session-domains-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-session-domains-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { AgentGraphClientChangedEvent } from '@maka/runtime/stream-graph-coordinator'; import type { diff --git a/apps/desktop/src/main/runtime-host-session-execution-ipc-main.ts b/apps/desktop/src/main/runtime-host-session-execution-ipc-main.ts index d383d91ec9..f6a6df231a 100644 --- a/apps/desktop/src/main/runtime-host-session-execution-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-session-execution-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from "node:crypto"; import type { IpcMainInvokeEvent } from "electron"; import { RuntimeHostOperationError } from '@maka/runtime-host/client'; diff --git a/apps/desktop/src/main/runtime-host-session-observation-registry.ts b/apps/desktop/src/main/runtime-host-session-observation-registry.ts index 9b2ce61683..e60ca88983 100644 --- a/apps/desktop/src/main/runtime-host-session-observation-registry.ts +++ b/apps/desktop/src/main/runtime-host-session-observation-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeHostSessionObserver, RuntimeHostRendererTarget, diff --git a/apps/desktop/src/main/runtime-host-session-observer.ts b/apps/desktop/src/main/runtime-host-session-observer.ts index 70f4b5161b..815b960a5a 100644 --- a/apps/desktop/src/main/runtime-host-session-observer.ts +++ b/apps/desktop/src/main/runtime-host-session-observer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ActiveInteractionRequestEvent, SessionEvent } from '@maka/core/events'; import type { SessionChangedReason, StoredMessage, TurnRecord } from '@maka/core/session'; import type { AgentGraphClientChangedEvent } from '@maka/runtime/stream-graph-coordinator'; diff --git a/apps/desktop/src/main/runtime-host-session-subscription-owner.ts b/apps/desktop/src/main/runtime-host-session-subscription-owner.ts index e94900923f..70908c3087 100644 --- a/apps/desktop/src/main/runtime-host-session-subscription-owner.ts +++ b/apps/desktop/src/main/runtime-host-session-subscription-owner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostSubscriptionError } from "@maka/runtime-host/client"; import type { SessionAssistantStreamIdentity, diff --git a/apps/desktop/src/main/runtime-host-settings-ipc-main.ts b/apps/desktop/src/main/runtime-host-settings-ipc-main.ts index f035b65402..9326dbdf76 100644 --- a/apps/desktop/src/main/runtime-host-settings-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-settings-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, SettingsTestResult, diff --git a/apps/desktop/src/main/runtime-host-shell-runs-ipc-main.ts b/apps/desktop/src/main/runtime-host-shell-runs-ipc-main.ts index c5226cdfad..7c92763735 100644 --- a/apps/desktop/src/main/runtime-host-shell-runs-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-shell-runs-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { ShellRunUpdate } from '@maka/core/events'; import type { ShellRunPtySnapshot } from '@maka/runtime/shell-run-contract'; diff --git a/apps/desktop/src/main/runtime-host-skills-ipc-main.ts b/apps/desktop/src/main/runtime-host-skills-ipc-main.ts index 5508b330de..76a9d37e7a 100644 --- a/apps/desktop/src/main/runtime-host-skills-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-skills-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatDefaultPermissionMode } from '@maka/core/settings'; import { resolveSkillDiscoveryPaths, scanSkillsWithDiagnostics } from '@maka/runtime/skills'; import { type InvocableSkillEntry } from '@maka/runtime/skill-invocation'; diff --git a/apps/desktop/src/main/runtime-host-ssh-terminal.ts b/apps/desktop/src/main/runtime-host-ssh-terminal.ts index 238532d98f..0a5e90ddfe 100644 --- a/apps/desktop/src/main/runtime-host-ssh-terminal.ts +++ b/apps/desktop/src/main/runtime-host-ssh-terminal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { homedir } from 'node:os'; import { createHash, randomUUID } from 'node:crypto'; import { realpath, stat } from 'node:fs/promises'; diff --git a/apps/desktop/src/main/runtime-host-upgrade-copy.ts b/apps/desktop/src/main/runtime-host-upgrade-copy.ts index 3b07cacbd0..4a4a46c99a 100644 --- a/apps/desktop/src/main/runtime-host-upgrade-copy.ts +++ b/apps/desktop/src/main/runtime-host-upgrade-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { MessageBoxOptions } from 'electron'; import type { diff --git a/apps/desktop/src/main/runtime-host-upgrade-dialog.ts b/apps/desktop/src/main/runtime-host-upgrade-dialog.ts index bb8552bb9a..b051eabc9e 100644 --- a/apps/desktop/src/main/runtime-host-upgrade-dialog.ts +++ b/apps/desktop/src/main/runtime-host-upgrade-dialog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { MessageBoxOptions, MessageBoxReturnValue } from 'electron'; import type { diff --git a/apps/desktop/src/main/runtime-host-usage-ipc-main.ts b/apps/desktop/src/main/runtime-host-usage-ipc-main.ts index 84389d9d3e..a950f033f2 100644 --- a/apps/desktop/src/main/runtime-host-usage-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-usage-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { tryResult } from "@maka/core/result"; import { normalizePricingConfig, diff --git a/apps/desktop/src/main/runtime-host-workspace-ipc-main.ts b/apps/desktop/src/main/runtime-host-workspace-ipc-main.ts index f917b3ab4b..f2f2d91ca6 100644 --- a/apps/desktop/src/main/runtime-host-workspace-ipc-main.ts +++ b/apps/desktop/src/main/runtime-host-workspace-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stat } from 'node:fs/promises'; import type { GitReviewSource } from '@maka/core/git-review'; import type { DesktopRuntimeHostClient } from './runtime-host-client.js'; diff --git a/apps/desktop/src/main/search/thread-search.ts b/apps/desktop/src/main/search/thread-search.ts index 9c00cc29a0..43d4d1c8e5 100644 --- a/apps/desktop/src/main/search/thread-search.ts +++ b/apps/desktop/src/main/search/thread-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Local thread / session search — bounded scan, no FTS5. * diff --git a/apps/desktop/src/main/session-family-action.ts b/apps/desktop/src/main/session-family-action.ts index 900a6cab6f..f7eb239ed4 100644 --- a/apps/desktop/src/main/session-family-action.ts +++ b/apps/desktop/src/main/session-family-action.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { revisionFamilySessionIds } from '@maka/core/session-revisions'; import { type SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/main/session-model-input.ts b/apps/desktop/src/main/session-model-input.ts index 884a70a9fd..3e476bc6f4 100644 --- a/apps/desktop/src/main/session-model-input.ts +++ b/apps/desktop/src/main/session-model-input.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface SessionModelSelection { llmConnectionSlug: string; model: string; diff --git a/apps/desktop/src/main/session-workspace-inline-references.ts b/apps/desktop/src/main/session-workspace-inline-references.ts index 827db53ed5..dc6314a1cd 100644 --- a/apps/desktop/src/main/session-workspace-inline-references.ts +++ b/apps/desktop/src/main/session-workspace-inline-references.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { INLINE_REFERENCE_LABEL_MAX_LENGTH, INLINE_REFERENCE_MAX_COUNT, diff --git a/apps/desktop/src/main/settings-bots-ipc-main.ts b/apps/desktop/src/main/settings-bots-ipc-main.ts index d3956b5b32..c98eafa257 100644 --- a/apps/desktop/src/main/settings-bots-ipc-main.ts +++ b/apps/desktop/src/main/settings-bots-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IpcMain } from 'electron'; import type { AppSettings, UpdateAppSettingsInput } from '@maka/core/settings'; import type { BotOnboardingSnapshot, BotOnboardingStartInput } from '@maka/core/bot-onboarding'; diff --git a/apps/desktop/src/main/settings-ipc-helpers.ts b/apps/desktop/src/main/settings-ipc-helpers.ts index 882a454a48..2404d1463f 100644 --- a/apps/desktop/src/main/settings-ipc-helpers.ts +++ b/apps/desktop/src/main/settings-ipc-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, SettingsTestResult, diff --git a/apps/desktop/src/main/shell-env.ts b/apps/desktop/src/main/shell-env.ts index 9eb8886fd3..ee5b9d1dbd 100644 --- a/apps/desktop/src/main/shell-env.ts +++ b/apps/desktop/src/main/shell-env.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/main/shell-env.ts // // Resolve the user's login-shell PATH at Electron startup. diff --git a/apps/desktop/src/main/skill-open-path.ts b/apps/desktop/src/main/skill-open-path.ts index 8f62220f2d..18f32b270d 100644 --- a/apps/desktop/src/main/skill-open-path.ts +++ b/apps/desktop/src/main/skill-open-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath, stat } from 'node:fs/promises'; import { join } from 'node:path'; import { isPathInside, isSafeSkillId } from '@maka/runtime/path-containment'; diff --git a/apps/desktop/src/main/startup-context.ts b/apps/desktop/src/main/startup-context.ts index c39b7b4dc3..062782dabe 100644 --- a/apps/desktop/src/main/startup-context.ts +++ b/apps/desktop/src/main/startup-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app } from 'electron'; // E2E switches must never fire in a packaged build, and must never run against diff --git a/apps/desktop/src/main/startup-step.ts b/apps/desktop/src/main/startup-step.ts index 0c101072c3..f74d980887 100644 --- a/apps/desktop/src/main/startup-step.ts +++ b/apps/desktop/src/main/startup-step.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/main/startup-step.ts // // Everything before the first window is created runs at boot's top level, diff --git a/apps/desktop/src/main/storage-root-startup.ts b/apps/desktop/src/main/storage-root-startup.ts index 0fdeb95e8a..c8f3bf4931 100644 --- a/apps/desktop/src/main/storage-root-startup.ts +++ b/apps/desktop/src/main/storage-root-startup.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { prepareStorageRootIdentityRepair, repairStorageRootIdentity, diff --git a/apps/desktop/src/main/task-submission-readiness-main.ts b/apps/desktop/src/main/task-submission-readiness-main.ts index 506ef26fc4..de57eb6e19 100644 --- a/apps/desktop/src/main/task-submission-readiness-main.ts +++ b/apps/desktop/src/main/task-submission-readiness-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stat } from 'node:fs/promises'; import { deriveTaskSubmissionReadiness, type TaskSubmissionReadinessSnapshot } from '@maka/core/task-submission-readiness'; import { type LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/main/theme-source.ts b/apps/desktop/src/main/theme-source.ts index beed2a9c94..296f43f624 100644 --- a/apps/desktop/src/main/theme-source.ts +++ b/apps/desktop/src/main/theme-source.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ThemePreference } from '@maka/core/settings'; export type NativeThemeSource = 'system' | 'light' | 'dark'; diff --git a/apps/desktop/src/main/web-search/credentials.ts b/apps/desktop/src/main/web-search/credentials.ts index 8c8aaae9b7..cf107ee603 100644 --- a/apps/desktop/src/main/web-search/credentials.ts +++ b/apps/desktop/src/main/web-search/credentials.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings } from '@maka/core/settings'; import type { WebSearchCredentialSource } from '@maka/core/web-search'; diff --git a/apps/desktop/src/main/wechat-scan-login.ts b/apps/desktop/src/main/wechat-scan-login.ts index 768de4f8e7..d6439c0fcb 100644 --- a/apps/desktop/src/main/wechat-scan-login.ts +++ b/apps/desktop/src/main/wechat-scan-login.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BOT-WECHAT-QR-MODAL-0 (WAWQAQ msg `10ec1fbe`): WeChat personal-account * scan-login via the iLink ClawBot endpoints. The reference design uses diff --git a/apps/desktop/src/main/window-reveal.ts b/apps/desktop/src/main/window-reveal.ts index b949467193..a28827cb98 100644 --- a/apps/desktop/src/main/window-reveal.ts +++ b/apps/desktop/src/main/window-reveal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-SHOW-AFTER-FIRST-COMMIT: shared reveal gate for the hidden main window. * diff --git a/apps/desktop/src/main/window-state.ts b/apps/desktop/src/main/window-state.ts index b45b128b13..5e22b7dc45 100644 --- a/apps/desktop/src/main/window-state.ts +++ b/apps/desktop/src/main/window-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Persist BrowserWindow bounds across launches. * diff --git a/apps/desktop/src/main/workspace-file-search.ts b/apps/desktop/src/main/workspace-file-search.ts index 823bf2790c..8c37f41a24 100644 --- a/apps/desktop/src/main/workspace-file-search.ts +++ b/apps/desktop/src/main/workspace-file-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, type ExecFileException } from 'node:child_process'; import { readdir } from 'node:fs/promises'; import { join, relative, sep } from 'node:path'; diff --git a/apps/desktop/src/main/workspace-search-ipc-main.ts b/apps/desktop/src/main/workspace-search-ipc-main.ts index b403800a30..ff0bf427be 100644 --- a/apps/desktop/src/main/workspace-search-ipc-main.ts +++ b/apps/desktop/src/main/workspace-search-ipc-main.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ipcMain as electronIpcMain } from 'electron'; import { searchWorkspaceFiles } from './workspace-file-search.js'; import { diff --git a/apps/desktop/src/overlay/cursor-overlay-preload.ts b/apps/desktop/src/overlay/cursor-overlay-preload.ts index 282bab83f3..46d02197c1 100644 --- a/apps/desktop/src/overlay/cursor-overlay-preload.ts +++ b/apps/desktop/src/overlay/cursor-overlay-preload.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Overlay preload. Main owns all coordinates and actions. Renderer may send only // a fixed presentation-phase acknowledgement keyed by the action id. import { contextBridge, ipcRenderer } from 'electron'; diff --git a/apps/desktop/src/overlay/cursor-overlay.html b/apps/desktop/src/overlay/cursor-overlay.html index f334a22d37..95538aa984 100644 --- a/apps/desktop/src/overlay/cursor-overlay.html +++ b/apps/desktop/src/overlay/cursor-overlay.html @@ -1,4 +1,23 @@ + + diff --git a/apps/desktop/src/overlay/cursor-overlay.ts b/apps/desktop/src/overlay/cursor-overlay.ts index d4ce278cc9..ba42518e28 100644 --- a/apps/desktop/src/overlay/cursor-overlay.ts +++ b/apps/desktop/src/overlay/cursor-overlay.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Overlay renderer entry — hosts the ported CursorEngine on a full-window canvas. // Receives MAIN-computed, window-local coordinates over a one-way bridge and // animates the agent cursor. Display-only: it never sends anything back (S15). diff --git a/apps/desktop/src/overlay/permission-overlay-preload.ts b/apps/desktop/src/overlay/permission-overlay-preload.ts index 485b8fd25d..49fbe9ae56 100644 --- a/apps/desktop/src/overlay/permission-overlay-preload.ts +++ b/apps/desktop/src/overlay/permission-overlay-preload.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Permission-overlay preload. * diff --git a/apps/desktop/src/overlay/permission-overlay.html b/apps/desktop/src/overlay/permission-overlay.html index 67bdc966bd..bca0e3402a 100644 --- a/apps/desktop/src/overlay/permission-overlay.html +++ b/apps/desktop/src/overlay/permission-overlay.html @@ -1,4 +1,23 @@ + + diff --git a/apps/desktop/src/overlay/permission-overlay.ts b/apps/desktop/src/overlay/permission-overlay.ts index 3ca5604d84..d22928315c 100644 --- a/apps/desktop/src/overlay/permission-overlay.ts +++ b/apps/desktop/src/overlay/permission-overlay.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Permission-overlay card (renderer half). * diff --git a/apps/desktop/src/overlay/pip-preload.ts b/apps/desktop/src/overlay/pip-preload.ts index fbee23a19a..e8393f0b85 100644 --- a/apps/desktop/src/overlay/pip-preload.ts +++ b/apps/desktop/src/overlay/pip-preload.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // PiP preload. Frames and the cursor come down; pointer and controls go up. // // It was receive-only before this, because the mirror did nothing. Now it is diff --git a/apps/desktop/src/overlay/pip.html b/apps/desktop/src/overlay/pip.html index f54ba1114e..456737e474 100644 --- a/apps/desktop/src/overlay/pip.html +++ b/apps/desktop/src/overlay/pip.html @@ -1,4 +1,23 @@ + + diff --git a/apps/desktop/src/overlay/pip.ts b/apps/desktop/src/overlay/pip.ts index 9fa31fa775..329fd787c8 100644 --- a/apps/desktop/src/overlay/pip.ts +++ b/apps/desktop/src/overlay/pip.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // PiP renderer. Receives frames and cursor positions from main and draws them; // it computes nothing about the target. It does report the pointer, because // only the page can see it — main moves the window, the page says when. diff --git a/apps/desktop/src/preload/attachment-ingest-payload.ts b/apps/desktop/src/preload/attachment-ingest-payload.ts index 3deaa0a07a..c36848a7f0 100644 --- a/apps/desktop/src/preload/attachment-ingest-payload.ts +++ b/apps/desktop/src/preload/attachment-ingest-payload.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_ATTACHMENT_BYTES, MAX_ATTACHMENT_COUNT } from '@maka/core/attachments'; export type IngestInput = diff --git a/apps/desktop/src/preload/bridge-contract.d.ts b/apps/desktop/src/preload/bridge-contract.d.ts index 8eed5626c0..cd450a74f4 100644 --- a/apps/desktop/src/preload/bridge-contract.d.ts +++ b/apps/desktop/src/preload/bridge-contract.d.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionEvent } from '@maka/core/connections'; import type { ConnectionTestResult, diff --git a/apps/desktop/src/preload/browser-selection.ts b/apps/desktop/src/preload/browser-selection.ts index ac2dec9f42..f7f6f81c0c 100644 --- a/apps/desktop/src/preload/browser-selection.ts +++ b/apps/desktop/src/preload/browser-selection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BrowserViewRect } from '@maka/core/browser'; export interface ResolvedBrowserSession { diff --git a/apps/desktop/src/preload/diagnostics-contract.ts b/apps/desktop/src/preload/diagnostics-contract.ts index ab3e8ebece..f0e91df524 100644 --- a/apps/desktop/src/preload/diagnostics-contract.ts +++ b/apps/desktop/src/preload/diagnostics-contract.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface DesktopExecutionDiagnosticTarget { readonly sessionId: string; readonly turnId: string; diff --git a/apps/desktop/src/preload/external-session-catalog.ts b/apps/desktop/src/preload/external-session-catalog.ts index 3eb9906f2f..dc14691e8e 100644 --- a/apps/desktop/src/preload/external-session-catalog.ts +++ b/apps/desktop/src/preload/external-session-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ExternalSessionCatalogItem } from '@maka/runtime-host/protocol'; import { desktopSessionKey, diff --git a/apps/desktop/src/preload/external-session-import-result.ts b/apps/desktop/src/preload/external-session-import-result.ts index cdd99dc15d..5be40aae2b 100644 --- a/apps/desktop/src/preload/external-session-import-result.ts +++ b/apps/desktop/src/preload/external-session-import-result.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; /** Stable Desktop IPC result for the one import failure that must not be retried blindly. */ diff --git a/apps/desktop/src/preload/multi-host-thread-search.ts b/apps/desktop/src/preload/multi-host-thread-search.ts index 8e1c11dbf1..fa39e862d4 100644 --- a/apps/desktop/src/preload/multi-host-thread-search.ts +++ b/apps/desktop/src/preload/multi-host-thread-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SearchError, SearchResult } from '@maka/core/search'; export async function collectThreadSearchResponses( diff --git a/apps/desktop/src/preload/preload.ts b/apps/desktop/src/preload/preload.ts index 231dacbf2b..19bdfc1317 100644 --- a/apps/desktop/src/preload/preload.ts +++ b/apps/desktop/src/preload/preload.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { contextBridge, ipcRenderer } from 'electron'; import { encodeIngestItems } from './attachment-ingest-payload.js'; import { collectThreadSearchResponses } from './multi-host-thread-search.js'; diff --git a/apps/desktop/src/preload/runtime-host-renderer-operations.ts b/apps/desktop/src/preload/runtime-host-renderer-operations.ts index e0dde01165..1e6b2da5d4 100644 --- a/apps/desktop/src/preload/runtime-host-renderer-operations.ts +++ b/apps/desktop/src/preload/runtime-host-renderer-operations.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OperationSpecMap } from '@maka/runtime-host/protocol'; export const RENDERER_RUNTIME_HOST_QUERY_OPERATIONS = [ diff --git a/apps/desktop/src/preload/seed-completion.ts b/apps/desktop/src/preload/seed-completion.ts index bf5118c890..464abe4b7b 100644 --- a/apps/desktop/src/preload/seed-completion.ts +++ b/apps/desktop/src/preload/seed-completion.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function notifyWhenSeeded( seed: Promise, notify: (() => void) | undefined, diff --git a/apps/desktop/src/preload/session-observation-release.ts b/apps/desktop/src/preload/session-observation-release.ts index 893945ded1..189eb439a7 100644 --- a/apps/desktop/src/preload/session-observation-release.ts +++ b/apps/desktop/src/preload/session-observation-release.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + interface SessionObservationDispatch { readonly completion: Promise; } diff --git a/apps/desktop/src/preload/transcript-contract.ts b/apps/desktop/src/preload/transcript-contract.ts index 99b0dd44db..3d7790fe8c 100644 --- a/apps/desktop/src/preload/transcript-contract.ts +++ b/apps/desktop/src/preload/transcript-contract.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const DESKTOP_TRANSCRIPT_FRAGMENT_MAX_BYTES = 128 * 1024; export const DESKTOP_TRANSCRIPT_RANGE_MAX_BYTES = 512 * 1024; export const DESKTOP_TRANSCRIPT_SESSION_CACHE_MAX_BYTES = 20 * 1024 * 1024; diff --git a/apps/desktop/src/renderer/README.md b/apps/desktop/src/renderer/README.md index 10eb4eceb4..68bf1ddbc7 100644 --- a/apps/desktop/src/renderer/README.md +++ b/apps/desktop/src/renderer/README.md @@ -1,3 +1,22 @@ + + # Renderer (`apps/desktop/src/renderer`) The Electron renderer process: the React UI body of the Maka desktop app. React + Vite, consuming Astryx through `@maka/ui` primitives. diff --git a/apps/desktop/src/renderer/agent-graph-panel-visibility.ts b/apps/desktop/src/renderer/agent-graph-panel-visibility.ts index 29548206f8..dca3b68b18 100644 --- a/apps/desktop/src/renderer/agent-graph-panel-visibility.ts +++ b/apps/desktop/src/renderer/agent-graph-panel-visibility.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type AgentGraphPanelStatus = | 'empty' | 'active' diff --git a/apps/desktop/src/renderer/agent-graph-panel.tsx b/apps/desktop/src/renderer/agent-graph-panel.tsx index ecf5204871..32e8a38810 100644 --- a/apps/desktop/src/renderer/agent-graph-panel.tsx +++ b/apps/desktop/src/renderer/agent-graph-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useId, useMemo, useRef, useState, type JSX } from 'react'; import type { UiLocale } from '@maka/core/ui-locale'; import type { diff --git a/apps/desktop/src/renderer/agent-graph-refresh.ts b/apps/desktop/src/renderer/agent-graph-refresh.ts index 2d83e9a42f..506b1e56cb 100644 --- a/apps/desktop/src/renderer/agent-graph-refresh.ts +++ b/apps/desktop/src/renderer/agent-graph-refresh.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Coalesced refresh scheduling for the Agent Graph panel (#2991). * diff --git a/apps/desktop/src/renderer/app-shell-app-update.ts b/apps/desktop/src/renderer/app-shell-app-update.ts index 707d9b3d3d..dd57d850e3 100644 --- a/apps/desktop/src/renderer/app-shell-app-update.ts +++ b/apps/desktop/src/renderer/app-shell-app-update.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SidebarUpdateReminder } from '@maka/ui'; import type { AppUpdateStatus } from '../preload/bridge-contract.js'; diff --git a/apps/desktop/src/renderer/app-shell-build-stamp.ts b/apps/desktop/src/renderer/app-shell-build-stamp.ts index f41779db88..3972c2a8b5 100644 --- a/apps/desktop/src/renderer/app-shell-build-stamp.ts +++ b/apps/desktop/src/renderer/app-shell-build-stamp.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { SidebarBuildStamp } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/app-shell-chat-actions.ts b/apps/desktop/src/renderer/app-shell-chat-actions.ts index f2f4b19cce..46370b62b2 100644 --- a/apps/desktop/src/renderer/app-shell-chat-actions.ts +++ b/apps/desktop/src/renderer/app-shell-chat-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CollaborationMode } from '@maka/core/collaboration'; import type { DesktopNewTaskTarget } from '../preload/bridge-contract.js'; import type { InlineReference, QuoteRef } from '@maka/core/events'; diff --git a/apps/desktop/src/renderer/app-shell-chrome-actions.tsx b/apps/desktop/src/renderer/app-shell-chrome-actions.tsx index 9f91151849..93247fe600 100644 --- a/apps/desktop/src/renderer/app-shell-chrome-actions.tsx +++ b/apps/desktop/src/renderer/app-shell-chrome-actions.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PanelLeftClose, PanelLeftOpen, diff --git a/apps/desktop/src/renderer/app-shell-command-actions.ts b/apps/desktop/src/renderer/app-shell-command-actions.ts index 63d7ec8070..1ea78b8dc9 100644 --- a/apps/desktop/src/renderer/app-shell-command-actions.ts +++ b/apps/desktop/src/renderer/app-shell-command-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, useRef } from "react"; import type { DailyReviewSummary } from '@maka/core/daily-review'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/renderer/app-shell-copy.ts b/apps/desktop/src/renderer/app-shell-copy.ts index 7039c18242..78da030fd6 100644 --- a/apps/desktop/src/renderer/app-shell-copy.ts +++ b/apps/desktop/src/renderer/app-shell-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionTestResult } from '@maka/core/llm-connections'; import type { TextFileImportPreflightFailureReason } from '@maka/core/text-file-import'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/app-shell-daily-review-actions.ts b/apps/desktop/src/renderer/app-shell-daily-review-actions.ts index ad78112931..27b81dc2be 100644 --- a/apps/desktop/src/renderer/app-shell-daily-review-actions.ts +++ b/apps/desktop/src/renderer/app-shell-daily-review-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { DailyReviewMarkdownActionInput } from '@maka/ui'; import { dailyReviewActionErrorMessage, dailyReviewExportDefaultName } from './daily-review-actions'; diff --git a/apps/desktop/src/renderer/app-shell-daily-review-bridge.ts b/apps/desktop/src/renderer/app-shell-daily-review-bridge.ts index 6ca8f17c0b..7752a4f84f 100644 --- a/apps/desktop/src/renderer/app-shell-daily-review-bridge.ts +++ b/apps/desktop/src/renderer/app-shell-daily-review-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewRange } from '@maka/core/daily-review'; import type { UiLocale } from '@maka/core/ui-locale'; import type { DesktopRuntimeHostRef } from '../preload/bridge-contract.js'; diff --git a/apps/desktop/src/renderer/app-shell-detail-panel.tsx b/apps/desktop/src/renderer/app-shell-detail-panel.tsx index 1778f6f961..8fc3e48bf8 100644 --- a/apps/desktop/src/renderer/app-shell-detail-panel.tsx +++ b/apps/desktop/src/renderer/app-shell-detail-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ComponentPropsWithoutRef } from 'react'; type AppShellDetailPanelProps = Omit< diff --git a/apps/desktop/src/renderer/app-shell-e2e-fixture.ts b/apps/desktop/src/renderer/app-shell-e2e-fixture.ts index f21784c742..318c892482 100644 --- a/apps/desktop/src/renderer/app-shell-e2e-fixture.ts +++ b/apps/desktop/src/renderer/app-shell-e2e-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Dispatch, SetStateAction } from 'react'; import type { SettingsSection, ThemePreference } from '@maka/core/settings'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/app-shell-effects.ts b/apps/desktop/src/renderer/app-shell-effects.ts index c4a760b5b2..f25e236605 100644 --- a/apps/desktop/src/renderer/app-shell-effects.ts +++ b/apps/desktop/src/renderer/app-shell-effects.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useEffectEvent, useLayoutEffect } from 'react'; import { useHotkeys } from '@astryxdesign/core/hooks'; import type { ConnectionEvent } from '@maka/core/connections'; diff --git a/apps/desktop/src/renderer/app-shell-open-skill-action.ts b/apps/desktop/src/renderer/app-shell-open-skill-action.ts index c12502e269..a5588f4f2f 100644 --- a/apps/desktop/src/renderer/app-shell-open-skill-action.ts +++ b/apps/desktop/src/renderer/app-shell-open-skill-action.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import { openSkillFailureCopy } from './app-shell-copy'; import { diff --git a/apps/desktop/src/renderer/app-shell-overlays.tsx b/apps/desktop/src/renderer/app-shell-overlays.tsx index c3e5eb511e..79bfc7a082 100644 --- a/apps/desktop/src/renderer/app-shell-overlays.tsx +++ b/apps/desktop/src/renderer/app-shell-overlays.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lazy, Suspense } from 'react'; import type { ChatDefaultPermissionMode, SettingsSection, ThemePalette, ThemePreference } from '@maka/core/settings'; import type { ProviderType } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/renderer/app-shell-pending-attachments.ts b/apps/desktop/src/renderer/app-shell-pending-attachments.ts index e57b33f294..34d0f3e296 100644 --- a/apps/desktop/src/renderer/app-shell-pending-attachments.ts +++ b/apps/desktop/src/renderer/app-shell-pending-attachments.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type PendingByKey = Record; export function selectPending(map: PendingByKey, key: string): T[] { diff --git a/apps/desktop/src/renderer/app-shell-project-actions.ts b/apps/desktop/src/renderer/app-shell-project-actions.ts index bdeb8ed1ee..0fcb540154 100644 --- a/apps/desktop/src/renderer/app-shell-project-actions.ts +++ b/apps/desktop/src/renderer/app-shell-project-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Dispatch, SetStateAction } from 'react'; import type { ProjectRecord } from '@maka/core/project'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/app-shell-revision-actions.ts b/apps/desktop/src/renderer/app-shell-revision-actions.ts index b80069fec1..4c13bf3a19 100644 --- a/apps/desktop/src/renderer/app-shell-revision-actions.ts +++ b/apps/desktop/src/renderer/app-shell-revision-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; import type { DesktopSessionSummary } from '../preload/bridge-contract.js'; diff --git a/apps/desktop/src/renderer/app-shell-scheduled-task-actions.ts b/apps/desktop/src/renderer/app-shell-scheduled-task-actions.ts index bfd96544c4..a7b9a58bf2 100644 --- a/apps/desktop/src/renderer/app-shell-scheduled-task-actions.ts +++ b/apps/desktop/src/renderer/app-shell-scheduled-task-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Dispatch, SetStateAction } from "react"; import type { CreateScheduledTaskInput, ScheduledTask, UpdateScheduledTaskInput } from '@maka/core/scheduled-task'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/app-shell-session-events.ts b/apps/desktop/src/renderer/app-shell-session-events.ts index 48df174c52..a98f65d544 100644 --- a/apps/desktop/src/renderer/app-shell-session-events.ts +++ b/apps/desktop/src/renderer/app-shell-session-events.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEvent } from '@maka/core/events'; import type { StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/app-shell-session-row-actions.ts b/apps/desktop/src/renderer/app-shell-session-row-actions.ts index b1b399a36a..cc4a002448 100644 --- a/apps/desktop/src/renderer/app-shell-session-row-actions.ts +++ b/apps/desktop/src/renderer/app-shell-session-row-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary, StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; import { getShellCopy, localizedShellErrorMessage } from './locales/shell-copy.js'; diff --git a/apps/desktop/src/renderer/app-shell-session-settings-actions.ts b/apps/desktop/src/renderer/app-shell-session-settings-actions.ts index f0e74290ae..6cb207b78a 100644 --- a/apps/desktop/src/renderer/app-shell-session-settings-actions.ts +++ b/apps/desktop/src/renderer/app-shell-session-settings-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatDefaultPermissionMode } from '@maka/core/settings'; import type { LlmConnection } from '@maka/core/llm-connections'; import type { PermissionMode } from '@maka/core/permission'; diff --git a/apps/desktop/src/renderer/app-shell-session-start-actions.ts b/apps/desktop/src/renderer/app-shell-session-start-actions.ts index 83c7e23555..c87538a9cd 100644 --- a/apps/desktop/src/renderer/app-shell-session-start-actions.ts +++ b/apps/desktop/src/renderer/app-shell-session-start-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionStartMode } from '@maka/core/explore-agent'; import type { UiLocale } from '@maka/core/ui-locale'; import type { NavSelection } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/app-shell-session-ui-state.ts b/apps/desktop/src/renderer/app-shell-session-ui-state.ts index 73b54de868..1c6711f44e 100644 --- a/apps/desktop/src/renderer/app-shell-session-ui-state.ts +++ b/apps/desktop/src/renderer/app-shell-session-ui-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef } from 'react'; import type { SessionEventStreamSnapshot } from '@maka/core/session-event-health'; import { confirmLiveTurn, type InteractionQueues, type LiveTurnProjection } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/app-shell-skill-actions.ts b/apps/desktop/src/renderer/app-shell-skill-actions.ts index af219af9bf..9c7dd6d344 100644 --- a/apps/desktop/src/renderer/app-shell-skill-actions.ts +++ b/apps/desktop/src/renderer/app-shell-skill-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Dispatch, SetStateAction } from 'react'; import type { UiLocale } from '@maka/core/ui-locale'; import type { diff --git a/apps/desktop/src/renderer/app-shell-stop-action.ts b/apps/desktop/src/renderer/app-shell-stop-action.ts index 58f24bcbd3..81b8c34dc7 100644 --- a/apps/desktop/src/renderer/app-shell-stop-action.ts +++ b/apps/desktop/src/renderer/app-shell-stop-action.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import { localizedShellErrorMessage } from './locales/shell-copy.js'; import { getDesktopConversationCopy } from './locales/conversation-copy.js'; diff --git a/apps/desktop/src/renderer/app-shell-turn-actions.ts b/apps/desktop/src/renderer/app-shell-turn-actions.ts index d8d5900556..cb0179c91c 100644 --- a/apps/desktop/src/renderer/app-shell-turn-actions.ts +++ b/apps/desktop/src/renderer/app-shell-turn-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; import type { DesktopSessionSummary } from '../preload/bridge-contract.js'; diff --git a/apps/desktop/src/renderer/app-shell-turn-view-model.ts b/apps/desktop/src/renderer/app-shell-turn-view-model.ts index bee1d05923..725220e095 100644 --- a/apps/desktop/src/renderer/app-shell-turn-view-model.ts +++ b/apps/desktop/src/renderer/app-shell-turn-view-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef } from 'react'; import type { UiLocale } from '@maka/core/ui-locale'; import { diff --git a/apps/desktop/src/renderer/app-shell.tsx b/apps/desktop/src/renderer/app-shell.tsx index 443ea31c0f..e4ac84a9d1 100644 --- a/apps/desktop/src/renderer/app-shell.tsx +++ b/apps/desktop/src/renderer/app-shell.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, diff --git a/apps/desktop/src/renderer/app-update-install.ts b/apps/desktop/src/renderer/app-update-install.ts index 700ccc20e1..e6c8ff8530 100644 --- a/apps/desktop/src/renderer/app-update-install.ts +++ b/apps/desktop/src/renderer/app-update-install.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppUpdateInstallRequest, AppUpdateInstallResult, diff --git a/apps/desktop/src/renderer/app.tsx b/apps/desktop/src/renderer/app.tsx index 01664d4387..578adf71eb 100644 --- a/apps/desktop/src/renderer/app.tsx +++ b/apps/desktop/src/renderer/app.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { StrictMode, useEffect } from 'react'; import { Theme } from '@astryxdesign/core/theme'; import { makaTheme } from './astryx-theme/maka'; diff --git a/apps/desktop/src/renderer/artifact-list-keyboard.ts b/apps/desktop/src/renderer/artifact-list-keyboard.ts index 634f98e987..abab453c24 100644 --- a/apps/desktop/src/renderer/artifact-list-keyboard.ts +++ b/apps/desktop/src/renderer/artifact-list-keyboard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure ARIA listbox keyboard helpers for the ArtifactPane artifact list. * diff --git a/apps/desktop/src/renderer/artifact-pane.tsx b/apps/desktop/src/renderer/artifact-pane.tsx index 2cfc4a597f..d6e53a8120 100644 --- a/apps/desktop/src/renderer/artifact-pane.tsx +++ b/apps/desktop/src/renderer/artifact-pane.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Right-side ArtifactPane for the chat shell. * diff --git a/apps/desktop/src/renderer/artifact-preview-registry-shell.tsx b/apps/desktop/src/renderer/artifact-preview-registry-shell.tsx index cb4a086b6b..833902fdc1 100644 --- a/apps/desktop/src/renderer/artifact-preview-registry-shell.tsx +++ b/apps/desktop/src/renderer/artifact-preview-registry-shell.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Renderer shell for capped raster previews and typed unsupported outcomes. */ import { useEffect, useState } from 'react'; diff --git a/apps/desktop/src/renderer/artifact-preview.tsx b/apps/desktop/src/renderer/artifact-preview.tsx index 66578ddda1..f117f233ff 100644 --- a/apps/desktop/src/renderer/artifact-preview.tsx +++ b/apps/desktop/src/renderer/artifact-preview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Per-kind preview switcher for the ArtifactPane. Routes by `record.kind` * and renders: diff --git a/apps/desktop/src/renderer/artifact-visibility.ts b/apps/desktop/src/renderer/artifact-visibility.ts index b19ce4ccc0..cc35bb97c5 100644 --- a/apps/desktop/src/renderer/artifact-visibility.ts +++ b/apps/desktop/src/renderer/artifact-visibility.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ArtifactDescriptor, ArtifactSource } from '@maka/core/artifacts'; const USER_VISIBLE_ARTIFACT_SOURCES = { diff --git a/apps/desktop/src/renderer/astryx-theme-mode.ts b/apps/desktop/src/renderer/astryx-theme-mode.ts index 7a671c7c66..8f3cbd6192 100644 --- a/apps/desktop/src/renderer/astryx-theme-mode.ts +++ b/apps/desktop/src/renderer/astryx-theme-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { ThemeMode } from '@astryxdesign/core/theme'; diff --git a/apps/desktop/src/renderer/astryx-theme/makaTheme.ts b/apps/desktop/src/renderer/astryx-theme/makaTheme.ts index edc8ac533d..409de272df 100644 --- a/apps/desktop/src/renderer/astryx-theme/makaTheme.ts +++ b/apps/desktop/src/renderer/astryx-theme/makaTheme.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Maka's Astryx theme (#1565 PR 3). An `extends` of the neutral default theme // — issue #1565 fixes the target theme as "Astryx's default theme, light and // dark", with no token extraction from design files — plus the one deviation diff --git a/apps/desktop/src/renderer/attachment-preflight.ts b/apps/desktop/src/renderer/attachment-preflight.ts index 267edcf44d..dd8b294b86 100644 --- a/apps/desktop/src/renderer/attachment-preflight.ts +++ b/apps/desktop/src/renderer/attachment-preflight.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_ATTACHMENT_BYTES, MAX_ATTACHMENT_COUNT } from '@maka/core/attachments'; import { type UiLocale } from '@maka/core/ui-locale'; import { getDesktopConversationCopy } from './locales/conversation-copy.js'; diff --git a/apps/desktop/src/renderer/bootstrap-selection-lease.ts b/apps/desktop/src/renderer/bootstrap-selection-lease.ts index 6c4b01e14a..3a1cacb766 100644 --- a/apps/desktop/src/renderer/bootstrap-selection-lease.ts +++ b/apps/desktop/src/renderer/bootstrap-selection-lease.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface BootstrapSelectionLease { reconcile(sessions: readonly Summary[]): boolean; release(): void; diff --git a/apps/desktop/src/renderer/branch-banner.ts b/apps/desktop/src/renderer/branch-banner.ts index b750fd3755..2584491f7c 100644 --- a/apps/desktop/src/renderer/branch-banner.ts +++ b/apps/desktop/src/renderer/branch-banner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Branch banner derivation helper (PR109f). * diff --git a/apps/desktop/src/renderer/browser-panel.tsx b/apps/desktop/src/renderer/browser-panel.tsx index 0846418cb4..6f45455d4d 100644 --- a/apps/desktop/src/renderer/browser-panel.tsx +++ b/apps/desktop/src/renderer/browser-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * BrowserPanel (P3) — the renderer half of the embedded browser's right-side * panel. diff --git a/apps/desktop/src/renderer/browser-storage.ts b/apps/desktop/src/renderer/browser-storage.ts index 624bb97e31..474f6065d7 100644 --- a/apps/desktop/src/renderer/browser-storage.ts +++ b/apps/desktop/src/renderer/browser-storage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function safeLocalStorageGet(key: string): string | null { try { return localStorage.getItem(key); diff --git a/apps/desktop/src/renderer/cached-theme-bootstrap.ts b/apps/desktop/src/renderer/cached-theme-bootstrap.ts index f9ba2f6e30..0d510fb93f 100644 --- a/apps/desktop/src/renderer/cached-theme-bootstrap.ts +++ b/apps/desktop/src/renderer/cached-theme-bootstrap.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { safeLocalStorageGet } from './browser-storage'; // Apply the cached theme before React mounts so dark-theme users don't get diff --git a/apps/desktop/src/renderer/cascade-layers.css b/apps/desktop/src/renderer/cascade-layers.css index 1a7dfe7475..c78f6b5bf6 100644 --- a/apps/desktop/src/renderer/cascade-layers.css +++ b/apps/desktop/src/renderer/cascade-layers.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Single owner of the renderer cascade order. Astryx establishes the generic substrate; Maka tokens and product compositions extend it. diff --git a/apps/desktop/src/renderer/chat-composer-region.tsx b/apps/desktop/src/renderer/chat-composer-region.tsx index 710b9329c1..4ca1f9c6b9 100644 --- a/apps/desktop/src/renderer/chat-composer-region.tsx +++ b/apps/desktop/src/renderer/chat-composer-region.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useLayoutEffect, useRef, type ComponentProps, type RefObject } from 'react'; import { Button, Composer, SandboxBoundaryPrompt, UserQuestionPrompt, Banner } from '@maka/ui'; import type { ComposerHandle, ComposerInteraction } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/chat-message-surface.tsx b/apps/desktop/src/renderer/chat-message-surface.tsx index f3a22377ee..6ce3ac5611 100644 --- a/apps/desktop/src/renderer/chat-message-surface.tsx +++ b/apps/desktop/src/renderer/chat-message-surface.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, useState, type ComponentProps, type ReactNode } from 'react'; import { isDeepResearchSession } from '@maka/core/explore-agent'; import { type LlmConnection, type ProviderType } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/renderer/chat-workbar.tsx b/apps/desktop/src/renderer/chat-workbar.tsx index df6b6da9a2..d134de6d02 100644 --- a/apps/desktop/src/renderer/chat-workbar.tsx +++ b/apps/desktop/src/renderer/chat-workbar.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lazy, Suspense, type ComponentProps, type CSSProperties } from 'react'; import { Card } from '@astryxdesign/core/Card'; import { ResizeHandle, type ResizableProps } from '@astryxdesign/core/Resizable'; diff --git a/apps/desktop/src/renderer/command-palette-commands.ts b/apps/desktop/src/renderer/command-palette-commands.ts index 48a896db61..b9a020bec0 100644 --- a/apps/desktop/src/renderer/command-palette-commands.ts +++ b/apps/desktop/src/renderer/command-palette-commands.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/command-palette-commands.ts // // Pure builders for the command palette list. Extracted from diff --git a/apps/desktop/src/renderer/command-palette-types.ts b/apps/desktop/src/renderer/command-palette-types.ts index e064c7e1d3..076b91a86a 100644 --- a/apps/desktop/src/renderer/command-palette-types.ts +++ b/apps/desktop/src/renderer/command-palette-types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared types for the Command Palette. Pulled out of * `command-palette.tsx` so non-JSX consumers can import them under the diff --git a/apps/desktop/src/renderer/command-palette.tsx b/apps/desktop/src/renderer/command-palette.tsx index 1aa75b1e03..7d4a10a5bd 100644 --- a/apps/desktop/src/renderer/command-palette.tsx +++ b/apps/desktop/src/renderer/command-palette.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/command-palette.tsx // // ⌘K (Ctrl+K off macOS) command palette. Combines static actions (new chat, theme diff --git a/apps/desktop/src/renderer/composer-defaults.ts b/apps/desktop/src/renderer/composer-defaults.ts index 3c7ba71af3..01c6890923 100644 --- a/apps/desktop/src/renderer/composer-defaults.ts +++ b/apps/desktop/src/renderer/composer-defaults.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Global "last selection" defaults for the composer's folder / permission * mode / model chips. Survives reloads so a freshly created task inherits the diff --git a/apps/desktop/src/renderer/computer-use-overlay/engine/cursor-engine.ts b/apps/desktop/src/renderer/computer-use-overlay/engine/cursor-engine.ts index 637ed3bfc8..efc8d8efde 100644 --- a/apps/desktop/src/renderer/computer-use-overlay/engine/cursor-engine.ts +++ b/apps/desktop/src/renderer/computer-use-overlay/engine/cursor-engine.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Maka's agent-cursor renderer. // // This file has mixed provenance: diff --git a/apps/desktop/src/renderer/computer-use-overlay/engine/palette.ts b/apps/desktop/src/renderer/computer-use-overlay/engine/palette.ts index 0b645a4656..3d8d1aa03b 100644 --- a/apps/desktop/src/renderer/computer-use-overlay/engine/palette.ts +++ b/apps/desktop/src/renderer/computer-use-overlay/engine/palette.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Agent-cursor colour palettes — faithful 1:1 port of trycua/cua's // cursor-overlay/src/palette.rs (itself a port of AgentCursorPalette.cs). // Colours are [R,G,B] 0-255. The overlay picks a palette from the session id so diff --git a/apps/desktop/src/renderer/conversation-markdown.ts b/apps/desktop/src/renderer/conversation-markdown.ts index 6ef20e6a38..526f41d701 100644 --- a/apps/desktop/src/renderer/conversation-markdown.ts +++ b/apps/desktop/src/renderer/conversation-markdown.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; import { userFacingText } from '@maka/core/session'; diff --git a/apps/desktop/src/renderer/custom-pet-companion-model.ts b/apps/desktop/src/renderer/custom-pet-companion-model.ts index 5a7cfdce9f..14e82b21cc 100644 --- a/apps/desktop/src/renderer/custom-pet-companion-model.ts +++ b/apps/desktop/src/renderer/custom-pet-companion-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PetActivityState, PetAnimationV1, PetPackManifestV1, PetSpriteSheetV1 } from '@maka/core/pet'; import type { SessionStatus } from '@maka/core/session'; diff --git a/apps/desktop/src/renderer/custom-pet-companion.tsx b/apps/desktop/src/renderer/custom-pet-companion.tsx index d192d3cf65..9f85e4c15a 100644 --- a/apps/desktop/src/renderer/custom-pet-companion.tsx +++ b/apps/desktop/src/renderer/custom-pet-companion.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import { resolvePetAnimationFallback, diff --git a/apps/desktop/src/renderer/daily-review-actions.ts b/apps/desktop/src/renderer/daily-review-actions.ts index 48d0e43e9c..02bdc38119 100644 --- a/apps/desktop/src/renderer/daily-review-actions.ts +++ b/apps/desktop/src/renderer/daily-review-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewArchive } from '@maka/core/daily-review'; import type { UiLocale } from '@maka/core/ui-locale'; import { dailyReviewArchiveId } from '@maka/core/daily-review'; diff --git a/apps/desktop/src/renderer/default-runtime-host-operation.ts b/apps/desktop/src/renderer/default-runtime-host-operation.ts index 26f45e7c4b..ee2995e2e1 100644 --- a/apps/desktop/src/renderer/default-runtime-host-operation.ts +++ b/apps/desktop/src/renderer/default-runtime-host-operation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DesktopRuntimeHostRef } from '../preload/bridge-contract.js'; export type DefaultRuntimeHostDiagnosticTarget = { readonly profileId: string }; diff --git a/apps/desktop/src/renderer/derive-turn-lineage-badges.ts b/apps/desktop/src/renderer/derive-turn-lineage-badges.ts index 87e7423d3f..f6aa1d8373 100644 --- a/apps/desktop/src/renderer/derive-turn-lineage-badges.ts +++ b/apps/desktop/src/renderer/derive-turn-lineage-badges.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure derivation of a turn's lineage badges. * diff --git a/apps/desktop/src/renderer/desktop-execution-boundary-surface.ts b/apps/desktop/src/renderer/desktop-execution-boundary-surface.ts index 35937cb7fb..6baafc2345 100644 --- a/apps/desktop/src/renderer/desktop-execution-boundary-surface.ts +++ b/apps/desktop/src/renderer/desktop-execution-boundary-surface.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ExecutionBoundaryReadModel } from '@maka/core/sandbox-boundary'; import type { PermissionMode } from '@maka/core/permission'; import { executionBoundaryDisplayMode } from '@maka/core/sandbox-boundary'; diff --git a/apps/desktop/src/renderer/desktop-slash-command.ts b/apps/desktop/src/renderer/desktop-slash-command.ts index b59de42975..fa7936b0cb 100644 --- a/apps/desktop/src/renderer/desktop-slash-command.ts +++ b/apps/desktop/src/renderer/desktop-slash-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseGraphCommand, type ParsedGraphCommand } from '@maka/core/graph-command'; import { parseSwarmCommand, type ParsedSwarmCommand } from '@maka/core/swarm-command'; import { parseSideChatCommand, type SideChatCommand } from './side-chat-command.js'; diff --git a/apps/desktop/src/renderer/desktop-transcript-range-store.ts b/apps/desktop/src/renderer/desktop-transcript-range-store.ts index 970a8c4edb..37e61f339d 100644 --- a/apps/desktop/src/renderer/desktop-transcript-range-store.ts +++ b/apps/desktop/src/renderer/desktop-transcript-range-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeStoredMessage, type StoredMessage } from '@maka/core/session'; import type { DesktopTranscriptBatchPayload, diff --git a/apps/desktop/src/renderer/error-boundary.tsx b/apps/desktop/src/renderer/error-boundary.tsx index 22073243e6..7e13b09e99 100644 --- a/apps/desktop/src/renderer/error-boundary.tsx +++ b/apps/desktop/src/renderer/error-boundary.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/error-boundary.tsx // // Top-level React error boundary. If anything in the renderer throws during diff --git a/apps/desktop/src/renderer/goal-dialog.tsx b/apps/desktop/src/renderer/goal-dialog.tsx index 3eeecc4fe1..3d9c6b1b9c 100644 --- a/apps/desktop/src/renderer/goal-dialog.tsx +++ b/apps/desktop/src/renderer/goal-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The form behind the + menu's "Set a goal…" entry. * diff --git a/apps/desktop/src/renderer/index.html b/apps/desktop/src/renderer/index.html index 76098398f6..9f98299921 100644 --- a/apps/desktop/src/renderer/index.html +++ b/apps/desktop/src/renderer/index.html @@ -1,4 +1,23 @@ + + diff --git a/apps/desktop/src/renderer/interrupted-resume.ts b/apps/desktop/src/renderer/interrupted-resume.ts index 8a238aa419..5760fc0b60 100644 --- a/apps/desktop/src/renderer/interrupted-resume.ts +++ b/apps/desktop/src/renderer/interrupted-resume.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface InterruptedResumeTurn { turnId: string; status: string; diff --git a/apps/desktop/src/renderer/keyboard-help.tsx b/apps/desktop/src/renderer/keyboard-help.tsx index 98b11d98b7..fab861cdaa 100644 --- a/apps/desktop/src/renderer/keyboard-help.tsx +++ b/apps/desktop/src/renderer/keyboard-help.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/keyboard-help.tsx // // Discoverable keyboard cheat sheet. Modal triggered by `?` (when no input is diff --git a/apps/desktop/src/renderer/live-content-seed.ts b/apps/desktop/src/renderer/live-content-seed.ts index f3721f5946..bc49e3e9ef 100644 --- a/apps/desktop/src/renderer/live-content-seed.ts +++ b/apps/desktop/src/renderer/live-content-seed.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface LiveContentSeed { readonly sessionId: string | undefined; readonly generation: number; diff --git a/apps/desktop/src/renderer/live-turn-reconciler.tsx b/apps/desktop/src/renderer/live-turn-reconciler.tsx index 9e714f9907..fc0940d463 100644 --- a/apps/desktop/src/renderer/live-turn-reconciler.tsx +++ b/apps/desktop/src/renderer/live-turn-reconciler.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect } from 'react'; import type { StoredMessage } from '@maka/core/session'; import type { AppShellSessionUiStateController } from './app-shell-session-ui-state'; diff --git a/apps/desktop/src/renderer/live-turn-snapshot.ts b/apps/desktop/src/renderer/live-turn-snapshot.ts index 08017e5e73..229fc8a8cc 100644 --- a/apps/desktop/src/renderer/live-turn-snapshot.ts +++ b/apps/desktop/src/renderer/live-turn-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LiveTurnProjection } from '@maka/ui'; import type { TurnPhase } from './model-wait-state.js'; import { hasInFlightToolActivity } from './session-event-health.js'; diff --git a/apps/desktop/src/renderer/local-memory-digest.ts b/apps/desktop/src/renderer/local-memory-digest.ts index 3b0c9b5987..775c37b4c9 100644 --- a/apps/desktop/src/renderer/local-memory-digest.ts +++ b/apps/desktop/src/renderer/local-memory-digest.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Sha256Digest } from '@maka/core/local-memory'; /** Precompute one SubtleCrypto digest so the sync Sha256Digest seam can run in the renderer. */ diff --git a/apps/desktop/src/renderer/locales/artifact-copy.ts b/apps/desktop/src/renderer/locales/artifact-copy.ts index 111a769144..97dc2ec0fa 100644 --- a/apps/desktop/src/renderer/locales/artifact-copy.ts +++ b/apps/desktop/src/renderer/locales/artifact-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; type ReasonCopy = { title: string; description: string }; diff --git a/apps/desktop/src/renderer/locales/browser-copy.ts b/apps/desktop/src/renderer/locales/browser-copy.ts index bee975bf17..237ffe6544 100644 --- a/apps/desktop/src/renderer/locales/browser-copy.ts +++ b/apps/desktop/src/renderer/locales/browser-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type BrowserCopy = { diff --git a/apps/desktop/src/renderer/locales/conversation-copy.ts b/apps/desktop/src/renderer/locales/conversation-copy.ts index a4d1912dd4..adcfae0881 100644 --- a/apps/desktop/src/renderer/locales/conversation-copy.ts +++ b/apps/desktop/src/renderer/locales/conversation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatConfigurationReason } from '@maka/core/connection-readiness'; import type { ModelCallKind } from '@maka/core/model-call-attempt'; diff --git a/apps/desktop/src/renderer/locales/external-session-import-copy.ts b/apps/desktop/src/renderer/locales/external-session-import-copy.ts index 52f091fa53..cdbec0f7dd 100644 --- a/apps/desktop/src/renderer/locales/external-session-import-copy.ts +++ b/apps/desktop/src/renderer/locales/external-session-import-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; /** diff --git a/apps/desktop/src/renderer/locales/mcp-copy.ts b/apps/desktop/src/renderer/locales/mcp-copy.ts index dc4d006ba8..a16a586fe3 100644 --- a/apps/desktop/src/renderer/locales/mcp-copy.ts +++ b/apps/desktop/src/renderer/locales/mcp-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type McpCopy = { diff --git a/apps/desktop/src/renderer/locales/onboarding-copy.ts b/apps/desktop/src/renderer/locales/onboarding-copy.ts index 00c90a660a..e68a6243d4 100644 --- a/apps/desktop/src/renderer/locales/onboarding-copy.ts +++ b/apps/desktop/src/renderer/locales/onboarding-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OnboardingState } from '@maka/core/onboarding'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { OnboardingHeroCopy } from '../onboarding-hero-copy.js'; diff --git a/apps/desktop/src/renderer/locales/permission-center-copy.ts b/apps/desktop/src/renderer/locales/permission-center-copy.ts index 9065b6d841..56d264a697 100644 --- a/apps/desktop/src/renderer/locales/permission-center-copy.ts +++ b/apps/desktop/src/renderer/locales/permission-center-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusSemantic } from '@maka/ui'; import type { CapabilityReadinessState, diff --git a/apps/desktop/src/renderer/locales/plan-mode-copy.ts b/apps/desktop/src/renderer/locales/plan-mode-copy.ts index ce1c0c0eb5..df164c8bee 100644 --- a/apps/desktop/src/renderer/locales/plan-mode-copy.ts +++ b/apps/desktop/src/renderer/locales/plan-mode-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PlanExecutionStep, PlanProposal } from '@maka/core/plan'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/locales/settings-bot-copy.ts b/apps/desktop/src/renderer/locales/settings-bot-copy.ts index f58c2d7d9f..698aa1f4d9 100644 --- a/apps/desktop/src/renderer/locales/settings-bot-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-bot-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusSemantic } from '@maka/ui'; import type { BotProvider, BotReadinessState } from '@maka/core/bot-chat-settings'; diff --git a/apps/desktop/src/renderer/locales/settings-daily-review-copy.ts b/apps/desktop/src/renderer/locales/settings-daily-review-copy.ts index 14328bde9d..0c015bd453 100644 --- a/apps/desktop/src/renderer/locales/settings-daily-review-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-daily-review-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type DailyReviewSettingsCopy = { diff --git a/apps/desktop/src/renderer/locales/settings-data-copy.ts b/apps/desktop/src/renderer/locales/settings-data-copy.ts index 3e72d8c5aa..a171fd2ae5 100644 --- a/apps/desktop/src/renderer/locales/settings-data-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-data-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { ConfigCategory } from '@maka/storage'; diff --git a/apps/desktop/src/renderer/locales/settings-health-copy.ts b/apps/desktop/src/renderer/locales/settings-health-copy.ts index dd8f779a6a..0b871bbbf2 100644 --- a/apps/desktop/src/renderer/locales/settings-health-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-health-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusSemantic } from '@maka/ui'; import type { HealthSignal, HealthSignalLayer, HealthSignalSource, HealthSignalStatus } from '@maka/core/health'; diff --git a/apps/desktop/src/renderer/locales/settings-memory-copy.ts b/apps/desktop/src/renderer/locales/settings-memory-copy.ts index 4ba3ca6bf4..3c8685a733 100644 --- a/apps/desktop/src/renderer/locales/settings-memory-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-memory-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LocalMemoryState } from '@maka/core/local-memory'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/locales/settings-navigation-copy.ts b/apps/desktop/src/renderer/locales/settings-navigation-copy.ts index f636150ddd..0bfb6ba761 100644 --- a/apps/desktop/src/renderer/locales/settings-navigation-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-navigation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SettingsSection } from '@maka/core/settings'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { SettingsNavGroup } from '../settings/nav-group-summary.js'; diff --git a/apps/desktop/src/renderer/locales/settings-preferences-copy.ts b/apps/desktop/src/renderer/locales/settings-preferences-copy.ts index 7ea0033e8c..7312c9d979 100644 --- a/apps/desktop/src/renderer/locales/settings-preferences-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-preferences-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ThemePalette, ThemePreference } from '@maka/core/settings'; import type { UiCatalog, UiLocale, UiLocalePreference } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/locales/settings-projects-copy.ts b/apps/desktop/src/renderer/locales/settings-projects-copy.ts index 8de1bfba72..81e2da028d 100644 --- a/apps/desktop/src/renderer/locales/settings-projects-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-projects-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type SettingsProjectsCopy = { diff --git a/apps/desktop/src/renderer/locales/settings-provider-copy.ts b/apps/desktop/src/renderer/locales/settings-provider-copy.ts index 3247af53ef..bc4b84d4e4 100644 --- a/apps/desktop/src/renderer/locales/settings-provider-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-provider-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; type WidenCopy = T extends string diff --git a/apps/desktop/src/renderer/locales/settings-shared-copy.ts b/apps/desktop/src/renderer/locales/settings-shared-copy.ts index 8c6d70e744..834619160d 100644 --- a/apps/desktop/src/renderer/locales/settings-shared-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-shared-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type SettingsSharedCopy = { diff --git a/apps/desktop/src/renderer/locales/settings-subagents-copy.ts b/apps/desktop/src/renderer/locales/settings-subagents-copy.ts index a6c4cf4559..6241da520e 100644 --- a/apps/desktop/src/renderer/locales/settings-subagents-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-subagents-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SubagentProfile } from '@maka/core/subagent-settings'; import type { ThinkingLevel } from '@maka/core/model-thinking'; diff --git a/apps/desktop/src/renderer/locales/settings-tasks-copy.ts b/apps/desktop/src/renderer/locales/settings-tasks-copy.ts index 15b97de32e..cc7ac4e296 100644 --- a/apps/desktop/src/renderer/locales/settings-tasks-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-tasks-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; /** diff --git a/apps/desktop/src/renderer/locales/settings-test-result-copy.ts b/apps/desktop/src/renderer/locales/settings-test-result-copy.ts index d4b77208a8..66d8a316f0 100644 --- a/apps/desktop/src/renderer/locales/settings-test-result-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-test-result-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SettingsTestResult } from '@maka/core/settings'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/locales/settings-usage-copy.ts b/apps/desktop/src/renderer/locales/settings-usage-copy.ts index c4c58c0dc4..5d26a59edc 100644 --- a/apps/desktop/src/renderer/locales/settings-usage-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-usage-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; export type UsageSettingsCopy = { diff --git a/apps/desktop/src/renderer/locales/settings-web-search-copy.ts b/apps/desktop/src/renderer/locales/settings-web-search-copy.ts index c434795069..032fcc8cd6 100644 --- a/apps/desktop/src/renderer/locales/settings-web-search-copy.ts +++ b/apps/desktop/src/renderer/locales/settings-web-search-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { WebSearchCredentialStatus, WebSearchErrorReason } from '@maka/core/web-search'; diff --git a/apps/desktop/src/renderer/locales/shell-copy.ts b/apps/desktop/src/renderer/locales/shell-copy.ts index 2ea0b54856..fa23504826 100644 --- a/apps/desktop/src/renderer/locales/shell-copy.ts +++ b/apps/desktop/src/renderer/locales/shell-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { generalizedErrorMessage, generalizedErrorMessageChinese } from '@maka/core/redaction'; import { type UiCatalog, type UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/locales/shell-remaining-copy.ts b/apps/desktop/src/renderer/locales/shell-remaining-copy.ts index 83bd9fd179..d93bea4aa0 100644 --- a/apps/desktop/src/renderer/locales/shell-remaining-copy.ts +++ b/apps/desktop/src/renderer/locales/shell-remaining-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; type WidenCopy = T extends string diff --git a/apps/desktop/src/renderer/main.tsx b/apps/desktop/src/renderer/main.tsx index e264392655..817c9da459 100644 --- a/apps/desktop/src/renderer/main.tsx +++ b/apps/desktop/src/renderer/main.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRoot } from 'react-dom/client'; import { syncUiLocaleDocument } from '@maka/ui'; import { App } from './app'; diff --git a/apps/desktop/src/renderer/maka-tokens.css b/apps/desktop/src/renderer/maka-tokens.css index 2346bf15ef..886634ff37 100644 --- a/apps/desktop/src/renderer/maka-tokens.css +++ b/apps/desktop/src/renderer/maka-tokens.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ maka-tokens.css — Maka visual system ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/mcp-brand-contrast.ts b/apps/desktop/src/renderer/mcp-brand-contrast.ts index d10d03540f..cd8d9ec6b8 100644 --- a/apps/desktop/src/renderer/mcp-brand-contrast.ts +++ b/apps/desktop/src/renderer/mcp-brand-contrast.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Dark-theme contrast gate for MCP library brand marks. // // simple-icons marks fill with their official brand hex in light theme. On the diff --git a/apps/desktop/src/renderer/mcp-brand-marks.tsx b/apps/desktop/src/renderer/mcp-brand-marks.tsx index 97c40adae3..bf229a6fd9 100644 --- a/apps/desktop/src/renderer/mcp-brand-marks.tsx +++ b/apps/desktop/src/renderer/mcp-brand-marks.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Official MCP catalog brand marks. // // Each mark is LIBRARY-sourced path geometry (official path data + official diff --git a/apps/desktop/src/renderer/mcp-catalog.ts b/apps/desktop/src/renderer/mcp-catalog.ts index 9335652033..417c4c001e 100644 --- a/apps/desktop/src/renderer/mcp-catalog.ts +++ b/apps/desktop/src/renderer/mcp-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { McpServerConfig } from '@maka/core/mcp'; diff --git a/apps/desktop/src/renderer/mcp-command-line.ts b/apps/desktop/src/renderer/mcp-command-line.ts index f3f2149530..28292e0f58 100644 --- a/apps/desktop/src/renderer/mcp-command-line.ts +++ b/apps/desktop/src/renderer/mcp-command-line.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/mcp-command-line.ts // // The editor's single 命令 field holds a whole command line; mcp.json keeps diff --git a/apps/desktop/src/renderer/mcp-editor-validation.ts b/apps/desktop/src/renderer/mcp-editor-validation.ts index e35721986b..74435d852b 100644 --- a/apps/desktop/src/renderer/mcp-editor-validation.ts +++ b/apps/desktop/src/renderer/mcp-editor-validation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseCommandLine } from './mcp-command-line.js'; export type McpEditorDraft = { diff --git a/apps/desktop/src/renderer/mcp-import.ts b/apps/desktop/src/renderer/mcp-import.ts index 814a02fc68..58f09b49d2 100644 --- a/apps/desktop/src/renderer/mcp-import.ts +++ b/apps/desktop/src/renderer/mcp-import.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { McpConfigFile, McpServerConfig } from '@maka/core/mcp'; import { MCP_CONFIG_VERSION } from '@maka/core/mcp'; diff --git a/apps/desktop/src/renderer/mcp-page-model.ts b/apps/desktop/src/renderer/mcp-page-model.ts index 2cf6901378..0f340a6ece 100644 --- a/apps/desktop/src/renderer/mcp-page-model.ts +++ b/apps/desktop/src/renderer/mcp-page-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { McpOAuthConfig, McpProtocolPreference, diff --git a/apps/desktop/src/renderer/mcp-page.tsx b/apps/desktop/src/renderer/mcp-page.tsx index 41d267ac8b..1697950000 100644 --- a/apps/desktop/src/renderer/mcp-page.tsx +++ b/apps/desktop/src/renderer/mcp-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/mcp-page.tsx // // The MCP module page, on the shared ModulePage shell (Astryx Layout, the diff --git a/apps/desktop/src/renderer/model-catalog-choices.ts b/apps/desktop/src/renderer/model-catalog-choices.ts index fef518a109..cb7f1fe809 100644 --- a/apps/desktop/src/renderer/model-catalog-choices.ts +++ b/apps/desktop/src/renderer/model-catalog-choices.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildConnectionModelCatalogEntries, type ModelCatalogEntry, diff --git a/apps/desktop/src/renderer/model-connection-errors.ts b/apps/desktop/src/renderer/model-connection-errors.ts index 7f03c8c9e6..cb9a34de3f 100644 --- a/apps/desktop/src/renderer/model-connection-errors.ts +++ b/apps/desktop/src/renderer/model-connection-errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatConfigurationReason } from '@maka/core/connection-readiness'; import type { SessionEvent } from '@maka/core/events'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/model-wait-state.ts b/apps/desktop/src/renderer/model-wait-state.ts index 1795838c18..ea8b51b600 100644 --- a/apps/desktop/src/renderer/model-wait-state.ts +++ b/apps/desktop/src/renderer/model-wait-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure model-wait derivation + rising-edge debounce for the two turn-wait cues * (#646). diff --git a/apps/desktop/src/renderer/nav-selection.ts b/apps/desktop/src/renderer/nav-selection.ts index 942ba3329b..529fb31d21 100644 --- a/apps/desktop/src/renderer/nav-selection.ts +++ b/apps/desktop/src/renderer/nav-selection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AutomationModule, ExtensionModule, diff --git a/apps/desktop/src/renderer/new-task-reload-intent.ts b/apps/desktop/src/renderer/new-task-reload-intent.ts index aaddeb3dcf..6a0add55e5 100644 --- a/apps/desktop/src/renderer/new-task-reload-intent.ts +++ b/apps/desktop/src/renderer/new-task-reload-intent.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const NEW_TASK_RELOAD_INTENT_KEY = 'maka-new-task-reload-intent-v1'; export const UNRESOLVED_NEW_TASK_DRAFT_KEY = 'new-task:unresolved'; diff --git a/apps/desktop/src/renderer/onboarding-hero-copy.ts b/apps/desktop/src/renderer/onboarding-hero-copy.ts index 62dbcfbd50..d28c28b840 100644 --- a/apps/desktop/src/renderer/onboarding-hero-copy.ts +++ b/apps/desktop/src/renderer/onboarding-hero-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OnboardingState } from '@maka/core/onboarding'; import type { UiLocale } from '@maka/core/ui-locale'; import { getOnboardingCopy } from './locales/onboarding-copy.js'; diff --git a/apps/desktop/src/renderer/onboarding-hero.tsx b/apps/desktop/src/renderer/onboarding-hero.tsx index d48a944ca8..f6780b6e3e 100644 --- a/apps/desktop/src/renderer/onboarding-hero.tsx +++ b/apps/desktop/src/renderer/onboarding-hero.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/onboarding-hero.tsx // // First-run recovery rendered in place of the empty chat while setup is diff --git a/apps/desktop/src/renderer/onboarding-provider-types.ts b/apps/desktop/src/renderer/onboarding-provider-types.ts index bfd5f2d425..b669728e36 100644 --- a/apps/desktop/src/renderer/onboarding-provider-types.ts +++ b/apps/desktop/src/renderer/onboarding-provider-types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProviderType } from '@maka/core/llm-connections'; export const FIRST_RUN_PROVIDER_TYPES = [ diff --git a/apps/desktop/src/renderer/open-path.ts b/apps/desktop/src/renderer/open-path.ts index ff44264600..59c99e2d76 100644 --- a/apps/desktop/src/renderer/open-path.ts +++ b/apps/desktop/src/renderer/open-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Renderer-side helpers for the structured `app:openPath` IPC contract. * diff --git a/apps/desktop/src/renderer/pending-session-view.ts b/apps/desktop/src/renderer/pending-session-view.ts index 5b10443065..adcab5c86a 100644 --- a/apps/desktop/src/renderer/pending-session-view.ts +++ b/apps/desktop/src/renderer/pending-session-view.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionMode } from '@maka/core/permission'; import type { SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/renderer/plan-mode-panel.tsx b/apps/desktop/src/renderer/plan-mode-panel.tsx index ebdc0026f3..ece9b75d9c 100644 --- a/apps/desktop/src/renderer/plan-mode-panel.tsx +++ b/apps/desktop/src/renderer/plan-mode-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useId, useRef, useState, type JSX } from 'react'; import type { PlanExecutionStep, PlanProposal, PlanSessionState } from '@maka/core/plan'; import type { SessionEvent } from '@maka/core/events'; diff --git a/apps/desktop/src/renderer/project-path-display.ts b/apps/desktop/src/renderer/project-path-display.ts index 0cf914681e..f930433884 100644 --- a/apps/desktop/src/renderer/project-path-display.ts +++ b/apps/desktop/src/renderer/project-path-display.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * How a project's absolute path is shown next to its name. * diff --git a/apps/desktop/src/renderer/quote-companion-core.ts b/apps/desktop/src/renderer/quote-companion-core.ts index 8ab05f10ab..036005e2d4 100644 --- a/apps/desktop/src/renderer/quote-companion-core.ts +++ b/apps/desktop/src/renderer/quote-companion-core.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { clearInteractions, dequeueInteractionByRequestId, diff --git a/apps/desktop/src/renderer/quote-companion-panel-state.ts b/apps/desktop/src/renderer/quote-companion-panel-state.ts index 1189716d49..d6f46fb954 100644 --- a/apps/desktop/src/renderer/quote-companion-panel-state.ts +++ b/apps/desktop/src/renderer/quote-companion-panel-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { QuoteRef } from '@maka/core/events'; export interface StagedCompanionQuote { diff --git a/apps/desktop/src/renderer/quote-companion-panel.tsx b/apps/desktop/src/renderer/quote-companion-panel.tsx index 0d78b4db4b..7f8b02e445 100644 --- a/apps/desktop/src/renderer/quote-companion-panel.tsx +++ b/apps/desktop/src/renderer/quote-companion-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, type ComponentProps } from 'react'; import { Banner } from '@astryxdesign/core/Banner'; import { Spinner } from '@astryxdesign/core/Spinner'; diff --git a/apps/desktop/src/renderer/quote-companion-visibility.ts b/apps/desktop/src/renderer/quote-companion-visibility.ts index 96e35ec649..b6cd0eb89b 100644 --- a/apps/desktop/src/renderer/quote-companion-visibility.ts +++ b/apps/desktop/src/renderer/quote-companion-visibility.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type CompanionForkVisibilityEvent = | { type: 'fork-created'; sessionId: string } | { type: 'cleanup-succeeded'; sessionId: string }; diff --git a/apps/desktop/src/renderer/reference-shell.css b/apps/desktop/src/renderer/reference-shell.css index b1ed15c798..1461baa359 100644 --- a/apps/desktop/src/renderer/reference-shell.css +++ b/apps/desktop/src/renderer/reference-shell.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* target-layout shell rebuild. Hand-authored from a historical reference implementation extract; do not paste reference implementation compiled CSS or brand assets here. */ diff --git a/apps/desktop/src/renderer/remote-project-directory-dialog.tsx b/apps/desktop/src/renderer/remote-project-directory-dialog.tsx index 374dd7fd88..20b447ce36 100644 --- a/apps/desktop/src/renderer/remote-project-directory-dialog.tsx +++ b/apps/desktop/src/renderer/remote-project-directory-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import type { ProjectRecord } from '@maka/core/project'; import { Button } from '@astryxdesign/core/Button'; diff --git a/apps/desktop/src/renderer/scroll-motion-policy.ts b/apps/desktop/src/renderer/scroll-motion-policy.ts index af88b71a5a..52a50e0c4c 100644 --- a/apps/desktop/src/renderer/scroll-motion-policy.ts +++ b/apps/desktop/src/renderer/scroll-motion-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Scroll motion policy helper (PR109f). * diff --git a/apps/desktop/src/renderer/session-copy-attempt.ts b/apps/desktop/src/renderer/session-copy-attempt.ts index 0b61baf353..0208b7377d 100644 --- a/apps/desktop/src/renderer/session-copy-attempt.ts +++ b/apps/desktop/src/renderer/session-copy-attempt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const SESSION_COPY_ATTEMPTS_KEY = 'maka-session-copy-attempts-v3'; type SessionStorageLike = Pick; diff --git a/apps/desktop/src/renderer/session-error-presentation.ts b/apps/desktop/src/renderer/session-error-presentation.ts index 184e54a686..1c6a32c2e7 100644 --- a/apps/desktop/src/renderer/session-error-presentation.ts +++ b/apps/desktop/src/renderer/session-error-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import { getDesktopConversationCopy } from './locales/conversation-copy.js'; diff --git a/apps/desktop/src/renderer/session-event-health.ts b/apps/desktop/src/renderer/session-event-health.ts index 3cd78dd0e8..c6804c5eb1 100644 --- a/apps/desktop/src/renderer/session-event-health.ts +++ b/apps/desktop/src/renderer/session-event-health.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEventStreamSnapshot } from '@maka/core/session-event-health'; import type { SessionStatus } from '@maka/core/session'; import { isInFlightToolStatus } from '@maka/core/tool-result-status'; diff --git a/apps/desktop/src/renderer/session-health-notice.ts b/apps/desktop/src/renderer/session-health-notice.ts index 4d5f5dbcf6..ddcc2dbcf3 100644 --- a/apps/desktop/src/renderer/session-health-notice.ts +++ b/apps/desktop/src/renderer/session-health-notice.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Derivation of the session health notice shown above the composer. * diff --git a/apps/desktop/src/renderer/session-inspector-overview-model.ts b/apps/desktop/src/renderer/session-inspector-overview-model.ts index 39823a1984..36e835d81f 100644 --- a/apps/desktop/src/renderer/session-inspector-overview-model.ts +++ b/apps/desktop/src/renderer/session-inspector-overview-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ContextDiagnosticsResult, ContextDiagnosticsSegment, diff --git a/apps/desktop/src/renderer/session-inspector-panel-model.ts b/apps/desktop/src/renderer/session-inspector-panel-model.ts index ef9b72b0e6..8aafc56a12 100644 --- a/apps/desktop/src/renderer/session-inspector-panel-model.ts +++ b/apps/desktop/src/renderer/session-inspector-panel-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type SessionTrace, type TraceModelCallStep, diff --git a/apps/desktop/src/renderer/session-inspector-panel.tsx b/apps/desktop/src/renderer/session-inspector-panel.tsx index b45382d425..04a8b924d6 100644 --- a/apps/desktop/src/renderer/session-inspector-panel.tsx +++ b/apps/desktop/src/renderer/session-inspector-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type ReactNode, useEffect, useMemo, useState } from 'react'; import { Banner } from '@astryxdesign/core/Banner'; import { Button } from '@astryxdesign/core/Button'; diff --git a/apps/desktop/src/renderer/session-list-layout.ts b/apps/desktop/src/renderer/session-list-layout.ts index 7a1a5d4159..35fa6f90a8 100644 --- a/apps/desktop/src/renderer/session-list-layout.ts +++ b/apps/desktop/src/renderer/session-list-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionViewMode } from '@maka/ui'; import { safeLocalStorageGet, safeLocalStorageSet } from './browser-storage.js'; diff --git a/apps/desktop/src/renderer/session-message-settlement.ts b/apps/desktop/src/renderer/session-message-settlement.ts index fbfbd79a4c..1c4aa4bfb7 100644 --- a/apps/desktop/src/renderer/session-message-settlement.ts +++ b/apps/desktop/src/renderer/session-message-settlement.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import { DesktopTranscriptRangeStore } from './desktop-transcript-range-store.js'; diff --git a/apps/desktop/src/renderer/session-nav-filter.ts b/apps/desktop/src/renderer/session-nav-filter.ts index 9a6ec31110..ad57241f6e 100644 --- a/apps/desktop/src/renderer/session-nav-filter.ts +++ b/apps/desktop/src/renderer/session-nav-filter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; /** diff --git a/apps/desktop/src/renderer/session-project-grouping.ts b/apps/desktop/src/renderer/session-project-grouping.ts index 1e2b8c6ec9..be59f1bdc7 100644 --- a/apps/desktop/src/renderer/session-project-grouping.ts +++ b/apps/desktop/src/renderer/session-project-grouping.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProjectRecord } from '@maka/core/project'; import type { SessionSummary } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/session-rail.ts b/apps/desktop/src/renderer/session-rail.ts index aeb9f7d705..7e47dd9502 100644 --- a/apps/desktop/src/renderer/session-rail.ts +++ b/apps/desktop/src/renderer/session-rail.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; import { projectRevisionLinkedSessionTree } from '@maka/core/session-revisions'; diff --git a/apps/desktop/src/renderer/session-read-state.ts b/apps/desktop/src/renderer/session-read-state.ts index 9f3e630c31..9e406e057b 100644 --- a/apps/desktop/src/renderer/session-read-state.ts +++ b/apps/desktop/src/renderer/session-read-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary, StoredMessage } from '@maka/core/session'; export type SessionReadBoundaries = Record; diff --git a/apps/desktop/src/renderer/session-review-panel.tsx b/apps/desktop/src/renderer/session-review-panel.tsx index 8304d8fbad..bfb8187d9c 100644 --- a/apps/desktop/src/renderer/session-review-panel.tsx +++ b/apps/desktop/src/renderer/session-review-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import { Banner } from '@astryxdesign/core/Banner'; import { Button } from '@astryxdesign/core/Button'; diff --git a/apps/desktop/src/renderer/session-revisions.ts b/apps/desktop/src/renderer/session-revisions.ts index 6e027f18d9..53bcc1efcc 100644 --- a/apps/desktop/src/renderer/session-revisions.ts +++ b/apps/desktop/src/renderer/session-revisions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { sessionRevisionFamilyId, visibleSessionRevisionMembers } from '@maka/core/session-revisions'; import { type SessionSummary } from '@maka/core/session'; diff --git a/apps/desktop/src/renderer/session-status-presentation.ts b/apps/desktop/src/renderer/session-status-presentation.ts index 721eb22881..8f5af15655 100644 --- a/apps/desktop/src/renderer/session-status-presentation.ts +++ b/apps/desktop/src/renderer/session-status-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Renderer-side presentation rules that only Desktop has: which blocked reasons * are worth acting on, and what to offer after a turn fails. diff --git a/apps/desktop/src/renderer/session-terminal-hydration.ts b/apps/desktop/src/renderer/session-terminal-hydration.ts index 76063becb4..7a89cbf196 100644 --- a/apps/desktop/src/renderer/session-terminal-hydration.ts +++ b/apps/desktop/src/renderer/session-terminal-hydration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface TerminalDataChunk { readonly sequence: number; readonly data: string; diff --git a/apps/desktop/src/renderer/session-terminal-panel.tsx b/apps/desktop/src/renderer/session-terminal-panel.tsx index 6e3fa73cdf..1aa272ea42 100644 --- a/apps/desktop/src/renderer/session-terminal-panel.tsx +++ b/apps/desktop/src/renderer/session-terminal-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { Banner } from '@astryxdesign/core/Banner'; import { EmptyState } from '@astryxdesign/core/EmptyState'; diff --git a/apps/desktop/src/renderer/session-trace-refresh.ts b/apps/desktop/src/renderer/session-trace-refresh.ts index e4b218a26a..68a1a59b64 100644 --- a/apps/desktop/src/renderer/session-trace-refresh.ts +++ b/apps/desktop/src/renderer/session-trace-refresh.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEvent } from '@maka/core/events'; /** diff --git a/apps/desktop/src/renderer/session-workbar-layout.ts b/apps/desktop/src/renderer/session-workbar-layout.ts index 19ecaee918..7940064425 100644 --- a/apps/desktop/src/renderer/session-workbar-layout.ts +++ b/apps/desktop/src/renderer/session-workbar-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { safeLocalStorageGet } from './browser-storage.js'; /** diff --git a/apps/desktop/src/renderer/session-workbar-tabs.ts b/apps/desktop/src/renderer/session-workbar-tabs.ts index 40f3e62db7..1697eb47e0 100644 --- a/apps/desktop/src/renderer/session-workbar-tabs.ts +++ b/apps/desktop/src/renderer/session-workbar-tabs.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { safeLocalStorageGet } from './browser-storage.js'; export type SessionWorkbarTabKind = diff --git a/apps/desktop/src/renderer/session-workbar.tsx b/apps/desktop/src/renderer/session-workbar.tsx index 1b54d6e2e3..256837a847 100644 --- a/apps/desktop/src/renderer/session-workbar.tsx +++ b/apps/desktop/src/renderer/session-workbar.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lazy, Suspense, diff --git a/apps/desktop/src/renderer/session-workspace-errors.ts b/apps/desktop/src/renderer/session-workspace-errors.ts index c5a60fce46..054d77f308 100644 --- a/apps/desktop/src/renderer/session-workspace-errors.ts +++ b/apps/desktop/src/renderer/session-workspace-errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { ToastDiagnosticTarget } from '@maka/ui'; import { getShellCopy } from './locales/shell-copy.js'; diff --git a/apps/desktop/src/renderer/settings/about-settings-page.tsx b/apps/desktop/src/renderer/settings/about-settings-page.tsx index 149a01db9d..6b5c0c056e 100644 --- a/apps/desktop/src/renderer/settings/about-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/about-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useId, useState, type ReactNode } from 'react'; import { Badge, Link, List, ListItem } from '@astryxdesign/core'; import { Kbd } from '@astryxdesign/core/Kbd'; diff --git a/apps/desktop/src/renderer/settings/about-update-status.ts b/apps/desktop/src/renderer/settings/about-update-status.ts index 866a1763ea..005e63ad8d 100644 --- a/apps/desktop/src/renderer/settings/about-update-status.ts +++ b/apps/desktop/src/renderer/settings/about-update-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppUpdateStatus } from '../../preload/bridge-contract.js'; import type { SettingsPreferencesCopy } from '../locales/settings-preferences-copy.js'; diff --git a/apps/desktop/src/renderer/settings/action-guard.ts b/apps/desktop/src/renderer/settings/action-guard.ts index 864e066e68..6469751ab1 100644 --- a/apps/desktop/src/renderer/settings/action-guard.ts +++ b/apps/desktop/src/renderer/settings/action-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Framework-free keyed one-shot action guard: the multi-latch sibling of // oauth-login-flow-guard.ts's createOneShotActionGuard for components that // hold several independent action latches at once (the connection detail diff --git a/apps/desktop/src/renderer/settings/appearance-settings-page.tsx b/apps/desktop/src/renderer/settings/appearance-settings-page.tsx index b2d3267a6d..23786892a4 100644 --- a/apps/desktop/src/renderer/settings/appearance-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/appearance-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef } from 'react'; import { Grid, HStack, SelectableCard, Text, VStack } from '@astryxdesign/core'; import { SettingsPage, SettingsSection } from './settings-section'; diff --git a/apps/desktop/src/renderer/settings/bot-chat-detail.tsx b/apps/desktop/src/renderer/settings/bot-chat-detail.tsx index e70a22dae8..2e443a042e 100644 --- a/apps/desktop/src/renderer/settings/bot-chat-detail.tsx +++ b/apps/desktop/src/renderer/settings/bot-chat-detail.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useState, type ReactNode } from 'react'; import { ICON_SIZE, ArrowLeft } from '@maka/ui/icons'; import { diff --git a/apps/desktop/src/renderer/settings/bot-chat-overview.tsx b/apps/desktop/src/renderer/settings/bot-chat-overview.tsx index 0bf41689cb..f3f096fe99 100644 --- a/apps/desktop/src/renderer/settings/bot-chat-overview.tsx +++ b/apps/desktop/src/renderer/settings/bot-chat-overview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ReactNode } from 'react'; import { ICON_SIZE, ChevronRight } from '@maka/ui/icons'; import type { BotChannelSettings, BotProvider } from '@maka/core/bot-chat-settings'; diff --git a/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx b/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx index 64f9483c08..4a56954185 100644 --- a/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from "react"; import type { AppSettings, UpdateAppSettingsResult } from '@maka/core/settings'; import type { BotOnboardingProvider } from '@maka/core/bot-onboarding'; diff --git a/apps/desktop/src/renderer/settings/bot-chat-shared.tsx b/apps/desktop/src/renderer/settings/bot-chat-shared.tsx index a8669f42d4..101d069aa7 100644 --- a/apps/desktop/src/renderer/settings/bot-chat-shared.tsx +++ b/apps/desktop/src/renderer/settings/bot-chat-shared.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider, BotReadinessState } from '@maka/core/bot-chat-settings'; import type { UiLocale } from '@maka/core/ui-locale'; import type { BotStatus } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/renderer/settings/bot-onboarding-modal.tsx b/apps/desktop/src/renderer/settings/bot-onboarding-modal.tsx index 4325bf1ac7..05d99c09af 100644 --- a/apps/desktop/src/renderer/settings/bot-onboarding-modal.tsx +++ b/apps/desktop/src/renderer/settings/bot-onboarding-modal.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import type { BotOnboardingBrand, diff --git a/apps/desktop/src/renderer/settings/bot-settings-view-model.ts b/apps/desktop/src/renderer/settings/bot-settings-view-model.ts index b3ba2c1b67..f75c27860a 100644 --- a/apps/desktop/src/renderer/settings/bot-settings-view-model.ts +++ b/apps/desktop/src/renderer/settings/bot-settings-view-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { humanizeBotStatusReason } from '@maka/core/bot-events'; import { type BotChannelSettings, type BotReadinessState } from '@maka/core/bot-chat-settings'; import type { BotStatus } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/renderer/settings/bot-wechat-login.tsx b/apps/desktop/src/renderer/settings/bot-wechat-login.tsx index aaa1af5f9e..796b6b20ac 100644 --- a/apps/desktop/src/renderer/settings/bot-wechat-login.tsx +++ b/apps/desktop/src/renderer/settings/bot-wechat-login.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import type { BotChannelSettings } from '@maka/core/bot-chat-settings'; import type { WechatBridgeQrCodeResult } from '@maka/runtime/bots'; diff --git a/apps/desktop/src/renderer/settings/custom-pet-library-model.ts b/apps/desktop/src/renderer/settings/custom-pet-library-model.ts index 7918d110cb..c05a83f5e7 100644 --- a/apps/desktop/src/renderer/settings/custom-pet-library-model.ts +++ b/apps/desktop/src/renderer/settings/custom-pet-library-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PetPackManifestV1 } from '@maka/core/pet'; export interface CustomPetLibrarySnapshot { diff --git a/apps/desktop/src/renderer/settings/custom-pet-settings-section.tsx b/apps/desktop/src/renderer/settings/custom-pet-settings-section.tsx index 2cb14d3b92..b3a80cfb10 100644 --- a/apps/desktop/src/renderer/settings/custom-pet-settings-section.tsx +++ b/apps/desktop/src/renderer/settings/custom-pet-settings-section.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import { EmptyState } from '@astryxdesign/core'; import { Badge, Button, useMountedRef, useToast, useUiLocale } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/settings/daily-review-settings-page.tsx b/apps/desktop/src/renderer/settings/daily-review-settings-page.tsx index 6bae5dabc6..a26a9ee009 100644 --- a/apps/desktop/src/renderer/settings/daily-review-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/daily-review-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useState } from 'react'; import { Banner } from '@astryxdesign/core'; import type { DailyReviewConfig } from '@maka/core/daily-review'; diff --git a/apps/desktop/src/renderer/settings/data-settings-page.tsx b/apps/desktop/src/renderer/settings/data-settings-page.tsx index 63f05b81df..65ce62e56e 100644 --- a/apps/desktop/src/renderer/settings/data-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/data-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { ConfigCategory } from '@maka/storage'; import { diff --git a/apps/desktop/src/renderer/settings/general-settings-page.tsx b/apps/desktop/src/renderer/settings/general-settings-page.tsx index ccdb19c124..515ad84a6e 100644 --- a/apps/desktop/src/renderer/settings/general-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/general-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useState } from "react"; import { PersonalizationSettingsSection } from "./personalization-settings-section"; import { diff --git a/apps/desktop/src/renderer/settings/health-center-page.tsx b/apps/desktop/src/renderer/settings/health-center-page.tsx index a439252d52..5651ffcb55 100644 --- a/apps/desktop/src/renderer/settings/health-center-page.tsx +++ b/apps/desktop/src/renderer/settings/health-center-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { HealthSignal, diff --git a/apps/desktop/src/renderer/settings/import-tasks-settings-page.tsx b/apps/desktop/src/renderer/settings/import-tasks-settings-page.tsx index ebcf57d91b..bbe9753c7d 100644 --- a/apps/desktop/src/renderer/settings/import-tasks-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/import-tasks-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { Banner } from '@astryxdesign/core/Banner'; import { Button } from '@astryxdesign/core/Button'; diff --git a/apps/desktop/src/renderer/settings/memory-entry-list.tsx b/apps/desktop/src/renderer/settings/memory-entry-list.tsx index e54b35b246..5f854fe52f 100644 --- a/apps/desktop/src/renderer/settings/memory-entry-list.tsx +++ b/apps/desktop/src/renderer/settings/memory-entry-list.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LocalMemoryState } from '@maka/core/local-memory'; import { EmptyState } from '@astryxdesign/core'; import { Button, MoreMenu, RelativeTime } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/settings/memory-settings-labels.ts b/apps/desktop/src/renderer/settings/memory-settings-labels.ts index aba83d5ce5..a4824dbd03 100644 --- a/apps/desktop/src/renderer/settings/memory-settings-labels.ts +++ b/apps/desktop/src/renderer/settings/memory-settings-labels.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusSemantic } from '@maka/ui'; import type { LocalMemoryState } from '@maka/core/local-memory'; import type { MemorySettingsCopy } from '../locales/settings-memory-copy'; diff --git a/apps/desktop/src/renderer/settings/memory-settings-page.tsx b/apps/desktop/src/renderer/settings/memory-settings-page.tsx index 88879d3735..4ea3f74bdd 100644 --- a/apps/desktop/src/renderer/settings/memory-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/memory-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { AppSettings, UpdateAppSettingsResult } from '@maka/core/settings'; diff --git a/apps/desktop/src/renderer/settings/memory-settings-sections.tsx b/apps/desktop/src/renderer/settings/memory-settings-sections.tsx index 9a5d838870..c7185e56da 100644 --- a/apps/desktop/src/renderer/settings/memory-settings-sections.tsx +++ b/apps/desktop/src/renderer/settings/memory-settings-sections.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Button } from '@maka/ui'; import { SettingsField, SettingsSection } from './settings-section'; import type { MemorySettingsCopy } from '../locales/settings-memory-copy'; diff --git a/apps/desktop/src/renderer/settings/memory-settings-view-model.ts b/apps/desktop/src/renderer/settings/memory-settings-view-model.ts index 02bbe169ae..2359bd57cb 100644 --- a/apps/desktop/src/renderer/settings/memory-settings-view-model.ts +++ b/apps/desktop/src/renderer/settings/memory-settings-view-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings } from '@maka/core/settings'; import type { LocalMemoryState } from '@maka/core/local-memory'; import { diff --git a/apps/desktop/src/renderer/settings/nav-group-summary.ts b/apps/desktop/src/renderer/settings/nav-group-summary.ts index 0d5af6d9e0..33e081e0b4 100644 --- a/apps/desktop/src/renderer/settings/nav-group-summary.ts +++ b/apps/desktop/src/renderer/settings/nav-group-summary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Settings nav-group enum + presentation order for the Settings modal * sidebar. diff --git a/apps/desktop/src/renderer/settings/oauth-login-flow-guard.ts b/apps/desktop/src/renderer/settings/oauth-login-flow-guard.ts index bfe213245e..bbcb03b052 100644 --- a/apps/desktop/src/renderer/settings/oauth-login-flow-guard.ts +++ b/apps/desktop/src/renderer/settings/oauth-login-flow-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Framework-free primitives behind useOAuthLoginFlow's async safety. Kept in a // React-free module so their behavior is unit-testable without a DOM (see // oauth-login-flow-guard.test.ts) and so the desktop test runner can import diff --git a/apps/desktop/src/renderer/settings/optimistic-settings-draft-controller.ts b/apps/desktop/src/renderer/settings/optimistic-settings-draft-controller.ts index c18d483dfd..a5ac1a03cc 100644 --- a/apps/desktop/src/renderer/settings/optimistic-settings-draft-controller.ts +++ b/apps/desktop/src/renderer/settings/optimistic-settings-draft-controller.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure optimistic last-write-wins draft controller for Settings pages. * diff --git a/apps/desktop/src/renderer/settings/password-input.tsx b/apps/desktop/src/renderer/settings/password-input.tsx index bcd5c24f5d..278db46b1b 100644 --- a/apps/desktop/src/renderer/settings/password-input.tsx +++ b/apps/desktop/src/renderer/settings/password-input.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { ICON_SIZE, Check, Copy, Eye, EyeOff } from '@maka/ui/icons'; import { diff --git a/apps/desktop/src/renderer/settings/permission-center-page.tsx b/apps/desktop/src/renderer/settings/permission-center-page.tsx index ee4f8dffd3..2465554b00 100644 --- a/apps/desktop/src/renderer/settings/permission-center-page.tsx +++ b/apps/desktop/src/renderer/settings/permission-center-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusSemantic } from '@maka/ui'; import { useEffect, useState, type ComponentType } from 'react'; import { diff --git a/apps/desktop/src/renderer/settings/personalization-settings-section.tsx b/apps/desktop/src/renderer/settings/personalization-settings-section.tsx index 891960204e..3ebb0e9837 100644 --- a/apps/desktop/src/renderer/settings/personalization-settings-section.tsx +++ b/apps/desktop/src/renderer/settings/personalization-settings-section.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The 身份 group of the 通用 page: how Maka addresses you, the interface // language, and the assistant tone. // diff --git a/apps/desktop/src/renderer/settings/projects-settings-page.tsx b/apps/desktop/src/renderer/settings/projects-settings-page.tsx index 03ffa27548..c48f04fde5 100644 --- a/apps/desktop/src/renderer/settings/projects-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/projects-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import type { AppSettings, UpdateAppSettingsResult } from '@maka/core/settings'; import type { ProjectRecord } from '@maka/core/project'; diff --git a/apps/desktop/src/renderer/settings/provider-add-form.tsx b/apps/desktop/src/renderer/settings/provider-add-form.tsx index db712c6305..a3f9c592d6 100644 --- a/apps/desktop/src/renderer/settings/provider-add-form.tsx +++ b/apps/desktop/src/renderer/settings/provider-add-form.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState, type FormEvent } from 'react'; import { OPENCODE_FREE_DEFAULT_ENABLED_MODELS, diff --git a/apps/desktop/src/renderer/settings/provider-add-model-dialog.tsx b/apps/desktop/src/renderer/settings/provider-add-model-dialog.tsx index 7da5f4ee20..794ee915f1 100644 --- a/apps/desktop/src/renderer/settings/provider-add-model-dialog.tsx +++ b/apps/desktop/src/renderer/settings/provider-add-model-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState, type FormEvent } from 'react'; import { Dialog, DialogHeader } from '@astryxdesign/core/Dialog'; import { FormLayout } from '@astryxdesign/core/FormLayout'; diff --git a/apps/desktop/src/renderer/settings/provider-add-submission.ts b/apps/desktop/src/renderer/settings/provider-add-submission.ts index d05fd6a49d..0b14d65eab 100644 --- a/apps/desktop/src/renderer/settings/provider-add-submission.ts +++ b/apps/desktop/src/renderer/settings/provider-add-submission.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, providerAuthRequiresSecret, diff --git a/apps/desktop/src/renderer/settings/provider-brand-marks.tsx b/apps/desktop/src/renderer/settings/provider-brand-marks.tsx index f9f7e3bc5d..921bfb1878 100644 --- a/apps/desktop/src/renderer/settings/provider-brand-marks.tsx +++ b/apps/desktop/src/renderer/settings/provider-brand-marks.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Official provider brand marks. // // Most SVG paths are vendored from `@lobehub/icons-static-svg` (MIT-licensed, diff --git a/apps/desktop/src/renderer/settings/provider-catalog-page.tsx b/apps/desktop/src/renderer/settings/provider-catalog-page.tsx index 9f32db36ff..364407fcfa 100644 --- a/apps/desktop/src/renderer/settings/provider-catalog-page.tsx +++ b/apps/desktop/src/renderer/settings/provider-catalog-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Banner, EmptyState, diff --git a/apps/desktop/src/renderer/settings/provider-connection-detail.tsx b/apps/desktop/src/renderer/settings/provider-connection-detail.tsx index 75365023fa..fc6e89ff04 100644 --- a/apps/desktop/src/renderer/settings/provider-connection-detail.tsx +++ b/apps/desktop/src/renderer/settings/provider-connection-detail.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState, type ReactNode } from 'react'; import { Banner, diff --git a/apps/desktop/src/renderer/settings/provider-connection-status.ts b/apps/desktop/src/renderer/settings/provider-connection-status.ts index dc37ce1b6b..1fbb461a5c 100644 --- a/apps/desktop/src/renderer/settings/provider-connection-status.ts +++ b/apps/desktop/src/renderer/settings/provider-connection-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Pure status helper for the Settings → 模型 connection list. Kept out // of `providers-panel.tsx` (no React, no DOM) so the decision logic can be // exercised directly from the desktop test runner. Behavioural tests live diff --git a/apps/desktop/src/renderer/settings/provider-display-copy.ts b/apps/desktop/src/renderer/settings/provider-display-copy.ts index 98956939c7..97d6fa846f 100644 --- a/apps/desktop/src/renderer/settings/provider-display-copy.ts +++ b/apps/desktop/src/renderer/settings/provider-display-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProviderType } from '@maka/core/llm-connections'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/settings/provider-display.tsx b/apps/desktop/src/renderer/settings/provider-display.tsx index aa1e0fc9e0..50457d8fc7 100644 --- a/apps/desktop/src/renderer/settings/provider-display.tsx +++ b/apps/desktop/src/renderer/settings/provider-display.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProviderType } from '@maka/core/llm-connections'; import { ProviderBrandMark } from './provider-brand-marks'; export { providerDisplay } from './provider-display-copy'; diff --git a/apps/desktop/src/renderer/settings/provider-enabled-model-manager.tsx b/apps/desktop/src/renderer/settings/provider-enabled-model-manager.tsx index 146859fa09..b5c1ae4678 100644 --- a/apps/desktop/src/renderer/settings/provider-enabled-model-manager.tsx +++ b/apps/desktop/src/renderer/settings/provider-enabled-model-manager.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MultiSelector } from '@astryxdesign/core'; import type { ModelCatalogEntry } from '@maka/core/model-catalog'; import { useUiLocale } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/settings/provider-oauth-section.tsx b/apps/desktop/src/renderer/settings/provider-oauth-section.tsx index aee1ba659f..4727edeb59 100644 --- a/apps/desktop/src/renderer/settings/provider-oauth-section.tsx +++ b/apps/desktop/src/renderer/settings/provider-oauth-section.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { Banner, HStack, Text, VStack } from '@astryxdesign/core'; import { type ProviderType } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/renderer/settings/provider-panel-shared.ts b/apps/desktop/src/renderer/settings/provider-panel-shared.ts index e791fdf99b..ec77a98ce6 100644 --- a/apps/desktop/src/renderer/settings/provider-panel-shared.ts +++ b/apps/desktop/src/renderer/settings/provider-panel-shared.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { generalizedErrorMessage, generalizedErrorMessageChinese, redactSecrets } from '@maka/core/redaction'; import { type ConnectionTestResult, diff --git a/apps/desktop/src/renderer/settings/providers-panel.tsx b/apps/desktop/src/renderer/settings/providers-panel.tsx index ee56d734a0..3ce1351314 100644 --- a/apps/desktop/src/renderer/settings/providers-panel.tsx +++ b/apps/desktop/src/renderer/settings/providers-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useId, useRef, useState } from 'react'; import { Badge, diff --git a/apps/desktop/src/renderer/settings/relay-profile-draft.ts b/apps/desktop/src/renderer/settings/relay-profile-draft.ts index a885a13215..80033d6d98 100644 --- a/apps/desktop/src/renderer/settings/relay-profile-draft.ts +++ b/apps/desktop/src/renderer/settings/relay-profile-draft.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { normalizeRelayModelProfiles, type RelayModelProfile, diff --git a/apps/desktop/src/renderer/settings/relay-thinking-bulk.ts b/apps/desktop/src/renderer/settings/relay-thinking-bulk.ts index 5e6a3de60d..b9bb5e3c77 100644 --- a/apps/desktop/src/renderer/settings/relay-thinking-bulk.ts +++ b/apps/desktop/src/renderer/settings/relay-thinking-bulk.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RelayModelProfile, ThinkingLevel } from '@maka/core/model-thinking'; /** diff --git a/apps/desktop/src/renderer/settings/request-customization-editor.tsx b/apps/desktop/src/renderer/settings/request-customization-editor.tsx index 29101030e5..9520b1c9eb 100644 --- a/apps/desktop/src/renderer/settings/request-customization-editor.tsx +++ b/apps/desktop/src/renderer/settings/request-customization-editor.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { HStack, Text, VStack } from '@astryxdesign/core'; import { normalizeOptionalRequestBodyOverlay, diff --git a/apps/desktop/src/renderer/settings/runtime-host-onboarding-dialog.tsx b/apps/desktop/src/renderer/settings/runtime-host-onboarding-dialog.tsx index d1a7eb66fd..0579535f9d 100644 --- a/apps/desktop/src/renderer/settings/runtime-host-onboarding-dialog.tsx +++ b/apps/desktop/src/renderer/settings/runtime-host-onboarding-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { Dialog, DialogHeader } from '@astryxdesign/core/Dialog'; import { Layout, LayoutContent, LayoutFooter } from '@astryxdesign/core/Layout'; diff --git a/apps/desktop/src/renderer/settings/runtime-host-profiles-section.tsx b/apps/desktop/src/renderer/settings/runtime-host-profiles-section.tsx index ecbc583d4e..615b89ed02 100644 --- a/apps/desktop/src/renderer/settings/runtime-host-profiles-section.tsx +++ b/apps/desktop/src/renderer/settings/runtime-host-profiles-section.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useState } from "react"; import { Banner, diff --git a/apps/desktop/src/renderer/settings/runtime-host-settings-bridge.ts b/apps/desktop/src/renderer/settings/runtime-host-settings-bridge.ts index cd4f5e167f..1424605504 100644 --- a/apps/desktop/src/renderer/settings/runtime-host-settings-bridge.ts +++ b/apps/desktop/src/renderer/settings/runtime-host-settings-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DesktopRuntimeHostRef } from '../../preload/bridge-contract.js'; import type { ConnectionsBridge } from './provider-panel-shared.js'; import type { OAuthLoginFlowBridge } from './use-oauth-login-flow.js'; diff --git a/apps/desktop/src/renderer/settings/runtime-host-settings-target.tsx b/apps/desktop/src/renderer/settings/runtime-host-settings-target.tsx index 6cacaf0c8e..b3b1a369d5 100644 --- a/apps/desktop/src/renderer/settings/runtime-host-settings-target.tsx +++ b/apps/desktop/src/renderer/settings/runtime-host-settings-target.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createContext, useCallback, useContext, type ReactNode } from "react"; import { useToast } from "@maka/ui"; import type { DesktopRuntimeHostRef } from "../../preload/bridge-contract.js"; diff --git a/apps/desktop/src/renderer/settings/runtime-host-ssh-terminal-dialog.tsx b/apps/desktop/src/renderer/settings/runtime-host-ssh-terminal-dialog.tsx index 6a830f6b24..fb60c76f44 100644 --- a/apps/desktop/src/renderer/settings/runtime-host-ssh-terminal-dialog.tsx +++ b/apps/desktop/src/renderer/settings/runtime-host-ssh-terminal-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { Dialog, DialogHeader } from '@astryxdesign/core/Dialog'; import { Layout, LayoutContent, LayoutFooter } from '@astryxdesign/core/Layout'; diff --git a/apps/desktop/src/renderer/settings/settings-error-copy.ts b/apps/desktop/src/renderer/settings/settings-error-copy.ts index 73510e7bd7..d222b76f8d 100644 --- a/apps/desktop/src/renderer/settings/settings-error-copy.ts +++ b/apps/desktop/src/renderer/settings/settings-error-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { generalizedErrorMessageChinese } from '@maka/core/redaction'; import { type UiLocale } from '@maka/core/ui-locale'; import { redactSecrets } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/settings/settings-expandable-row.tsx b/apps/desktop/src/renderer/settings/settings-expandable-row.tsx index ca2fb45929..5d3cb92564 100644 --- a/apps/desktop/src/renderer/settings/settings-expandable-row.tsx +++ b/apps/desktop/src/renderer/settings/settings-expandable-row.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, type ReactNode } from 'react'; import { Button, HStack, Text } from '@astryxdesign/core'; import { SettingsField, SettingsRow } from './settings-section'; diff --git a/apps/desktop/src/renderer/settings/settings-metric-card.tsx b/apps/desktop/src/renderer/settings/settings-metric-card.tsx index aa3d416119..71a11e95f1 100644 --- a/apps/desktop/src/renderer/settings/settings-metric-card.tsx +++ b/apps/desktop/src/renderer/settings/settings-metric-card.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { StatTile } from '@maka/ui'; /** Thin alias over the shared StatTile (convergence R4) — usage/bot call diff --git a/apps/desktop/src/renderer/settings/settings-modal.tsx b/apps/desktop/src/renderer/settings/settings-modal.tsx index 9a21f7bdb5..64419e4d94 100644 --- a/apps/desktop/src/renderer/settings/settings-modal.tsx +++ b/apps/desktop/src/renderer/settings/settings-modal.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef } from 'react'; import { useHotkeys } from '@astryxdesign/core/hooks'; import type { ChatDefaultPermissionMode, SettingsSection, ThemePalette, ThemePreference } from '@maka/core/settings'; diff --git a/apps/desktop/src/renderer/settings/settings-nav.ts b/apps/desktop/src/renderer/settings/settings-nav.ts index ef5855eb01..79dfee5a06 100644 --- a/apps/desktop/src/renderer/settings/settings-nav.ts +++ b/apps/desktop/src/renderer/settings/settings-nav.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type ComponentType } from 'react'; import { Activity, diff --git a/apps/desktop/src/renderer/settings/settings-route-focus.ts b/apps/desktop/src/renderer/settings/settings-route-focus.ts index b5a84541e1..cd08068ecc 100644 --- a/apps/desktop/src/renderer/settings/settings-route-focus.ts +++ b/apps/desktop/src/renderer/settings/settings-route-focus.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Focus follows the level, for any settings page that owns more than one. // // Without this a level change leaves the ring on `document.body` — the control diff --git a/apps/desktop/src/renderer/settings/settings-route-header.tsx b/apps/desktop/src/renderer/settings/settings-route-header.tsx index 3326e1d791..3cd6912469 100644 --- a/apps/desktop/src/renderer/settings/settings-route-header.tsx +++ b/apps/desktop/src/renderer/settings/settings-route-header.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The header of a settings sub-level: back affordance, title, and one quiet // line of context. // diff --git a/apps/desktop/src/renderer/settings/settings-rows.tsx b/apps/desktop/src/renderer/settings/settings-rows.tsx index de9f33a5ac..7f0590278b 100644 --- a/apps/desktop/src/renderer/settings/settings-rows.tsx +++ b/apps/desktop/src/renderer/settings/settings-rows.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ReactNode } from 'react'; import { SettingsRow } from './settings-section.js'; diff --git a/apps/desktop/src/renderer/settings/settings-section.tsx b/apps/desktop/src/renderer/settings/settings-section.tsx index 4e77bac8eb..c775f97d43 100644 --- a/apps/desktop/src/renderer/settings/settings-section.tsx +++ b/apps/desktop/src/renderer/settings/settings-section.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/settings/settings-section.tsx // // The ONE grouping unit for a settings page. diff --git a/apps/desktop/src/renderer/settings/settings-skeleton.tsx b/apps/desktop/src/renderer/settings/settings-skeleton.tsx index 24a8b22c9b..fa62955484 100644 --- a/apps/desktop/src/renderer/settings/settings-skeleton.tsx +++ b/apps/desktop/src/renderer/settings/settings-skeleton.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Skeleton } from '@astryxdesign/core'; import { useUiLocale } from '@maka/ui'; import { getSettingsSharedCopy } from '../locales/settings-shared-copy.js'; diff --git a/apps/desktop/src/renderer/settings/settings-status-badge.ts b/apps/desktop/src/renderer/settings/settings-status-badge.ts index e6395e32d4..72fcdbe6f9 100644 --- a/apps/desktop/src/renderer/settings/settings-status-badge.ts +++ b/apps/desktop/src/renderer/settings/settings-status-badge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Badge tones. Still its own vocabulary because Astryx's Badge has an `info` * pill and its own idea of `neutral`, so a Badge can express a shade the dot diff --git a/apps/desktop/src/renderer/settings/settings-surface.tsx b/apps/desktop/src/renderer/settings/settings-surface.tsx index bfc0cc5261..52782273ad 100644 --- a/apps/desktop/src/renderer/settings/settings-surface.tsx +++ b/apps/desktop/src/renderer/settings/settings-surface.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useRef, useState, type RefObject } from 'react'; import { Badge, diff --git a/apps/desktop/src/renderer/settings/subagent-preset-presentation.ts b/apps/desktop/src/renderer/settings/subagent-preset-presentation.ts index 658070eea5..5cb8b92952 100644 --- a/apps/desktop/src/renderer/settings/subagent-preset-presentation.ts +++ b/apps/desktop/src/renderer/settings/subagent-preset-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type LlmConnection } from '@maka/core/llm-connections'; import { isRetiredProvider } from '@maka/core/provider-registry'; import { type SubagentPreset } from '@maka/core/subagent-settings'; diff --git a/apps/desktop/src/renderer/settings/subagent-settings-page.tsx b/apps/desktop/src/renderer/settings/subagent-settings-page.tsx index 7a5b4b4029..e5e0d795e2 100644 --- a/apps/desktop/src/renderer/settings/subagent-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/subagent-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // 设置 · 子 Agent — the approved model routes the main agent may delegate to. // // Two levels, one container, one back affordance, and nothing modal: diff --git a/apps/desktop/src/renderer/settings/task-catalog-rows.ts b/apps/desktop/src/renderer/settings/task-catalog-rows.ts index 8aad337039..2aacaac9f2 100644 --- a/apps/desktop/src/renderer/settings/task-catalog-rows.ts +++ b/apps/desktop/src/renderer/settings/task-catalog-rows.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; import { deriveSessionRail } from '../session-rail.js'; diff --git a/apps/desktop/src/renderer/settings/tasks-settings-page.tsx b/apps/desktop/src/renderer/settings/tasks-settings-page.tsx index 674317caea..494756b1e8 100644 --- a/apps/desktop/src/renderer/settings/tasks-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/tasks-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useMemo, useState } from 'react'; import type { ProjectRecord } from '@maka/core/project'; import { formatCompactTimestamp } from '@maka/core/relative-time'; diff --git a/apps/desktop/src/renderer/settings/ui-locale-update-gate.ts b/apps/desktop/src/renderer/settings/ui-locale-update-gate.ts index 3bdee7048c..df475544a5 100644 --- a/apps/desktop/src/renderer/settings/ui-locale-update-gate.ts +++ b/apps/desktop/src/renderer/settings/ui-locale-update-gate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocalePreference } from '@maka/core/ui-locale'; export interface UiLocaleUpdateGate { diff --git a/apps/desktop/src/renderer/settings/usage-settings-page.tsx b/apps/desktop/src/renderer/settings/usage-settings-page.tsx index 767c3e9aad..3248ce73d8 100644 --- a/apps/desktop/src/renderer/settings/usage-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/usage-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, useState, type ReactNode } from 'react'; import { Card, diff --git a/apps/desktop/src/renderer/settings/use-action-guard.ts b/apps/desktop/src/renderer/settings/use-action-guard.ts index ab82f3bc99..5e98ebe957 100644 --- a/apps/desktop/src/renderer/settings/use-action-guard.ts +++ b/apps/desktop/src/renderer/settings/use-action-guard.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef } from 'react'; import { createKeyedActionGuard, type KeyedActionGuard } from './action-guard.js'; import { createOneShotActionGuard, type OneShotActionGuard } from './oauth-login-flow-guard.js'; diff --git a/apps/desktop/src/renderer/settings/use-connection-detail.ts b/apps/desktop/src/renderer/settings/use-connection-detail.ts index bced1a6238..a3f750b4f2 100644 --- a/apps/desktop/src/renderer/settings/use-connection-detail.ts +++ b/apps/desktop/src/renderer/settings/use-connection-detail.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useRef, useState } from 'react'; import { type ConnectionTestResult, diff --git a/apps/desktop/src/renderer/settings/use-memory-settings-controller.ts b/apps/desktop/src/renderer/settings/use-memory-settings-controller.ts index 2161e0f507..40bec015cd 100644 --- a/apps/desktop/src/renderer/settings/use-memory-settings-controller.ts +++ b/apps/desktop/src/renderer/settings/use-memory-settings-controller.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useRef, useState } from 'react'; import type { AppSettings } from '@maka/core/settings'; import type { LocalMemoryState } from '@maka/core/local-memory'; diff --git a/apps/desktop/src/renderer/settings/use-oauth-login-flow.ts b/apps/desktop/src/renderer/settings/use-oauth-login-flow.ts index 31f8c21c95..57006a0c82 100644 --- a/apps/desktop/src/renderer/settings/use-oauth-login-flow.ts +++ b/apps/desktop/src/renderer/settings/use-oauth-login-flow.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { generalizedErrorMessage, generalizedErrorMessageChinese, redactSecrets } from '@maka/core/redaction'; import { type UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/settings/use-optimistic-settings-draft.ts b/apps/desktop/src/renderer/settings/use-optimistic-settings-draft.ts index 9c2c7803af..cc861597c3 100644 --- a/apps/desktop/src/renderer/settings/use-optimistic-settings-draft.ts +++ b/apps/desktop/src/renderer/settings/use-optimistic-settings-draft.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { useMountedRef } from '@maka/ui'; import type { RefObject } from 'react'; diff --git a/apps/desktop/src/renderer/settings/web-search-settings-page.tsx b/apps/desktop/src/renderer/settings/web-search-settings-page.tsx index 0631ebe8c5..31861da54c 100644 --- a/apps/desktop/src/renderer/settings/web-search-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/web-search-settings-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef, useState } from 'react'; import { Banner, EmptyState, Link } from '@astryxdesign/core'; import type { AppSettings, UpdateAppSettingsResult } from '@maka/core/settings'; diff --git a/apps/desktop/src/renderer/settled-session-transients.ts b/apps/desktop/src/renderer/settled-session-transients.ts index 3f075acbea..4509f09a28 100644 --- a/apps/desktop/src/renderer/settled-session-transients.ts +++ b/apps/desktop/src/renderer/settled-session-transients.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; import type { LiveTurnProjection } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/shell-chat-model-selection.ts b/apps/desktop/src/renderer/shell-chat-model-selection.ts index 8ac7d39dcf..7e5769153d 100644 --- a/apps/desktop/src/renderer/shell-chat-model-selection.ts +++ b/apps/desktop/src/renderer/shell-chat-model-selection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatModelChoice } from '@maka/core/chat-model-choice'; export type NewChatModel = { llmConnectionSlug: string; model: string }; diff --git a/apps/desktop/src/renderer/shell-run-update-state.ts b/apps/desktop/src/renderer/shell-run-update-state.ts index 2d68bc7722..718ac135ce 100644 --- a/apps/desktop/src/renderer/shell-run-update-state.ts +++ b/apps/desktop/src/renderer/shell-run-update-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mergeShellRunUpdate, projectShellRunUpdateForSession, ShellRunUpdateBuffer } from '@maka/core/shell-run-result'; import { type ShellRunUpdate } from '@maka/core/events'; diff --git a/apps/desktop/src/renderer/side-chat-close-confirmation.tsx b/apps/desktop/src/renderer/side-chat-close-confirmation.tsx index 0257f94385..bb058d9663 100644 --- a/apps/desktop/src/renderer/side-chat-close-confirmation.tsx +++ b/apps/desktop/src/renderer/side-chat-close-confirmation.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import { Button } from '@astryxdesign/core/Button'; import { CheckboxInput } from '@astryxdesign/core/CheckboxInput'; diff --git a/apps/desktop/src/renderer/side-chat-command.ts b/apps/desktop/src/renderer/side-chat-command.ts index 96f71b759c..5b3c5d51e0 100644 --- a/apps/desktop/src/renderer/side-chat-command.ts +++ b/apps/desktop/src/renderer/side-chat-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface SideChatCommand { prompt: string; } diff --git a/apps/desktop/src/renderer/skill-invocation-feedback.ts b/apps/desktop/src/renderer/skill-invocation-feedback.ts index 5421209fb1..3dad2d0a84 100644 --- a/apps/desktop/src/renderer/skill-invocation-feedback.ts +++ b/apps/desktop/src/renderer/skill-invocation-feedback.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import type { SkillInvocationResult } from '@maka/runtime/skill-invocation'; import { getShellCopy } from './locales/shell-copy.js'; diff --git a/apps/desktop/src/renderer/stable-actions.ts b/apps/desktop/src/renderer/stable-actions.ts index e60b58953b..056c23bceb 100644 --- a/apps/desktop/src/renderer/stable-actions.ts +++ b/apps/desktop/src/renderer/stable-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Delegating-actions facade behind `useStableActions` (issue #1043). * diff --git a/apps/desktop/src/renderer/stale-sessions.ts b/apps/desktop/src/renderer/stale-sessions.ts index b417f3af10..7a978f9066 100644 --- a/apps/desktop/src/renderer/stale-sessions.ts +++ b/apps/desktop/src/renderer/stale-sessions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSendProjection } from '@maka/core/session-send-projection'; export interface StaleSessionsInput { diff --git a/apps/desktop/src/renderer/styles.css b/apps/desktop/src/renderer/styles.css index e4e6f9a279..21be79a6d5 100644 --- a/apps/desktop/src/renderer/styles.css +++ b/apps/desktop/src/renderer/styles.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + @import "./cascade-layers.css"; /* Astryx owns the generic reset and component substrate. Maka's theme and product compositions occupy later named layers; see cascade-layers.css. */ diff --git a/apps/desktop/src/renderer/styles/agent-graph.css b/apps/desktop/src/renderer/styles/agent-graph.css index 272ce3add2..fe8114ad30 100644 --- a/apps/desktop/src/renderer/styles/agent-graph.css +++ b/apps/desktop/src/renderer/styles/agent-graph.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .maka-agent-graph-panel { width: min(var(--maka-chat-measure), calc(100% - var(--space-8))); max-height: min(300px, 36vh); diff --git a/apps/desktop/src/renderer/styles/astryx-mount.css b/apps/desktop/src/renderer/styles/astryx-mount.css index e6c7e08008..1cf3d1fa05 100644 --- a/apps/desktop/src/renderer/styles/astryx-mount.css +++ b/apps/desktop/src/renderer/styles/astryx-mount.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Keep the Astryx Theme wrapper aligned with Maka's product-level font and foreground tokens. diff --git a/apps/desktop/src/renderer/styles/base.css b/apps/desktop/src/renderer/styles/base.css index ced94a6d20..b98571b2bd 100644 --- a/apps/desktop/src/renderer/styles/base.css +++ b/apps/desktop/src/renderer/styles/base.css @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ body { margin: 0; diff --git a/apps/desktop/src/renderer/styles/chat-detail.css b/apps/desktop/src/renderer/styles/chat-detail.css index b49d85d3d5..822706e89f 100644 --- a/apps/desktop/src/renderer/styles/chat-detail.css +++ b/apps/desktop/src/renderer/styles/chat-detail.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Chat detail surface — unified session workbar + turn search-highlight + session-branch banner. Relocated from settings/models.css (was misplaced in the model-catalog file) — issue #546 PR1, zero visual change. */ diff --git a/apps/desktop/src/renderer/styles/chat-header.css b/apps/desktop/src/renderer/styles/chat-header.css index 5bd537fc7d..13416f06ed 100644 --- a/apps/desktop/src/renderer/styles/chat-header.css +++ b/apps/desktop/src/renderer/styles/chat-header.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ Chat header bar + chat shell layout ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/styles/chat-message.css b/apps/desktop/src/renderer/styles/chat-message.css index d9c12e890e..9603798cb4 100644 --- a/apps/desktop/src/renderer/styles/chat-message.css +++ b/apps/desktop/src/renderer/styles/chat-message.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ Chat message body ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/styles/composer-mention.css b/apps/desktop/src/renderer/styles/composer-mention.css index ffb7169b88..22fcf1de52 100644 --- a/apps/desktop/src/renderer/styles/composer-mention.css +++ b/apps/desktop/src/renderer/styles/composer-mention.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Composer mention rows — the two-line content Composer renders inside the Astryx trigger menu for `@` files and `/` Skills. diff --git a/apps/desktop/src/renderer/styles/composer.css b/apps/desktop/src/renderer/styles/composer.css index 803302911e..09717bd5b9 100644 --- a/apps/desktop/src/renderer/styles/composer.css +++ b/apps/desktop/src/renderer/styles/composer.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Composer — outer container, controls, pickers, tool buttons, send/workspace/branch/streaming. Composer block merged in from tool-output.css (was misplaced there) — issue #546 PR3. Runtime interaction prompt styles live in interaction-prompts.css. */ .composer { flex: 0 0 auto; diff --git a/apps/desktop/src/renderer/styles/custom-pet-companion.css b/apps/desktop/src/renderer/styles/custom-pet-companion.css index ad9a6cc05e..026348851e 100644 --- a/apps/desktop/src/renderer/styles/custom-pet-companion.css +++ b/apps/desktop/src/renderer/styles/custom-pet-companion.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* User-supplied desktop pet. It is decorative and never participates in hit testing; the main shell remains the sole interaction surface beneath it. */ .maka-custom-pet-companion { diff --git a/apps/desktop/src/renderer/styles/daily-review.css b/apps/desktop/src/renderer/styles/daily-review.css index eadfb70c98..46307b6b3a 100644 --- a/apps/desktop/src/renderer/styles/daily-review.css +++ b/apps/desktop/src/renderer/styles/daily-review.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Page skeleton (clamp, tier rhythm, control bar) is the shared .maka-module-page-* set in module-pages/module-shell.css. Only the pieces unique to 每日回顾 live here. */ diff --git a/apps/desktop/src/renderer/styles/deep-research.css b/apps/desktop/src/renderer/styles/deep-research.css index 2e0b332f70..0bed687bcb 100644 --- a/apps/desktop/src/renderer/styles/deep-research.css +++ b/apps/desktop/src/renderer/styles/deep-research.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Deep research workflow + report/scope/evidence/progress. Relocated from sidebar.css — issue #546 PR3. */ .maka-deep-research-workflow { display: grid; diff --git a/apps/desktop/src/renderer/styles/error.css b/apps/desktop/src/renderer/styles/error.css index d93f20c59a..f00dc16e1d 100644 --- a/apps/desktop/src/renderer/styles/error.css +++ b/apps/desktop/src/renderer/styles/error.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ Error surface — full-screen error boundary ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/styles/help.css b/apps/desktop/src/renderer/styles/help.css index 5698c0658e..2f5b189f64 100644 --- a/apps/desktop/src/renderer/styles/help.css +++ b/apps/desktop/src/renderer/styles/help.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ Help modal ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/styles/hero.css b/apps/desktop/src/renderer/styles/hero.css index 4b82c05517..e0ffb07631 100644 --- a/apps/desktop/src/renderer/styles/hero.css +++ b/apps/desktop/src/renderer/styles/hero.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================ Hero / empty-state chrome ---------------------------------------------------------------------------- diff --git a/apps/desktop/src/renderer/styles/interaction-prompts.css b/apps/desktop/src/renderer/styles/interaction-prompts.css index ea25805363..3b4071283d 100644 --- a/apps/desktop/src/renderer/styles/interaction-prompts.css +++ b/apps/desktop/src/renderer/styles/interaction-prompts.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Turn-scoped interactions take over the composer's in-flow slot so the conversation and any live browser remain visible while Maka waits. */ .maka-composer-interaction-slot { diff --git a/apps/desktop/src/renderer/styles/model-switcher.css b/apps/desktop/src/renderer/styles/model-switcher.css index 36ab6d3a6f..97ec87a435 100644 --- a/apps/desktop/src/renderer/styles/model-switcher.css +++ b/apps/desktop/src/renderer/styles/model-switcher.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Model + thinking sit as one left-footer pair after permission. */ .maka-model-selection-controls { display: inline-flex; diff --git a/apps/desktop/src/renderer/styles/module-pages.css b/apps/desktop/src/renderer/styles/module-pages.css index e28be10262..9d8dc4fbb9 100644 --- a/apps/desktop/src/renderer/styles/module-pages.css +++ b/apps/desktop/src/renderer/styles/module-pages.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + @import "./module-pages/scheduled-tasks.css"; @import "./module-pages/capability-audit.css"; @import "./module-pages/module-shell.css"; diff --git a/apps/desktop/src/renderer/styles/module-pages/capability-audit.css b/apps/desktop/src/renderer/styles/module-pages/capability-audit.css index 928842bcfd..d35f8bd35b 100644 --- a/apps/desktop/src/renderer/styles/module-pages/capability-audit.css +++ b/apps/desktop/src/renderer/styles/module-pages/capability-audit.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Designer audit P1-7: the capability audit surface is now an exception-only Astryx Banner; the old full-width metrics band (kicker/copy/dl grid) was removed together with diff --git a/apps/desktop/src/renderer/styles/module-pages/mcp.css b/apps/desktop/src/renderer/styles/module-pages/mcp.css index ea43eabbb9..afd9cff0d0 100644 --- a/apps/desktop/src/renderer/styles/module-pages/mcp.css +++ b/apps/desktop/src/renderer/styles/module-pages/mcp.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Library brand marks (simple-icons) render as inline . Light theme fills each with its official brand hex, carried on the --mcp-brand-fill custom property set per-mark in mcp-brand-marks.tsx. Marks sit at the same 64% ratio diff --git a/apps/desktop/src/renderer/styles/module-pages/module-shell.css b/apps/desktop/src/renderer/styles/module-pages/module-shell.css index 428d848d6a..5b3325f9a8 100644 --- a/apps/desktop/src/renderer/styles/module-pages/module-shell.css +++ b/apps/desktop/src/renderer/styles/module-pages/module-shell.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* The module pages (技能 / MCP / 定时任务 / 每日回顾) all render the shared ModulePage primitive (Astryx Layout) via data-page-shell="layout" — the hand-rolled grid + overflow this file used to own is retired, and with it diff --git a/apps/desktop/src/renderer/styles/module-pages/scheduled-tasks.css b/apps/desktop/src/renderer/styles/module-pages/scheduled-tasks.css index 0e22308911..6420c85b02 100644 --- a/apps/desktop/src/renderer/styles/module-pages/scheduled-tasks.css +++ b/apps/desktop/src/renderer/styles/module-pages/scheduled-tasks.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Scheduled-task page-specific bits. The skeleton (Astryx Layout: header, content, resizable end panel) lives in the shared ModulePage primitive; rows are Astryx List/ListItem and the diff --git a/apps/desktop/src/renderer/styles/module-pages/skills.css b/apps/desktop/src/renderer/styles/module-pages/skills.css index 81b8f78e02..604ccd58a9 100644 --- a/apps/desktop/src/renderer/styles/module-pages/skills.css +++ b/apps/desktop/src/renderer/styles/module-pages/skills.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Skills page-specific bits. The skeleton (Astryx Layout: header, toolbar, content, resizable inspector) lives in the shared ModulePage primitive; rows are Astryx List/ListItem. diff --git a/apps/desktop/src/renderer/styles/native-cursor.css b/apps/desktop/src/renderer/styles/native-cursor.css index b6a3b28792..d95c3d16d2 100644 --- a/apps/desktop/src/renderer/styles/native-cursor.css +++ b/apps/desktop/src/renderer/styles/native-cursor.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Native cursor convention (product-wide, single owner). * diff --git a/apps/desktop/src/renderer/styles/onboarding.css b/apps/desktop/src/renderer/styles/onboarding.css index 07b8166cbe..6f1c9a6f4a 100644 --- a/apps/desktop/src/renderer/styles/onboarding.css +++ b/apps/desktop/src/renderer/styles/onboarding.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .maka-onboarding { min-width: 0; } diff --git a/apps/desktop/src/renderer/styles/palette.css b/apps/desktop/src/renderer/styles/palette.css index c2c13560e0..795484aba8 100644 --- a/apps/desktop/src/renderer/styles/palette.css +++ b/apps/desktop/src/renderer/styles/palette.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Astryx owns the command palette surface, input, listbox, rows, states, and * footer. Maka styles only product content rendered inside those slots. */ diff --git a/apps/desktop/src/renderer/styles/plan-mode.css b/apps/desktop/src/renderer/styles/plan-mode.css index ab024ec293..71c600c74e 100644 --- a/apps/desktop/src/renderer/styles/plan-mode.css +++ b/apps/desktop/src/renderer/styles/plan-mode.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .plan-mode-panel { width: min(var(--maka-chat-measure), calc(100% - var(--space-8))); margin: var(--space-3) auto var(--space-2); diff --git a/apps/desktop/src/renderer/styles/prompt-rail.css b/apps/desktop/src/renderer/styles/prompt-rail.css index c199381257..25fc0453d4 100644 --- a/apps/desktop/src/renderer/styles/prompt-rail.css +++ b/apps/desktop/src/renderer/styles/prompt-rail.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Codex-style prompt navigation rail: bounded prompt landmarks pinned to the right edge of the chat scrollport. Low-key by default, brightens on hover; each tick jumps to that prompt and the active turn's tick stays highlighted. diff --git a/apps/desktop/src/renderer/styles/prompt-suggestions.css b/apps/desktop/src/renderer/styles/prompt-suggestions.css index 214648a2cc..b3e684091f 100644 --- a/apps/desktop/src/renderer/styles/prompt-suggestions.css +++ b/apps/desktop/src/renderer/styles/prompt-suggestions.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Prompt suggestions grid + chips. Relocated from sidebar.css — issue #546 PR3. */ .maka-prompt-suggestions { display: grid; diff --git a/apps/desktop/src/renderer/styles/quote-side-panel.css b/apps/desktop/src/renderer/styles/quote-side-panel.css index e79dcc2be7..00ba942edb 100644 --- a/apps/desktop/src/renderer/styles/quote-side-panel.css +++ b/apps/desktop/src/renderer/styles/quote-side-panel.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Text-selection quote side panel. ------------------------------------------------------------------------- Astryx Layer and ButtonGroup own the floating "引用" / "在侧栏追问" diff --git a/apps/desktop/src/renderer/styles/search-modal.css b/apps/desktop/src/renderer/styles/search-modal.css index 4b01feaed3..b8119502fc 100644 --- a/apps/desktop/src/renderer/styles/search-modal.css +++ b/apps/desktop/src/renderer/styles/search-modal.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Astryx owns the search palette surface, input, listbox, rows, states, and * footer. Maka styles only the thread result content. */ diff --git a/apps/desktop/src/renderer/styles/settings.css b/apps/desktop/src/renderer/styles/settings.css index 538ea8be53..038a436172 100644 --- a/apps/desktop/src/renderer/styles/settings.css +++ b/apps/desktop/src/renderer/styles/settings.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* settings.css — entry; rules split into styles/settings/ (issue #253 Round F). */ @import "./settings/form.css"; @import "./settings/rows.css"; diff --git a/apps/desktop/src/renderer/styles/settings/about.css b/apps/desktop/src/renderer/styles/settings/about.css index bbc3ee4660..65428bb288 100644 --- a/apps/desktop/src/renderer/styles/settings/about.css +++ b/apps/desktop/src/renderer/styles/settings/about.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* About and data-portability settings. */ /* Astryx convergence: the page container is the kit's SettingsPage now — the About-only `.settingsAboutPage` grid (16px rhythm, breaking the shared diff --git a/apps/desktop/src/renderer/styles/settings/bot.css b/apps/desktop/src/renderer/styles/settings/bot.css index a8d787d31f..34e6929b03 100644 --- a/apps/desktop/src/renderer/styles/settings/bot.css +++ b/apps/desktop/src/renderer/styles/settings/bot.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Astryx convergence: the pre-#1972 remote-access dialect is retired — page containers → SettingsPage, section headers → SettingsSection, the runtime tinted card +
status grid → SettingsSection + MetadataList, the diff --git a/apps/desktop/src/renderer/styles/settings/connection.css b/apps/desktop/src/renderer/styles/settings/connection.css index 6d134ba151..1523d1ce86 100644 --- a/apps/desktop/src/renderer/styles/settings/connection.css +++ b/apps/desktop/src/renderer/styles/settings/connection.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Astryx convergence: connection-list / Claude card chrome moved to Banner, Card, StatusDot, ProgressBar. File kept as an import seam so settings.css does not thrash while the last hand-rolled helpers are retired. */ diff --git a/apps/desktop/src/renderer/styles/settings/form.css b/apps/desktop/src/renderer/styles/settings/form.css index ad6e6555e5..a1d481a5c8 100644 --- a/apps/desktop/src/renderer/styles/settings/form.css +++ b/apps/desktop/src/renderer/styles/settings/form.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings surface/modal container layout. Runtime interaction prompts live in interaction-prompts.css. */ .settingsSurface { diff --git a/apps/desktop/src/renderer/styles/settings/health.css b/apps/desktop/src/renderer/styles/settings/health.css index d84ec2f897..ccf79576af 100644 --- a/apps/desktop/src/renderer/styles/settings/health.css +++ b/apps/desktop/src/renderer/styles/settings/health.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings → Health Center page. Relocated from health-center.css — issue #546 PR1. */ /* ============================================================================= PR-UI-9 — Health Center page diff --git a/apps/desktop/src/renderer/styles/settings/memory.css b/apps/desktop/src/renderer/styles/settings/memory.css index 5037889d2e..057c144e7c 100644 --- a/apps/desktop/src/renderer/styles/settings/memory.css +++ b/apps/desktop/src/renderer/styles/settings/memory.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings → Memory (MEMORY.md editor, entry groups, prompt preview). Relocated from tool-stream.css (+ meta row from connection.css) — issue #546 PR1. */ /* ──────────────────────────────────────────────────────────────── diff --git a/apps/desktop/src/renderer/styles/settings/models.css b/apps/desktop/src/renderer/styles/settings/models.css index 1ae0e0917e..4f9ed4bb88 100644 --- a/apps/desktop/src/renderer/styles/settings/models.css +++ b/apps/desktop/src/renderer/styles/settings/models.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* The default-connection selected wash rides the Item `selected` prop (data-selected → --state-selected-bg), one selected-row implementation across the app. */ diff --git a/apps/desktop/src/renderer/styles/settings/nav-sidebar.css b/apps/desktop/src/renderer/styles/settings/nav-sidebar.css index 4d21aa6e0c..7499ab69d9 100644 --- a/apps/desktop/src/renderer/styles/settings/nav-sidebar.css +++ b/apps/desktop/src/renderer/styles/settings/nav-sidebar.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .settingsSidebar { min-height: 0; padding-top: var(--space-12); diff --git a/apps/desktop/src/renderer/styles/settings/permission.css b/apps/desktop/src/renderer/styles/settings/permission.css index ce7c61fdb9..ea2e810c22 100644 --- a/apps/desktop/src/renderer/styles/settings/permission.css +++ b/apps/desktop/src/renderer/styles/settings/permission.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings → Permission Center page. * * This file was 594 lines. Almost all of it re-derived layout and typography diff --git a/apps/desktop/src/renderer/styles/settings/provider-editor.css b/apps/desktop/src/renderer/styles/settings/provider-editor.css index cad3d0be71..1a04c0f551 100644 --- a/apps/desktop/src/renderer/styles/settings/provider-editor.css +++ b/apps/desktop/src/renderer/styles/settings/provider-editor.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Gated providers (preview / not-yet-open) stay inert and muted; the * provider-surface gate forbids rendering them as actionable. */ .providerCatalogRow[data-disabled="true"] { diff --git a/apps/desktop/src/renderer/styles/settings/route.css b/apps/desktop/src/renderer/styles/settings/route.css index 65cbe6c93c..95088c6f42 100644 --- a/apps/desktop/src/renderer/styles/settings/route.css +++ b/apps/desktop/src/renderer/styles/settings/route.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* A route level takes focus when it lands, so a keyboard user does not get dropped on document.body every time the page navigates. It is a landing target, not a control — the ring belongs to whatever they Tab to next. diff --git a/apps/desktop/src/renderer/styles/settings/rows.css b/apps/desktop/src/renderer/styles/settings/rows.css index 8dbffaa06f..48c468d8ba 100644 --- a/apps/desktop/src/renderer/styles/settings/rows.css +++ b/apps/desktop/src/renderer/styles/settings/rows.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* The open row group (SettingsSection variant='rows'). The Astryx settings idiom — the CLI's settings/settings-dialog templates and `astryx docs layout` — is edge-to-edge rows split by hairline dividers, with NO card diff --git a/apps/desktop/src/renderer/styles/settings/runtime-host.css b/apps/desktop/src/renderer/styles/settings/runtime-host.css index 822a4f5de2..158f2d23a8 100644 --- a/apps/desktop/src/renderer/styles/settings/runtime-host.css +++ b/apps/desktop/src/renderer/styles/settings/runtime-host.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .settingsRuntimeHostTransportField { padding-block: var(--space-4); } diff --git a/apps/desktop/src/renderer/styles/settings/select.css b/apps/desktop/src/renderer/styles/settings/select.css index 2b62ea0fc0..4191511081 100644 --- a/apps/desktop/src/renderer/styles/settings/select.css +++ b/apps/desktop/src/renderer/styles/settings/select.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Product layout only; Astryx Selector owns trigger, popup, and option chrome. */ /* One trailing-control column for the selects that sit in a settings row. diff --git a/apps/desktop/src/renderer/styles/settings/theme-preview.css b/apps/desktop/src/renderer/styles/settings/theme-preview.css index de26232062..2bd3697785 100644 --- a/apps/desktop/src/renderer/styles/settings/theme-preview.css +++ b/apps/desktop/src/renderer/styles/settings/theme-preview.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Appearance theme and palette previews. The option GRID and the option TILE are Astryx now: `Grid columns={{minWidth}}` diff --git a/apps/desktop/src/renderer/styles/settings/usage.css b/apps/desktop/src/renderer/styles/settings/usage.css index ddd65877ee..a9c05464f8 100644 --- a/apps/desktop/src/renderer/styles/settings/usage.css +++ b/apps/desktop/src/renderer/styles/settings/usage.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings → Usage page (使用量). Astryx owns the controls and table geometry; this file only composes those primitives into the page hierarchy. */ diff --git a/apps/desktop/src/renderer/styles/settings/web-search.css b/apps/desktop/src/renderer/styles/settings/web-search.css index d4f0def891..b1a54a3e2e 100644 --- a/apps/desktop/src/renderer/styles/settings/web-search.css +++ b/apps/desktop/src/renderer/styles/settings/web-search.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Settings → Web Search (联网搜索) live-query result list. Relocated from tool-stream.css — issue #546 PR1 (zero visual change). */ /* ──────────────────────────────────────────────────────────────── diff --git a/apps/desktop/src/renderer/styles/settings/wechat.css b/apps/desktop/src/renderer/styles/settings/wechat.css index b7b4ff82c4..212e8f2226 100644 --- a/apps/desktop/src/renderer/styles/settings/wechat.css +++ b/apps/desktop/src/renderer/styles/settings/wechat.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* WeChat QR login dialog content. */ .settingsWechatQrCaption { diff --git a/apps/desktop/src/renderer/styles/shell-layout.css b/apps/desktop/src/renderer/styles/shell-layout.css index f31fa89313..b383516309 100644 --- a/apps/desktop/src/renderer/styles/shell-layout.css +++ b/apps/desktop/src/renderer/styles/shell-layout.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Shell layout — app frame, panels, topbar rail, main column, workspace top actions. */ .appFrame { font: var(--maka-text-body); diff --git a/apps/desktop/src/renderer/styles/sidebar.css b/apps/desktop/src/renderer/styles/sidebar.css index 842d62b5a6..9a4aedfdc4 100644 --- a/apps/desktop/src/renderer/styles/sidebar.css +++ b/apps/desktop/src/renderer/styles/sidebar.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Sidebar — SideNav shell, session rows, footer update chip. * Session rows are Astryx SideNavItem; this file only owns product-only chrome. */ .maka-session-panel { diff --git a/apps/desktop/src/renderer/styles/task-ledger.css b/apps/desktop/src/renderer/styles/task-ledger.css index cca70735d8..b459c32cc2 100644 --- a/apps/desktop/src/renderer/styles/task-ledger.css +++ b/apps/desktop/src/renderer/styles/task-ledger.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .maka-task-ledger-panel { height: 100%; min-height: 0; diff --git a/apps/desktop/src/renderer/styles/theme-glass.css b/apps/desktop/src/renderer/styles/theme-glass.css index 743cf740f4..c0ee821294 100644 --- a/apps/desktop/src/renderer/styles/theme-glass.css +++ b/apps/desktop/src/renderer/styles/theme-glass.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* ============================================================================= Glass material on macOS. The reference layout's `light-glass` / `dark-glass` themes that paint the sidebar against diff --git a/apps/desktop/src/renderer/task-readiness-notice.ts b/apps/desktop/src/renderer/task-readiness-notice.ts index b30f7c87b1..5c4d2a12ab 100644 --- a/apps/desktop/src/renderer/task-readiness-notice.ts +++ b/apps/desktop/src/renderer/task-readiness-notice.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSendProjection } from '@maka/core/session-send-projection'; import type { TaskSubmissionReadinessDimension, TaskSubmissionReadinessSnapshot } from '@maka/core/task-submission-readiness'; diff --git a/apps/desktop/src/renderer/theme.ts b/apps/desktop/src/renderer/theme.ts index b9bb3cc6b1..f51826df83 100644 --- a/apps/desktop/src/renderer/theme.ts +++ b/apps/desktop/src/renderer/theme.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/theme.ts // // Tiny client-side helper that resolves a ThemePreference ('light' | 'dark' | diff --git a/apps/desktop/src/renderer/titlebar-dim-color.ts b/apps/desktop/src/renderer/titlebar-dim-color.ts index 224abe6ff9..83da737cc0 100644 --- a/apps/desktop/src/renderer/titlebar-dim-color.ts +++ b/apps/desktop/src/renderer/titlebar-dim-color.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/titlebar-dim-color.ts // // Pure color math for the modal-open titlebar dim (theme.ts drives it; the diff --git a/apps/desktop/src/renderer/titlebar-modal-sync.ts b/apps/desktop/src/renderer/titlebar-modal-sync.ts index 6bedcec479..ace505c491 100644 --- a/apps/desktop/src/renderer/titlebar-modal-sync.ts +++ b/apps/desktop/src/renderer/titlebar-modal-sync.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // apps/desktop/src/renderer/titlebar-modal-sync.ts // // Keeps the OS-drawn window controls in visual sync with modal dialogs. diff --git a/apps/desktop/src/renderer/turn-footer-actions.ts b/apps/desktop/src/renderer/turn-footer-actions.ts index 5017afeb9c..3d60ef76f5 100644 --- a/apps/desktop/src/renderer/turn-footer-actions.ts +++ b/apps/desktop/src/renderer/turn-footer-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure derivation of turn footer action enabled-set. * diff --git a/apps/desktop/src/renderer/use-active-execution-boundary.ts b/apps/desktop/src/renderer/use-active-execution-boundary.ts index 7d6f8c710e..7cabef4d47 100644 --- a/apps/desktop/src/renderer/use-active-execution-boundary.ts +++ b/apps/desktop/src/renderer/use-active-execution-boundary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ExecutionBoundaryReadModel } from '@maka/core/sandbox-boundary'; import { useCallback, useEffect, useRef, useState } from 'react'; diff --git a/apps/desktop/src/renderer/use-app-shell-composer-attachments.ts b/apps/desktop/src/renderer/use-app-shell-composer-attachments.ts index bb81fb3dbf..6134749e53 100644 --- a/apps/desktop/src/renderer/use-app-shell-composer-attachments.ts +++ b/apps/desktop/src/renderer/use-app-shell-composer-attachments.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useRef, useState } from 'react'; import { attachmentKindFromMimeType, guessMimeFromName } from '@maka/core/attachments'; import { useUiLocale } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/use-app-shell-composer-quotes.ts b/apps/desktop/src/renderer/use-app-shell-composer-quotes.ts index 7169f42814..73b38eb45b 100644 --- a/apps/desktop/src/renderer/use-app-shell-composer-quotes.ts +++ b/apps/desktop/src/renderer/use-app-shell-composer-quotes.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { QuoteRef } from '@maka/core/events'; import { diff --git a/apps/desktop/src/renderer/use-app-shell-session-list.ts b/apps/desktop/src/renderer/use-app-shell-session-list.ts index d0a5156c2d..2379b88ecf 100644 --- a/apps/desktop/src/renderer/use-app-shell-session-list.ts +++ b/apps/desktop/src/renderer/use-app-shell-session-list.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef, useState } from 'react'; import type { StoredMessage } from '@maka/core/session'; import { type LiveTurnProjection, useUiLocale } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/use-app-shell-session-ui-reads.ts b/apps/desktop/src/renderer/use-app-shell-session-ui-reads.ts index 8966836a11..6d9dde8b26 100644 --- a/apps/desktop/src/renderer/use-app-shell-session-ui-reads.ts +++ b/apps/desktop/src/renderer/use-app-shell-session-ui-reads.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { InteractionQueues } from '@maka/ui'; import type { AppShellSessionUiState, AppShellSessionUiStateController } from './app-shell-session-ui-state.js'; import { diff --git a/apps/desktop/src/renderer/use-app-shell-session-ui-selector.ts b/apps/desktop/src/renderer/use-app-shell-session-ui-selector.ts index 00d6705016..86f904fdc6 100644 --- a/apps/desktop/src/renderer/use-app-shell-session-ui-selector.ts +++ b/apps/desktop/src/renderer/use-app-shell-session-ui-selector.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, useSyncExternalStore } from 'react'; import type { AppShellSessionUiState, AppShellSessionUiStateController } from './app-shell-session-ui-state.js'; diff --git a/apps/desktop/src/renderer/use-app-shell-session-workspace.ts b/apps/desktop/src/renderer/use-app-shell-session-workspace.ts index 8b3453c952..b0e8ab8b5d 100644 --- a/apps/desktop/src/renderer/use-app-shell-session-workspace.ts +++ b/apps/desktop/src/renderer/use-app-shell-session-workspace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef, useState } from 'react'; import type { StoredMessage } from '@maka/core/session'; import { useAppShellSessionUiState } from './app-shell-session-ui-state'; diff --git a/apps/desktop/src/renderer/use-composer-mentions.ts b/apps/desktop/src/renderer/use-composer-mentions.ts index 8537561dd6..94a5ebb9c7 100644 --- a/apps/desktop/src/renderer/use-composer-mentions.ts +++ b/apps/desktop/src/renderer/use-composer-mentions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useState } from 'react'; import type { ChatDefaultPermissionMode } from '@maka/core/settings'; import type { SkillEntry } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/use-deep-research-run.ts b/apps/desktop/src/renderer/use-deep-research-run.ts index 5af0ef6fc5..972a738cdf 100644 --- a/apps/desktop/src/renderer/use-deep-research-run.ts +++ b/apps/desktop/src/renderer/use-deep-research-run.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { DeepResearchClientProgress } from '@maka/core/deep-research-run'; diff --git a/apps/desktop/src/renderer/use-delayed-flag.ts b/apps/desktop/src/renderer/use-delayed-flag.ts index 0a55953b81..889c0f2c40 100644 --- a/apps/desktop/src/renderer/use-delayed-flag.ts +++ b/apps/desktop/src/renderer/use-delayed-flag.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { createDelayedFlag, type DelayedFlag } from './model-wait-state.js'; diff --git a/apps/desktop/src/renderer/use-keep-system-awake.ts b/apps/desktop/src/renderer/use-keep-system-awake.ts index ab6f87734f..2223574835 100644 --- a/apps/desktop/src/renderer/use-keep-system-awake.ts +++ b/apps/desktop/src/renderer/use-keep-system-awake.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useState } from 'react'; import { useMountedRef } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/use-module-data.ts b/apps/desktop/src/renderer/use-module-data.ts index 2d4d1ba413..b7cef08569 100644 --- a/apps/desktop/src/renderer/use-module-data.ts +++ b/apps/desktop/src/renderer/use-module-data.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { ScheduledTask } from '@maka/core/scheduled-task'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/use-new-task-choice.ts b/apps/desktop/src/renderer/use-new-task-choice.ts index 65038ea2d1..cc98202d05 100644 --- a/apps/desktop/src/renderer/use-new-task-choice.ts +++ b/apps/desktop/src/renderer/use-new-task-choice.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useState } from 'react'; import { UNRESOLVED_NEW_TASK_DRAFT_KEY } from './new-task-reload-intent.js'; diff --git a/apps/desktop/src/renderer/use-new-task-target.ts b/apps/desktop/src/renderer/use-new-task-target.ts index 7f5267dca7..7d82a0ca7a 100644 --- a/apps/desktop/src/renderer/use-new-task-target.ts +++ b/apps/desktop/src/renderer/use-new-task-target.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { findProjectByIdentity, type ProjectRecord } from '@maka/core/project'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/use-onboarding-snapshot.ts b/apps/desktop/src/renderer/use-onboarding-snapshot.ts index 807a76810e..16e19cf7b4 100644 --- a/apps/desktop/src/renderer/use-onboarding-snapshot.ts +++ b/apps/desktop/src/renderer/use-onboarding-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * `useOnboardingSnapshot` — renderer hook over the PR110b IPC. * diff --git a/apps/desktop/src/renderer/use-pending-action-registry.ts b/apps/desktop/src/renderer/use-pending-action-registry.ts index 5ba95b7a88..a16fbee0ed 100644 --- a/apps/desktop/src/renderer/use-pending-action-registry.ts +++ b/apps/desktop/src/renderer/use-pending-action-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef, useState } from 'react'; type RefBox = { current: T }; diff --git a/apps/desktop/src/renderer/use-project-context.ts b/apps/desktop/src/renderer/use-project-context.ts index 5249abadea..281ac34e59 100644 --- a/apps/desktop/src/renderer/use-project-context.ts +++ b/apps/desktop/src/renderer/use-project-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import type { ProjectRecord } from '@maka/core/project'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/use-quote-companion.ts b/apps/desktop/src/renderer/use-quote-companion.ts index 9e54256831..ac9b1bfef7 100644 --- a/apps/desktop/src/renderer/use-quote-companion.ts +++ b/apps/desktop/src/renderer/use-quote-companion.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import { activeInteractionFor, diff --git a/apps/desktop/src/renderer/use-session-goal.ts b/apps/desktop/src/renderer/use-session-goal.ts index 5ffa0144b3..6cfcaf53ad 100644 --- a/apps/desktop/src/renderer/use-session-goal.ts +++ b/apps/desktop/src/renderer/use-session-goal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Active-goal subscription for the renderer — the desktop kill-switch data source. * diff --git a/apps/desktop/src/renderer/use-session-tasks.ts b/apps/desktop/src/renderer/use-session-tasks.ts index 075eaa343a..7c0a348f2c 100644 --- a/apps/desktop/src/renderer/use-session-tasks.ts +++ b/apps/desktop/src/renderer/use-session-tasks.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import { generalizedErrorMessage, generalizedErrorMessageChinese } from '@maka/core/redaction'; import { type Task } from '@maka/core/task-ledger'; diff --git a/apps/desktop/src/renderer/use-session-trace.ts b/apps/desktop/src/renderer/use-session-trace.ts index 1ce070f3ed..86f262d4e9 100644 --- a/apps/desktop/src/renderer/use-session-trace.ts +++ b/apps/desktop/src/renderer/use-session-trace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { generalizedErrorMessage, generalizedErrorMessageChinese } from '@maka/core/redaction'; import { type UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/use-settings-modal.ts b/apps/desktop/src/renderer/use-settings-modal.ts index c876aa3b54..6335f361f2 100644 --- a/apps/desktop/src/renderer/use-settings-modal.ts +++ b/apps/desktop/src/renderer/use-settings-modal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { ProviderType } from '@maka/core/llm-connections'; import type { SettingsSection } from '@maka/core/settings'; diff --git a/apps/desktop/src/renderer/use-shell-appearance.ts b/apps/desktop/src/renderer/use-shell-appearance.ts index d226728163..63ced56909 100644 --- a/apps/desktop/src/renderer/use-shell-appearance.ts +++ b/apps/desktop/src/renderer/use-shell-appearance.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState, type Dispatch, type SetStateAction } from 'react'; import type { ChatDefaultPermissionMode, ThemePalette, ThemePreference } from '@maka/core/settings'; import type { ThinkingLevel } from '@maka/core/model-thinking'; diff --git a/apps/desktop/src/renderer/use-shell-chat-model.ts b/apps/desktop/src/renderer/use-shell-chat-model.ts index c2a65279cb..bdda92012c 100644 --- a/apps/desktop/src/renderer/use-shell-chat-model.ts +++ b/apps/desktop/src/renderer/use-shell-chat-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo } from 'react'; import type { ChatModelChoice } from '@maka/core/chat-model-choice'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/renderer/use-shell-connections.ts b/apps/desktop/src/renderer/use-shell-connections.ts index c1b3e04f82..c2f2c06413 100644 --- a/apps/desktop/src/renderer/use-shell-connections.ts +++ b/apps/desktop/src/renderer/use-shell-connections.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useLayoutEffect, useRef, useState } from 'react'; import type { ConnectionEvent } from '@maka/core/connections'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/apps/desktop/src/renderer/use-shell-layout.ts b/apps/desktop/src/renderer/use-shell-layout.ts index d4d63ca23d..3417f67688 100644 --- a/apps/desktop/src/renderer/use-shell-layout.ts +++ b/apps/desktop/src/renderer/use-shell-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useResizable } from '@astryxdesign/core/Resizable'; import { readSessionListCollapsed, readSessionListWidth } from './session-list-layout'; diff --git a/apps/desktop/src/renderer/use-shell-live-turn.ts b/apps/desktop/src/renderer/use-shell-live-turn.ts index f49ee750d5..ab85769bf9 100644 --- a/apps/desktop/src/renderer/use-shell-live-turn.ts +++ b/apps/desktop/src/renderer/use-shell-live-turn.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionSummary } from '@maka/core/session'; import type { LiveTurnSnapshot } from './live-turn-snapshot.js'; import { MODEL_CONTINUING_DELAY_MS, MODEL_PROCESSING_DELAY_MS, RUNNING_STATUS_DELAY_MS, deriveModelWait, deriveTurnActive, type ModelWaitKind } from './model-wait-state.js'; diff --git a/apps/desktop/src/renderer/use-shell-memory-pill.ts b/apps/desktop/src/renderer/use-shell-memory-pill.ts index 49ef3d4a0a..6686856900 100644 --- a/apps/desktop/src/renderer/use-shell-memory-pill.ts +++ b/apps/desktop/src/renderer/use-shell-memory-pill.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import type { UiLocale } from '@maka/core/ui-locale'; import { diff --git a/apps/desktop/src/renderer/use-shell-resume.ts b/apps/desktop/src/renderer/use-shell-resume.ts index eef8f60321..b682ff6220 100644 --- a/apps/desktop/src/renderer/use-shell-resume.ts +++ b/apps/desktop/src/renderer/use-shell-resume.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { UiLocale } from '@maka/core/ui-locale'; import { resumeParkToastCopy } from '@maka/ui'; diff --git a/apps/desktop/src/renderer/use-shell-search.ts b/apps/desktop/src/renderer/use-shell-search.ts index 0ead83876e..966b1d940a 100644 --- a/apps/desktop/src/renderer/use-shell-search.ts +++ b/apps/desktop/src/renderer/use-shell-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useMemo, useState } from 'react'; type OpenSessionInChat = (sessionId: string, turnId?: string, sequence?: number) => void; diff --git a/apps/desktop/src/renderer/use-side-conversation-workspace.ts b/apps/desktop/src/renderer/use-side-conversation-workspace.ts index 59de9827cb..ae2d396418 100644 --- a/apps/desktop/src/renderer/use-side-conversation-workspace.ts +++ b/apps/desktop/src/renderer/use-side-conversation-workspace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useMemo, useReducer } from 'react'; import type { QuoteCompanionPanelState } from './quote-companion-panel-state'; diff --git a/apps/desktop/src/renderer/use-stable-actions.ts b/apps/desktop/src/renderer/use-stable-actions.ts index daa70c2965..7c6b68494e 100644 --- a/apps/desktop/src/renderer/use-stable-actions.ts +++ b/apps/desktop/src/renderer/use-stable-actions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useLayoutEffect, useRef, useState } from 'react'; import { createDelegatingActions } from './stable-actions'; diff --git a/apps/desktop/src/renderer/use-system-ui-locale.ts b/apps/desktop/src/renderer/use-system-ui-locale.ts index dfbe71fd2b..98c839e5a1 100644 --- a/apps/desktop/src/renderer/use-system-ui-locale.ts +++ b/apps/desktop/src/renderer/use-system-ui-locale.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveSystemUiLocale, type UiLocale } from '@maka/core/ui-locale'; import { useEffect, useState } from 'react'; diff --git a/apps/desktop/src/renderer/use-task-submission-readiness.ts b/apps/desktop/src/renderer/use-task-submission-readiness.ts index 8629055749..d95a5a7018 100644 --- a/apps/desktop/src/renderer/use-task-submission-readiness.ts +++ b/apps/desktop/src/renderer/use-task-submission-readiness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useRef, useState } from 'react'; import type { TaskSubmissionReadinessSnapshot } from '@maka/core/task-submission-readiness'; import type { diff --git a/apps/desktop/src/renderer/workspace-readiness-recovery.ts b/apps/desktop/src/renderer/workspace-readiness-recovery.ts index 73384a823e..0d195fab4d 100644 --- a/apps/desktop/src/renderer/workspace-readiness-recovery.ts +++ b/apps/desktop/src/renderer/workspace-readiness-recovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OnboardingState } from '@maka/core/onboarding'; import type { UiLocale } from '@maka/core/ui-locale'; import { diff --git a/apps/desktop/src/shared/desktop-connection-snapshot.ts b/apps/desktop/src/shared/desktop-connection-snapshot.ts index 3d486e1ba4..fbdfc2006d 100644 --- a/apps/desktop/src/shared/desktop-connection-snapshot.ts +++ b/apps/desktop/src/shared/desktop-connection-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatModelChoice } from '@maka/core/chat-model-choice'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/apps/desktop/src/shared/desktop-session-projection.ts b/apps/desktop/src/shared/desktop-session-projection.ts index a9078e04f8..1dfa95bfc3 100644 --- a/apps/desktop/src/shared/desktop-session-projection.ts +++ b/apps/desktop/src/shared/desktop-session-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewSummary } from '@maka/core/daily-review'; import type { AttachmentRef, diff --git a/apps/desktop/src/shared/goal-arm.ts b/apps/desktop/src/shared/goal-arm.ts index 9e7264e66a..b50548d4ca 100644 --- a/apps/desktop/src/shared/goal-arm.ts +++ b/apps/desktop/src/shared/goal-arm.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * What the renderer sends to arm a Goal. * diff --git a/apps/desktop/src/shared/runtime-host-identity.ts b/apps/desktop/src/shared/runtime-host-identity.ts index 162eed5f13..e412aefc7f 100644 --- a/apps/desktop/src/shared/runtime-host-identity.ts +++ b/apps/desktop/src/shared/runtime-host-identity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface DesktopHostRef { readonly hostId: string; } diff --git a/apps/desktop/src/shared/settings-ownership.ts b/apps/desktop/src/shared/settings-ownership.ts index cbba9067d3..9bdbbcddc8 100644 --- a/apps/desktop/src/shared/settings-ownership.ts +++ b/apps/desktop/src/shared/settings-ownership.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AppSettings, UpdateAppSettingsInput, diff --git a/apps/desktop/stories/FIDELITY.md b/apps/desktop/stories/FIDELITY.md index 61d32f8f6a..8afc92420b 100644 --- a/apps/desktop/stories/FIDELITY.md +++ b/apps/desktop/stories/FIDELITY.md @@ -1,3 +1,22 @@ + + # Storybook fidelity convention Applies to every `Product/*` story in `apps/desktop/stories` and `packages/ui/stories`. `Primitives/*` and `Design System/*` are exempt: they demonstrate a component's states, not a product surface, and there is no user path to a StatTile emphasis. diff --git a/apps/desktop/stories/accessibility-overlays.stories.tsx b/apps/desktop/stories/accessibility-overlays.stories.tsx index 6eca84910a..c8a51316ea 100644 --- a/apps/desktop/stories/accessibility-overlays.stories.tsx +++ b/apps/desktop/stories/accessibility-overlays.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { useState } from 'react'; diff --git a/apps/desktop/stories/accessibility-runtime-surfaces.stories.tsx b/apps/desktop/stories/accessibility-runtime-surfaces.stories.tsx index f2731b11e1..9eaa7774fe 100644 --- a/apps/desktop/stories/accessibility-runtime-surfaces.stories.tsx +++ b/apps/desktop/stories/accessibility-runtime-surfaces.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { useRef, useState } from 'react'; import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; diff --git a/apps/desktop/stories/app-shell.stories.tsx b/apps/desktop/stories/app-shell.stories.tsx index c75da438ee..2e20027773 100644 --- a/apps/desktop/stories/app-shell.stories.tsx +++ b/apps/desktop/stories/app-shell.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { useState, type CSSProperties, type ReactNode } from 'react'; import type { ComponentProps } from 'react'; diff --git a/apps/desktop/stories/ask-user-question.stories.tsx b/apps/desktop/stories/ask-user-question.stories.tsx index d2402ed7e7..53511f4188 100644 --- a/apps/desktop/stories/ask-user-question.stories.tsx +++ b/apps/desktop/stories/ask-user-question.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { UserQuestionRequestEvent } from '@maka/core/events'; import { UserQuestionPrompt } from '@maka/ui'; diff --git a/apps/desktop/stories/command-search.stories.tsx b/apps/desktop/stories/command-search.stories.tsx index 1c0c0381e3..bb57ce62c0 100644 --- a/apps/desktop/stories/command-search.stories.tsx +++ b/apps/desktop/stories/command-search.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { useEffect, useState } from 'react'; import type { SearchErrorReason, SearchResult } from '@maka/core/search'; diff --git a/apps/desktop/stories/maka-bridge.tsx b/apps/desktop/stories/maka-bridge.tsx index 8c84f22ee8..7ce068d873 100644 --- a/apps/desktop/stories/maka-bridge.tsx +++ b/apps/desktop/stories/maka-bridge.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useLayoutEffect } from 'react'; import type { Decorator } from '@storybook/react-vite'; diff --git a/apps/desktop/stories/module-hubs.stories.tsx b/apps/desktop/stories/module-hubs.stories.tsx index 511e930ecf..2187ae7ec7 100644 --- a/apps/desktop/stories/module-hubs.stories.tsx +++ b/apps/desktop/stories/module-hubs.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { DailyReviewArchive, DailyReviewSummary } from '@maka/core/daily-review'; import type { ScheduledTask, ScheduledTaskRun } from '@maka/core/scheduled-task'; diff --git a/apps/desktop/stories/onboarding.stories.tsx b/apps/desktop/stories/onboarding.stories.tsx index bb2c0e7853..4aa3c4696f 100644 --- a/apps/desktop/stories/onboarding.stories.tsx +++ b/apps/desktop/stories/onboarding.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type ComponentProps, type ReactNode } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import type { LlmConnection, ProviderType } from '@maka/core/llm-connections'; diff --git a/apps/desktop/stories/session-workbar.stories.tsx b/apps/desktop/stories/session-workbar.stories.tsx index 4c27b2e6a7..0cee26f155 100644 --- a/apps/desktop/stories/session-workbar.stories.tsx +++ b/apps/desktop/stories/session-workbar.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CSSProperties } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import type { ArtifactRecord } from '@maka/core/artifacts'; diff --git a/apps/desktop/stories/settings/provider-settings.stories.tsx b/apps/desktop/stories/settings/provider-settings.stories.tsx index a2b98f7072..ce688f99bb 100644 --- a/apps/desktop/stories/settings/provider-settings.stories.tsx +++ b/apps/desktop/stories/settings/provider-settings.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, type ReactNode } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, userEvent, within } from 'storybook/test'; diff --git a/apps/desktop/stories/settings/settings-pages.stories.tsx b/apps/desktop/stories/settings/settings-pages.stories.tsx index da7e672dd1..fd9bba744d 100644 --- a/apps/desktop/stories/settings/settings-pages.stories.tsx +++ b/apps/desktop/stories/settings/settings-pages.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, userEvent, within } from 'storybook/test'; diff --git a/apps/desktop/stories/subagent-sessions.stories.tsx b/apps/desktop/stories/subagent-sessions.stories.tsx index faf1dee07c..4d0c21d5e6 100644 --- a/apps/desktop/stories/subagent-sessions.stories.tsx +++ b/apps/desktop/stories/subagent-sessions.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Subagent sessions — session presentation contract (design lock). * diff --git a/apps/desktop/tests/smoke.md b/apps/desktop/tests/smoke.md index 06080c17fb..891d3b183e 100644 --- a/apps/desktop/tests/smoke.md +++ b/apps/desktop/tests/smoke.md @@ -1,3 +1,22 @@ + + # Desktop smoke runbook Use the narrowest deterministic check that covers the change, then add live-window evidence or a Storybook story when the risk requires it. Scenario inventories and check identifiers live in the scripts and fixtures, not in this document. diff --git a/apps/desktop/vite-bundled-packages.js b/apps/desktop/vite-bundled-packages.js index b535192795..476eef8c74 100644 --- a/apps/desktop/vite-bundled-packages.js +++ b/apps/desktop/vite-bundled-packages.js @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Records which npm packages the renderer bundle actually contains. // // The module graph sees direct and deep JS imports; the emitted assets carry diff --git a/apps/desktop/vite-dependency-patches.ts b/apps/desktop/vite-dependency-patches.ts index 869fb62226..101e8d351c 100644 --- a/apps/desktop/vite-dependency-patches.ts +++ b/apps/desktop/vite-dependency-patches.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { readdirSync, readFileSync } from 'node:fs'; import { resolve } from 'node:path'; diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.ts index d8ef74569a..72878356f7 100644 --- a/apps/desktop/vite.config.ts +++ b/apps/desktop/vite.config.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineConfig } from 'vite'; import { fileURLToPath } from 'node:url'; import { dirname, resolve } from 'node:path'; diff --git a/biome.jsonc b/biome.jsonc index 46aebb5727..c8ffbce81f 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,3 +1,20 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + { "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", // Biome 2.5.4. See https://biomejs.dev/reference/configuration/ diff --git a/docs/README.md b/docs/README.md index 1c8d34a9da..d917d57e86 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,22 @@ + + # Maka documentation This page is the authority map for Maka documentation. Code and contract tests remain the final authority when documentation disagrees with the implementation. diff --git a/docs/agent-swarm.md b/docs/agent-swarm.md index 9caf1d4538..2a83b1c17e 100644 --- a/docs/agent-swarm.md +++ b/docs/agent-swarm.md @@ -1,3 +1,22 @@ + + # Agent Swarm Agent Swarm is Maka's bounded foreground fan-out for independent child work. The diff --git a/docs/architecture/agent-graph-stream-scheduling-draft.md b/docs/architecture/agent-graph-stream-scheduling-draft.md index 57493a31fb..79cf81da6c 100644 --- a/docs/architecture/agent-graph-stream-scheduling-draft.md +++ b/docs/architecture/agent-graph-stream-scheduling-draft.md @@ -11,6 +11,24 @@ last_verified: 2026-07-28 owners: - maka-backend --- + # Chapter 7: Graph Is a Schedule, Not a Second Runtime—Streaming Agent Work Under a Main-Agent Supervisor diff --git a/docs/architecture/agent-graph-stream-scheduling-draft.zh-CN.md b/docs/architecture/agent-graph-stream-scheduling-draft.zh-CN.md index 31e1fdb5dc..fb2f9b4029 100644 --- a/docs/architecture/agent-graph-stream-scheduling-draft.zh-CN.md +++ b/docs/architecture/agent-graph-stream-scheduling-draft.zh-CN.md @@ -11,6 +11,24 @@ last_verified: 2026-07-28 owners: - maka-backend --- + # 第七章:Graph 是调度,不是第二套 Runtime——主 Agent 监督下的流式 Agent Work diff --git a/docs/architecture/bot-onboarding-runtime.zh-CN.md b/docs/architecture/bot-onboarding-runtime.zh-CN.md index f139addcf2..73fd34fff0 100644 --- a/docs/architecture/bot-onboarding-runtime.zh-CN.md +++ b/docs/architecture/bot-onboarding-runtime.zh-CN.md @@ -1,3 +1,22 @@ + + # Maka IM 扫码接入 runtime architecture 状态:V1 implemented and verified(2026-07-18) diff --git a/docs/architecture/bundled-git-runtime-v1.md b/docs/architecture/bundled-git-runtime-v1.md index b80b03afac..f7ec0bbd8f 100644 --- a/docs/architecture/bundled-git-runtime-v1.md +++ b/docs/architecture/bundled-git-runtime-v1.md @@ -1,3 +1,22 @@ + + # Bundled Git Runtime v1 Status: implementation slice for managed-workspace execution. This is a publication capability that diff --git a/docs/architecture/llm-compaction-events-log-projection-draft.md b/docs/architecture/llm-compaction-events-log-projection-draft.md index 839d1f9b9f..1b60345c27 100644 --- a/docs/architecture/llm-compaction-events-log-projection-draft.md +++ b/docs/architecture/llm-compaction-events-log-projection-draft.md @@ -11,6 +11,24 @@ last_verified: 2026-08-14 owners: - maka-backend --- + # Chapter 3: Compaction Is a Projection—How Maka Lets the LLM Forget Without Losing History diff --git a/docs/architecture/llm-compaction-events-log-projection-draft.zh-CN.md b/docs/architecture/llm-compaction-events-log-projection-draft.zh-CN.md index f980cf1d82..fa7df562f7 100644 --- a/docs/architecture/llm-compaction-events-log-projection-draft.zh-CN.md +++ b/docs/architecture/llm-compaction-events-log-projection-draft.zh-CN.md @@ -11,6 +11,24 @@ last_verified: 2026-08-14 owners: - maka-backend --- + # 第三章:Compaction Is a Projection——Maka 如何让 LLM 忘记而不丢失历史 diff --git a/docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md b/docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md index 71d3bde2ec..4c9974c8c6 100644 --- a/docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md +++ b/docs/architecture/managed-dependency-storage-authority-v1.zh-CN.md @@ -5,6 +5,24 @@ date: 2026-08-08 milestone: M1.3-storage-authority base: upstream/main@08bcf324b --- + # Managed Dependency Storage Authority v1 diff --git a/docs/architecture/mcp-runtime-architecture-draft.zh-CN.md b/docs/architecture/mcp-runtime-architecture-draft.zh-CN.md index ae96e5fcdb..46f9f27e21 100644 --- a/docs/architecture/mcp-runtime-architecture-draft.zh-CN.md +++ b/docs/architecture/mcp-runtime-architecture-draft.zh-CN.md @@ -1,3 +1,22 @@ + + # Maka MCP runtime architecture 状态:remote dual-era V2 implemented(2026-08-11) diff --git a/docs/architecture/openai-responses-incremental-transport.md b/docs/architecture/openai-responses-incremental-transport.md index 886bf49214..162c736641 100644 --- a/docs/architecture/openai-responses-incremental-transport.md +++ b/docs/architecture/openai-responses-incremental-transport.md @@ -1,3 +1,22 @@ + + # OpenAI Responses incremental transport ## 1. Problem and invariant diff --git a/docs/architecture/runtime-core-architecture-draft.md b/docs/architecture/runtime-core-architecture-draft.md index 9ab00537ac..b3de5b39d3 100644 --- a/docs/architecture/runtime-core-architecture-draft.md +++ b/docs/architecture/runtime-core-architecture-draft.md @@ -11,6 +11,24 @@ last_verified: 2026-07-12 owners: - maka-backend --- + # Chapter 1: Log Is the Runtime—Replaying an Agent's State Space diff --git a/docs/architecture/runtime-core-architecture-draft.zh-CN.md b/docs/architecture/runtime-core-architecture-draft.zh-CN.md index a1e3371962..c5ebb54993 100644 --- a/docs/architecture/runtime-core-architecture-draft.zh-CN.md +++ b/docs/architecture/runtime-core-architecture-draft.zh-CN.md @@ -11,6 +11,24 @@ last_verified: 2026-07-12 owners: - maka-backend --- + # 第一章:Log Is the Runtime——Maka 如何回放 Agent 的状态空间 diff --git a/docs/architecture/runtime-host-architecture.md b/docs/architecture/runtime-host-architecture.md index e9d35ba7c0..84d4c463d3 100644 --- a/docs/architecture/runtime-host-architecture.md +++ b/docs/architecture/runtime-host-architecture.md @@ -11,6 +11,24 @@ last_verified: 2026-08-12 owners: - maka-backend --- + # Runtime Host architecture diff --git a/docs/architecture/runtime-host-architecture.zh-CN.md b/docs/architecture/runtime-host-architecture.zh-CN.md index 35b1fe3a84..5c803d6d80 100644 --- a/docs/architecture/runtime-host-architecture.zh-CN.md +++ b/docs/architecture/runtime-host-architecture.zh-CN.md @@ -11,6 +11,24 @@ last_verified: 2026-08-12 owners: - maka-backend --- + # Runtime Host 架构 diff --git a/docs/architecture/runtime-managed-workspace-baseline-open-v1.zh-CN.md b/docs/architecture/runtime-managed-workspace-baseline-open-v1.zh-CN.md index deb8210766..c8a2cb7b34 100644 --- a/docs/architecture/runtime-managed-workspace-baseline-open-v1.zh-CN.md +++ b/docs/architecture/runtime-managed-workspace-baseline-open-v1.zh-CN.md @@ -1,3 +1,22 @@ + + # Managed Workspace Baseline Open v1:M0 最终接受门 - 状态:已合并;M1 execution admission 在其返回值上增加 owner-bound handle,不改变 M0 durable authority diff --git a/docs/architecture/runtime-managed-workspace-execution-admission-v1.zh-CN.md b/docs/architecture/runtime-managed-workspace-execution-admission-v1.zh-CN.md index 40077b9371..1606616e56 100644 --- a/docs/architecture/runtime-managed-workspace-execution-admission-v1.zh-CN.md +++ b/docs/architecture/runtime-managed-workspace-execution-admission-v1.zh-CN.md @@ -1,3 +1,22 @@ + + # Managed Workspace Execution Admission v1:M1.1 可撤销 scope 门 - 状态:M1.1 已实现;M1.2 owner-bound worker bridge 与 runtime-host composition 当前切片;尚未由 Desktop/CLI 默认启用 diff --git a/docs/architecture/runtime-managed-workspace-owner-v1.zh-CN.md b/docs/architecture/runtime-managed-workspace-owner-v1.zh-CN.md index 039fad54bd..5502e57085 100644 --- a/docs/architecture/runtime-managed-workspace-owner-v1.zh-CN.md +++ b/docs/architecture/runtime-managed-workspace-owner-v1.zh-CN.md @@ -1,3 +1,22 @@ + + # Managed Workspace Owner v1:M0 生命周期门 - 状态:已合并;M1 execution admission 继续复用本 owner 的 lifecycle/drain 门 diff --git a/docs/architecture/runtime-recovery-resolver-adr.zh-CN.md b/docs/architecture/runtime-recovery-resolver-adr.zh-CN.md index 66339de505..9d55ad7964 100644 --- a/docs/architecture/runtime-recovery-resolver-adr.zh-CN.md +++ b/docs/architecture/runtime-recovery-resolver-adr.zh-CN.md @@ -1,3 +1,22 @@ + + # ADR:RuntimeEvent 唯一事实源与 RecoveryResolver 唯一判定权威 - 状态:Accepted,Phase 2.5 开始实施 diff --git a/docs/architecture/runtime-resume-architecture.md b/docs/architecture/runtime-resume-architecture.md index cdce3172c5..64092444e4 100644 --- a/docs/architecture/runtime-resume-architecture.md +++ b/docs/architecture/runtime-resume-architecture.md @@ -11,6 +11,24 @@ last_verified: 2026-07-28 owners: - maka-backend --- + # Chapter 8: Resume Is Not Retry—How Maka Continues Safely from Crash Facts diff --git a/docs/architecture/runtime-resume-architecture.zh-CN.md b/docs/architecture/runtime-resume-architecture.zh-CN.md index 5b914628c0..cc89535050 100644 --- a/docs/architecture/runtime-resume-architecture.zh-CN.md +++ b/docs/architecture/runtime-resume-architecture.zh-CN.md @@ -11,6 +11,24 @@ last_verified: 2026-07-28 owners: - maka-backend --- + # 第八章:Resume 不是重试——Maka 如何从崩溃事实安全继续 diff --git a/docs/architecture/runtime-resume-extraction-ledger.zh-CN.md b/docs/architecture/runtime-resume-extraction-ledger.zh-CN.md index c97e110656..4b1b3e6e4c 100644 --- a/docs/architecture/runtime-resume-extraction-ledger.zh-CN.md +++ b/docs/architecture/runtime-resume-extraction-ledger.zh-CN.md @@ -1,3 +1,22 @@ + + # Runtime Resume #1346 拆分与提取账本 - 状态:Active diff --git a/docs/architecture/runtime-resume-phase0-crash-contract.md b/docs/architecture/runtime-resume-phase0-crash-contract.md index 7b2af9169b..c0aac91728 100644 --- a/docs/architecture/runtime-resume-phase0-crash-contract.md +++ b/docs/architecture/runtime-resume-phase0-crash-contract.md @@ -1,3 +1,22 @@ + + # Runtime Resume Phase 0 Crash Contract Phase 0 defines replay safety for a fully committed `RuntimeEvent` prefix. It diff --git a/docs/architecture/runtime-resume-phase1-safe-boundary-contract.md b/docs/architecture/runtime-resume-phase1-safe-boundary-contract.md index 15a6163714..27f905e131 100644 --- a/docs/architecture/runtime-resume-phase1-safe-boundary-contract.md +++ b/docs/architecture/runtime-resume-phase1-safe-boundary-contract.md @@ -1,3 +1,22 @@ + + # Runtime Resume Phase 1 Safe-Boundary Contract Phase 1 adds an explicit, fail-closed continuation path on top of the Phase 0 diff --git a/docs/architecture/runtime-resume-phase3-phase4-workspace-checkpoint-design.zh-CN.md b/docs/architecture/runtime-resume-phase3-phase4-workspace-checkpoint-design.zh-CN.md index 1201c7d9ad..0defae5f6b 100644 --- a/docs/architecture/runtime-resume-phase3-phase4-workspace-checkpoint-design.zh-CN.md +++ b/docs/architecture/runtime-resume-phase3-phase4-workspace-checkpoint-design.zh-CN.md @@ -1,3 +1,22 @@ + + # Runtime Resume Phase 3–4 实施路线 > 路线更新(2026-08-02):workspace 主线已从“通用 checkpoint 抽象优先”切换为 diff --git a/docs/architecture/runtime-workspace-version-authority-v1.zh-CN.md b/docs/architecture/runtime-workspace-version-authority-v1.zh-CN.md index 63c9399c46..c12f27e688 100644 --- a/docs/architecture/runtime-workspace-version-authority-v1.zh-CN.md +++ b/docs/architecture/runtime-workspace-version-authority-v1.zh-CN.md @@ -1,3 +1,22 @@ + + # Workspace Version Authority v1:Baseline 事实权威 - 状态:authority foundation 已由 M0 Baseline Open Bundle 接入;仍待前置 PR 合并后从最新 `main` diff --git a/docs/architecture/scheduled-task-unified.md b/docs/architecture/scheduled-task-unified.md index 6a75394a21..c81d158694 100644 --- a/docs/architecture/scheduled-task-unified.md +++ b/docs/architecture/scheduled-task-unified.md @@ -1,3 +1,22 @@ + + # ScheduledTask — unified 定时任务 ## Problem diff --git a/docs/architecture/windows-sandbox-rfc-v1.md b/docs/architecture/windows-sandbox-rfc-v1.md index 9b30eae5e0..62fda5d35a 100644 --- a/docs/architecture/windows-sandbox-rfc-v1.md +++ b/docs/architecture/windows-sandbox-rfc-v1.md @@ -1,3 +1,22 @@ + + # Windows sandbox backend RFC v1 - Status: implementation baseline selected; first preview slice ([#2961](https://github.com/maka-agent/maka-agent/pull/2961)) merged 2026-08-17; product integration continuing under release validation (preview scope in §6.5) diff --git a/docs/architecture/windows-sandbox-rfc-v1.zh-CN.md b/docs/architecture/windows-sandbox-rfc-v1.zh-CN.md index e9a6b8601a..830108c8da 100644 --- a/docs/architecture/windows-sandbox-rfc-v1.zh-CN.md +++ b/docs/architecture/windows-sandbox-rfc-v1.zh-CN.md @@ -1,3 +1,22 @@ + + # Windows 沙箱后端 RFC v1 - 状态:实现基线已选定;首个预览切片([#2961](https://github.com/maka-agent/maka-agent/pull/2961))已于 2026-08-17 合并;产品接入继续做发布验证(预览范围见 §6.5) diff --git a/docs/archive/2026-06-24-runtime-ledger-backfill.md b/docs/archive/2026-06-24-runtime-ledger-backfill.md index 2e9065ad3a..2ad4f4c305 100644 --- a/docs/archive/2026-06-24-runtime-ledger-backfill.md +++ b/docs/archive/2026-06-24-runtime-ledger-backfill.md @@ -1,3 +1,22 @@ + + # Runtime Ledger Backfill Implementation Plan > Archived: the implementation landed in PR #188. This plan is retained only as historical execution context. diff --git a/docs/archive/README.md b/docs/archive/README.md index 2e8adc7f05..6e45a9dc5d 100644 --- a/docs/archive/README.md +++ b/docs/archive/README.md @@ -1,3 +1,22 @@ + + # Documentation archive Files here are retained for historical context. They are not current contracts, roadmaps, or implementation instructions. diff --git a/docs/archive/composer-mentions-spec-2026-07-14.md b/docs/archive/composer-mentions-spec-2026-07-14.md index fb8354d373..2ac9762228 100644 --- a/docs/archive/composer-mentions-spec-2026-07-14.md +++ b/docs/archive/composer-mentions-spec-2026-07-14.md @@ -1,3 +1,22 @@ + + # Composer mention popups (`@` file / `/` skill) — v1 spec Date: 2026-07-14 diff --git a/docs/archive/computer-use-delivery-state.md b/docs/archive/computer-use-delivery-state.md index 17069b7e6d..15bed657cb 100644 --- a/docs/archive/computer-use-delivery-state.md +++ b/docs/archive/computer-use-delivery-state.md @@ -1,3 +1,22 @@ + + # Computer Use Delivery State This follow-up preserves delivery uncertainty after a native or Electron action diff --git a/docs/archive/computer-use-evidence-hardening.md b/docs/archive/computer-use-evidence-hardening.md index 3196881b11..cd9d411288 100644 --- a/docs/archive/computer-use-evidence-hardening.md +++ b/docs/archive/computer-use-evidence-hardening.md @@ -1,3 +1,22 @@ + + # Computer Use Evidence Hardening This follow-up makes real-model reports fail closed as evidence. diff --git a/docs/archive/computer-use-executor-hardening.md b/docs/archive/computer-use-executor-hardening.md index ec0eb8e419..fa712adb24 100644 --- a/docs/archive/computer-use-executor-hardening.md +++ b/docs/archive/computer-use-executor-hardening.md @@ -1,3 +1,22 @@ + + # Computer Use Executor Hardening This note records the post-merge review of PR #893 against the current diff --git a/docs/archive/computer-use-physical-input-guard.md b/docs/archive/computer-use-physical-input-guard.md index f4b2532d83..a49a0f474a 100644 --- a/docs/archive/computer-use-physical-input-guard.md +++ b/docs/archive/computer-use-physical-input-guard.md @@ -1,3 +1,22 @@ + + # Computer Use Physical-Input Guard ## Reported Symptom diff --git a/docs/archive/computer-use-process-restart-e2e.md b/docs/archive/computer-use-process-restart-e2e.md index e7298205d8..e7caf6ce24 100644 --- a/docs/archive/computer-use-process-restart-e2e.md +++ b/docs/archive/computer-use-process-restart-e2e.md @@ -1,3 +1,22 @@ + + # Computer Use Process-Restart E2E ## Goal diff --git a/docs/archive/computer-use-real-ax-model-e2e.md b/docs/archive/computer-use-real-ax-model-e2e.md index 5a4398fde1..14cac3f7a9 100644 --- a/docs/archive/computer-use-real-ax-model-e2e.md +++ b/docs/archive/computer-use-real-ax-model-e2e.md @@ -1,3 +1,22 @@ + + # Real Model To AppKit AX E2E ## Scope diff --git a/docs/archive/computer-use-runtime-hardening.md b/docs/archive/computer-use-runtime-hardening.md index 393a99181e..7ef71fb8a5 100644 --- a/docs/archive/computer-use-runtime-hardening.md +++ b/docs/archive/computer-use-runtime-hardening.md @@ -1,3 +1,22 @@ + + # Computer Use Runtime Hardening This follow-up addresses lifecycle gaps found during review of PR #892. diff --git a/docs/archive/deepseek-reasonix-cost-runtime-design.md b/docs/archive/deepseek-reasonix-cost-runtime-design.md index c1e35f59ff..2b3b9e0386 100644 --- a/docs/archive/deepseek-reasonix-cost-runtime-design.md +++ b/docs/archive/deepseek-reasonix-cost-runtime-design.md @@ -9,6 +9,24 @@ derived_from: - "Maka Runtime 主线教学手册 v2" - "Maka DeepSeek-Reasonix 成本运行线初学者教纲 v3" --- + > Archived on 2026-07-13. This is an implementation-slice and open-question chronicle, not current runtime authority. Current cost, request-shape, replay, and compaction mechanisms live in the backend architecture chapters and source. diff --git a/docs/archive/design-refinement-roadmap-2026-07.md b/docs/archive/design-refinement-roadmap-2026-07.md index 00d6abbd36..7c2be7d686 100644 --- a/docs/archive/design-refinement-roadmap-2026-07.md +++ b/docs/archive/design-refinement-roadmap-2026-07.md @@ -1,3 +1,22 @@ + + # Maka 质感提升路线图(2026-07) > Archived on 2026-07-13. Completed decisions remain visible for provenance; unfinished queues must be tracked in GitHub issues rather than treated as a current documentation backlog. diff --git a/docs/archive/design-system-v0.2-wave-10.md b/docs/archive/design-system-v0.2-wave-10.md index a37ac012e2..f1f06d45fe 100644 --- a/docs/archive/design-system-v0.2-wave-10.md +++ b/docs/archive/design-system-v0.2-wave-10.md @@ -1,3 +1,22 @@ + + # Maka 设计系统契约 · design-system.md > Archived on 2026-07-13. This wave document mixes historical implementation plans and snapshots with design rules; use the local frontend READMEs, source, and contract tests for current guidance. diff --git a/docs/archive/desktop-smoke-plan-legacy.md b/docs/archive/desktop-smoke-plan-legacy.md index 5aaa5f2608..146cab66dd 100644 --- a/docs/archive/desktop-smoke-plan-legacy.md +++ b/docs/archive/desktop-smoke-plan-legacy.md @@ -1,3 +1,22 @@ + + # Maka desktop smoke test plan > Archived on 2026-07-13. This snapshot mixes completed PR acceptance paths and deferred designs. The current runbook is `apps/desktop/tests/smoke.md`; scripts, fixtures, and tests own scenario details. diff --git a/docs/archive/economic-mechanisms-benchmark.md b/docs/archive/economic-mechanisms-benchmark.md index 0f2939e341..c66b292f74 100644 --- a/docs/archive/economic-mechanisms-benchmark.md +++ b/docs/archive/economic-mechanisms-benchmark.md @@ -1,3 +1,22 @@ + + # Economic mechanisms benchmark — synthesis cache Tracking issue: [#481](https://github.com/maka-agent/maka-agent/issues/481) · diff --git a/docs/archive/expert-team-implementation.md b/docs/archive/expert-team-implementation.md index 00f6687424..00f993adda 100644 --- a/docs/archive/expert-team-implementation.md +++ b/docs/archive/expert-team-implementation.md @@ -1,3 +1,22 @@ + + # 专家团实现详情 — WorkBuddy & QoderWork 逆向(实现级) > 本文是"专家团/数字同事"两款竞品的**完整实现拆解**,用于指导 maka-agent 的实现。 diff --git a/docs/archive/expert-team-plan.md b/docs/archive/expert-team-plan.md index 764eb478ac..afb683f1b5 100644 --- a/docs/archive/expert-team-plan.md +++ b/docs/archive/expert-team-plan.md @@ -1,3 +1,22 @@ + + # 专家团 (Expert Team) — 调研与实现方案 > 目标:在 maka-agent 中实现"专家团 / 数字同事"功能。 diff --git a/docs/archive/frontend-simplification-map-2026-07-13.md b/docs/archive/frontend-simplification-map-2026-07-13.md index 1c56bcf474..a8c260cf83 100644 --- a/docs/archive/frontend-simplification-map-2026-07-13.md +++ b/docs/archive/frontend-simplification-map-2026-07-13.md @@ -1,3 +1,22 @@ + + # Frontend Simplification Map (2026-07-13) Maintainer goal: the project has run long; prune redundant/messy frontend code at diff --git a/docs/archive/full-product-test-plan-2026-05.md b/docs/archive/full-product-test-plan-2026-05.md index 99491f038a..b8a24e8c24 100644 --- a/docs/archive/full-product-test-plan-2026-05.md +++ b/docs/archive/full-product-test-plan-2026-05.md @@ -1,3 +1,22 @@ + + # Maka full product completion and test plan > Archived on 2026-07-13. This one-month delivery plan is retained as historical context; current work and progress belong in GitHub issues and pull requests. diff --git a/docs/archive/heavy-task-mainline-system-design.md b/docs/archive/heavy-task-mainline-system-design.md index bec093541a..3e1083e922 100644 --- a/docs/archive/heavy-task-mainline-system-design.md +++ b/docs/archive/heavy-task-mainline-system-design.md @@ -13,6 +13,24 @@ derived_from: - "discarded P1-b/P1-c/P1-d branch reader" - "Terminal-Bench trace behavior reader" --- + > Archived on 2026-07-13. This is a PR, trace, and rollout chronicle, not current policy authority. The Headless heavy-task mechanism it describes was retired by #2598. diff --git a/docs/archive/maka-bug-flow-audit-2026-05-22.md b/docs/archive/maka-bug-flow-audit-2026-05-22.md index 84f33e8a1c..7ef1f98f66 100644 --- a/docs/archive/maka-bug-flow-audit-2026-05-22.md +++ b/docs/archive/maka-bug-flow-audit-2026-05-22.md @@ -1,3 +1,22 @@ + + # Maka Code Bug / Flow Audit - 2026-05-22 > Archived on 2026-07-13. This is a point-in-time audit, not current implementation guidance. diff --git a/docs/archive/maka-capability-audit-v1-2026-05.md b/docs/archive/maka-capability-audit-v1-2026-05.md index 46bfa1e053..f423a0b7a9 100644 --- a/docs/archive/maka-capability-audit-v1-2026-05.md +++ b/docs/archive/maka-capability-audit-v1-2026-05.md @@ -1,3 +1,22 @@ + + # Maka 能力成熟度审计 v1 > Archived on 2026-07-13. This is a point-in-time audit against a May 2026 code baseline; its progress and frontend-document references are not current guidance. diff --git a/docs/archive/maka-core-tech-walkthrough.md b/docs/archive/maka-core-tech-walkthrough.md index 954006c5b2..ddf2b9f6aa 100644 --- a/docs/archive/maka-core-tech-walkthrough.md +++ b/docs/archive/maka-core-tech-walkthrough.md @@ -1,3 +1,22 @@ + + # Maka 核心技术解读 > Archived on 2026-07-13. Current backend guidance lives in `ARCHITECTURE.md`, its architecture chapters, source, and tests. diff --git a/docs/archive/maka-memory-whitebox-contract.md b/docs/archive/maka-memory-whitebox-contract.md index 10c54ec585..871ce89729 100644 --- a/docs/archive/maka-memory-whitebox-contract.md +++ b/docs/archive/maka-memory-whitebox-contract.md @@ -1,3 +1,22 @@ + + # Maka memory — white-box contract anchor (2026-05-29) > Archived on 2026-07-13. This snapshot no longer owns the current memory contract. diff --git a/docs/archive/memory-threat-model-pr-memory-1.md b/docs/archive/memory-threat-model-pr-memory-1.md index eedcff7363..7f4507d179 100644 --- a/docs/archive/memory-threat-model-pr-memory-1.md +++ b/docs/archive/memory-threat-model-pr-memory-1.md @@ -1,3 +1,22 @@ + + # Memory Subsystem Threat Model > Archived on 2026-07-13. This document records the contract-only PR-MEMORY-1 boundary, not the current product implementation. Source and focused tests own the active contract. diff --git a/docs/archive/pr-oauth-subscription-0-gate.md b/docs/archive/pr-oauth-subscription-0-gate.md index 978b0b6bb0..3e18d9efb3 100644 --- a/docs/archive/pr-oauth-subscription-0-gate.md +++ b/docs/archive/pr-oauth-subscription-0-gate.md @@ -1,3 +1,22 @@ + + # PR-OAUTH-SUBSCRIPTION-0 Gate > Archived on 2026-07-13. The gate predates the current subscription send path; source, tests, and `SECURITY.md` own current behavior. diff --git a/docs/archive/qoderwork-mcp-reverse-engineering-2026-07-18.md b/docs/archive/qoderwork-mcp-reverse-engineering-2026-07-18.md index a66cc16c13..45c0f70953 100644 --- a/docs/archive/qoderwork-mcp-reverse-engineering-2026-07-18.md +++ b/docs/archive/qoderwork-mcp-reverse-engineering-2026-07-18.md @@ -1,3 +1,22 @@ + + # QoderWork MCP 专项逆向与 Maka 演进方案 > 日期:2026-07-18 diff --git a/docs/archive/reference-atlas.md b/docs/archive/reference-atlas.md index 534b03c131..28b47b908b 100644 --- a/docs/archive/reference-atlas.md +++ b/docs/archive/reference-atlas.md @@ -1,3 +1,22 @@ + + # Reference Layout — UI Atlas > Archived on 2026-07-13. This reverse-engineering snapshot is provenance, not current product design authority. diff --git a/docs/archive/reference-settings.md b/docs/archive/reference-settings.md index fe8412c26a..ec2e301094 100644 --- a/docs/archive/reference-settings.md +++ b/docs/archive/reference-settings.md @@ -1,3 +1,22 @@ + + # Reference Settings — full reverse-engineer (2026-06-23) > Archived on 2026-07-13. This reverse-engineering snapshot is provenance, not the current Settings contract. diff --git a/docs/archive/runtime-kernel.md b/docs/archive/runtime-kernel.md index 22550a7928..a1db3e9513 100644 --- a/docs/archive/runtime-kernel.md +++ b/docs/archive/runtime-kernel.md @@ -1,3 +1,22 @@ + + # Runtime Kernel Extraction > Archived on 2026-07-13. This is a point-in-time extraction record, not current architecture authority. Start with `ARCHITECTURE.md`. diff --git a/docs/archive/runtime-mainline-teaching-manual.md b/docs/archive/runtime-mainline-teaching-manual.md index 9fc4008993..7851ba5d22 100644 --- a/docs/archive/runtime-mainline-teaching-manual.md +++ b/docs/archive/runtime-mainline-teaching-manual.md @@ -16,6 +16,24 @@ primary_spine: - ModelAdapter - ToolRuntime --- + > Archived on 2026-07-13. The Runtime discussion is historical; the Headless architecture it describes was retired by #2598. Start with `ARCHITECTURE.md`. diff --git a/docs/archive/runtime-v2-architecture-evolution.md b/docs/archive/runtime-v2-architecture-evolution.md index 15ad71866d..b87ca6c3e1 100644 --- a/docs/archive/runtime-v2-architecture-evolution.md +++ b/docs/archive/runtime-v2-architecture-evolution.md @@ -1,3 +1,22 @@ + + # Runtime v2 Architecture Evolution > Archived on 2026-07-13. This proposal records the route to the current runtime; it is not current architecture authority. Start with `ARCHITECTURE.md`. diff --git a/docs/archive/runtime-v2-implementation-notes.md b/docs/archive/runtime-v2-implementation-notes.md index e1d6e605eb..d2ebdcc734 100644 --- a/docs/archive/runtime-v2-implementation-notes.md +++ b/docs/archive/runtime-v2-implementation-notes.md @@ -1,3 +1,22 @@ + + # Runtime v2 implementation notes > Archived on 2026-07-13. These notes describe the initial Phase 1–4 skeleton; the backend architecture chapters and current source now describe the active runtime. diff --git a/docs/archive/search-service-threat-model-pr-search-0.md b/docs/archive/search-service-threat-model-pr-search-0.md index 392aced668..31f943f168 100644 --- a/docs/archive/search-service-threat-model-pr-search-0.md +++ b/docs/archive/search-service-threat-model-pr-search-0.md @@ -1,3 +1,22 @@ + + # Search Service Threat Model > Archived on 2026-07-13. This document records the PR-SEARCH-0/1.5 contract boundary, not the current search product implementation. Source and focused tests own the active contract. diff --git a/docs/archive/ui-convergence-map-2026-07-09.md b/docs/archive/ui-convergence-map-2026-07-09.md index fe72f9c6db..c182fa8925 100644 --- a/docs/archive/ui-convergence-map-2026-07-09.md +++ b/docs/archive/ui-convergence-map-2026-07-09.md @@ -1,3 +1,22 @@ + + # UI Convergence Map (2026-07-09) > Archived on 2026-07-13. The campaign is complete; current ownership lives in the frontend READMEs, source, and contract tests. diff --git a/docs/archive/ui-quality-plan-2026-05.md b/docs/archive/ui-quality-plan-2026-05.md index 480eeadc07..996fc852b9 100644 --- a/docs/archive/ui-quality-plan-2026-05.md +++ b/docs/archive/ui-quality-plan-2026-05.md @@ -1,3 +1,22 @@ + + # Maka UI Quality Plan (one-month delivery contract) > Archived on 2026-07-13. This month-one rollout plan and coverage snapshot are no longer current; use `docs/frontend-css-governance.md`, the local frontend READMEs, source, and contract tests. diff --git a/docs/archive/ui-skills-deep-read-2026-06-23.md b/docs/archive/ui-skills-deep-read-2026-06-23.md index f508b83851..23a2044562 100644 --- a/docs/archive/ui-skills-deep-read-2026-06-23.md +++ b/docs/archive/ui-skills-deep-read-2026-06-23.md @@ -1,3 +1,22 @@ + + # UI Skills Deep Read — 2026-06-23 (yuejing) > Archived on 2026-07-13. This research snapshot is not current product design authority. diff --git a/docs/archive/ui-skills-deep-read-2026-06-24.md b/docs/archive/ui-skills-deep-read-2026-06-24.md index 1f6de8fca5..b68e463fb3 100644 --- a/docs/archive/ui-skills-deep-read-2026-06-24.md +++ b/docs/archive/ui-skills-deep-read-2026-06-24.md @@ -1,3 +1,22 @@ + + # UI Skills Deep Read — 2026-06-24 (yuejing, round 2) > Archived on 2026-07-13. This research snapshot is not current product design authority. diff --git a/docs/astryx-alignment-inventory.md b/docs/astryx-alignment-inventory.md index 7a89812b6d..6b291758ab 100644 --- a/docs/astryx-alignment-inventory.md +++ b/docs/astryx-alignment-inventory.md @@ -1,3 +1,22 @@ + + > **Superseded for file-level coverage:** see [astryx-surface-file-inventory.md](./astryx-surface-file-inventory.md) (one row per product surface file). This document remains the family-level wiki map and fix log from the first alignment pass. # Astryx alignment inventory diff --git a/docs/astryx-full-surface-audit.md b/docs/astryx-full-surface-audit.md index 95a02b5e43..ee1d9f7613 100644 --- a/docs/astryx-full-surface-audit.md +++ b/docs/astryx-full-surface-audit.md @@ -1,3 +1,22 @@ + + # Astryx full surface audit Date: 2026-08-09 diff --git a/docs/cli-distribution.md b/docs/cli-distribution.md index 2030ed52ea..8207d0aabf 100644 --- a/docs/cli-distribution.md +++ b/docs/cli-distribution.md @@ -1,3 +1,22 @@ + + # CLI/TUI distribution contract Maka ships its CLI/TUI as a required artifact of the same product release as Desktop. Phase 1 diff --git a/docs/cli-npm-release.md b/docs/cli-npm-release.md index bb717f4a2a..99578b8404 100644 --- a/docs/cli-npm-release.md +++ b/docs/cli-npm-release.md @@ -1,3 +1,22 @@ + + # Maka CLI npm release operations [简体中文](./cli-npm-release.zh-CN.md) diff --git a/docs/cli-npm-release.zh-CN.md b/docs/cli-npm-release.zh-CN.md index 70be105184..8b3fae6264 100644 --- a/docs/cli-npm-release.zh-CN.md +++ b/docs/cli-npm-release.zh-CN.md @@ -1,3 +1,22 @@ + + # Maka CLI npm 发布操作手册 [English](./cli-npm-release.md) diff --git a/docs/code-origin-audit.md b/docs/code-origin-audit.md index 60c04a1566..5ca132b9c6 100644 --- a/docs/code-origin-audit.md +++ b/docs/code-origin-audit.md @@ -1,3 +1,22 @@ + + # Code origin audit **Historical scan baseline:** `1518442865763d603571f5d77c13ffc3b0c96125` (2026-08-11) diff --git a/docs/codex-pip-reverse-engineering.md b/docs/codex-pip-reverse-engineering.md index ea93c48f67..258d022120 100644 --- a/docs/codex-pip-reverse-engineering.md +++ b/docs/codex-pip-reverse-engineering.md @@ -1,3 +1,22 @@ + + # Codex picture-in-picture reverse engineering What Maka's Computer Use mirror copies from Codex, where each fact came from, diff --git a/docs/computer-use-cursor-provenance.md b/docs/computer-use-cursor-provenance.md index 2b004c818c..e0162c9385 100644 --- a/docs/computer-use-cursor-provenance.md +++ b/docs/computer-use-cursor-provenance.md @@ -1,3 +1,22 @@ + + # Computer Use cursor provenance and compatibility evidence This document records the exact source boundary for Maka's agent-cursor overlay diff --git a/docs/computer-use-evidence-classes.md b/docs/computer-use-evidence-classes.md index a32ad4fd36..8f2a49ed8a 100644 --- a/docs/computer-use-evidence-classes.md +++ b/docs/computer-use-evidence-classes.md @@ -1,3 +1,22 @@ + + # Computer Use Evidence Classes Computer Use reports use one of four evidence classes. The class is part of diff --git a/docs/computer-use-foundation-contract.md b/docs/computer-use-foundation-contract.md index 2447dd5a1d..7082ca4d01 100644 --- a/docs/computer-use-foundation-contract.md +++ b/docs/computer-use-foundation-contract.md @@ -1,3 +1,22 @@ + + # Maka Computer Use Foundation Contract 状态:Accepted diff --git a/docs/computer-use-host-events-contract.md b/docs/computer-use-host-events-contract.md index 9b2027e045..3b85945142 100644 --- a/docs/computer-use-host-events-contract.md +++ b/docs/computer-use-host-events-contract.md @@ -1,3 +1,22 @@ + + # Computer Use Host Events Contract This layer connects only events with a typed, attributable source. diff --git a/docs/computer-use-model-loop-foundation.md b/docs/computer-use-model-loop-foundation.md index f99a8c3263..11d764b5b9 100644 --- a/docs/computer-use-model-loop-foundation.md +++ b/docs/computer-use-model-loop-foundation.md @@ -1,3 +1,22 @@ + + # Computer Use Model-Loop Foundation ## Product Boundary diff --git a/docs/computer-use-provenance.md b/docs/computer-use-provenance.md index d2c5c7a228..50e0d02b8f 100644 --- a/docs/computer-use-provenance.md +++ b/docs/computer-use-provenance.md @@ -1,3 +1,22 @@ + + # Computer Use provenance Maka's Computer Use surface was built against other people's work in three diff --git a/docs/computer-use-provider-evidence.md b/docs/computer-use-provider-evidence.md index ef96dee854..0edfca0c00 100644 --- a/docs/computer-use-provider-evidence.md +++ b/docs/computer-use-provider-evidence.md @@ -1,3 +1,22 @@ + + # Computer Use Provider Evidence This layer defines the evidence contract for real-model Computer Use runs. It diff --git a/docs/computer-use-ui-coverage.md b/docs/computer-use-ui-coverage.md index 38b2e3cf15..b9d1c3fc54 100644 --- a/docs/computer-use-ui-coverage.md +++ b/docs/computer-use-ui-coverage.md @@ -1,3 +1,22 @@ + + # Computer Use Semantic UI Coverage Status: maintained source and runtime inventory for Maka Desktop's diff --git a/docs/deep-research-durable-workspace.md b/docs/deep-research-durable-workspace.md index ae6b356991..d3c81d52b2 100644 --- a/docs/deep-research-durable-workspace.md +++ b/docs/deep-research-durable-workspace.md @@ -1,3 +1,22 @@ + + # Deep Research durable workspace This contract is an independent, minimal reproduction of the central systems diff --git a/docs/eval/terminal-bench-2.1-deepseek-v4-flash-four-arm.md b/docs/eval/terminal-bench-2.1-deepseek-v4-flash-four-arm.md index 8b9c8ca4d9..fde395ee41 100644 --- a/docs/eval/terminal-bench-2.1-deepseek-v4-flash-four-arm.md +++ b/docs/eval/terminal-bench-2.1-deepseek-v4-flash-four-arm.md @@ -1,3 +1,22 @@ + + # Terminal-Bench 2.1 — DeepSeek V4 Flash: Maka vs Codex vs Claude Code vs Reasonix This report compares four agent harnesses around the same DeepSeek V4 Flash model on all 89 Terminal-Bench 2.1 tasks. Every arm ran inside the task container under the same executor, the same task-native deadline policy, and the same package mirror, so the only variable that moves between arms is the harness itself. diff --git a/docs/eval/terminal-bench-2.1-deepseek-v4-flash-maka-vs-opencode.md b/docs/eval/terminal-bench-2.1-deepseek-v4-flash-maka-vs-opencode.md index 1027da1796..55767191fe 100644 --- a/docs/eval/terminal-bench-2.1-deepseek-v4-flash-maka-vs-opencode.md +++ b/docs/eval/terminal-bench-2.1-deepseek-v4-flash-maka-vs-opencode.md @@ -1,3 +1,22 @@ + + # Terminal-Bench 2.1 — DeepSeek V4 Flash: Maka vs OpenCode This report compares Maka and OpenCode as two agent harnesses around the same DeepSeek V4 Flash model on all 89 Terminal-Bench 2.1 tasks. It records the frozen experiment, accepted outcomes, paired inference, outcome-normalized economics, and the recovery decisions required to produce a fully scored dataset. diff --git a/docs/eval/terminal-bench-2.1-maka-vs-kimi-code-v11.md b/docs/eval/terminal-bench-2.1-maka-vs-kimi-code-v11.md index f66e30ec8d..06736fb4fc 100644 --- a/docs/eval/terminal-bench-2.1-maka-vs-kimi-code-v11.md +++ b/docs/eval/terminal-bench-2.1-maka-vs-kimi-code-v11.md @@ -1,3 +1,22 @@ + + # Terminal-Bench 2.1 — Maka vs Kimi Code (v11) Paired harness A/B on Terminal-Bench 2.1 with the same model on both arms. This document records the v11 full run: the accepted outcomes and how they were selected, why both absolute scores are a throughput-depressed lower bound, and what explains the relative gap. diff --git a/docs/frontend-architecture-astryx-review-2026-08-09.md b/docs/frontend-architecture-astryx-review-2026-08-09.md index 60e73eaf7f..093b60ec33 100644 --- a/docs/frontend-architecture-astryx-review-2026-08-09.md +++ b/docs/frontend-architecture-astryx-review-2026-08-09.md @@ -1,3 +1,22 @@ + + # Frontend architecture & Astryx coverage review **Date:** 2026-08-09 (UTC) diff --git a/docs/frontend-css-governance.md b/docs/frontend-css-governance.md index 3b6de2de35..a89513f204 100644 --- a/docs/frontend-css-governance.md +++ b/docs/frontend-css-governance.md @@ -1,3 +1,22 @@ + + # Frontend CSS governance [中文](./frontend-css-governance.zh-CN.md) diff --git a/docs/frontend-css-governance.zh-CN.md b/docs/frontend-css-governance.zh-CN.md index 88306f10d0..cbf34b11bb 100644 --- a/docs/frontend-css-governance.zh-CN.md +++ b/docs/frontend-css-governance.zh-CN.md @@ -1,3 +1,22 @@ + + # 前端 CSS 治理规范 [English](./frontend-css-governance.md) diff --git a/docs/model-metadata-firstscreen-optimization.md b/docs/model-metadata-firstscreen-optimization.md index 9043ae02c2..1f928421b5 100644 --- a/docs/model-metadata-firstscreen-optimization.md +++ b/docs/model-metadata-firstscreen-optimization.md @@ -1,3 +1,22 @@ + + # perf(desktop): remove models.dev metadata from the renderer startup path
diff --git a/docs/permission-onboarding-plan.md b/docs/permission-onboarding-plan.md index cc3e745b3d..b0574e90ec 100644 --- a/docs/permission-onboarding-plan.md +++ b/docs/permission-onboarding-plan.md @@ -1,3 +1,22 @@ + + # Drag-to-grant permission onboarding (macOS) Status: **Stage 1 built** (`apps/desktop/src/main/permission-overlay/`, diff --git a/docs/runtime-host-remote-access.md b/docs/runtime-host-remote-access.md index d1f48baaa9..b3962bebdd 100644 --- a/docs/runtime-host-remote-access.md +++ b/docs/runtime-host-remote-access.md @@ -1,3 +1,22 @@ + + # Connect to a remote Runtime Host [简体中文](./runtime-host-remote-access.zh-CN.md) diff --git a/docs/runtime-host-remote-access.zh-CN.md b/docs/runtime-host-remote-access.zh-CN.md index 626960f0a7..ffe2461ea3 100644 --- a/docs/runtime-host-remote-access.zh-CN.md +++ b/docs/runtime-host-remote-access.zh-CN.md @@ -1,3 +1,22 @@ + + # 连接远程 Runtime Host [English](./runtime-host-remote-access.md) diff --git a/docs/session-task-ledger-lifecycle.md b/docs/session-task-ledger-lifecycle.md index 2fa183cb26..3678e7f854 100644 --- a/docs/session-task-ledger-lifecycle.md +++ b/docs/session-task-ledger-lifecycle.md @@ -1,3 +1,22 @@ + + # Session Task Ledger Lifecycle This document defines the lifecycle and persistence contract for the task ledger diff --git a/docs/settings-astryx-deep-review.zh-CN.md b/docs/settings-astryx-deep-review.zh-CN.md index ec6abd0b26..63e152b75d 100644 --- a/docs/settings-astryx-deep-review.zh-CN.md +++ b/docs/settings-astryx-deep-review.zh-CN.md @@ -1,3 +1,22 @@ + + # Maka 设置页深度 Review——以 Astryx 设计语言为基准 > 2026-08-03,基于 `settings/astryx-refactor` 分支(已 rebase 到最新 main)。 diff --git a/docs/side-conversation.md b/docs/side-conversation.md index d3e44209a5..e3393a2fbb 100644 --- a/docs/side-conversation.md +++ b/docs/side-conversation.md @@ -1,3 +1,22 @@ + + # Side Conversation ## Current Product Behavior diff --git a/docs/skill-catalog-policy.md b/docs/skill-catalog-policy.md index 85c801b0af..c312f64c1e 100644 --- a/docs/skill-catalog-policy.md +++ b/docs/skill-catalog-policy.md @@ -1,3 +1,22 @@ + + # Skill catalog policy Maka keeps skill bodies out of the always-on system prompt. The prompt contains diff --git a/docs/web-search-provider-capability.md b/docs/web-search-provider-capability.md index 382e305b4b..7d8c68cf5a 100644 --- a/docs/web-search-provider-capability.md +++ b/docs/web-search-provider-capability.md @@ -1,3 +1,22 @@ + + # Provider-hosted web search capability Status: implemented for OpenAI Responses and Anthropic Messages diff --git a/docs/windows-support.md b/docs/windows-support.md index 557a066681..ec76288f9f 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -1,3 +1,22 @@ + + # Windows support baseline Windows is an active enablement target, not a fully supported Maka platform yet. The CLI and Electron desktop application can run from source, and release workflows produce a verified unsigned Windows x64 preview. The x64 package includes an AppContainer sandbox for restricted managed execution, and automatic updates are verified end to end in CI on the unsigned preview channel; signing, the complete adversarial sandbox matrix, and computer-use guarantees remain incomplete. Progress is tracked in [GitHub issue #2142](https://github.com/maka-agent/maka-agent/issues/2142). diff --git a/docs/work-board-contract.md b/docs/work-board-contract.md index 5958010aa5..51e1ab736b 100644 --- a/docs/work-board-contract.md +++ b/docs/work-board-contract.md @@ -1,3 +1,22 @@ + + # Work Board Phase 0 Contract Status: Phase 0. Scope: `packages/core` (contract) + `packages/storage` (store and migration). diff --git a/docs/workspace-privacy-context.md b/docs/workspace-privacy-context.md index 8473037878..1d75db64d3 100644 --- a/docs/workspace-privacy-context.md +++ b/docs/workspace-privacy-context.md @@ -1,3 +1,22 @@ + + # Workspace privacy context `WorkspacePrivacyContext` is the shared contract for privacy-sensitive operations. Its current shape is deliberately small: diff --git a/experiments/windows-sandbox/README.md b/experiments/windows-sandbox/README.md index d7ef2c6124..c7c02736cb 100644 --- a/experiments/windows-sandbox/README.md +++ b/experiments/windows-sandbox/README.md @@ -1,3 +1,22 @@ + + # Windows sandbox native evidence This directory contains the native Rust broker/launcher and Windows evidence diff --git a/experiments/windows-sandbox/acl-recovery-smoke.ps1 b/experiments/windows-sandbox/acl-recovery-smoke.ps1 index e3bfe1cd50..762a3454a2 100644 --- a/experiments/windows-sandbox/acl-recovery-smoke.ps1 +++ b/experiments/windows-sandbox/acl-recovery-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + param( [string]$LauncherPath ) diff --git a/experiments/windows-sandbox/appcontainer-smoke.ps1 b/experiments/windows-sandbox/appcontainer-smoke.ps1 index e06c98f880..26f7e5d1b0 100644 --- a/experiments/windows-sandbox/appcontainer-smoke.ps1 +++ b/experiments/windows-sandbox/appcontainer-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + param( [string]$LauncherPath ) diff --git a/experiments/windows-sandbox/atomic-launch-capability.ps1 b/experiments/windows-sandbox/atomic-launch-capability.ps1 index 5e996b2b1c..191425c942 100644 --- a/experiments/windows-sandbox/atomic-launch-capability.ps1 +++ b/experiments/windows-sandbox/atomic-launch-capability.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' $privileges = whoami.exe /priv 2>$null diff --git a/experiments/windows-sandbox/atomic-launch-smoke.ps1 b/experiments/windows-sandbox/atomic-launch-smoke.ps1 index 27a2512b55..6df2003717 100644 --- a/experiments/windows-sandbox/atomic-launch-smoke.ps1 +++ b/experiments/windows-sandbox/atomic-launch-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false diff --git a/experiments/windows-sandbox/broker-client-smoke.ps1 b/experiments/windows-sandbox/broker-client-smoke.ps1 index cdafd61a62..8033211ee7 100644 --- a/experiments/windows-sandbox/broker-client-smoke.ps1 +++ b/experiments/windows-sandbox/broker-client-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false diff --git a/experiments/windows-sandbox/broker-local-smoke.ps1 b/experiments/windows-sandbox/broker-local-smoke.ps1 index 2d6d9dde26..80150f4124 100644 --- a/experiments/windows-sandbox/broker-local-smoke.ps1 +++ b/experiments/windows-sandbox/broker-local-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $false diff --git a/experiments/windows-sandbox/broker-pipe-smoke.ps1 b/experiments/windows-sandbox/broker-pipe-smoke.ps1 index 7d9b603373..9b7b166b7e 100644 --- a/experiments/windows-sandbox/broker-pipe-smoke.ps1 +++ b/experiments/windows-sandbox/broker-pipe-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' function Read-Exact([IO.Stream]$Stream, [byte[]]$Buffer) { diff --git a/experiments/windows-sandbox/launcher-smoke.ps1 b/experiments/windows-sandbox/launcher-smoke.ps1 index 3f45e6dd80..437bf9023e 100644 --- a/experiments/windows-sandbox/launcher-smoke.ps1 +++ b/experiments/windows-sandbox/launcher-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' $launcherRoot = Join-Path $PSScriptRoot 'launcher' diff --git a/experiments/windows-sandbox/launcher/Cargo.toml b/experiments/windows-sandbox/launcher/Cargo.toml index 0a682ebc4a..4ec68f970a 100644 --- a/experiments/windows-sandbox/launcher/Cargo.toml +++ b/experiments/windows-sandbox/launcher/Cargo.toml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [package] name = "maka-windows-sandbox-spike" version = "0.0.0" diff --git a/experiments/windows-sandbox/launcher/src/acl_ledger.rs b/experiments/windows-sandbox/launcher/src/acl_ledger.rs index 5eacac7531..607ced68a7 100644 --- a/experiments/windows-sandbox/launcher/src/acl_ledger.rs +++ b/experiments/windows-sandbox/launcher/src/acl_ledger.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::ffi::OsStr; use std::fs::{self, OpenOptions}; use std::io::Write; diff --git a/experiments/windows-sandbox/launcher/src/acl_ledger_tests.rs b/experiments/windows-sandbox/launcher/src/acl_ledger_tests.rs index c91d522394..e03b99532a 100644 --- a/experiments/windows-sandbox/launcher/src/acl_ledger_tests.rs +++ b/experiments/windows-sandbox/launcher/src/acl_ledger_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use std::collections::BTreeMap; diff --git a/experiments/windows-sandbox/launcher/src/broker_authorization.rs b/experiments/windows-sandbox/launcher/src/broker_authorization.rs index 364fd66752..67e35397f0 100644 --- a/experiments/windows-sandbox/launcher/src/broker_authorization.rs +++ b/experiments/windows-sandbox/launcher/src/broker_authorization.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::collections::HashSet; use crate::protocol::{BrokerLaunchRequest, launch_digest}; diff --git a/experiments/windows-sandbox/launcher/src/broker_authorization_tests.rs b/experiments/windows-sandbox/launcher/src/broker_authorization_tests.rs index 5630769a3c..b7b40aca24 100644 --- a/experiments/windows-sandbox/launcher/src/broker_authorization_tests.rs +++ b/experiments/windows-sandbox/launcher/src/broker_authorization_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use crate::broker_authorization::{BrokerAuthorizationError, BrokerAuthorizer}; diff --git a/experiments/windows-sandbox/launcher/src/broker_client.rs b/experiments/windows-sandbox/launcher/src/broker_client.rs index 0de689cf45..ccc458a4d9 100644 --- a/experiments/windows-sandbox/launcher/src/broker_client.rs +++ b/experiments/windows-sandbox/launcher/src/broker_client.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::ffi::OsStr; use std::fs; use std::iter; diff --git a/experiments/windows-sandbox/launcher/src/broker_framing.rs b/experiments/windows-sandbox/launcher/src/broker_framing.rs index 7abb7bd618..16f43a5aba 100644 --- a/experiments/windows-sandbox/launcher/src/broker_framing.rs +++ b/experiments/windows-sandbox/launcher/src/broker_framing.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + pub const MAX_BROKER_MESSAGE_BYTES: usize = 64 * 1024; const LENGTH_PREFIX_BYTES: usize = size_of::(); diff --git a/experiments/windows-sandbox/launcher/src/broker_framing_tests.rs b/experiments/windows-sandbox/launcher/src/broker_framing_tests.rs index b11225cb12..8424e5e266 100644 --- a/experiments/windows-sandbox/launcher/src/broker_framing_tests.rs +++ b/experiments/windows-sandbox/launcher/src/broker_framing_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use crate::broker_framing::{ diff --git a/experiments/windows-sandbox/launcher/src/broker_pipe.rs b/experiments/windows-sandbox/launcher/src/broker_pipe.rs index d8928aa715..29e9379e4f 100644 --- a/experiments/windows-sandbox/launcher/src/broker_pipe.rs +++ b/experiments/windows-sandbox/launcher/src/broker_pipe.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::ffi::{OsStr, c_void}; use std::iter; use std::mem::{size_of, zeroed}; diff --git a/experiments/windows-sandbox/launcher/src/broker_pipe_security.rs b/experiments/windows-sandbox/launcher/src/broker_pipe_security.rs index f7709dcbbd..3089b2b5b4 100644 --- a/experiments/windows-sandbox/launcher/src/broker_pipe_security.rs +++ b/experiments/windows-sandbox/launcher/src/broker_pipe_security.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const PIPE_PREFIX: &str = r"\\.\pipe\maka-sandbox-"; pub fn validate_pipe_name(name: &str) -> Result<(), PipeSecurityError> { diff --git a/experiments/windows-sandbox/launcher/src/broker_pipe_security_tests.rs b/experiments/windows-sandbox/launcher/src/broker_pipe_security_tests.rs index 2579084618..ccc019849e 100644 --- a/experiments/windows-sandbox/launcher/src/broker_pipe_security_tests.rs +++ b/experiments/windows-sandbox/launcher/src/broker_pipe_security_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use crate::broker_pipe_security::{ diff --git a/experiments/windows-sandbox/launcher/src/broker_pipe_tests.rs b/experiments/windows-sandbox/launcher/src/broker_pipe_tests.rs index 4f0ae019e0..683f67915b 100644 --- a/experiments/windows-sandbox/launcher/src/broker_pipe_tests.rs +++ b/experiments/windows-sandbox/launcher/src/broker_pipe_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use std::ffi::OsStr; diff --git a/experiments/windows-sandbox/launcher/src/main.rs b/experiments/windows-sandbox/launcher/src/main.rs index fa78a00022..421dabcf98 100644 --- a/experiments/windows-sandbox/launcher/src/main.rs +++ b/experiments/windows-sandbox/launcher/src/main.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(not(windows))] compile_error!("maka-windows-sandbox is Windows-only"); diff --git a/experiments/windows-sandbox/launcher/src/protocol.rs b/experiments/windows-sandbox/launcher/src/protocol.rs index a1b4b7d21e..8372c739e4 100644 --- a/experiments/windows-sandbox/launcher/src/protocol.rs +++ b/experiments/windows-sandbox/launcher/src/protocol.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::collections::{BTreeMap, HashSet}; use std::path::{Component, Path}; diff --git a/experiments/windows-sandbox/launcher/src/protocol_tests.rs b/experiments/windows-sandbox/launcher/src/protocol_tests.rs index 29cdcffec8..b1964829ca 100644 --- a/experiments/windows-sandbox/launcher/src/protocol_tests.rs +++ b/experiments/windows-sandbox/launcher/src/protocol_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use super::super::protocol::{BrokerLaunchRequest, launch_digest}; diff --git a/experiments/windows-sandbox/launcher/src/windows_launcher.rs b/experiments/windows-sandbox/launcher/src/windows_launcher.rs index 99289251e5..7f12c350b4 100644 --- a/experiments/windows-sandbox/launcher/src/windows_launcher.rs +++ b/experiments/windows-sandbox/launcher/src/windows_launcher.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + use std::ffi::{OsStr, c_void}; use std::iter; use std::mem::{size_of, zeroed}; diff --git a/experiments/windows-sandbox/launcher/src/windows_launcher_desktop_tests.rs b/experiments/windows-sandbox/launcher/src/windows_launcher_desktop_tests.rs index be030db616..508396ee58 100644 --- a/experiments/windows-sandbox/launcher/src/windows_launcher_desktop_tests.rs +++ b/experiments/windows-sandbox/launcher/src/windows_launcher_desktop_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + //! Coverage for the private-desktop *placement* (RFC §6.3): the security //! descriptor handed to `CreateDesktopExW`, the child-side attestation that //! rejects everything but the launcher-owned desktop, and a real-OS check that diff --git a/experiments/windows-sandbox/launcher/src/windows_launcher_tests.rs b/experiments/windows-sandbox/launcher/src/windows_launcher_tests.rs index e5c12c0d0a..0416c6322c 100644 --- a/experiments/windows-sandbox/launcher/src/windows_launcher_tests.rs +++ b/experiments/windows-sandbox/launcher/src/windows_launcher_tests.rs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + #[cfg(test)] mod tests { use std::collections::BTreeMap; diff --git a/experiments/windows-sandbox/readiness-probe-smoke.ps1 b/experiments/windows-sandbox/readiness-probe-smoke.ps1 index acf833d658..c8c732cf0b 100644 --- a/experiments/windows-sandbox/readiness-probe-smoke.ps1 +++ b/experiments/windows-sandbox/readiness-probe-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + param( [string]$LauncherPath ) diff --git a/experiments/windows-sandbox/stdio-relay-smoke.ps1 b/experiments/windows-sandbox/stdio-relay-smoke.ps1 index 4c242f50ea..a121d5e3d4 100644 --- a/experiments/windows-sandbox/stdio-relay-smoke.ps1 +++ b/experiments/windows-sandbox/stdio-relay-smoke.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + param( [string]$LauncherPath ) diff --git a/packages/cli/README.md b/packages/cli/README.md index 3324653f99..94cf264e9a 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -1,3 +1,22 @@ + + # Maka CLI [简体中文](https://github.com/apache/maka/blob/main/packages/cli/README.zh-CN.md) diff --git a/packages/cli/README.zh-CN.md b/packages/cli/README.zh-CN.md index 07ec785a6e..2529743e70 100644 --- a/packages/cli/README.zh-CN.md +++ b/packages/cli/README.zh-CN.md @@ -1,3 +1,22 @@ + + # Maka CLI [English](./README.md) diff --git a/packages/cli/scripts/chmod-bin.mjs b/packages/cli/scripts/chmod-bin.mjs index cf4d29d30c..d0ea374693 100644 --- a/packages/cli/scripts/chmod-bin.mjs +++ b/packages/cli/scripts/chmod-bin.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { chmod } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/cli/src/__tests__/activation-command.test.ts b/packages/cli/src/__tests__/activation-command.test.ts index 49de968c37..6a6978daa8 100644 --- a/packages/cli/src/__tests__/activation-command.test.ts +++ b/packages/cli/src/__tests__/activation-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, mkdir, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/cli/src/__tests__/bounded-chunk-buffer.test.ts b/packages/cli/src/__tests__/bounded-chunk-buffer.test.ts index 74c6a4e342..d1e5342014 100644 --- a/packages/cli/src/__tests__/bounded-chunk-buffer.test.ts +++ b/packages/cli/src/__tests__/bounded-chunk-buffer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { BoundedChunkBuffer } from '../bounded-chunk-buffer.js'; diff --git a/packages/cli/src/__tests__/cli-invocation.test.ts b/packages/cli/src/__tests__/cli-invocation.test.ts index de581999c8..221d89aa27 100644 --- a/packages/cli/src/__tests__/cli-invocation.test.ts +++ b/packages/cli/src/__tests__/cli-invocation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { formatMakaResumeCommand, formatMakaResumeHint } from '../cli-invocation.js'; diff --git a/packages/cli/src/__tests__/cli-ui-locale.test.ts b/packages/cli/src/__tests__/cli-ui-locale.test.ts index 751fe9bd95..e92a26fb18 100644 --- a/packages/cli/src/__tests__/cli-ui-locale.test.ts +++ b/packages/cli/src/__tests__/cli-ui-locale.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { resolveCliUiLocale } from '../cli-ui-locale.js'; diff --git a/packages/cli/src/__tests__/cli.test.ts b/packages/cli/src/__tests__/cli.test.ts index 9d9fc613ab..974a729ce8 100644 --- a/packages/cli/src/__tests__/cli.test.ts +++ b/packages/cli/src/__tests__/cli.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/cli/src/__tests__/context-diagnostics-render.test.ts b/packages/cli/src/__tests__/context-diagnostics-render.test.ts index 8a547a8964..7bea710dce 100644 --- a/packages/cli/src/__tests__/context-diagnostics-render.test.ts +++ b/packages/cli/src/__tests__/context-diagnostics-render.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { ContextDiagnostics } from '@maka/runtime/context-diagnostics'; diff --git a/packages/cli/src/__tests__/eval-bundle-path.test.ts b/packages/cli/src/__tests__/eval-bundle-path.test.ts index 4ce542880c..36e6404373 100644 --- a/packages/cli/src/__tests__/eval-bundle-path.test.ts +++ b/packages/cli/src/__tests__/eval-bundle-path.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/cli/src/__tests__/pi-goal.test.ts b/packages/cli/src/__tests__/pi-goal.test.ts index 83150250af..0dcf8484bb 100644 --- a/packages/cli/src/__tests__/pi-goal.test.ts +++ b/packages/cli/src/__tests__/pi-goal.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { GOAL_STATUSES, type GoalStatus } from '@maka/core/goal'; diff --git a/packages/cli/src/__tests__/pi-transcript.test.ts b/packages/cli/src/__tests__/pi-transcript.test.ts index f7537e0b70..427c7508d2 100644 --- a/packages/cli/src/__tests__/pi-transcript.test.ts +++ b/packages/cli/src/__tests__/pi-transcript.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { visibleWidth } from '@earendil-works/pi-tui'; diff --git a/packages/cli/src/__tests__/pi-tui-runner.test.ts b/packages/cli/src/__tests__/pi-tui-runner.test.ts index 0414e7c6e9..513d0d53f3 100644 --- a/packages/cli/src/__tests__/pi-tui-runner.test.ts +++ b/packages/cli/src/__tests__/pi-tui-runner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { once } from 'node:events'; diff --git a/packages/cli/src/__tests__/pi-tui-turn.test.ts b/packages/cli/src/__tests__/pi-tui-turn.test.ts index a8c6afb7b0..6eda407331 100644 --- a/packages/cli/src/__tests__/pi-tui-turn.test.ts +++ b/packages/cli/src/__tests__/pi-tui-turn.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/packages/cli/src/__tests__/run-command.test.ts b/packages/cli/src/__tests__/run-command.test.ts index f8a867b1e3..73372355da 100644 --- a/packages/cli/src/__tests__/run-command.test.ts +++ b/packages/cli/src/__tests__/run-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { parseMakaRunArgs } from '../run-command-core.js'; diff --git a/packages/cli/src/__tests__/run-session-selection.test.ts b/packages/cli/src/__tests__/run-session-selection.test.ts index 43ca265765..39008deade 100644 --- a/packages/cli/src/__tests__/run-session-selection.test.ts +++ b/packages/cli/src/__tests__/run-session-selection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { SessionSummary } from '@maka/core/session'; diff --git a/packages/cli/src/__tests__/runtime-host-capability-provider-command.test.ts b/packages/cli/src/__tests__/runtime-host-capability-provider-command.test.ts index 2d1ed23113..68c2d10e5b 100644 --- a/packages/cli/src/__tests__/runtime-host-capability-provider-command.test.ts +++ b/packages/cli/src/__tests__/runtime-host-capability-provider-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { McpToolBinding } from '@maka/core/mcp'; diff --git a/packages/cli/src/__tests__/runtime-host-cli-context.test.ts b/packages/cli/src/__tests__/runtime-host-cli-context.test.ts index bada29eb8b..79aad0ba1b 100644 --- a/packages/cli/src/__tests__/runtime-host-cli-context.test.ts +++ b/packages/cli/src/__tests__/runtime-host-cli-context.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/cli/src/__tests__/runtime-host-onboarding.test.ts b/packages/cli/src/__tests__/runtime-host-onboarding.test.ts index daa113ba97..8c9756a36e 100644 --- a/packages/cli/src/__tests__/runtime-host-onboarding.test.ts +++ b/packages/cli/src/__tests__/runtime-host-onboarding.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import type { ConnectionCatalogSnapshot } from '@maka/core/runtime-policy'; diff --git a/packages/cli/src/__tests__/runtime-host-operator-command.test.ts b/packages/cli/src/__tests__/runtime-host-operator-command.test.ts index ad3e51d432..eadb10a8c2 100644 --- a/packages/cli/src/__tests__/runtime-host-operator-command.test.ts +++ b/packages/cli/src/__tests__/runtime-host-operator-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { resolve } from 'node:path'; import { describe, test } from 'node:test'; diff --git a/packages/cli/src/__tests__/runtime-host-profile-command.test.ts b/packages/cli/src/__tests__/runtime-host-profile-command.test.ts index a78974c13b..2980f1d5bb 100644 --- a/packages/cli/src/__tests__/runtime-host-profile-command.test.ts +++ b/packages/cli/src/__tests__/runtime-host-profile-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { diff --git a/packages/cli/src/__tests__/runtime-host-run-command.test.ts b/packages/cli/src/__tests__/runtime-host-run-command.test.ts index 78e798ca04..708d6e6de4 100644 --- a/packages/cli/src/__tests__/runtime-host-run-command.test.ts +++ b/packages/cli/src/__tests__/runtime-host-run-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/packages/cli/src/__tests__/runtime-host-service-manager.test.ts b/packages/cli/src/__tests__/runtime-host-service-manager.test.ts index 8f234ed8af..ebc0220db4 100644 --- a/packages/cli/src/__tests__/runtime-host-service-manager.test.ts +++ b/packages/cli/src/__tests__/runtime-host-service-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, diff --git a/packages/cli/src/__tests__/runtime-host-session-driver.test.ts b/packages/cli/src/__tests__/runtime-host-session-driver.test.ts index 371a2b2416..fff6e78365 100644 --- a/packages/cli/src/__tests__/runtime-host-session-driver.test.ts +++ b/packages/cli/src/__tests__/runtime-host-session-driver.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/cli/src/__tests__/runtime-host-setup.test.ts b/packages/cli/src/__tests__/runtime-host-setup.test.ts index 7c129939cb..f3e038b552 100644 --- a/packages/cli/src/__tests__/runtime-host-setup.test.ts +++ b/packages/cli/src/__tests__/runtime-host-setup.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, mkdir, mkdtemp, readFile, readdir, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/cli/src/__tests__/runtime-host-tui-context.test.ts b/packages/cli/src/__tests__/runtime-host-tui-context.test.ts index ffe3630290..d1406d14f8 100644 --- a/packages/cli/src/__tests__/runtime-host-tui-context.test.ts +++ b/packages/cli/src/__tests__/runtime-host-tui-context.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeHostConnection, RuntimeHostProfile } from '@maka/runtime-host/client'; diff --git a/packages/cli/src/__tests__/tui-autocomplete-layout.test.ts b/packages/cli/src/__tests__/tui-autocomplete-layout.test.ts index 3e17072086..3b28dea4f4 100644 --- a/packages/cli/src/__tests__/tui-autocomplete-layout.test.ts +++ b/packages/cli/src/__tests__/tui-autocomplete-layout.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { fitAutocompleteLines } from '../tui-autocomplete-layout.js'; diff --git a/packages/cli/src/__tests__/tui-primary-guidance.test.ts b/packages/cli/src/__tests__/tui-primary-guidance.test.ts index eb2caf8eff..abd9e2fc89 100644 --- a/packages/cli/src/__tests__/tui-primary-guidance.test.ts +++ b/packages/cli/src/__tests__/tui-primary-guidance.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { slashCommandsForSurface } from '@maka/core/slash-command-catalog'; diff --git a/packages/cli/src/__tests__/tui-terminal-mock.ts b/packages/cli/src/__tests__/tui-terminal-mock.ts index 72da268540..17272057bd 100644 --- a/packages/cli/src/__tests__/tui-terminal-mock.ts +++ b/packages/cli/src/__tests__/tui-terminal-mock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { setTimeout as delay } from 'node:timers/promises'; import type { Terminal } from '@earendil-works/pi-tui'; diff --git a/packages/cli/src/activation-command.ts b/packages/cli/src/activation-command.ts index f290a7d7cb..2263f3dec5 100644 --- a/packages/cli/src/activation-command.ts +++ b/packages/cli/src/activation-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { mkdir, realpath, stat, readFile } from 'node:fs/promises'; import { isAbsolute, resolve } from 'node:path'; diff --git a/packages/cli/src/bounded-chunk-buffer.ts b/packages/cli/src/bounded-chunk-buffer.ts index b217db8c64..581ddba94b 100644 --- a/packages/cli/src/bounded-chunk-buffer.ts +++ b/packages/cli/src/bounded-chunk-buffer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface BoundedChunkBufferOptions { maxChars: number; maxChunks: number; diff --git a/packages/cli/src/cli-core.ts b/packages/cli/src/cli-core.ts index 812d38c21e..1640e23d6a 100644 --- a/packages/cli/src/cli-core.ts +++ b/packages/cli/src/cli-core.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile } from 'node:fs/promises'; import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/packages/cli/src/cli-invocation.ts b/packages/cli/src/cli-invocation.ts index 8313b48b52..3407ee58d3 100644 --- a/packages/cli/src/cli-invocation.ts +++ b/packages/cli/src/cli-invocation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface MakaResumeCommandOptions { readonly cwd?: string; readonly hostProfileId?: string; diff --git a/packages/cli/src/cli-ui-locale.ts b/packages/cli/src/cli-ui-locale.ts index 7895a1c652..21dcf979dd 100644 --- a/packages/cli/src/cli-ui-locale.ts +++ b/packages/cli/src/cli-ui-locale.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isUiLocalePreference, resolveSystemUiLocale, diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts index a35856dde8..d04e7ae56f 100644 --- a/packages/cli/src/cli.ts +++ b/packages/cli/src/cli.ts @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { launchMakaCli, RELEASE_MAKA_CLI_LAUNCH_OPTIONS } from './cli-core.js'; diff --git a/packages/cli/src/dev-cli.ts b/packages/cli/src/dev-cli.ts index f4fe6e4dd5..62f45f0848 100644 --- a/packages/cli/src/dev-cli.ts +++ b/packages/cli/src/dev-cli.ts @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { launchMakaCli } from './cli-core.js'; diff --git a/packages/cli/src/eval-bundle-path.ts b/packages/cli/src/eval-bundle-path.ts index 9f38482283..7939d9a81d 100644 --- a/packages/cli/src/eval-bundle-path.ts +++ b/packages/cli/src/eval-bundle-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { statSync } from 'node:fs'; import { resolve } from 'node:path'; diff --git a/packages/cli/src/onboarding-catalog.ts b/packages/cli/src/onboarding-catalog.ts index db0ec19bde..95dd6dd5a1 100644 --- a/packages/cli/src/onboarding-catalog.ts +++ b/packages/cli/src/onboarding-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { CATALOG_PROVIDER_TYPES, PROVIDER_DEFAULTS, diff --git a/packages/cli/src/pi-goal.ts b/packages/cli/src/pi-goal.ts index 8d47d9e556..fa972d3f08 100644 --- a/packages/cli/src/pi-goal.ts +++ b/packages/cli/src/pi-goal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Goal display helpers for the TUI — the status-line segment and the `/goal` * summary share this formatting. Pure functions over the host's Goal diff --git a/packages/cli/src/pi-transcript-format.ts b/packages/cli/src/pi-transcript-format.ts index 73919e475f..a66edd1d6d 100644 --- a/packages/cli/src/pi-transcript-format.ts +++ b/packages/cli/src/pi-transcript-format.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { truncateToWidth, visibleWidth, diff --git a/packages/cli/src/pi-transcript-tools.ts b/packages/cli/src/pi-transcript-tools.ts index 15d2f998ad..40ac11ed18 100644 --- a/packages/cli/src/pi-transcript-tools.ts +++ b/packages/cli/src/pi-transcript-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolOutputStream, ToolResultContent } from '@maka/core/events'; import { formatQuietJsonValue, formatToolInvocationLine } from '@maka/core/tool-quiet-preview'; import { diff --git a/packages/cli/src/pi-transcript.ts b/packages/cli/src/pi-transcript.ts index 10be3973c5..8f8833b9c5 100644 --- a/packages/cli/src/pi-transcript.ts +++ b/packages/cli/src/pi-transcript.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Markdown } from '@earendil-works/pi-tui'; import type { ProviderRetryEvent, diff --git a/packages/cli/src/pi-tui-contracts.ts b/packages/cli/src/pi-tui-contracts.ts index 60b01c9828..b2a4c71431 100644 --- a/packages/cli/src/pi-tui-contracts.ts +++ b/packages/cli/src/pi-tui-contracts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ForeignSessionDigest, ForeignSessionSummary } from '@maka/core/foreign-session'; import type { ModelInfo, ProviderType } from '@maka/core/llm-connections'; import type { ThinkingLevel } from '@maka/core/model-thinking'; diff --git a/packages/cli/src/pi-tui-layout.ts b/packages/cli/src/pi-tui-layout.ts index 8bf4303b50..d63a3ae286 100644 --- a/packages/cli/src/pi-tui-layout.ts +++ b/packages/cli/src/pi-tui-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Container, type Component, type Terminal } from '@earendil-works/pi-tui'; // Deep import (pi-tui does not re-export it): the viewport shadow diff must // compare the same canonical lines pi-tui diffs, and pi-tui normalizes Thai/Lao diff --git a/packages/cli/src/pi-tui-pickers.ts b/packages/cli/src/pi-tui-pickers.ts index 139d3e8c93..7a70eed8bb 100644 --- a/packages/cli/src/pi-tui-pickers.ts +++ b/packages/cli/src/pi-tui-pickers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { CombinedAutocompleteProvider, Editor, diff --git a/packages/cli/src/pi-tui-runner.ts b/packages/cli/src/pi-tui-runner.ts index 74da0e8664..d2a44df812 100644 --- a/packages/cli/src/pi-tui-runner.ts +++ b/packages/cli/src/pi-tui-runner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { basename } from 'node:path'; import { diff --git a/packages/cli/src/pi-tui-turn.ts b/packages/cli/src/pi-tui-turn.ts index 9a0a21cca5..055b43e2ea 100644 --- a/packages/cli/src/pi-tui-turn.ts +++ b/packages/cli/src/pi-tui-turn.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEvent } from '@maka/core/events'; import type { SkillInvocationResult } from '@maka/core/skill-invocation'; import type { TurnOrchestration } from '@maka/core/runtime-inputs'; diff --git a/packages/cli/src/run-command-core.ts b/packages/cli/src/run-command-core.ts index e0279c7957..9a4a0b024b 100644 --- a/packages/cli/src/run-command-core.ts +++ b/packages/cli/src/run-command-core.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { realpath, stat } from 'node:fs/promises'; import { resolve } from 'node:path'; diff --git a/packages/cli/src/run-session-selection.ts b/packages/cli/src/run-session-selection.ts index 383d47682b..8af619ff66 100644 --- a/packages/cli/src/run-session-selection.ts +++ b/packages/cli/src/run-session-selection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ThinkingLevel } from '@maka/core/model-thinking'; import type { PermissionMode } from '@maka/core/permission'; import type { SessionSummary } from '@maka/core/session'; diff --git a/packages/cli/src/runtime-host-access-command.ts b/packages/cli/src/runtime-host-access-command.ts index 768547dbfd..98a9b0ddc8 100644 --- a/packages/cli/src/runtime-host-access-command.ts +++ b/packages/cli/src/runtime-host-access-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { connectExistingRuntimeHost, consumeAccessCredentialDelivery, diff --git a/packages/cli/src/runtime-host-capability-provider-command.ts b/packages/cli/src/runtime-host-capability-provider-command.ts index 353a817e43..2ba5b56925 100644 --- a/packages/cli/src/runtime-host-capability-provider-command.ts +++ b/packages/cli/src/runtime-host-capability-provider-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/cli/src/runtime-host-cli-context.ts b/packages/cli/src/runtime-host-cli-context.ts index f9cfebfed9..783a9647c7 100644 --- a/packages/cli/src/runtime-host-cli-context.ts +++ b/packages/cli/src/runtime-host-cli-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { join } from 'node:path'; import { NO_REAL_CONNECTION_CODE } from '@maka/core/connection-error-copy'; diff --git a/packages/cli/src/runtime-host-cli.ts b/packages/cli/src/runtime-host-cli.ts index c6073fadd9..8bf1b6df97 100644 --- a/packages/cli/src/runtime-host-cli.ts +++ b/packages/cli/src/runtime-host-cli.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isAbsolute } from 'node:path'; import { isCanonicalRuntimeHostWebSocketPath, diff --git a/packages/cli/src/runtime-host-managed-deployment.ts b/packages/cli/src/runtime-host-managed-deployment.ts index 5dd908c938..1ff1f8332b 100644 --- a/packages/cli/src/runtime-host-managed-deployment.ts +++ b/packages/cli/src/runtime-host-managed-deployment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { cp, lstat, mkdir, readFile, readdir, realpath, rename, rm, stat } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/cli/src/runtime-host-onboarding.ts b/packages/cli/src/runtime-host-onboarding.ts index d608c8d27e..a9c564c072 100644 --- a/packages/cli/src/runtime-host-onboarding.ts +++ b/packages/cli/src/runtime-host-onboarding.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { deriveConnectionSlug } from '@maka/core/llm-connections'; import { isRetiredProvider } from '@maka/core/provider-registry'; import type { ConnectionCatalogSnapshot } from '@maka/core/runtime-policy'; diff --git a/packages/cli/src/runtime-host-profile-command.ts b/packages/cli/src/runtime-host-profile-command.ts index c0b71852b2..085a53401c 100644 --- a/packages/cli/src/runtime-host-profile-command.ts +++ b/packages/cli/src/runtime-host-profile-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { LOCAL_RUNTIME_HOST_PROFILE, createClientRuntimeHostProfileCatalog, diff --git a/packages/cli/src/runtime-host-project-command.ts b/packages/cli/src/runtime-host-project-command.ts index 5053902fd0..5bd9bafc97 100644 --- a/packages/cli/src/runtime-host-project-command.ts +++ b/packages/cli/src/runtime-host-project-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { connectExistingRuntimeHost, readRuntimeHostProjectDetails, diff --git a/packages/cli/src/runtime-host-run-command.ts b/packages/cli/src/runtime-host-run-command.ts index 10de166c72..e11aa9d706 100644 --- a/packages/cli/src/runtime-host-run-command.ts +++ b/packages/cli/src/runtime-host-run-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { failureClassFromCompleteStopReason, type SessionEvent } from '@maka/core/events'; import { findProjectByIdentity } from '@maka/core/project'; import { type StoredMessage } from '@maka/core/session'; diff --git a/packages/cli/src/runtime-host-service-command.ts b/packages/cli/src/runtime-host-service-command.ts index ce4a5f3040..fd1d543261 100644 --- a/packages/cli/src/runtime-host-service-command.ts +++ b/packages/cli/src/runtime-host-service-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { installRuntimeHostLogCapture, runRuntimeHostProcessLifecycle, diff --git a/packages/cli/src/runtime-host-service-management-command.ts b/packages/cli/src/runtime-host-service-management-command.ts index e6cd4489d2..4df4c0baaa 100644 --- a/packages/cli/src/runtime-host-service-management-command.ts +++ b/packages/cli/src/runtime-host-service-management-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { manageRuntimeHostService, resolveRuntimeHostManagedServiceId, diff --git a/packages/cli/src/runtime-host-service-manager.ts b/packages/cli/src/runtime-host-service-manager.ts index 503363ae11..d4c2dafe25 100644 --- a/packages/cli/src/runtime-host-service-manager.ts +++ b/packages/cli/src/runtime-host-service-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { createServer } from 'node:net'; import { mkdir, open, readFile, realpath, rename, rm, stat } from 'node:fs/promises'; diff --git a/packages/cli/src/runtime-host-session-channel.ts b/packages/cli/src/runtime-host-session-channel.ts index b5d739c944..602add7ed2 100644 --- a/packages/cli/src/runtime-host-session-channel.ts +++ b/packages/cli/src/runtime-host-session-channel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeStoredMessage, type StoredMessage } from '@maka/core/session'; import { type SessionEvent } from '@maka/core/events'; import { diff --git a/packages/cli/src/runtime-host-session-driver.ts b/packages/cli/src/runtime-host-session-driver.ts index e568ea2a0d..a75e6168f0 100644 --- a/packages/cli/src/runtime-host-session-driver.ts +++ b/packages/cli/src/runtime-host-session-driver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { DEFAULT_SESSION_NAME } from '@maka/core/session-name'; import { diff --git a/packages/cli/src/runtime-host-setup-command.ts b/packages/cli/src/runtime-host-setup-command.ts index a193432ddb..8c1baf5a9d 100644 --- a/packages/cli/src/runtime-host-setup-command.ts +++ b/packages/cli/src/runtime-host-setup-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, readFile, realpath } from 'node:fs/promises'; import { dirname, join } from 'node:path'; import { truncateUtf8 } from '@maka/core/diagnostic-log'; diff --git a/packages/cli/src/runtime-host-systemd-service.ts b/packages/cli/src/runtime-host-systemd-service.ts index b6bc498d12..a76bea7a54 100644 --- a/packages/cli/src/runtime-host-systemd-service.ts +++ b/packages/cli/src/runtime-host-systemd-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { constants } from 'node:fs'; import { access, readFile, realpath, stat } from 'node:fs/promises'; diff --git a/packages/cli/src/runtime-host-task-readiness.ts b/packages/cli/src/runtime-host-task-readiness.ts index 8a6da78b47..bec5e2e0fd 100644 --- a/packages/cli/src/runtime-host-task-readiness.ts +++ b/packages/cli/src/runtime-host-task-readiness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stat } from 'node:fs/promises'; import { deriveTaskSubmissionReadiness, diff --git a/packages/cli/src/runtime-host-tui-command.ts b/packages/cli/src/runtime-host-tui-command.ts index b189813fbe..8d10adf093 100644 --- a/packages/cli/src/runtime-host-tui-command.ts +++ b/packages/cli/src/runtime-host-tui-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseNoRealConnectionError } from '@maka/core/connection-error-copy'; import type { UiLocale } from '@maka/core/ui-locale'; import { createInterface } from 'node:readline/promises'; diff --git a/packages/cli/src/runtime-host-tui-context.ts b/packages/cli/src/runtime-host-tui-context.ts index aafeae6897..a4248bd87a 100644 --- a/packages/cli/src/runtime-host-tui-context.ts +++ b/packages/cli/src/runtime-host-tui-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { PermissionMode } from '@maka/core/permission'; import { findProjectByIdentity } from '@maka/core/project'; diff --git a/packages/cli/src/sandbox-boundary-failure.ts b/packages/cli/src/sandbox-boundary-failure.ts index 1c3a1b8385..87e592ae47 100644 --- a/packages/cli/src/sandbox-boundary-failure.ts +++ b/packages/cli/src/sandbox-boundary-failure.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEvent } from '@maka/core/events'; type SandboxBoundaryFailureReason = 'sandbox_boundary_required' | 'requires_bypass'; diff --git a/packages/cli/src/session-driver-policy.ts b/packages/cli/src/session-driver-policy.ts index bfa9b72b5c..2f59d682df 100644 --- a/packages/cli/src/session-driver-policy.ts +++ b/packages/cli/src/session-driver-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { realpath, stat } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/cli/src/session-driver.ts b/packages/cli/src/session-driver.ts index ecb49cd7bb..a907294e90 100644 --- a/packages/cli/src/session-driver.ts +++ b/packages/cli/src/session-driver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath } from 'node:fs/promises'; import type { QueueEnqueueOutcome, SessionEvent } from '@maka/core/events'; import type { OrchestrationMode } from '@maka/core/orchestration'; diff --git a/packages/cli/src/session-recap.ts b/packages/cli/src/session-recap.ts index 8489dc851c..02a496799f 100644 --- a/packages/cli/src/session-recap.ts +++ b/packages/cli/src/session-recap.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Idle gap (ms) after which the first normal prompt on return triggers an automatic recap. */ export const AUTO_RECAP_IDLE_MS = 180_000; /** Minimum main-turn count (user-prompted turns) before an automatic recap may fire. */ diff --git a/packages/cli/src/shell-run-elapsed-ticker.ts b/packages/cli/src/shell-run-elapsed-ticker.ts index cc7c580dd9..82127f5e0c 100644 --- a/packages/cli/src/shell-run-elapsed-ticker.ts +++ b/packages/cli/src/shell-run-elapsed-ticker.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { refreshRunningShellRunElapsed, type MakaPiTranscriptState } from './pi-transcript.js'; type CancelInterval = () => void; diff --git a/packages/cli/src/shell-run-hydration.ts b/packages/cli/src/shell-run-hydration.ts index 1d7a41d41d..13f669ff0d 100644 --- a/packages/cli/src/shell-run-hydration.ts +++ b/packages/cli/src/shell-run-hydration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isActiveShellRunStatus } from '@maka/core/shell-run'; import { ShellRunUpdateBuffer, diff --git a/packages/cli/src/skill-highlight-editor.ts b/packages/cli/src/skill-highlight-editor.ts index b414093d43..e27f6dfafe 100644 --- a/packages/cli/src/skill-highlight-editor.ts +++ b/packages/cli/src/skill-highlight-editor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Editor } from '@earendil-works/pi-tui'; import { SKILL_INVOCATION_TOKEN_SOURCE } from '@maka/core/skill-invocation-token'; import { ansi } from './tui-ansi.js'; diff --git a/packages/cli/src/tui-ansi.ts b/packages/cli/src/tui-ansi.ts index fd96fa6170..93e67d6492 100644 --- a/packages/cli/src/tui-ansi.ts +++ b/packages/cli/src/tui-ansi.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { EditorTheme, SelectListTheme } from '@earendil-works/pi-tui'; // PR #496: desktop --accent = oklch(0.70 0.135 250), rendered here as truecolor ANSI. diff --git a/packages/cli/src/tui-attention.ts b/packages/cli/src/tui-attention.ts index d7261d3f1f..4dfb521a83 100644 --- a/packages/cli/src/tui-attention.ts +++ b/packages/cli/src/tui-attention.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Attention layer for long-running turns, permission prompts, and errors. * diff --git a/packages/cli/src/tui-autocomplete-layout.ts b/packages/cli/src/tui-autocomplete-layout.ts index b179858c34..435dd3b07e 100644 --- a/packages/cli/src/tui-autocomplete-layout.ts +++ b/packages/cli/src/tui-autocomplete-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Component, Editor } from '@earendil-works/pi-tui'; import { selectListTheme, stripAnsi } from './tui-ansi.js'; diff --git a/packages/cli/src/tui-diff.ts b/packages/cli/src/tui-diff.ts index db668b73ed..8c17b099d9 100644 --- a/packages/cli/src/tui-diff.ts +++ b/packages/cli/src/tui-diff.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseUnifiedDiffRows, type UnifiedDiffRow } from '@maka/core/unified-diff'; import { ansi } from './tui-ansi.js'; diff --git a/packages/cli/src/tui-primary-guidance.ts b/packages/cli/src/tui-primary-guidance.ts index f014aa9185..7abd805869 100644 --- a/packages/cli/src/tui-primary-guidance.ts +++ b/packages/cli/src/tui-primary-guidance.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SlashCommandIdForSurface } from '@maka/core/slash-command-catalog'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/cli/src/workspace-root.ts b/packages/cli/src/workspace-root.ts index 4c3c894b71..8106f13c91 100644 --- a/packages/cli/src/workspace-root.ts +++ b/packages/cli/src/workspace-root.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Workspace-root resolution now lives in @maka/storage. This file remains // as a re-export so existing relative CLI importers keep working. export { diff --git a/packages/computer-use/src/__tests__/computer-use-cumulative-e2e.test.ts b/packages/computer-use/src/__tests__/computer-use-cumulative-e2e.test.ts index ba9f0aa064..3da58c71e0 100644 --- a/packages/computer-use/src/__tests__/computer-use-cumulative-e2e.test.ts +++ b/packages/computer-use/src/__tests__/computer-use-cumulative-e2e.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { CuAction } from '@maka/core/computer-use'; diff --git a/packages/computer-use/src/__tests__/computer-use-overlay-hook.test.ts b/packages/computer-use/src/__tests__/computer-use-overlay-hook.test.ts index 75d58ef026..d03af69a8d 100644 --- a/packages/computer-use/src/__tests__/computer-use-overlay-hook.test.ts +++ b/packages/computer-use/src/__tests__/computer-use-overlay-hook.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { CuAction } from '@maka/core/computer-use'; diff --git a/packages/computer-use/src/__tests__/display-snapshot.test.ts b/packages/computer-use/src/__tests__/display-snapshot.test.ts index e931957963..e83e2e6474 100644 --- a/packages/computer-use/src/__tests__/display-snapshot.test.ts +++ b/packages/computer-use/src/__tests__/display-snapshot.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/computer-use/src/__tests__/maka-cu-backend.test.ts b/packages/computer-use/src/__tests__/maka-cu-backend.test.ts index 91fb939ac1..f641a8db15 100644 --- a/packages/computer-use/src/__tests__/maka-cu-backend.test.ts +++ b/packages/computer-use/src/__tests__/maka-cu-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Unit test for the maka-cu CuDispatchBackend. Drives the module against a MOCK // executor (a small CommonJS node script written to a temp dir) that speaks // `maka.cu/2` — the real `maka-cu` binary is never spawned, and does not exist diff --git a/packages/computer-use/src/__tests__/maka-cu-protocol.test.ts b/packages/computer-use/src/__tests__/maka-cu-protocol.test.ts index bf6d4d3982..d14a6c0cb2 100644 --- a/packages/computer-use/src/__tests__/maka-cu-protocol.test.ts +++ b/packages/computer-use/src/__tests__/maka-cu-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Unit test for the `maka.cu/2` parsing layer: the key grammar the host owns // (§6.4) and the readers that refuse rather than default (§1.3, §5.2). No child // process is involved — these are pure functions over the wire's shapes. diff --git a/packages/computer-use/src/__tests__/maka-cu-service.test.ts b/packages/computer-use/src/__tests__/maka-cu-service.test.ts index 65b35bc34e..d057767e47 100644 --- a/packages/computer-use/src/__tests__/maka-cu-service.test.ts +++ b/packages/computer-use/src/__tests__/maka-cu-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Unit test for MakaCuService, the supervisor between the maka-cu backend and // the executor child. Drives it against a MOCK executor (a small CommonJS node // script written to a temp dir) that speaks `maka.cu/2` — the real `maka-cu` diff --git a/packages/computer-use/src/__tests__/select-backend-host-events.test.ts b/packages/computer-use/src/__tests__/select-backend-host-events.test.ts index bfebac1a73..9dd5201bd3 100644 --- a/packages/computer-use/src/__tests__/select-backend-host-events.test.ts +++ b/packages/computer-use/src/__tests__/select-backend-host-events.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { CuDispatchBackend } from '@maka/runtime/computer-use-types'; diff --git a/packages/computer-use/src/abortable-delay.ts b/packages/computer-use/src/abortable-delay.ts index 76cb6eda78..1a187947fa 100644 --- a/packages/computer-use/src/abortable-delay.ts +++ b/packages/computer-use/src/abortable-delay.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Sleep that honours an abort signal. * diff --git a/packages/computer-use/src/computer-use-overlay-hook.ts b/packages/computer-use/src/computer-use-overlay-hook.ts index ea1dc40291..519bce2664 100644 --- a/packages/computer-use/src/computer-use-overlay-hook.ts +++ b/packages/computer-use/src/computer-use-overlay-hook.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CuAction, CuPoint } from '@maka/core/computer-use'; import type { CuOverlayHook, diff --git a/packages/computer-use/src/display-snapshot.ts b/packages/computer-use/src/display-snapshot.ts index 244c21415c..cc4c5efd3c 100644 --- a/packages/computer-use/src/display-snapshot.ts +++ b/packages/computer-use/src/display-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ComputerUseDisplayIdentity } from '@maka/core/computer-use'; export interface CuaHostDisplay { diff --git a/packages/computer-use/src/frame-budget.ts b/packages/computer-use/src/frame-budget.ts index 4d480daf12..aef7f9d872 100644 --- a/packages/computer-use/src/frame-budget.ts +++ b/packages/computer-use/src/frame-budget.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // One frame budget for every computer-use backend. The bound is the model's // context, not the transport: a frame that survives the wire but blows the // context window is no more usable than one that never arrived, so both the diff --git a/packages/computer-use/src/index.ts b/packages/computer-use/src/index.ts index a67c6db831..4503ccb61b 100644 --- a/packages/computer-use/src/index.ts +++ b/packages/computer-use/src/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { selectComputerUseBackend, CU_BACKEND_IDS, diff --git a/packages/computer-use/src/maka-cu-backend.ts b/packages/computer-use/src/maka-cu-backend.ts index e8beab080d..302c46838c 100644 --- a/packages/computer-use/src/maka-cu-backend.ts +++ b/packages/computer-use/src/maka-cu-backend.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The `maka.cu/2` CuDispatchBackend. Speaks the host protocol (`maka-cu`'s // docs/HOST_PROTOCOL.md) to `maka-cu`, the native macOS executor; section // numbers in comments refer to that document. diff --git a/packages/computer-use/src/maka-cu-protocol.ts b/packages/computer-use/src/maka-cu-protocol.ts index c9698c9e8e..45a626f02e 100644 --- a/packages/computer-use/src/maka-cu-protocol.ts +++ b/packages/computer-use/src/maka-cu-protocol.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The `maka.cu/2` wire contract, host side. Mirrors `maka-cu`'s // docs/HOST_PROTOCOL.md; section numbers in comments refer to it. // diff --git a/packages/computer-use/src/maka-cu-service.ts b/packages/computer-use/src/maka-cu-service.ts index b14b5dc000..67ff794bf9 100644 --- a/packages/computer-use/src/maka-cu-service.ts +++ b/packages/computer-use/src/maka-cu-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Supervises one `maka-cu` executor child and speaks `maka.cu/2` to it over // line-delimited JSON-RPC 2.0 on stdio (`maka-cu`'s docs/HOST_PROTOCOL.md §1). // diff --git a/packages/computer-use/src/select-backend.ts b/packages/computer-use/src/select-backend.ts index 185de958f2..f6f0ce9dd2 100644 --- a/packages/computer-use/src/select-backend.ts +++ b/packages/computer-use/src/select-backend.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildComputerUseTools, type ComputerUseToolSet } from '@maka/runtime/computer-use-tools'; import { type CuOverlayHook, type CuDispatchBackend } from '@maka/runtime/computer-use-types'; import { createMakaCuBackend } from './maka-cu-backend.js'; diff --git a/packages/computer-use/src/stdio-json-rpc.ts b/packages/computer-use/src/stdio-json-rpc.ts index 087f5afc7d..7c512e3f96 100644 --- a/packages/computer-use/src/stdio-json-rpc.ts +++ b/packages/computer-use/src/stdio-json-rpc.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Transport pieces shared by every stdio JSON-RPC executor the host supervises: // trycua/cua-driver (MCP) and maka-cu (maka.cu/1). Both frame one JSON value per // line over a direct child's stdio, so the decoder and the lifecycle vocabulary diff --git a/packages/core/src/__tests__/additional-permissions.test.ts b/packages/core/src/__tests__/additional-permissions.test.ts index fb433cc58b..6640212b36 100644 --- a/packages/core/src/__tests__/additional-permissions.test.ts +++ b/packages/core/src/__tests__/additional-permissions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { diff --git a/packages/core/src/__tests__/agent-graph-control.test.ts b/packages/core/src/__tests__/agent-graph-control.test.ts index f3382fa24f..eb51e68bf7 100644 --- a/packages/core/src/__tests__/agent-graph-control.test.ts +++ b/packages/core/src/__tests__/agent-graph-control.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/agent-graph-schedule.test.ts b/packages/core/src/__tests__/agent-graph-schedule.test.ts index 0a4e156ce7..c50b36440f 100644 --- a/packages/core/src/__tests__/agent-graph-schedule.test.ts +++ b/packages/core/src/__tests__/agent-graph-schedule.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/agent-graph-topology.test.ts b/packages/core/src/__tests__/agent-graph-topology.test.ts index b45b363402..b6159e120f 100644 --- a/packages/core/src/__tests__/agent-graph-topology.test.ts +++ b/packages/core/src/__tests__/agent-graph-topology.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/agent-run-authority.test.ts b/packages/core/src/__tests__/agent-run-authority.test.ts index 4924df4e8b..650222b165 100644 --- a/packages/core/src/__tests__/agent-run-authority.test.ts +++ b/packages/core/src/__tests__/agent-run-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { decodeAgentRunHeader, type AgentRunHeader } from '../agent-run.js'; diff --git a/packages/core/src/__tests__/agent-run-continuation-source.test.ts b/packages/core/src/__tests__/agent-run-continuation-source.test.ts index 12b3afa4fa..b8c1eba5c2 100644 --- a/packages/core/src/__tests__/agent-run-continuation-source.test.ts +++ b/packages/core/src/__tests__/agent-run-continuation-source.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { decodeAgentRunHeader, type AgentRunHeader } from '../agent-run.js'; diff --git a/packages/core/src/__tests__/agent-run-event-contract.test.ts b/packages/core/src/__tests__/agent-run-event-contract.test.ts index efcc6c790b..406ea7a5cf 100644 --- a/packages/core/src/__tests__/agent-run-event-contract.test.ts +++ b/packages/core/src/__tests__/agent-run-event-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/core/src/__tests__/agent-run-hosted-root.test.ts b/packages/core/src/__tests__/agent-run-hosted-root.test.ts index 57d151c9f2..17a876a9cf 100644 --- a/packages/core/src/__tests__/agent-run-hosted-root.test.ts +++ b/packages/core/src/__tests__/agent-run-hosted-root.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { agentRunMatchesHostedRootExecution, type AgentRunHeader } from '../agent-run.js'; diff --git a/packages/core/src/__tests__/agent-swarm-result.test.ts b/packages/core/src/__tests__/agent-swarm-result.test.ts index 14ecf99f89..1772bdc06a 100644 --- a/packages/core/src/__tests__/agent-swarm-result.test.ts +++ b/packages/core/src/__tests__/agent-swarm-result.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { ToolResultContent } from '../events.js'; diff --git a/packages/core/src/__tests__/artifacts.test.ts b/packages/core/src/__tests__/artifacts.test.ts index 591e55f3c0..0fc3499a5f 100644 --- a/packages/core/src/__tests__/artifacts.test.ts +++ b/packages/core/src/__tests__/artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/attachments.test.ts b/packages/core/src/__tests__/attachments.test.ts index f8c1d6141d..27ee9abf4e 100644 --- a/packages/core/src/__tests__/attachments.test.ts +++ b/packages/core/src/__tests__/attachments.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { formatAttachmentResourceRef, parseAttachmentResourceRef } from '../attachments.js'; diff --git a/packages/core/src/__tests__/bot-chat-settings.test.ts b/packages/core/src/__tests__/bot-chat-settings.test.ts index 0c07de518a..2b4eb46823 100644 --- a/packages/core/src/__tests__/bot-chat-settings.test.ts +++ b/packages/core/src/__tests__/bot-chat-settings.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/bot-events.test.ts b/packages/core/src/__tests__/bot-events.test.ts index 2dba71513d..b55f03d413 100644 --- a/packages/core/src/__tests__/bot-events.test.ts +++ b/packages/core/src/__tests__/bot-events.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/browser.test.ts b/packages/core/src/__tests__/browser.test.ts index 010a6b9f3d..9b58e809ef 100644 --- a/packages/core/src/__tests__/browser.test.ts +++ b/packages/core/src/__tests__/browser.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/canonical-runtime-event.test.ts b/packages/core/src/__tests__/canonical-runtime-event.test.ts index a28b2b25b5..444db1e6ab 100644 --- a/packages/core/src/__tests__/canonical-runtime-event.test.ts +++ b/packages/core/src/__tests__/canonical-runtime-event.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { encodeCanonicalRuntimeEvent } from '../canonical-runtime-event.js'; diff --git a/packages/core/src/__tests__/capabilities.test.ts b/packages/core/src/__tests__/capabilities.test.ts index 00266b8eb0..0cdaf4ce34 100644 --- a/packages/core/src/__tests__/capabilities.test.ts +++ b/packages/core/src/__tests__/capabilities.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { diff --git a/packages/core/src/__tests__/computer-use-model-call-args.test.ts b/packages/core/src/__tests__/computer-use-model-call-args.test.ts index 03ca5f8f1d..5ed26884c2 100644 --- a/packages/core/src/__tests__/computer-use-model-call-args.test.ts +++ b/packages/core/src/__tests__/computer-use-model-call-args.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { COMPUTER_USE_WITHHELD_VALUE, computerUseModelCallArgs } from '../computer-use.js'; diff --git a/packages/core/src/__tests__/computer-use.test.ts b/packages/core/src/__tests__/computer-use.test.ts index 176fc33483..bc354fd5e4 100644 --- a/packages/core/src/__tests__/computer-use.test.ts +++ b/packages/core/src/__tests__/computer-use.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; diff --git a/packages/core/src/__tests__/connection-readiness.test.ts b/packages/core/src/__tests__/connection-readiness.test.ts index 54382b8e32..bcf1f426d3 100644 --- a/packages/core/src/__tests__/connection-readiness.test.ts +++ b/packages/core/src/__tests__/connection-readiness.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { isConnectionReady } from '../connection-readiness.js'; diff --git a/packages/core/src/__tests__/cron-expression.test.ts b/packages/core/src/__tests__/cron-expression.test.ts index 6d086a484e..987c6efa08 100644 --- a/packages/core/src/__tests__/cron-expression.test.ts +++ b/packages/core/src/__tests__/cron-expression.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync } from 'node:child_process'; import assert from 'node:assert/strict'; import { dirname, join } from 'node:path'; diff --git a/packages/core/src/__tests__/daily-review.test.ts b/packages/core/src/__tests__/daily-review.test.ts index 468ecab35c..f8514003ae 100644 --- a/packages/core/src/__tests__/daily-review.test.ts +++ b/packages/core/src/__tests__/daily-review.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/deep-research-run.test.ts b/packages/core/src/__tests__/deep-research-run.test.ts index 3acfd8fd37..81060b7e4e 100644 --- a/packages/core/src/__tests__/deep-research-run.test.ts +++ b/packages/core/src/__tests__/deep-research-run.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/diagnostic-log.test.ts b/packages/core/src/__tests__/diagnostic-log.test.ts index af8549ee21..892f4197c3 100644 --- a/packages/core/src/__tests__/diagnostic-log.test.ts +++ b/packages/core/src/__tests__/diagnostic-log.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { collapseHomePath, DiagnosticLogBuffer } from '../diagnostic-log.js'; diff --git a/packages/core/src/__tests__/events.test.ts b/packages/core/src/__tests__/events.test.ts index f24e58d75c..fd6585bb64 100644 --- a/packages/core/src/__tests__/events.test.ts +++ b/packages/core/src/__tests__/events.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test } from 'node:test'; import { expect } from './test-helpers.js'; import { aggregateMessageContents } from '../events.js'; diff --git a/packages/core/src/__tests__/explore-agent.test.ts b/packages/core/src/__tests__/explore-agent.test.ts index a865e3c531..f4a3a3d27d 100644 --- a/packages/core/src/__tests__/explore-agent.test.ts +++ b/packages/core/src/__tests__/explore-agent.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { createGenesisExecutionBoundary } from '../sandbox-boundary.js'; diff --git a/packages/core/src/__tests__/foreign-session.test.ts b/packages/core/src/__tests__/foreign-session.test.ts index cf12614839f37c942add3c9669c851f70e66a122..a7e58779e159d741543481a023bde83c1f8c9ce4 100644 GIT binary patch delta 827 zcmZWn&2F1O5LT{!ijhxA?WKJgTlddn;Hx%w2H zS!2mkxFD9D?{B_;f3AMNUQO}s0&Za|D^w0^@EZI9Au*z&SD_m}3X8DOgQ|s>TETTv zY;J%)(SlaU)7nC>=~ktcw{kytI_OS_AXCIvBP60S#e^x|Yl>I*^JE`k;iFEw;keQnkcwj#jn@4|-H+-9Z{6EZIx3IjeCe zVB!t5WOh30VK#H&dyZoT-w26Ke~jM4HCDeC6kxxh}pJx=k_kspQFax>?SL9__1{)JX? iVGP<{x(~cwM>1>bNH2Y8mSf^K?jkyk7mL5&xBmhDz!g9M delta 11 ScmbO_pYhcU#?9KySv~+Ag9K0j diff --git a/packages/core/src/__tests__/goal-authority.test.ts b/packages/core/src/__tests__/goal-authority.test.ts index 650e9f4975..22f76379f3 100644 --- a/packages/core/src/__tests__/goal-authority.test.ts +++ b/packages/core/src/__tests__/goal-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { decodeGoalAuthorityRecord, type GoalAuthorityRecord } from '../goal.js'; diff --git a/packages/core/src/__tests__/graph-command.test.ts b/packages/core/src/__tests__/graph-command.test.ts index 65a7c90f13..f79fb2b0c8 100644 --- a/packages/core/src/__tests__/graph-command.test.ts +++ b/packages/core/src/__tests__/graph-command.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { parseGraphCommand } from '../graph-command.js'; diff --git a/packages/core/src/__tests__/health.test.ts b/packages/core/src/__tests__/health.test.ts index 4e1e8c20a6..a06a70e363 100644 --- a/packages/core/src/__tests__/health.test.ts +++ b/packages/core/src/__tests__/health.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { diff --git a/packages/core/src/__tests__/incognito.test.ts b/packages/core/src/__tests__/incognito.test.ts index 25c6089927..739b753e97 100644 --- a/packages/core/src/__tests__/incognito.test.ts +++ b/packages/core/src/__tests__/incognito.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { validateWorkspacePrivacyContext } from '../incognito.js'; diff --git a/packages/core/src/__tests__/interaction.test.ts b/packages/core/src/__tests__/interaction.test.ts index 5155335c23..304a78d04c 100644 --- a/packages/core/src/__tests__/interaction.test.ts +++ b/packages/core/src/__tests__/interaction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/core/src/__tests__/llm-connections.test.ts b/packages/core/src/__tests__/llm-connections.test.ts index a8496c2ccd..875c4c7034 100644 --- a/packages/core/src/__tests__/llm-connections.test.ts +++ b/packages/core/src/__tests__/llm-connections.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/local-memory.test.ts b/packages/core/src/__tests__/local-memory.test.ts index 1139b299e4..1d01b80f18 100644 --- a/packages/core/src/__tests__/local-memory.test.ts +++ b/packages/core/src/__tests__/local-memory.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { createHash } from 'node:crypto'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/long-term-memory.test.ts b/packages/core/src/__tests__/long-term-memory.test.ts index 0acc7a0fd8..d43f77bd13 100644 --- a/packages/core/src/__tests__/long-term-memory.test.ts +++ b/packages/core/src/__tests__/long-term-memory.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { validateMemoryTemporalBounds } from '../long-term-memory.js'; diff --git a/packages/core/src/__tests__/mcp-secrets.test.ts b/packages/core/src/__tests__/mcp-secrets.test.ts index d9f3b8b061..9ba031377a 100644 --- a/packages/core/src/__tests__/mcp-secrets.test.ts +++ b/packages/core/src/__tests__/mcp-secrets.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/model-call-attempt.test.ts b/packages/core/src/__tests__/model-call-attempt.test.ts index 3bbf8f32f7..f6b9e3389d 100644 --- a/packages/core/src/__tests__/model-call-attempt.test.ts +++ b/packages/core/src/__tests__/model-call-attempt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/core/src/__tests__/model-call-usage-projection.test.ts b/packages/core/src/__tests__/model-call-usage-projection.test.ts index 5c6ec2b22e..89a868f171 100644 --- a/packages/core/src/__tests__/model-call-usage-projection.test.ts +++ b/packages/core/src/__tests__/model-call-usage-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/core/src/__tests__/model-catalog.test.ts b/packages/core/src/__tests__/model-catalog.test.ts index b4514fcae5..a6930d0b3b 100644 --- a/packages/core/src/__tests__/model-catalog.test.ts +++ b/packages/core/src/__tests__/model-catalog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { test } from 'node:test'; import { isConnectionReady } from '../connection-readiness.js'; diff --git a/packages/core/src/__tests__/model-metadata.test.ts b/packages/core/src/__tests__/model-metadata.test.ts index 9bf9ae6322..c30c1e2639 100644 --- a/packages/core/src/__tests__/model-metadata.test.ts +++ b/packages/core/src/__tests__/model-metadata.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/model-switch-transcript.test.ts b/packages/core/src/__tests__/model-switch-transcript.test.ts index afc82663e6..2a67f5e75e 100644 --- a/packages/core/src/__tests__/model-switch-transcript.test.ts +++ b/packages/core/src/__tests__/model-switch-transcript.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { deriveModelSwitchTranscript, type StoredMessage } from '../session.js'; diff --git a/packages/core/src/__tests__/model-thinking.test.ts b/packages/core/src/__tests__/model-thinking.test.ts index d7d9945149..ae833a5d2b 100644 --- a/packages/core/src/__tests__/model-thinking.test.ts +++ b/packages/core/src/__tests__/model-thinking.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/model-web-search.test.ts b/packages/core/src/__tests__/model-web-search.test.ts index 1ba879842a..2398323486 100644 --- a/packages/core/src/__tests__/model-web-search.test.ts +++ b/packages/core/src/__tests__/model-web-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { lookupModelMetadata } from '../model-metadata.js'; diff --git a/packages/core/src/__tests__/oauth-subscription.test.ts b/packages/core/src/__tests__/oauth-subscription.test.ts index a1323eab3c..3e6c445c62 100644 --- a/packages/core/src/__tests__/oauth-subscription.test.ts +++ b/packages/core/src/__tests__/oauth-subscription.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/onboarding.test.ts b/packages/core/src/__tests__/onboarding.test.ts index f5aa196b1f..a3685d297f 100644 --- a/packages/core/src/__tests__/onboarding.test.ts +++ b/packages/core/src/__tests__/onboarding.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/orchestration.test.ts b/packages/core/src/__tests__/orchestration.test.ts index aae69928db..e8baab5fa5 100644 --- a/packages/core/src/__tests__/orchestration.test.ts +++ b/packages/core/src/__tests__/orchestration.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/core/src/__tests__/permission-profile-compiler.test.ts b/packages/core/src/__tests__/permission-profile-compiler.test.ts index bed89be784..2cf315b735 100644 --- a/packages/core/src/__tests__/permission-profile-compiler.test.ts +++ b/packages/core/src/__tests__/permission-profile-compiler.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/permission-profile.test.ts b/packages/core/src/__tests__/permission-profile.test.ts index 5b0bc7be34..bfd5a2f527 100644 --- a/packages/core/src/__tests__/permission-profile.test.ts +++ b/packages/core/src/__tests__/permission-profile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { pathWithinRoot } from '../absolute-path.js'; diff --git a/packages/core/src/__tests__/pet.test.ts b/packages/core/src/__tests__/pet.test.ts index 8b21056bb4..465c878baf 100644 --- a/packages/core/src/__tests__/pet.test.ts +++ b/packages/core/src/__tests__/pet.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/provider-auth.test.ts b/packages/core/src/__tests__/provider-auth.test.ts index 668edebee8..9857c8fba2 100644 --- a/packages/core/src/__tests__/provider-auth.test.ts +++ b/packages/core/src/__tests__/provider-auth.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { deriveProviderAuthContract } from '../provider-auth.js'; diff --git a/packages/core/src/__tests__/provider-catalog-contract.test.ts b/packages/core/src/__tests__/provider-catalog-contract.test.ts index 93445580d4..0a7ffad1e1 100644 --- a/packages/core/src/__tests__/provider-catalog-contract.test.ts +++ b/packages/core/src/__tests__/provider-catalog-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/redaction.test.ts b/packages/core/src/__tests__/redaction.test.ts index b8f571e924..ef1ee85a80 100644 --- a/packages/core/src/__tests__/redaction.test.ts +++ b/packages/core/src/__tests__/redaction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { formatWithOptions } from 'node:util'; import { describe, test } from 'node:test'; diff --git a/packages/core/src/__tests__/request-customization.test.ts b/packages/core/src/__tests__/request-customization.test.ts index 1bf7c322ab..8d638ec1fc 100644 --- a/packages/core/src/__tests__/request-customization.test.ts +++ b/packages/core/src/__tests__/request-customization.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/run-composition.test.ts b/packages/core/src/__tests__/run-composition.test.ts index c3e7bbe77a..d79f009789 100644 --- a/packages/core/src/__tests__/run-composition.test.ts +++ b/packages/core/src/__tests__/run-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/runtime-boundary.test.ts b/packages/core/src/__tests__/runtime-boundary.test.ts index 53dbaa8501..5ec71103a3 100644 --- a/packages/core/src/__tests__/runtime-boundary.test.ts +++ b/packages/core/src/__tests__/runtime-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { decodeRuntimeEvent, type RuntimeEvent } from '../runtime-event.js'; diff --git a/packages/core/src/__tests__/runtime-event.test.ts b/packages/core/src/__tests__/runtime-event.test.ts index 67e158159a..4443fad269 100644 --- a/packages/core/src/__tests__/runtime-event.test.ts +++ b/packages/core/src/__tests__/runtime-event.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { expect } from './test-helpers.js'; diff --git a/packages/core/src/__tests__/runtime-policy-codec.test.ts b/packages/core/src/__tests__/runtime-policy-codec.test.ts index 133ef54bcc..a7ce63fb6e 100644 --- a/packages/core/src/__tests__/runtime-policy-codec.test.ts +++ b/packages/core/src/__tests__/runtime-policy-codec.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/sandbox-boundary.test.ts b/packages/core/src/__tests__/sandbox-boundary.test.ts index 65b843e23e..733caeb954 100644 --- a/packages/core/src/__tests__/sandbox-boundary.test.ts +++ b/packages/core/src/__tests__/sandbox-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; diff --git a/packages/core/src/__tests__/scheduled-task.test.ts b/packages/core/src/__tests__/scheduled-task.test.ts index 7b7e782fc6..4f424b9a6c 100644 --- a/packages/core/src/__tests__/scheduled-task.test.ts +++ b/packages/core/src/__tests__/scheduled-task.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/search.test.ts b/packages/core/src/__tests__/search.test.ts index 84973ace0f..26e66da6dc 100644 --- a/packages/core/src/__tests__/search.test.ts +++ b/packages/core/src/__tests__/search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/serialized-byte-length.test.ts b/packages/core/src/__tests__/serialized-byte-length.test.ts index 5eced4a5c3..bfcda5598f 100644 --- a/packages/core/src/__tests__/serialized-byte-length.test.ts +++ b/packages/core/src/__tests__/serialized-byte-length.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { serializedByteLength } from '../serialized-byte-length.js'; diff --git a/packages/core/src/__tests__/session-event-health.test.ts b/packages/core/src/__tests__/session-event-health.test.ts index 3354776744..84515ae02d 100644 --- a/packages/core/src/__tests__/session-event-health.test.ts +++ b/packages/core/src/__tests__/session-event-health.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/session-revisions.test.ts b/packages/core/src/__tests__/session-revisions.test.ts index f87eca9521..2e9088a991 100644 --- a/packages/core/src/__tests__/session-revisions.test.ts +++ b/packages/core/src/__tests__/session-revisions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/session-send-projection.test.ts b/packages/core/src/__tests__/session-send-projection.test.ts index f241a8f855..e906536845 100644 --- a/packages/core/src/__tests__/session-send-projection.test.ts +++ b/packages/core/src/__tests__/session-send-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { diff --git a/packages/core/src/__tests__/session-status.test.ts b/packages/core/src/__tests__/session-status.test.ts index 73c7435c09..e50626e8c6 100644 --- a/packages/core/src/__tests__/session-status.test.ts +++ b/packages/core/src/__tests__/session-status.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { SESSION_STATUSES, isSessionStatus } from '../session.js'; diff --git a/packages/core/src/__tests__/session-trace.test.ts b/packages/core/src/__tests__/session-trace.test.ts index 429e7ce3b8..21e9b24596 100644 --- a/packages/core/src/__tests__/session-trace.test.ts +++ b/packages/core/src/__tests__/session-trace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/settings.test.ts b/packages/core/src/__tests__/settings.test.ts index 5fea5a3d58..6e5738d385 100644 --- a/packages/core/src/__tests__/settings.test.ts +++ b/packages/core/src/__tests__/settings.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from './test-helpers.js'; import { createDefaultSettings, mergeSettings, normalizeSettings } from '../settings.js'; diff --git a/packages/core/src/__tests__/shell-run-result.test.ts b/packages/core/src/__tests__/shell-run-result.test.ts index 9947316ac8..6399d1d30d 100644 --- a/packages/core/src/__tests__/shell-run-result.test.ts +++ b/packages/core/src/__tests__/shell-run-result.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/core/src/__tests__/subagent-session-parent.test.ts b/packages/core/src/__tests__/subagent-session-parent.test.ts index 83c34578d3..4e7aee4eb7 100644 --- a/packages/core/src/__tests__/subagent-session-parent.test.ts +++ b/packages/core/src/__tests__/subagent-session-parent.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { SessionSummary, SubagentSessionParent, SubagentSessionSpawn } from '../session.js'; diff --git a/packages/core/src/__tests__/subagent-workspace.test.ts b/packages/core/src/__tests__/subagent-workspace.test.ts index 7c0490b015..f98c6494d4 100644 --- a/packages/core/src/__tests__/subagent-workspace.test.ts +++ b/packages/core/src/__tests__/subagent-workspace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/task-ledger.test.ts b/packages/core/src/__tests__/task-ledger.test.ts index f0d22b4039..df81ea34ef 100644 --- a/packages/core/src/__tests__/task-ledger.test.ts +++ b/packages/core/src/__tests__/task-ledger.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/task-submission-readiness.test.ts b/packages/core/src/__tests__/task-submission-readiness.test.ts index 28360b2b7c..ce5c89b505 100644 --- a/packages/core/src/__tests__/task-submission-readiness.test.ts +++ b/packages/core/src/__tests__/task-submission-readiness.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import type { LlmConnection } from '../llm-connections.js'; import { diff --git a/packages/core/src/__tests__/terminal-input.test.ts b/packages/core/src/__tests__/terminal-input.test.ts index f6fb0503eb..17b3b08ecf 100644 --- a/packages/core/src/__tests__/terminal-input.test.ts +++ b/packages/core/src/__tests__/terminal-input.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { it } from 'node:test'; diff --git a/packages/core/src/__tests__/test-helpers.ts b/packages/core/src/__tests__/test-helpers.ts index 9206c66f65..b4ad1bed84 100644 --- a/packages/core/src/__tests__/test-helpers.ts +++ b/packages/core/src/__tests__/test-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; export function expect(actual: unknown) { diff --git a/packages/core/src/__tests__/text-file-import.test.ts b/packages/core/src/__tests__/text-file-import.test.ts index c1a45d7677..dde09b2791 100644 --- a/packages/core/src/__tests__/text-file-import.test.ts +++ b/packages/core/src/__tests__/text-file-import.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { diff --git a/packages/core/src/__tests__/tool-activity-args.test.ts b/packages/core/src/__tests__/tool-activity-args.test.ts index e0efe33059..1383e66a75 100644 --- a/packages/core/src/__tests__/tool-activity-args.test.ts +++ b/packages/core/src/__tests__/tool-activity-args.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { it } from 'node:test'; diff --git a/packages/core/src/__tests__/tool-args-identity.test.ts b/packages/core/src/__tests__/tool-args-identity.test.ts index d76c27e21b..9d099a9787 100644 --- a/packages/core/src/__tests__/tool-args-identity.test.ts +++ b/packages/core/src/__tests__/tool-args-identity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { stableJsonStringify, stripUndefinedDeep } from '../tool-args-identity.js'; diff --git a/packages/core/src/__tests__/tool-quiet-preview.test.ts b/packages/core/src/__tests__/tool-quiet-preview.test.ts index 002924944d..e12978de88 100644 --- a/packages/core/src/__tests__/tool-quiet-preview.test.ts +++ b/packages/core/src/__tests__/tool-quiet-preview.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { formatAsKeyValueLines, formatQuietJsonValue } from '../tool-quiet-preview.js'; diff --git a/packages/core/src/__tests__/tool-recovery-authority.test.ts b/packages/core/src/__tests__/tool-recovery-authority.test.ts index 7b6202aa8f..4251ed56d5 100644 --- a/packages/core/src/__tests__/tool-recovery-authority.test.ts +++ b/packages/core/src/__tests__/tool-recovery-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { decodeRuntimeEvent, type RuntimeEvent } from '../runtime-event.js'; diff --git a/packages/core/src/__tests__/tool-result-preview.test.ts b/packages/core/src/__tests__/tool-result-preview.test.ts index 02d9cd5d3a..64a6ebfe71 100644 --- a/packages/core/src/__tests__/tool-result-preview.test.ts +++ b/packages/core/src/__tests__/tool-result-preview.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { decodeToolResultPreviewContent } from '../tool-result-preview.js'; diff --git a/packages/core/src/__tests__/tool-result-record-schema.test.ts b/packages/core/src/__tests__/tool-result-record-schema.test.ts index 01232eff8f..6c6129dcdd 100644 --- a/packages/core/src/__tests__/tool-result-record-schema.test.ts +++ b/packages/core/src/__tests__/tool-result-record-schema.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { StoredMessage } from '../session.js'; diff --git a/packages/core/src/__tests__/unified-diff.test.ts b/packages/core/src/__tests__/unified-diff.test.ts index 5705103d8f..fbc31e3b2e 100644 --- a/packages/core/src/__tests__/unified-diff.test.ts +++ b/packages/core/src/__tests__/unified-diff.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, test } from 'node:test'; diff --git a/packages/core/src/__tests__/usage-ledger-merge.test.ts b/packages/core/src/__tests__/usage-ledger-merge.test.ts index fe737ca573..4ed62ebb5c 100644 --- a/packages/core/src/__tests__/usage-ledger-merge.test.ts +++ b/packages/core/src/__tests__/usage-ledger-merge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/core/src/__tests__/web-search.test.ts b/packages/core/src/__tests__/web-search.test.ts index c60734cccf..6ea3cc4d9d 100644 --- a/packages/core/src/__tests__/web-search.test.ts +++ b/packages/core/src/__tests__/web-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/core/src/__tests__/work-board.test.ts b/packages/core/src/__tests__/work-board.test.ts index 6494b76195..846d001097 100644 --- a/packages/core/src/__tests__/work-board.test.ts +++ b/packages/core/src/__tests__/work-board.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/core/src/__tests__/workspace-version-authority.test.ts b/packages/core/src/__tests__/workspace-version-authority.test.ts index 8ec50fb25e..78774f9736 100644 --- a/packages/core/src/__tests__/workspace-version-authority.test.ts +++ b/packages/core/src/__tests__/workspace-version-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { decodeRuntimeEvent, type RuntimeEvent } from '../runtime-event.js'; diff --git a/packages/core/src/absolute-path.ts b/packages/core/src/absolute-path.ts index f036dba828..7dcbe65156 100644 --- a/packages/core/src/absolute-path.ts +++ b/packages/core/src/absolute-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Pure absolute-path helpers shared by permission and sandbox-boundary contracts. */ export function isNormalizedAbsolutePath(path: string): boolean { if (!path || path.includes('\0')) return false; diff --git a/packages/core/src/additional-permissions.ts b/packages/core/src/additional-permissions.ts index 4eaa8797f9..5bff4960a1 100644 --- a/packages/core/src/additional-permissions.ts +++ b/packages/core/src/additional-permissions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const ADDITIONAL_PERMISSION_ACCESS_MODES = ['read', 'write'] as const; export type AdditionalPermissionAccess = (typeof ADDITIONAL_PERMISSION_ACCESS_MODES)[number]; diff --git a/packages/core/src/agent-graph-client-projection.ts b/packages/core/src/agent-graph-client-projection.ts index 42d44ecccb..a278d1e661 100644 --- a/packages/core/src/agent-graph-client-projection.ts +++ b/packages/core/src/agent-graph-client-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentAdmissionState } from './agent-graph-schedule.js'; export const AGENT_GRAPH_CLIENT_PROJECTION_SCHEMA_VERSION = 1 as const; diff --git a/packages/core/src/agent-graph-control.ts b/packages/core/src/agent-graph-control.ts index c3ed066773..91baabe7c7 100644 --- a/packages/core/src/agent-graph-control.ts +++ b/packages/core/src/agent-graph-control.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const AGENT_GRAPH_INTENT_CLAIM_SCHEMA_VERSION = 1 as const; export interface AgentGraphIntentClaimRequest { diff --git a/packages/core/src/agent-graph-epoch.ts b/packages/core/src/agent-graph-epoch.ts index 1b2e4d7e74..a8ccc40584 100644 --- a/packages/core/src/agent-graph-epoch.ts +++ b/packages/core/src/agent-graph-epoch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const AGENT_GRAPH_EPOCH_SCHEMA_VERSION = 1 as const; /** Durable identity of one Agent Graph lifetime within a root Session. */ diff --git a/packages/core/src/agent-graph-schedule.ts b/packages/core/src/agent-graph-schedule.ts index 80f3475819..a41849a58f 100644 --- a/packages/core/src/agent-graph-schedule.ts +++ b/packages/core/src/agent-graph-schedule.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentClaimRequest, AgentGraphIntentClaimResult, diff --git a/packages/core/src/agent-graph-supervisor-wake.ts b/packages/core/src/agent-graph-supervisor-wake.ts index 7ab7d06c5f..d8d02f7ba3 100644 --- a/packages/core/src/agent-graph-supervisor-wake.ts +++ b/packages/core/src/agent-graph-supervisor-wake.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const AGENT_GRAPH_SUPERVISOR_WAKE_SCHEMA_VERSION = 1 as const; export type AgentGraphSupervisorWakeStatus = diff --git a/packages/core/src/agent-graph-timeline.ts b/packages/core/src/agent-graph-timeline.ts index 4a920b4773..0e34f06e95 100644 --- a/packages/core/src/agent-graph-timeline.ts +++ b/packages/core/src/agent-graph-timeline.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentClaim } from './agent-graph-control.js'; import type { AgentGraphIntentAdmissionState, diff --git a/packages/core/src/agent-graph-topology.ts b/packages/core/src/agent-graph-topology.ts index 4488158138..c58a2f3330 100644 --- a/packages/core/src/agent-graph-topology.ts +++ b/packages/core/src/agent-graph-topology.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const AGENT_GRAPH_OPERATOR_PROVISION_SCHEMA_VERSION = 1 as const; export interface AgentGraphProvisionedEdge { diff --git a/packages/core/src/agent-run.ts b/packages/core/src/agent-run.ts index 1d4459df4a..332d087a41 100644 --- a/packages/core/src/agent-run.ts +++ b/packages/core/src/agent-run.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isPermissionMode, type PermissionMode } from './permission.js'; import { isCollaborationMode, type CollaborationMode } from './collaboration.js'; import { diff --git a/packages/core/src/agent-swarm.ts b/packages/core/src/agent-swarm.ts index b40d58eadd..02d32a9f5f 100644 --- a/packages/core/src/agent-swarm.ts +++ b/packages/core/src/agent-swarm.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultContent } from './events.js'; export type AgentSwarmResult = Extract; diff --git a/packages/core/src/artifacts.ts b/packages/core/src/artifacts.ts index 2ddcda7318..0b068dcf04 100644 --- a/packages/core/src/artifacts.ts +++ b/packages/core/src/artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const ARTIFACT_KINDS = ['file', 'diff', 'html', 'image', 'pdf'] as const; export type ArtifactKind = (typeof ARTIFACT_KINDS)[number]; diff --git a/packages/core/src/attachments.ts b/packages/core/src/attachments.ts index 27a5797136..6fe82ed2bd 100644 --- a/packages/core/src/attachments.ts +++ b/packages/core/src/attachments.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AttachmentRef, StorageRef } from './events.js'; import { isCanonicalArtifactEntityId } from './artifacts.js'; diff --git a/packages/core/src/backend-types.ts b/packages/core/src/backend-types.ts index d62adb4952..d37b3ece64 100644 --- a/packages/core/src/backend-types.ts +++ b/packages/core/src/backend-types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AgentBackend contract types. * diff --git a/packages/core/src/bot-chat-settings.ts b/packages/core/src/bot-chat-settings.ts index 0e98604d9f..055093cea9 100644 --- a/packages/core/src/bot-chat-settings.ts +++ b/packages/core/src/bot-chat-settings.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type BotProvider = | 'telegram' | 'feishu' diff --git a/packages/core/src/bot-events.ts b/packages/core/src/bot-events.ts index 0d9783abac..08593a4edf 100644 --- a/packages/core/src/bot-events.ts +++ b/packages/core/src/bot-events.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider } from './bot-chat-settings.js'; export type BotPlatform = BotProvider; diff --git a/packages/core/src/bot-onboarding.ts b/packages/core/src/bot-onboarding.ts index 33394aa0f9..9bfbcbdeb4 100644 --- a/packages/core/src/bot-onboarding.ts +++ b/packages/core/src/bot-onboarding.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider } from './bot-chat-settings.js'; export const BOT_ONBOARDING_PROVIDERS = [ diff --git a/packages/core/src/browser.ts b/packages/core/src/browser.ts index 5f92b45ff7..ae141f481f 100644 --- a/packages/core/src/browser.ts +++ b/packages/core/src/browser.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared embedded-browser types crossing the main ↔ preload ↔ renderer * boundary (window.maka.browser). The main-process logic that derives these diff --git a/packages/core/src/canonical-runtime-event.ts b/packages/core/src/canonical-runtime-event.ts index 8b06af746e..ea9b8ddde3 100644 --- a/packages/core/src/canonical-runtime-event.ts +++ b/packages/core/src/canonical-runtime-event.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import * as nodeUtil from 'node:util'; import type { RuntimeEvent } from './runtime-event.js'; import { decodeRuntimeEvent } from './runtime-event.js'; diff --git a/packages/core/src/capabilities.ts b/packages/core/src/capabilities.ts index 54af699f90..bdc33a1fd1 100644 --- a/packages/core/src/capabilities.ts +++ b/packages/core/src/capabilities.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider, BotReadinessState } from './bot-chat-settings.js'; export const OS_PERMISSION_IDS = [ diff --git a/packages/core/src/capability-audit.ts b/packages/core/src/capability-audit.ts index 68cf3cc5f1..30069daa29 100644 --- a/packages/core/src/capability-audit.ts +++ b/packages/core/src/capability-audit.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ScheduledTask, ScheduledTaskRunOutcome } from './scheduled-task.js'; export const SOURCE_RECORD_TYPES = ['mcp', 'api', 'local'] as const; diff --git a/packages/core/src/chat-model-choice.ts b/packages/core/src/chat-model-choice.ts index e87fd19160..3295b42586 100644 --- a/packages/core/src/chat-model-choice.ts +++ b/packages/core/src/chat-model-choice.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { normalizeOpenAiCodexConnection } from './connection-readiness.js'; import { buildConnectionModelCatalogEntries } from './model-catalog.js'; import { thinkingVariantsForConnection, type ThinkingLevel } from './model-thinking.js'; diff --git a/packages/core/src/codex-model-compatibility.ts b/packages/core/src/codex-model-compatibility.ts index a8cc13164d..7d8004ef67 100644 --- a/packages/core/src/codex-model-compatibility.ts +++ b/packages/core/src/codex-model-compatibility.ts @@ -1 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const CODEX_SUBSCRIPTION_UNSUPPORTED_CHATGPT_MODELS = new Set(['gpt-5-codex']); diff --git a/packages/core/src/collaboration.ts b/packages/core/src/collaboration.ts index ac2ec74181..a6294ec2e8 100644 --- a/packages/core/src/collaboration.ts +++ b/packages/core/src/collaboration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const COLLABORATION_MODES = ['agent', 'plan'] as const; export type CollaborationMode = (typeof COLLABORATION_MODES)[number]; diff --git a/packages/core/src/computer-use.ts b/packages/core/src/computer-use.ts index b0b2711baf..b4846c7a0c 100644 --- a/packages/core/src/computer-use.ts +++ b/packages/core/src/computer-use.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Provider-neutral Computer Use contract. * diff --git a/packages/core/src/connection-error-copy.ts b/packages/core/src/connection-error-copy.ts index d2940196f8..d4e332d40a 100644 --- a/packages/core/src/connection-error-copy.ts +++ b/packages/core/src/connection-error-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Human-readable copy for a not-ready chat connection: maps each * `NO_REAL_CONNECTION:` code to one fix sentence so a first-run / CLI diff --git a/packages/core/src/connection-readiness.ts b/packages/core/src/connection-readiness.ts index 37eda60f63..aad40e709c 100644 --- a/packages/core/src/connection-readiness.ts +++ b/packages/core/src/connection-readiness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Connection readiness — pure, sync judgment shared by task-submission * readiness, the onboarding state machine, and legacy-session health diff --git a/packages/core/src/connections.ts b/packages/core/src/connections.ts index d5d2b36ae3..97d485eec3 100644 --- a/packages/core/src/connections.ts +++ b/packages/core/src/connections.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Connection-setup events & commands. * diff --git a/packages/core/src/cron-expression.ts b/packages/core/src/cron-expression.ts index 86b528f545..b8da512184 100644 --- a/packages/core/src/cron-expression.ts +++ b/packages/core/src/cron-expression.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type CronFieldName = 'minute' | 'hour' | 'day-of-month' | 'month' | 'day-of-week'; export type CronCompileErrorCode = diff --git a/packages/core/src/daily-review.ts b/packages/core/src/daily-review.ts index 92a0819436..ba9c6ff757 100644 --- a/packages/core/src/daily-review.ts +++ b/packages/core/src/daily-review.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Daily Review domain values and pure projection helpers. * diff --git a/packages/core/src/deep-research-client-progress.ts b/packages/core/src/deep-research-client-progress.ts index 79e079fe20..cc46a50096 100644 --- a/packages/core/src/deep-research-client-progress.ts +++ b/packages/core/src/deep-research-client-progress.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildDeepResearchImplementationPrompt } from './explore-agent.js'; import { DEEP_RESEARCH_CLIENT_IMPLEMENTATION_PROMPT_MAX_BYTES, diff --git a/packages/core/src/deep-research-run.ts b/packages/core/src/deep-research-run.ts index 519d3b919f..daacf7d57c 100644 --- a/packages/core/src/deep-research-run.ts +++ b/packages/core/src/deep-research-run.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Durable Deep Research workspace contract. * diff --git a/packages/core/src/diagnostic-log.ts b/packages/core/src/diagnostic-log.ts index d500bf62f7..09e0077f38 100644 --- a/packages/core/src/diagnostic-log.ts +++ b/packages/core/src/diagnostic-log.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { redactSecrets } from './redaction.js'; export type DiagnosticLogLevel = 'debug' | 'info' | 'log' | 'warn' | 'error'; diff --git a/packages/core/src/display-redaction.ts b/packages/core/src/display-redaction.ts index 3f7146f3a0..0de83dd961 100644 --- a/packages/core/src/display-redaction.ts +++ b/packages/core/src/display-redaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Display-facing defensive secret masking. // // This module is the single source of truth for the display-layer diff --git a/packages/core/src/e2e-fixture.ts b/packages/core/src/e2e-fixture.ts index f6bc21a6c6..065a8187f6 100644 --- a/packages/core/src/e2e-fixture.ts +++ b/packages/core/src/e2e-fixture.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotOnboardingProvider } from './bot-onboarding.js'; import type { SettingsSection } from './settings.js'; import type { UiLocale } from './ui-locale.js'; diff --git a/packages/core/src/events.ts b/packages/core/src/events.ts index e82202dfc9..c43ee639f9 100644 --- a/packages/core/src/events.ts +++ b/packages/core/src/events.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Backend → UI unified event stream. * diff --git a/packages/core/src/execution-inspect.ts b/packages/core/src/execution-inspect.ts index 3483b6b5dd..1c822ed671 100644 --- a/packages/core/src/execution-inspect.ts +++ b/packages/core/src/execution-inspect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AGENT_RUN_STATUSES, type AgentRunHeader } from './agent-run.js'; import { EXECUTION_LOG_LEDGERS, type ExecutionLogCoverage } from './execution-log-coverage.js'; import { SESSION_STATUSES, type SessionHeader } from './session.js'; diff --git a/packages/core/src/execution-log-coverage.ts b/packages/core/src/execution-log-coverage.ts index b03742d044..2d931d8d1f 100644 --- a/packages/core/src/execution-log-coverage.ts +++ b/packages/core/src/execution-log-coverage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const EXECUTION_LOG_LEDGERS = ['runtime_event', 'runtime_event_projection'] as const; export type ExecutionLogLedger = (typeof EXECUTION_LOG_LEDGERS)[number]; diff --git a/packages/core/src/explore-agent.ts b/packages/core/src/explore-agent.ts index 964b3046f4..2999b6cad2 100644 --- a/packages/core/src/explore-agent.ts +++ b/packages/core/src/explore-agent.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Read-only deep research mode (external reference design). * diff --git a/packages/core/src/external-session.ts b/packages/core/src/external-session.ts index f27b7a7e6d..5f2255dcea 100644 --- a/packages/core/src/external-session.ts +++ b/packages/core/src/external-session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from './session.js'; /** Stable identifier for one external Agent integration, for example `codex`. */ diff --git a/packages/core/src/foreign-session.ts b/packages/core/src/foreign-session.ts index 9442f5b724..8975847ae7 100644 --- a/packages/core/src/foreign-session.ts +++ b/packages/core/src/foreign-session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Foreign session contracts and defensive parsing (#1057). * diff --git a/packages/core/src/git-review.ts b/packages/core/src/git-review.ts index 9f7209f20d..9ca9ec90ac 100644 --- a/packages/core/src/git-review.ts +++ b/packages/core/src/git-review.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type GitReviewSource = 'branch' | 'unstaged' | 'staged'; export type GitReviewFileStatus = diff --git a/packages/core/src/goal.ts b/packages/core/src/goal.ts index 8d0fb1b889..eb4460cb20 100644 --- a/packages/core/src/goal.ts +++ b/packages/core/src/goal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, hasExactShape, isRecord } from './record-schema.js'; export const GOAL_STATUSES = [ diff --git a/packages/core/src/graph-command.ts b/packages/core/src/graph-command.ts index b618238962..56ea9734ce 100644 --- a/packages/core/src/graph-command.ts +++ b/packages/core/src/graph-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OrchestrationMode } from './orchestration.js'; export type ParsedGraphCommand = diff --git a/packages/core/src/health.ts b/packages/core/src/health.ts index d4bd012023..40b54ab9be 100644 --- a/packages/core/src/health.ts +++ b/packages/core/src/health.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CapabilityId, CapabilityReadinessState, CapabilitySnapshot } from './capabilities.js'; import type { LlmConnection } from './llm-connections.js'; import type { UsageLogRow } from './usage-stats/types.js'; diff --git a/packages/core/src/incognito.ts b/packages/core/src/incognito.ts index 5a387b0d5c..7582242792 100644 --- a/packages/core/src/incognito.ts +++ b/packages/core/src/incognito.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Main-owned workspace privacy state. Invalid boundary data fails closed. */ export interface WorkspacePrivacyContext { diff --git a/packages/core/src/interaction-permission-review.ts b/packages/core/src/interaction-permission-review.ts index b3f262486b..fc12008c16 100644 --- a/packages/core/src/interaction-permission-review.ts +++ b/packages/core/src/interaction-permission-review.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_ADDITIONAL_FILESYSTEM_ENTRIES, validateAdditionalPermissionProfile, diff --git a/packages/core/src/interaction-record-schema.ts b/packages/core/src/interaction-record-schema.ts index c807d7b64c..691b917dc4 100644 --- a/packages/core/src/interaction-record-schema.ts +++ b/packages/core/src/interaction-record-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { APPROVALS_REVIEWERS, APPROVAL_RISK_LEVELS, diff --git a/packages/core/src/interaction.ts b/packages/core/src/interaction.ts index 28f9a63069..f49136af08 100644 --- a/packages/core/src/interaction.ts +++ b/packages/core/src/interaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { APPROVALS_REVIEWERS, APPROVAL_RISK_LEVELS, diff --git a/packages/core/src/llm-connections.ts b/packages/core/src/llm-connections.ts index 5e231fd028..32f0589ae9 100644 --- a/packages/core/src/llm-connections.ts +++ b/packages/core/src/llm-connections.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * LLM provider connection metadata. * diff --git a/packages/core/src/local-memory.ts b/packages/core/src/local-memory.ts index 88124bfd9d..ffefc91f8b 100644 --- a/packages/core/src/local-memory.ts +++ b/packages/core/src/local-memory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Transparent local MEMORY.md contract. * diff --git a/packages/core/src/long-term-memory.ts b/packages/core/src/long-term-memory.ts index 48bac92b41..c9585c2ce8 100644 --- a/packages/core/src/long-term-memory.ts +++ b/packages/core/src/long-term-memory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Atomic long-term-memory contracts. * diff --git a/packages/core/src/mcp-secrets.ts b/packages/core/src/mcp-secrets.ts index 2a6a84c38e..30a0ed438f 100644 --- a/packages/core/src/mcp-secrets.ts +++ b/packages/core/src/mcp-secrets.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/core/src/mcp-secrets.ts // // The single authority for WHERE credential material lives in an MCP server diff --git a/packages/core/src/mcp.ts b/packages/core/src/mcp.ts index c15558966c..8a7b1b7b2b 100644 --- a/packages/core/src/mcp.ts +++ b/packages/core/src/mcp.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const MCP_CONFIG_VERSION = 2 as const; export type McpTransportKind = 'stdio' | 'streamable-http' | 'sse' | 'auto'; diff --git a/packages/core/src/model-call-attempt.ts b/packages/core/src/model-call-attempt.ts index 3c36d564dc..fad17c4ed2 100644 --- a/packages/core/src/model-call-attempt.ts +++ b/packages/core/src/model-call-attempt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, hasExactShape, diff --git a/packages/core/src/model-call-usage-projection.ts b/packages/core/src/model-call-usage-projection.ts index 3a7bd55b05..74c9b84194 100644 --- a/packages/core/src/model-call-usage-projection.ts +++ b/packages/core/src/model-call-usage-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { dedupeModelCallAttempts, summarizeModelCallCoverage, diff --git a/packages/core/src/model-catalog.ts b/packages/core/src/model-catalog.ts index d9da601b19..dfec9fbe5f 100644 --- a/packages/core/src/model-catalog.ts +++ b/packages/core/src/model-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LlmConnection, ModelDiscoverySource, diff --git a/packages/core/src/model-metadata.ts b/packages/core/src/model-metadata.ts index eb6e29ca69..eab94234dd 100644 --- a/packages/core/src/model-metadata.ts +++ b/packages/core/src/model-metadata.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelInfo, ProviderType } from './llm-connections.js'; import type { ThinkingOptions } from './model-thinking.js'; import { diff --git a/packages/core/src/model-thinking.ts b/packages/core/src/model-thinking.ts index b702b5a4e9..fb3866b271 100644 --- a/packages/core/src/model-thinking.ts +++ b/packages/core/src/model-thinking.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Controllable thinking level for reasoning-capable models. * diff --git a/packages/core/src/model-web-search.ts b/packages/core/src/model-web-search.ts index dc7d8dea76..cd389c3bf5 100644 --- a/packages/core/src/model-web-search.ts +++ b/packages/core/src/model-web-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelInfo, ProviderType } from './llm-connections.js'; import { deepSeekModelSupportsResponses } from './model-metadata.js'; diff --git a/packages/core/src/node-diagnostic-log.ts b/packages/core/src/node-diagnostic-log.ts index e6c777f3c6..8786ae8185 100644 --- a/packages/core/src/node-diagnostic-log.ts +++ b/packages/core/src/node-diagnostic-log.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { formatWithOptions } from 'node:util'; import type { DiagnosticLogBuffer } from './diagnostic-log.js'; diff --git a/packages/core/src/oauth-subscription.ts b/packages/core/src/oauth-subscription.ts index 3055d03a3c..c8f271b92d 100644 --- a/packages/core/src/oauth-subscription.ts +++ b/packages/core/src/oauth-subscription.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * OAuth subscription contract — core types + pure helpers. * diff --git a/packages/core/src/onboarding-milestone.ts b/packages/core/src/onboarding-milestone.ts index 35beb0cdbe..f6dd9174dc 100644 --- a/packages/core/src/onboarding-milestone.ts +++ b/packages/core/src/onboarding-milestone.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function hasSettledInitialOnboarding( milestones: ReadonlyArray<{ id: string; diff --git a/packages/core/src/onboarding.ts b/packages/core/src/onboarding.ts index 9c30d7eaed..a711cbbc6c 100644 --- a/packages/core/src/onboarding.ts +++ b/packages/core/src/onboarding.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Pure onboarding projection; persisted milestones are validated separately below. */ import { diff --git a/packages/core/src/orchestration.ts b/packages/core/src/orchestration.ts index b468900624..9f5b80b9cc 100644 --- a/packages/core/src/orchestration.ts +++ b/packages/core/src/orchestration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const ORCHESTRATION_MODES = ['default', 'swarm', 'graph'] as const; export type OrchestrationMode = (typeof ORCHESTRATION_MODES)[number]; diff --git a/packages/core/src/permission-profile-compiler.ts b/packages/core/src/permission-profile-compiler.ts index a2eba2cfa5..580f7f805b 100644 --- a/packages/core/src/permission-profile-compiler.ts +++ b/packages/core/src/permission-profile-compiler.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionMode } from './permission.js'; import type { NetworkSandboxPolicy, diff --git a/packages/core/src/permission-profile.ts b/packages/core/src/permission-profile.ts index a0b76432e1..c8f780ee3c 100644 --- a/packages/core/src/permission-profile.ts +++ b/packages/core/src/permission-profile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Platform-independent permission profile model. * diff --git a/packages/core/src/permission.ts b/packages/core/src/permission.ts index 8c5e3d7c9c..069dc3abc5 100644 --- a/packages/core/src/permission.ts +++ b/packages/core/src/permission.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Legacy permission payloads and shared tool-category compatibility types. */ // ============================================================================ diff --git a/packages/core/src/pet.ts b/packages/core/src/pet.ts index 5e109205ca..7dec12b249 100644 --- a/packages/core/src/pet.ts +++ b/packages/core/src/pet.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, isRecord, type ExactObjectShape } from './record-schema.js'; export const PET_PACK_SCHEMA_V1 = 'maka.pet/v1' as const; diff --git a/packages/core/src/plan.ts b/packages/core/src/plan.ts index 0007955fb2..96d98f48e2 100644 --- a/packages/core/src/plan.ts +++ b/packages/core/src/plan.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const PLAN_PROPOSAL_STATUSES = ['pending_approval', 'stale', 'approved'] as const; export type PlanProposalStatus = (typeof PLAN_PROPOSAL_STATUSES)[number]; diff --git a/packages/core/src/project.ts b/packages/core/src/project.ts index e84f33119d..7a910c9711 100644 --- a/packages/core/src/project.ts +++ b/packages/core/src/project.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface ProjectLocation { path: string; isWorktree: boolean; diff --git a/packages/core/src/provider-auth.ts b/packages/core/src/provider-auth.ts index 42ae9f6796..7dd7ef1903 100644 --- a/packages/core/src/provider-auth.ts +++ b/packages/core/src/provider-auth.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, providerAuthRequiresSecret, diff --git a/packages/core/src/provider-registry.ts b/packages/core/src/provider-registry.ts index 7658171539..5a4321b863 100644 --- a/packages/core/src/provider-registry.ts +++ b/packages/core/src/provider-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BackendKind } from './session.js'; import { GENERATED_MODELS_DEV_METADATA, diff --git a/packages/core/src/pty-output-view.ts b/packages/core/src/pty-output-view.ts index 384392665f..22bddb6759 100644 --- a/packages/core/src/pty-output-view.ts +++ b/packages/core/src/pty-output-view.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PtyShellOutput } from './shell-run.js'; export function ptyHumanTerminalText(output: PtyShellOutput): string { diff --git a/packages/core/src/record-schema.ts b/packages/core/src/record-schema.ts index 9e0b61be5f..a0489d5e19 100644 --- a/packages/core/src/record-schema.ts +++ b/packages/core/src/record-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + type IsOptionalInAnyMember = T extends unknown ? {} extends Pick ? true diff --git a/packages/core/src/redaction.ts b/packages/core/src/redaction.ts index e6fc39705f..cfef5482a5 100644 --- a/packages/core/src/redaction.ts +++ b/packages/core/src/redaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const SENSITIVE_KEY_SUFFIXES = new Set([ 'auth', 'authorization', diff --git a/packages/core/src/relative-time.ts b/packages/core/src/relative-time.ts index ec393d83ea..f3d6331e07 100644 --- a/packages/core/src/relative-time.ts +++ b/packages/core/src/relative-time.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-RELATIVE-TIME-0: a single, locale-aware relative-time formatter * shared by every Maka surface. The existing `formatRelativeTimestamp` diff --git a/packages/core/src/request-customization.ts b/packages/core/src/request-customization.ts index 4c9c06720f..fc274597b8 100644 --- a/packages/core/src/request-customization.ts +++ b/packages/core/src/request-customization.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type JsonPrimitive = string | number | boolean | null; export type JsonValue = JsonPrimitive | JsonArray | JsonObject; export interface JsonArray extends ReadonlyArray {} diff --git a/packages/core/src/result.ts b/packages/core/src/result.ts index 56690608fe..81be5ea3ae 100644 --- a/packages/core/src/result.ts +++ b/packages/core/src/result.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type Result = | { ok: true; data: T } | { ok: false; error: { code: string; message: string; details?: unknown } }; diff --git a/packages/core/src/run-composition.ts b/packages/core/src/run-composition.ts index 1b7a7ce704..8da0b8ee69 100644 --- a/packages/core/src/run-composition.ts +++ b/packages/core/src/run-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, hasExactShape, isRecord } from './record-schema.js'; export const RUN_COMPOSITION_SCHEMA_VERSION = 1 as const; diff --git a/packages/core/src/runtime-boundary.ts b/packages/core/src/runtime-boundary.ts index 5b931ff01f..e444a8862a 100644 --- a/packages/core/src/runtime-boundary.ts +++ b/packages/core/src/runtime-boundary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import * as nodeCrypto from 'node:crypto'; import type { Hash } from 'node:crypto'; import { decodeAgentRunHeader, type AgentRunHeader } from './agent-run.js'; diff --git a/packages/core/src/runtime-event-store.ts b/packages/core/src/runtime-event-store.ts index 67ff5276fa..9bb29085ba 100644 --- a/packages/core/src/runtime-event-store.ts +++ b/packages/core/src/runtime-event-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from './runtime-event.js'; import type { ContinuationClaimV1, diff --git a/packages/core/src/runtime-event.ts b/packages/core/src/runtime-event.ts index ec866a1a37..9a80ea99b0 100644 --- a/packages/core/src/runtime-event.ts +++ b/packages/core/src/runtime-event.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Canonical Runtime v2 event contract. * diff --git a/packages/core/src/runtime-inputs.ts b/packages/core/src/runtime-inputs.ts index e7e3281d15..8615ba513d 100644 --- a/packages/core/src/runtime-inputs.ts +++ b/packages/core/src/runtime-inputs.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Inputs to runtime APIs (create session, send message, list/filter). */ diff --git a/packages/core/src/runtime-policy.ts b/packages/core/src/runtime-policy.ts index 1b2edb1d41..e7e3454081 100644 --- a/packages/core/src/runtime-policy.ts +++ b/packages/core/src/runtime-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionLastTestStatus, ConnectionTestErrorClass, diff --git a/packages/core/src/runtime-policy/connection-catalog-codec.ts b/packages/core/src/runtime-policy/connection-catalog-codec.ts index 6b4a072558..e3bc5f5bd5 100644 --- a/packages/core/src/runtime-policy/connection-catalog-codec.ts +++ b/packages/core/src/runtime-policy/connection-catalog-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isRelayProviderType, PROVIDER_DEFAULTS, diff --git a/packages/core/src/runtime-policy/credential-vault-codec.ts b/packages/core/src/runtime-policy/credential-vault-codec.ts index d9ff2e9365..e709baf3b5 100644 --- a/packages/core/src/runtime-policy/credential-vault-codec.ts +++ b/packages/core/src/runtime-policy/credential-vault-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CredentialLocator, CredentialStatus, diff --git a/packages/core/src/runtime-policy/domain-codec.ts b/packages/core/src/runtime-policy/domain-codec.ts index 3d3582dd5d..4cfb8497fd 100644 --- a/packages/core/src/runtime-policy/domain-codec.ts +++ b/packages/core/src/runtime-policy/domain-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { EntityId, Revision } from '../runtime-policy.js'; const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; diff --git a/packages/core/src/runtime-policy/policy-codec.ts b/packages/core/src/runtime-policy/policy-codec.ts index cbdeca7d02..442f19eb57 100644 --- a/packages/core/src/runtime-policy/policy-codec.ts +++ b/packages/core/src/runtime-policy/policy-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isThinkingLevel } from '../model-thinking.js'; import { CHAT_DEFAULT_PERMISSION_MODES } from '../settings.js'; import { normalizeSubagentSettings } from '../subagent-settings.js'; diff --git a/packages/core/src/sandbox-boundary.ts b/packages/core/src/sandbox-boundary.ts index 80944d359d..415918206e 100644 --- a/packages/core/src/sandbox-boundary.ts +++ b/packages/core/src/sandbox-boundary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionMode } from './permission.js'; import { isNormalizedAbsolutePath, diff --git a/packages/core/src/scheduled-task.ts b/packages/core/src/scheduled-task.ts index 804cf01813..927729a3ae 100644 --- a/packages/core/src/scheduled-task.ts +++ b/packages/core/src/scheduled-task.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * ScheduledTask — the single product noun for "定时任务". * diff --git a/packages/core/src/search.ts b/packages/core/src/search.ts index 65a12e2555..f3171d96b8 100644 --- a/packages/core/src/search.ts +++ b/packages/core/src/search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const SEARCH_QUERY_MAX_CHARS = 500; export const SEARCH_DOMAIN_MAX_CHARS = 253; export const SEARCH_URL_MAX_CHARS = 4096; diff --git a/packages/core/src/serialized-byte-length.ts b/packages/core/src/serialized-byte-length.ts index 0e94903c5b..d1720c7d38 100644 --- a/packages/core/src/serialized-byte-length.ts +++ b/packages/core/src/serialized-byte-length.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The single serialized-byte fact for the repository: how many UTF-8 bytes the * JSON representation of a value occupies, including quotes and escapes. Used diff --git a/packages/core/src/session-event-health.ts b/packages/core/src/session-event-health.ts index a3a1b86f07..9f2cb171f7 100644 --- a/packages/core/src/session-event-health.ts +++ b/packages/core/src/session-event-health.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionStatus } from './session.js'; export const SESSION_EVENT_STREAM_STATUSES = ['connected', 'stale', 'recovered', 'closed'] as const; diff --git a/packages/core/src/session-name.ts b/packages/core/src/session-name.ts index 34b02d1e84..7b670b6e66 100644 --- a/packages/core/src/session-name.ts +++ b/packages/core/src/session-name.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-UI-IPC-2 (@kenji msg 0474c3fe + @xuan msg 88d96a87): * User-visible session name normalization contract. diff --git a/packages/core/src/session-revisions.ts b/packages/core/src/session-revisions.ts index ebf299251d..e1b853878c 100644 --- a/packages/core/src/session-revisions.ts +++ b/packages/core/src/session-revisions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { projectLinkedSessionTree, sessionRevisionFamilyId, diff --git a/packages/core/src/session-send-projection.ts b/packages/core/src/session-send-projection.ts index 282a53b6df..8ec69d26ab 100644 --- a/packages/core/src/session-send-projection.ts +++ b/packages/core/src/session-send-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Session send projection — pure, sync compatibility answer for an existing * session's stored model target. #1038. diff --git a/packages/core/src/session-trace.ts b/packages/core/src/session-trace.ts index 310b69d6ab..f3f67160c6 100644 --- a/packages/core/src/session-trace.ts +++ b/packages/core/src/session-trace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { HISTORY_COMPACT_ROUTES, MODEL_CALL_DIAGNOSTIC_FIELD_MAX_LENGTH, diff --git a/packages/core/src/session.ts b/packages/core/src/session.ts index 3711a20632..ddef019952 100644 --- a/packages/core/src/session.ts +++ b/packages/core/src/session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeMessageContent, TOOL_ACTIVITY_KINDS, diff --git a/packages/core/src/settings.ts b/packages/core/src/settings.ts index db4a2ba9e8..f6715267b2 100644 --- a/packages/core/src/settings.ts +++ b/packages/core/src/settings.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isThinkingLevel, type ThinkingLevel } from './model-thinking.js'; import type { OnboardingMilestone } from './onboarding.js'; import { sanitizeOnboardingMilestones } from './onboarding.js'; diff --git a/packages/core/src/settings/__tests__/sensitive.test.ts b/packages/core/src/settings/__tests__/sensitive.test.ts index c9fb4e7d7b..36b4faa184 100644 --- a/packages/core/src/settings/__tests__/sensitive.test.ts +++ b/packages/core/src/settings/__tests__/sensitive.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../../__tests__/test-helpers.js'; import { applySensitivePatch, maskSensitive } from '../network-settings.js'; diff --git a/packages/core/src/settings/network-settings.ts b/packages/core/src/settings/network-settings.ts index 1c97b0aeb2..ff08836635 100644 --- a/packages/core/src/settings/network-settings.ts +++ b/packages/core/src/settings/network-settings.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type ProxyType = 'http' | 'https' | 'socks5'; export const SENSITIVE_PLACEHOLDER = '••••••••' as const; diff --git a/packages/core/src/shell-run-result.ts b/packages/core/src/shell-run-result.ts index ab83c56bc2..e10aa47194 100644 --- a/packages/core/src/shell-run-result.ts +++ b/packages/core/src/shell-run-result.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ShellRunSnapshotResult, ShellRunStateResult, diff --git a/packages/core/src/shell-run.ts b/packages/core/src/shell-run.ts index 3c753018bb..0a45cb3712 100644 --- a/packages/core/src/shell-run.ts +++ b/packages/core/src/shell-run.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const SHELL_RUN_STATUSES = [ 'starting', 'running', diff --git a/packages/core/src/side-conversation.ts b/packages/core/src/side-conversation.ts index 234d96c825..0d10aaeeaa 100644 --- a/packages/core/src/side-conversation.ts +++ b/packages/core/src/side-conversation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const SIDE_CONVERSATION_SESSION_LABEL = 'mode:side_conversation'; export function isSideConversationSession(labels: readonly string[] | undefined): boolean { diff --git a/packages/core/src/skill-invocation-token.ts b/packages/core/src/skill-invocation-token.ts index 45795763c7..f2a52d02a8 100644 --- a/packages/core/src/skill-invocation-token.ts +++ b/packages/core/src/skill-invocation-token.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The `/skill:` invocation grammar (issue #1148) — one string, because * every client that reads or writes a draft has to agree on where a token diff --git a/packages/core/src/skill-invocation.ts b/packages/core/src/skill-invocation.ts index 6eadbdbd21..662d32336e 100644 --- a/packages/core/src/skill-invocation.ts +++ b/packages/core/src/skill-invocation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type SkillInvocationMode = 'explicit' | 'model_tool'; export type SkillInvocationFailureReason = diff --git a/packages/core/src/slash-command-catalog.ts b/packages/core/src/slash-command-catalog.ts index dd564132b2..3162a2ab04 100644 --- a/packages/core/src/slash-command-catalog.ts +++ b/packages/core/src/slash-command-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type SlashCommandSessionRequirement = 'none' | 'required'; export type SlashCommandSurface = 'desktop' | 'tui'; diff --git a/packages/core/src/subagent-settings.ts b/packages/core/src/subagent-settings.ts index 5e0fa980cc..364d3a88d6 100644 --- a/packages/core/src/subagent-settings.ts +++ b/packages/core/src/subagent-settings.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isThinkingLevel, type ThinkingLevel } from './model-thinking.js'; export const SUBAGENT_PROFILES = ['local_read', 'web_research', 'implementation'] as const; diff --git a/packages/core/src/subagent-workspace.ts b/packages/core/src/subagent-workspace.ts index 67a9a9b23b..016979778d 100644 --- a/packages/core/src/subagent-workspace.ts +++ b/packages/core/src/subagent-workspace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const SUBAGENT_WORKSPACE_BINDING_SCHEMA_VERSION = 1 as const; const SUBAGENT_WORKTREE_LEASE_PATTERN = /^subagent_worktree_[a-f0-9]{32}$/; diff --git a/packages/core/src/swarm-command.ts b/packages/core/src/swarm-command.ts index df3b99b0ba..e25cd8812c 100644 --- a/packages/core/src/swarm-command.ts +++ b/packages/core/src/swarm-command.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OrchestrationMode } from './orchestration.js'; export type ParsedSwarmCommand = diff --git a/packages/core/src/task-ledger.ts b/packages/core/src/task-ledger.ts index 2004d8a867..dc5588dacf 100644 --- a/packages/core/src/task-ledger.ts +++ b/packages/core/src/task-ledger.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Session-scoped task ledger primitive for the main agent. The model manages a // flat task list via task_create/task_update; each turn tail re-injects the // current list. The durable contract is intentionally narrow: task status, diff --git a/packages/core/src/task-submission-readiness.ts b/packages/core/src/task-submission-readiness.ts index acbfdbd060..0744338344 100644 --- a/packages/core/src/task-submission-readiness.ts +++ b/packages/core/src/task-submission-readiness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isConnectionReady, normalizeOpenAiCodexConnection, diff --git a/packages/core/src/terminal-input.ts b/packages/core/src/terminal-input.ts index 82ff1586a5..9c59e0db94 100644 --- a/packages/core/src/terminal-input.ts +++ b/packages/core/src/terminal-input.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const TERMINAL_INPUT_NAMED_KEYS = [ 'enter', 'escape', diff --git a/packages/core/src/terminal-mouse-input.ts b/packages/core/src/terminal-mouse-input.ts index 4d1992bdb3..ba51daad8f 100644 --- a/packages/core/src/terminal-mouse-input.ts +++ b/packages/core/src/terminal-mouse-input.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { TerminalInputModifier, TerminalInputState, diff --git a/packages/core/src/text-file-import.ts b/packages/core/src/text-file-import.ts index d634fed4bd..9075afd3d5 100644 --- a/packages/core/src/text-file-import.ts +++ b/packages/core/src/text-file-import.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const MAX_IMPORTED_TEXT_FILE_BYTES = 200_000; export const MAX_IMPORTED_TEXT_FILE_CHARS = 20_000; export const MAX_IMPORTED_TEXT_FILE_COUNT = 5; diff --git a/packages/core/src/text-sanitize.ts b/packages/core/src/text-sanitize.ts index f1fd20ce1a..cbeaa68973 100644 --- a/packages/core/src/text-sanitize.ts +++ b/packages/core/src/text-sanitize.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Unicode text-sanitize pipeline — single source of truth (#1404). * diff --git a/packages/core/src/tool-activity-args.ts b/packages/core/src/tool-activity-args.ts index fd12ad9576..42e4bd98df 100644 --- a/packages/core/src/tool-activity-args.ts +++ b/packages/core/src/tool-activity-args.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { redactSecrets } from './redaction.js'; import { encodedTerminalInputActionsByteLength, diff --git a/packages/core/src/tool-args-identity.ts b/packages/core/src/tool-args-identity.ts index 4bdc96d8a1..a735610243 100644 --- a/packages/core/src/tool-args-identity.ts +++ b/packages/core/src/tool-args-identity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import * as nodeCrypto from 'node:crypto'; /** diff --git a/packages/core/src/tool-catalog.ts b/packages/core/src/tool-catalog.ts index 2e7d59f0ea..2e7a9d6442 100644 --- a/packages/core/src/tool-catalog.ts +++ b/packages/core/src/tool-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared product tool vocabulary (#1099). * diff --git a/packages/core/src/tool-ledger-scanner.ts b/packages/core/src/tool-ledger-scanner.ts index b94e05042a..820f332d6b 100644 --- a/packages/core/src/tool-ledger-scanner.ts +++ b/packages/core/src/tool-ledger-scanner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import * as nodeUtil from 'node:util'; import type { RuntimeEvent } from './runtime-event.js'; import { canonicalToolArgsHash } from './tool-args-identity.js'; diff --git a/packages/core/src/tool-mode.ts b/packages/core/src/tool-mode.ts index e2084617b2..fb30d78958 100644 --- a/packages/core/src/tool-mode.ts +++ b/packages/core/src/tool-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type ToolMode = 'direct' | 'code_mode'; export const DEFAULT_TOOL_MODE: ToolMode = 'direct'; diff --git a/packages/core/src/tool-quiet-preview.ts b/packages/core/src/tool-quiet-preview.ts index afd8ade810..f40e91c4a9 100644 --- a/packages/core/src/tool-quiet-preview.ts +++ b/packages/core/src/tool-quiet-preview.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Quiet-panel formatting for tool args + generic JSON results. * diff --git a/packages/core/src/tool-recovery-bundle.ts b/packages/core/src/tool-recovery-bundle.ts index 5cf8c8724f..5c4fca66e8 100644 --- a/packages/core/src/tool-recovery-bundle.ts +++ b/packages/core/src/tool-recovery-bundle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { canonicalToolArgsHash } from './tool-args-identity.js'; import { validateToolLedgerEventLane, diff --git a/packages/core/src/tool-recovery-fact.ts b/packages/core/src/tool-recovery-fact.ts index efd59867b2..22f6c40beb 100644 --- a/packages/core/src/tool-recovery-fact.ts +++ b/packages/core/src/tool-recovery-fact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const TOOL_RECONCILE_RESULT_FACT_KIND = 'maka.tool.reconcile_result' as const; export const TOOL_RECOVERY_DECISION_FACT_KIND = 'maka.tool.recovery_decision' as const; export const TOOL_RECOVERY_FACT_VERSION = 1 as const; diff --git a/packages/core/src/tool-result-preview.ts b/packages/core/src/tool-result-preview.ts index 119426efca..d17ebd5ebf 100644 --- a/packages/core/src/tool-result-preview.ts +++ b/packages/core/src/tool-result-preview.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Live-only open-facts decode/build for tool_result_preview. * Types live in events.ts; durable transcript uses ToolResultContent. diff --git a/packages/core/src/tool-result-record-schema.ts b/packages/core/src/tool-result-record-schema.ts index 0fb5321f12..90b8c0b57f 100644 --- a/packages/core/src/tool-result-record-schema.ts +++ b/packages/core/src/tool-result-record-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeCanonicalShellToolResultContent, isSandboxDenialSignal, diff --git a/packages/core/src/tool-result-status.ts b/packages/core/src/tool-result-status.ts index b6eb38ea90..c2210c0199 100644 --- a/packages/core/src/tool-result-status.ts +++ b/packages/core/src/tool-result-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Map a tool_result onto the UI activity status used by cards/trows. * Cancel / abort are user-or-system stops, not tool failures. diff --git a/packages/core/src/turn-origin.ts b/packages/core/src/turn-origin.ts index d5edd5ccb1..854a51631d 100644 --- a/packages/core/src/turn-origin.ts +++ b/packages/core/src/turn-origin.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, hasExactShape, isRecord } from './record-schema.js'; /** Non-user trigger source for a turn. */ diff --git a/packages/core/src/ui-locale.ts b/packages/core/src/ui-locale.ts index ff2da44f84..1f58e75036 100644 --- a/packages/core/src/ui-locale.ts +++ b/packages/core/src/ui-locale.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Resolved locales supported by human-facing Maka clients. */ export const UI_LOCALES = ['zh', 'en'] as const; diff --git a/packages/core/src/unified-diff.ts b/packages/core/src/unified-diff.ts index de62f63867..6d3eca3cbc 100644 --- a/packages/core/src/unified-diff.ts +++ b/packages/core/src/unified-diff.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Structural parser for unified diffs, shared by every surface that reads one: * the desktop diff panel (line-number gutter), the tool-row +/- badges, the diff --git a/packages/core/src/usage-ledger-merge.ts b/packages/core/src/usage-ledger-merge.ts index 82585df037..0081a13857 100644 --- a/packages/core/src/usage-ledger-merge.ts +++ b/packages/core/src/usage-ledger-merge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelCallAttempt, ModelCallCoverage } from './model-call-attempt.js'; import { projectModelCallUsageBuckets, diff --git a/packages/core/src/usage-record-schema.ts b/packages/core/src/usage-record-schema.ts index 87c78514c1..b586f418bc 100644 --- a/packages/core/src/usage-record-schema.ts +++ b/packages/core/src/usage-record-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CacheMissInputSource, CompactionDecisionDiagnostic, diff --git a/packages/core/src/usage-stats/__tests__/pricing.test.ts b/packages/core/src/usage-stats/__tests__/pricing.test.ts index cf3b423a55..5544cc0a84 100644 --- a/packages/core/src/usage-stats/__tests__/pricing.test.ts +++ b/packages/core/src/usage-stats/__tests__/pricing.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { test } from 'node:test'; import { diff --git a/packages/core/src/usage-stats/bucket-key.ts b/packages/core/src/usage-stats/bucket-key.ts index 67bad0660c..5436778c50 100644 --- a/packages/core/src/usage-stats/bucket-key.ts +++ b/packages/core/src/usage-stats/bucket-key.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UsageGroupBy } from './types.js'; import { pricingModelKey } from './pricing.js'; diff --git a/packages/core/src/usage-stats/pricing.ts b/packages/core/src/usage-stats/pricing.ts index aaa26bca81..cec5bbbb35 100644 --- a/packages/core/src/usage-stats/pricing.ts +++ b/packages/core/src/usage-stats/pricing.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-UI-IPC-3 (@kenji msg 9033abdf): pricing override shape + * range normalization at the IPC store boundary. diff --git a/packages/core/src/usage-stats/types.ts b/packages/core/src/usage-stats/types.ts index 910a5622bd..75d4ce282e 100644 --- a/packages/core/src/usage-stats/types.ts +++ b/packages/core/src/usage-stats/types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const MODEL_CALL_KINDS = [ 'main', 'semantic_compact', diff --git a/packages/core/src/user-question.ts b/packages/core/src/user-question.ts index 5af986d918..042de96d17 100644 --- a/packages/core/src/user-question.ts +++ b/packages/core/src/user-question.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface UserQuestionOption { label: string; description?: string; diff --git a/packages/core/src/web-search.ts b/packages/core/src/web-search.ts index d64909b6c9..9c9e22df30 100644 --- a/packages/core/src/web-search.ts +++ b/packages/core/src/web-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Renderer-safe WebSearch contracts shared by UI and agent-tool paths. */ /** Closed enum of search execution sources. */ diff --git a/packages/core/src/windows-path.ts b/packages/core/src/windows-path.ts index 019bb6011b..b76b1f28fc 100644 --- a/packages/core/src/windows-path.ts +++ b/packages/core/src/windows-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isNormalizedAbsolutePath } from './absolute-path.js'; /** diff --git a/packages/core/src/work-board.ts b/packages/core/src/work-board.ts index 68a8e6aad7..2084ad07ef 100644 --- a/packages/core/src/work-board.ts +++ b/packages/core/src/work-board.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineObjectShape, hasExactShape } from './record-schema.js'; /** diff --git a/packages/core/src/workspace-version-authority.ts b/packages/core/src/workspace-version-authority.ts index 16f2a99c54..2949a2df2d 100644 --- a/packages/core/src/workspace-version-authority.ts +++ b/packages/core/src/workspace-version-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from './runtime-event.js'; export const WORKSPACE_EPOCH_OPENED_FACT_KIND = 'maka.workspace.epoch_opened' as const; diff --git a/packages/core/src/workspace.ts b/packages/core/src/workspace.ts index a7b9f82cf7..d497ca22cd 100644 --- a/packages/core/src/workspace.ts +++ b/packages/core/src/workspace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Workspace config types. */ diff --git a/packages/eval/README.md b/packages/eval/README.md index db187920dc..7ad4420693 100644 --- a/packages/eval/README.md +++ b/packages/eval/README.md @@ -1,3 +1,22 @@ + + # @maka/eval `@maka/eval` owns experiment semantics. It does not execute Maka or construct Runtime objects. diff --git a/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml b/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml index 8674fdd4b2..ab84d55493 100644 --- a/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml +++ b/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # The DeepSeek Harness arm's complete plugin composition. # # `package.json` declares no bundles, so the harness composes this tree over an diff --git a/packages/eval/harbor/deepseek-harness-profile/cordis.yml b/packages/eval/harbor/deepseek-harness-profile/cordis.yml index fe51488c70..0e2d935e71 100644 --- a/packages/eval/harbor/deepseek-harness-profile/cordis.yml +++ b/packages/eval/harbor/deepseek-harness-profile/cordis.yml @@ -1 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [] diff --git a/packages/eval/harbor/deepseek-harness-toolchain/patch-subprocess-local.mjs b/packages/eval/harbor/deepseek-harness-toolchain/patch-subprocess-local.mjs index b16f7b447c..a1aaba33ef 100644 --- a/packages/eval/harbor/deepseek-harness-toolchain/patch-subprocess-local.mjs +++ b/packages/eval/harbor/deepseek-harness-toolchain/patch-subprocess-local.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, writeFile } from 'node:fs/promises'; import { join, resolve } from 'node:path'; diff --git a/packages/eval/harbor/docker-compose-egress-proxy.yaml b/packages/eval/harbor/docker-compose-egress-proxy.yaml index a5267d8635..2c5f2efa05 100644 --- a/packages/eval/harbor/docker-compose-egress-proxy.yaml +++ b/packages/eval/harbor/docker-compose-egress-proxy.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + services: harbor-docker-egress-control-sidecar: volumes: diff --git a/packages/eval/harbor/egress-proxy/Dockerfile b/packages/eval/harbor/egress-proxy/Dockerfile index 550449f09f..20edbe3c5c 100644 --- a/packages/eval/harbor/egress-proxy/Dockerfile +++ b/packages/eval/harbor/egress-proxy/Dockerfile @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + FROM python:3.12-slim RUN python -m pip install --no-cache-dir mitmproxy==12.2.3 diff --git a/packages/eval/harbor/egress-proxy/entrypoint.sh b/packages/eval/harbor/egress-proxy/entrypoint.sh index ed5216b50b..13edc0873c 100755 --- a/packages/eval/harbor/egress-proxy/entrypoint.sh +++ b/packages/eval/harbor/egress-proxy/entrypoint.sh @@ -1,4 +1,21 @@ #!/bin/sh +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -eu STATE_DIR=/opt/maka-egress-state diff --git a/packages/eval/harbor/egress-proxy/network-policy b/packages/eval/harbor/egress-proxy/network-policy index 17331a8f99..bbab233909 100755 --- a/packages/eval/harbor/egress-proxy/network-policy +++ b/packages/eval/harbor/egress-proxy/network-policy @@ -1,4 +1,21 @@ #!/bin/sh +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -eu # gost's allowlist is never written here: the sidecar entrypoint empties it at diff --git a/packages/eval/harbor/egress_filter.py b/packages/eval/harbor/egress_filter.py index 28d5195cb0..d86ae896f8 100644 --- a/packages/eval/harbor/egress_filter.py +++ b/packages/eval/harbor/egress_filter.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Fail-closed URL contamination filter for Eval subject egress.""" from __future__ import annotations diff --git a/packages/eval/harbor/eval_framework.py b/packages/eval/harbor/eval_framework.py index f38dbefd7e..c14666c431 100644 --- a/packages/eval/harbor/eval_framework.py +++ b/packages/eval/harbor/eval_framework.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Authoritative Eval harness framework selection. `run_trial.py` validates the argv framework and installs it here before Harbor, diff --git a/packages/eval/harbor/relay_agent.py b/packages/eval/harbor/relay_agent.py index 7580acc345..903ba96ac4 100644 --- a/packages/eval/harbor/relay_agent.py +++ b/packages/eval/harbor/relay_agent.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """One-shot Harbor/Pier Agent that delegates one subject execution to @maka/eval.""" from __future__ import annotations diff --git a/packages/eval/harbor/run_trial.py b/packages/eval/harbor/run_trial.py index d5374aed5b..9419ef67a1 100644 --- a/packages/eval/harbor/run_trial.py +++ b/packages/eval/harbor/run_trial.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Run exactly one pinned Harbor or Pier Trial.""" import asyncio diff --git a/packages/eval/harbor/test_cell_egress_namespace.py b/packages/eval/harbor/test_cell_egress_namespace.py index 23a380728d..4ad5b936e5 100644 --- a/packages/eval/harbor/test_cell_egress_namespace.py +++ b/packages/eval/harbor/test_cell_egress_namespace.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Prove the cell namespace forces subject egress through the audited proxy. The Python policy test only checks that `run_trial.py` hands Harbor the right diff --git a/packages/eval/harbor/test_egress_filter.py b/packages/eval/harbor/test_egress_filter.py index 9086f95195..548f9cec79 100644 --- a/packages/eval/harbor/test_egress_filter.py +++ b/packages/eval/harbor/test_egress_filter.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import importlib.util import json import tempfile diff --git a/packages/eval/harbor/test_eval_framework.py b/packages/eval/harbor/test_eval_framework.py index 60bfac2b05..0a84008f0d 100644 --- a/packages/eval/harbor/test_eval_framework.py +++ b/packages/eval/harbor/test_eval_framework.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import importlib.util import unittest from pathlib import Path diff --git a/packages/eval/harbor/test_relay_artifacts.py b/packages/eval/harbor/test_relay_artifacts.py index 007aa1cbc8..30e45a77bf 100644 --- a/packages/eval/harbor/test_relay_artifacts.py +++ b/packages/eval/harbor/test_relay_artifacts.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import asyncio import importlib import os diff --git a/packages/eval/harbor/test_relay_contract.py b/packages/eval/harbor/test_relay_contract.py index fb65eb4df0..776a548597 100644 --- a/packages/eval/harbor/test_relay_contract.py +++ b/packages/eval/harbor/test_relay_contract.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import asyncio import base64 import hashlib diff --git a/packages/eval/harbor/test_relay_lifecycle.py b/packages/eval/harbor/test_relay_lifecycle.py index 00bbd3f39f..fe1e8d1fd6 100644 --- a/packages/eval/harbor/test_relay_lifecycle.py +++ b/packages/eval/harbor/test_relay_lifecycle.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import asyncio import base64 import contextlib diff --git a/packages/eval/harbor/test_run_trial_policy.py b/packages/eval/harbor/test_run_trial_policy.py index c3f361c462..13e7d39814 100644 --- a/packages/eval/harbor/test_run_trial_policy.py +++ b/packages/eval/harbor/test_run_trial_policy.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import asyncio import importlib.util import os diff --git a/packages/eval/src/__tests__/cli.test.ts b/packages/eval/src/__tests__/cli.test.ts index 371668796a..b0399447c6 100644 --- a/packages/eval/src/__tests__/cli.test.ts +++ b/packages/eval/src/__tests__/cli.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, readdir, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/eval/src/__tests__/egress-audit.test.ts b/packages/eval/src/__tests__/egress-audit.test.ts index 26ae8f4e35..4d011a5ec7 100644 --- a/packages/eval/src/__tests__/egress-audit.test.ts +++ b/packages/eval/src/__tests__/egress-audit.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { chmod, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/eval/src/__tests__/external-subject.test.ts b/packages/eval/src/__tests__/external-subject.test.ts index 919e006831..bc187bca9b 100644 --- a/packages/eval/src/__tests__/external-subject.test.ts +++ b/packages/eval/src/__tests__/external-subject.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/eval/src/__tests__/install-preflight.test.ts b/packages/eval/src/__tests__/install-preflight.test.ts index c7be16f9c0..8efcbc7c3b 100644 --- a/packages/eval/src/__tests__/install-preflight.test.ts +++ b/packages/eval/src/__tests__/install-preflight.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { chmod, mkdtemp, mkdir, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/eval/src/__tests__/lifecycle-boundaries.test.ts b/packages/eval/src/__tests__/lifecycle-boundaries.test.ts index b5f052fa32..c039dabe11 100644 --- a/packages/eval/src/__tests__/lifecycle-boundaries.test.ts +++ b/packages/eval/src/__tests__/lifecycle-boundaries.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { diff --git a/packages/eval/src/__tests__/maka-artifacts.test.ts b/packages/eval/src/__tests__/maka-artifacts.test.ts index 9eb9a1e824..2bad33232f 100644 --- a/packages/eval/src/__tests__/maka-artifacts.test.ts +++ b/packages/eval/src/__tests__/maka-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdir, mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'; diff --git a/packages/eval/src/__tests__/metering-checkpoint.test.ts b/packages/eval/src/__tests__/metering-checkpoint.test.ts index 8a1f77ceda..d1bb716fca 100644 --- a/packages/eval/src/__tests__/metering-checkpoint.test.ts +++ b/packages/eval/src/__tests__/metering-checkpoint.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { chmod, mkdir, mkdtemp, readFile, rm, stat, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/eval/src/__tests__/provider-admission-integration.test.ts b/packages/eval/src/__tests__/provider-admission-integration.test.ts index 73b852d619..b1f2890d16 100644 --- a/packages/eval/src/__tests__/provider-admission-integration.test.ts +++ b/packages/eval/src/__tests__/provider-admission-integration.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile, spawn } from 'node:child_process'; import { once } from 'node:events'; diff --git a/packages/eval/src/__tests__/provider-admission.test.ts b/packages/eval/src/__tests__/provider-admission.test.ts index 317ea0f8ac..2690fb9960 100644 --- a/packages/eval/src/__tests__/provider-admission.test.ts +++ b/packages/eval/src/__tests__/provider-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { isInferenceAdmissionEvent } from '../provider-admission.js'; diff --git a/packages/eval/src/__tests__/provider-web-tool-surface.test.ts b/packages/eval/src/__tests__/provider-web-tool-surface.test.ts index 2053044045..f7ba756d01 100644 --- a/packages/eval/src/__tests__/provider-web-tool-surface.test.ts +++ b/packages/eval/src/__tests__/provider-web-tool-surface.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { removeEvalWebTools } from '../provider-web-tool-surface.js'; diff --git a/packages/eval/src/attempt-store.ts b/packages/eval/src/attempt-store.ts index cec676f5b8..31b329c283 100644 --- a/packages/eval/src/attempt-store.ts +++ b/packages/eval/src/attempt-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { link, mkdir, open, readFile, readdir, unlink } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/eval/src/cli.ts b/packages/eval/src/cli.ts index f92e0406b3..472d031fab 100644 --- a/packages/eval/src/cli.ts +++ b/packages/eval/src/cli.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile } from 'node:fs/promises'; import { resolve } from 'node:path'; import { createExternalSubjectAdapter } from './external-subject.js'; diff --git a/packages/eval/src/experiment-directory.ts b/packages/eval/src/experiment-directory.ts index cf8991331f..6c8c122f38 100644 --- a/packages/eval/src/experiment-directory.ts +++ b/packages/eval/src/experiment-directory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { link, mkdir, open, readFile, unlink } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/eval/src/experiment.ts b/packages/eval/src/experiment.ts index 1802716570..86a14cd97a 100644 --- a/packages/eval/src/experiment.ts +++ b/packages/eval/src/experiment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type JsonPrimitive = string | number | boolean | null; export type JsonValue = | JsonPrimitive diff --git a/packages/eval/src/external-subject.ts b/packages/eval/src/external-subject.ts index da9d6c2c4c..27a2c71173 100644 --- a/packages/eval/src/external-subject.ts +++ b/packages/eval/src/external-subject.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { join } from 'node:path'; import { meteringCheckpointMacMatches, readBoundedRegularFile } from './metering-checkpoint.js'; diff --git a/packages/eval/src/harbor-external-subject.ts b/packages/eval/src/harbor-external-subject.ts index ed6550675d..b4b58a59db 100644 --- a/packages/eval/src/harbor-external-subject.ts +++ b/packages/eval/src/harbor-external-subject.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn, spawnSync, type ChildProcess } from 'node:child_process'; import { createHash } from 'node:crypto'; import { readFileSync, rmSync, statSync } from 'node:fs'; diff --git a/packages/eval/src/harbor-maka-subject.ts b/packages/eval/src/harbor-maka-subject.ts index f7cf87d2d0..fbd82b2b2c 100644 --- a/packages/eval/src/harbor-maka-subject.ts +++ b/packages/eval/src/harbor-maka-subject.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, writeFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; import { runHostedExecution } from '@maka/runtime-host/client'; diff --git a/packages/eval/src/harness-environment.ts b/packages/eval/src/harness-environment.ts index e2a91c020e..e3dba9f3eb 100644 --- a/packages/eval/src/harness-environment.ts +++ b/packages/eval/src/harness-environment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath } from 'node:fs/promises'; import { delimiter, dirname, isAbsolute, relative, resolve, sep } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/packages/eval/src/harness-executor.ts b/packages/eval/src/harness-executor.ts index dad3891e80..617e6a9164 100644 --- a/packages/eval/src/harness-executor.ts +++ b/packages/eval/src/harness-executor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn, type ChildProcess } from 'node:child_process'; import { createHash, randomBytes } from 'node:crypto'; import { once } from 'node:events'; diff --git a/packages/eval/src/index.ts b/packages/eval/src/index.ts index cab92443a9..a1706e4e8e 100644 --- a/packages/eval/src/index.ts +++ b/packages/eval/src/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export * from './attempt-store.js'; export * from './cli.js'; export * from './experiment-directory.js'; diff --git a/packages/eval/src/install-preflight.ts b/packages/eval/src/install-preflight.ts index b56e58dd50..aa371b0c1b 100644 --- a/packages/eval/src/install-preflight.ts +++ b/packages/eval/src/install-preflight.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { constants } from 'node:fs'; import { access, lstat, stat } from 'node:fs/promises'; diff --git a/packages/eval/src/maka-artifacts.ts b/packages/eval/src/maka-artifacts.ts index d522e55b81..e48524e938 100644 --- a/packages/eval/src/maka-artifacts.ts +++ b/packages/eval/src/maka-artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { createReadStream } from 'node:fs'; import { chmod, copyFile, mkdir, rename, rm, stat, writeFile } from 'node:fs/promises'; diff --git a/packages/eval/src/maka-runtime-policy.ts b/packages/eval/src/maka-runtime-policy.ts index abdfb2dddc..a2966c1321 100644 --- a/packages/eval/src/maka-runtime-policy.ts +++ b/packages/eval/src/maka-runtime-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createDefaultRuntimePolicy } from '@maka/core/runtime-policy'; export function makaEvalRuntimePolicyDocument(proxyUrl?: string) { diff --git a/packages/eval/src/maka-subject.ts b/packages/eval/src/maka-subject.ts index 6abfd0c358..5238023e66 100644 --- a/packages/eval/src/maka-subject.ts +++ b/packages/eval/src/maka-subject.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isSessionToolProfile, type SessionToolProfile } from '@maka/core/session'; import { diff --git a/packages/eval/src/metering-checkpoint.ts b/packages/eval/src/metering-checkpoint.ts index d1d8e570c5..a94a476a0d 100644 --- a/packages/eval/src/metering-checkpoint.ts +++ b/packages/eval/src/metering-checkpoint.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHmac, timingSafeEqual } from 'node:crypto'; import { constants } from 'node:fs'; import { chmod, open, rename, writeFile } from 'node:fs/promises'; diff --git a/packages/eval/src/provider-admission.ts b/packages/eval/src/provider-admission.ts index 41b3987845..8abba291f9 100644 --- a/packages/eval/src/provider-admission.ts +++ b/packages/eval/src/provider-admission.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function isInferenceAdmissionEvent( event: Record, anthropic: boolean, diff --git a/packages/eval/src/provider-metering.ts b/packages/eval/src/provider-metering.ts index bf8a2aef8f..3113b2c0d4 100644 --- a/packages/eval/src/provider-metering.ts +++ b/packages/eval/src/provider-metering.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What the metering proxy observed, and nothing that can be worked out from it. // // These counts cross a process boundary twice: the wrapper reports them in its diff --git a/packages/eval/src/provider-web-tool-surface.ts b/packages/eval/src/provider-web-tool-surface.ts index 41b25bbb11..21150879aa 100644 --- a/packages/eval/src/provider-web-tool-surface.ts +++ b/packages/eval/src/provider-web-tool-surface.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const DISALLOWED_WEB_TOOL_NAMES = new Set(['websearch', 'webfetch', 'fetchurl']); export function removeEvalWebTools(body: Buffer): { diff --git a/packages/eval/src/relay-result-frame.ts b/packages/eval/src/relay-result-frame.ts index 7deaf80238..934ddeb84b 100644 --- a/packages/eval/src/relay-result-frame.ts +++ b/packages/eval/src/relay-result-frame.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; // Keep the complete record below Linux PIPE_BUF so merged Docker stdout/stderr diff --git a/packages/eval/src/result.ts b/packages/eval/src/result.ts index 7d61b8cc1e..b3425fc128 100644 --- a/packages/eval/src/result.ts +++ b/packages/eval/src/result.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeJsonObject, type JsonObject } from './experiment.js'; export interface NormalizedUsage { diff --git a/packages/eval/src/runner.ts b/packages/eval/src/runner.ts index 15b8e516bb..8c88c4f3cd 100644 --- a/packages/eval/src/runner.ts +++ b/packages/eval/src/runner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { expandExperiment, type ExperimentCell, diff --git a/packages/eval/src/spec.ts b/packages/eval/src/spec.ts index d1d1bd0e00..b23d2baf75 100644 --- a/packages/eval/src/spec.ts +++ b/packages/eval/src/spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeJsonObject, type ExperimentSpec } from './experiment.js'; export function parseExperimentSpec(value: unknown): ExperimentSpec { diff --git a/packages/eval/src/toolchain-verification.ts b/packages/eval/src/toolchain-verification.ts index 9b254f964a..5d7ba3428a 100644 --- a/packages/eval/src/toolchain-verification.ts +++ b/packages/eval/src/toolchain-verification.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { createReadStream } from 'node:fs'; import { readFile } from 'node:fs/promises'; diff --git a/packages/mcp/src/__fixtures__/stdio-server.ts b/packages/mcp/src/__fixtures__/stdio-server.ts index fe9d754d63..4ce95dced5 100644 --- a/packages/mcp/src/__fixtures__/stdio-server.ts +++ b/packages/mcp/src/__fixtures__/stdio-server.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js'; diff --git a/packages/mcp/src/__tests__/diagnostic-text.test.ts b/packages/mcp/src/__tests__/diagnostic-text.test.ts index 78fdf20690..7de814ca02 100644 --- a/packages/mcp/src/__tests__/diagnostic-text.test.ts +++ b/packages/mcp/src/__tests__/diagnostic-text.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { formatMcpDiagnosticText, MCP_ERROR_DIAGNOSTIC_CODE_POINTS } from '../diagnostic-text.js'; diff --git a/packages/mcp/src/__tests__/manager-fallback.test.ts b/packages/mcp/src/__tests__/manager-fallback.test.ts index 9178a1a015..ce16595171 100644 --- a/packages/mcp/src/__tests__/manager-fallback.test.ts +++ b/packages/mcp/src/__tests__/manager-fallback.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage, type ServerResponse } from 'node:http'; import type { Socket } from 'node:net'; diff --git a/packages/mcp/src/__tests__/manager-subscription.test.ts b/packages/mcp/src/__tests__/manager-subscription.test.ts index 93025b8aed..f235965b83 100644 --- a/packages/mcp/src/__tests__/manager-subscription.test.ts +++ b/packages/mcp/src/__tests__/manager-subscription.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage, type ServerResponse } from 'node:http'; import { afterEach, describe, test } from 'node:test'; diff --git a/packages/mcp/src/__tests__/manager.test.ts b/packages/mcp/src/__tests__/manager.test.ts index ff76d2d54c..540f095614 100644 --- a/packages/mcp/src/__tests__/manager.test.ts +++ b/packages/mcp/src/__tests__/manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage, type ServerResponse } from 'node:http'; import { fileURLToPath } from 'node:url'; diff --git a/packages/mcp/src/__tests__/modern-manager.test.ts b/packages/mcp/src/__tests__/modern-manager.test.ts index d72b380708..9554e5d98e 100644 --- a/packages/mcp/src/__tests__/modern-manager.test.ts +++ b/packages/mcp/src/__tests__/modern-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage } from 'node:http'; import { afterEach, describe, test } from 'node:test'; diff --git a/packages/mcp/src/__tests__/sep-2243.test.ts b/packages/mcp/src/__tests__/sep-2243.test.ts index 47eac131a5..e700669e40 100644 --- a/packages/mcp/src/__tests__/sep-2243.test.ts +++ b/packages/mcp/src/__tests__/sep-2243.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/mcp/src/__tests__/tool-binding.test.ts b/packages/mcp/src/__tests__/tool-binding.test.ts index 99e697e94e..b3f8d69797 100644 --- a/packages/mcp/src/__tests__/tool-binding.test.ts +++ b/packages/mcp/src/__tests__/tool-binding.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/mcp/src/__tests__/tool-call-error.test.ts b/packages/mcp/src/__tests__/tool-call-error.test.ts index cf850bd917..5a810ab2e8 100644 --- a/packages/mcp/src/__tests__/tool-call-error.test.ts +++ b/packages/mcp/src/__tests__/tool-call-error.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { SdkError, SdkErrorCode } from '@modelcontextprotocol/client'; diff --git a/packages/mcp/src/__tests__/tool-definition.test.ts b/packages/mcp/src/__tests__/tool-definition.test.ts index 0476d81b3b..52c73e28ea 100644 --- a/packages/mcp/src/__tests__/tool-definition.test.ts +++ b/packages/mcp/src/__tests__/tool-definition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { Tool } from '@modelcontextprotocol/client'; diff --git a/packages/mcp/src/__tests__/tool-discovery.test.ts b/packages/mcp/src/__tests__/tool-discovery.test.ts index 7879a7ff21..1ab16e605a 100644 --- a/packages/mcp/src/__tests__/tool-discovery.test.ts +++ b/packages/mcp/src/__tests__/tool-discovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { Tool } from '@modelcontextprotocol/client'; diff --git a/packages/mcp/src/__tests__/tool-output-validation.test.ts b/packages/mcp/src/__tests__/tool-output-validation.test.ts index 189623d431..82e63516c6 100644 --- a/packages/mcp/src/__tests__/tool-output-validation.test.ts +++ b/packages/mcp/src/__tests__/tool-output-validation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { Tool } from '@modelcontextprotocol/client'; diff --git a/packages/mcp/src/diagnostic-text.ts b/packages/mcp/src/diagnostic-text.ts index 4158f93304..042b2f56a6 100644 --- a/packages/mcp/src/diagnostic-text.ts +++ b/packages/mcp/src/diagnostic-text.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { redactSecrets } from '@maka/core/redaction'; export const MCP_IDENTITY_DIAGNOSTIC_CODE_POINTS = 80; diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.ts index f0ee5f9f35..8378b29832 100644 --- a/packages/mcp/src/index.ts +++ b/packages/mcp/src/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomBytes } from 'node:crypto'; import { Client, diff --git a/packages/mcp/src/sep-2243.ts b/packages/mcp/src/sep-2243.ts index 7584ba5df4..260bc2d0ed 100644 --- a/packages/mcp/src/sep-2243.ts +++ b/packages/mcp/src/sep-2243.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { formatMcpDiagnosticText } from './diagnostic-text.js'; const X_MCP_HEADER = 'x-mcp-header'; diff --git a/packages/mcp/src/tool-binding.ts b/packages/mcp/src/tool-binding.ts index 3ddf77cf28..d5702d068a 100644 --- a/packages/mcp/src/tool-binding.ts +++ b/packages/mcp/src/tool-binding.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { McpToolBinding } from '@maka/core/mcp'; diff --git a/packages/mcp/src/tool-call-error.ts b/packages/mcp/src/tool-call-error.ts index e148337564..1ea49ba6c7 100644 --- a/packages/mcp/src/tool-call-error.ts +++ b/packages/mcp/src/tool-call-error.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ProtocolError, SdkError, SdkErrorCode } from '@modelcontextprotocol/client'; import { formatMcpDiagnosticText, MCP_ERROR_DIAGNOSTIC_CODE_POINTS } from './diagnostic-text.js'; diff --git a/packages/mcp/src/tool-definition.ts b/packages/mcp/src/tool-definition.ts index 23c32b0319..b362cb1c4c 100644 --- a/packages/mcp/src/tool-definition.ts +++ b/packages/mcp/src/tool-definition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { Tool } from '@modelcontextprotocol/client'; diff --git a/packages/mcp/src/tool-discovery.ts b/packages/mcp/src/tool-discovery.ts index c1784d02e3..631f29ceaa 100644 --- a/packages/mcp/src/tool-discovery.ts +++ b/packages/mcp/src/tool-discovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Tool } from '@modelcontextprotocol/client'; import { formatMcpDiagnosticText } from './diagnostic-text.js'; import { fingerprintMcpToolDefinition } from './tool-definition.js'; diff --git a/packages/mcp/src/tool-output-validation.ts b/packages/mcp/src/tool-output-validation.ts index d2f8d03e6f..981855ccf9 100644 --- a/packages/mcp/src/tool-output-validation.ts +++ b/packages/mcp/src/tool-output-validation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { JsonSchemaValidator, Tool } from '@modelcontextprotocol/client'; import { AjvJsonSchemaValidator } from '@modelcontextprotocol/client/validators/ajv'; diff --git a/packages/runtime-host/scripts/transcript-data-plane-benchmark.mjs b/packages/runtime-host/scripts/transcript-data-plane-benchmark.mjs index 064cd2a78a..83eae9224c 100644 --- a/packages/runtime-host/scripts/transcript-data-plane-benchmark.mjs +++ b/packages/runtime-host/scripts/transcript-data-plane-benchmark.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { performance } from 'node:perf_hooks'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts b/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts index fd7f256f24..b719b4533a 100644 --- a/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/agent-graph-protocol.test.ts b/packages/runtime-host/src/__tests__/agent-graph-protocol.test.ts index 10025d86ff..a8fc42cd59 100644 --- a/packages/runtime-host/src/__tests__/agent-graph-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/agent-graph-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/agent-graph-reader.test.ts b/packages/runtime-host/src/__tests__/agent-graph-reader.test.ts index 39b1915358..641a067ee5 100644 --- a/packages/runtime-host/src/__tests__/agent-graph-reader.test.ts +++ b/packages/runtime-host/src/__tests__/agent-graph-reader.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { readRuntimeHostAgentGraphEpochs } from '../client/agent-graph-reader.js'; diff --git a/packages/runtime-host/src/__tests__/agent-graph-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/agent-graph-two-client-uds.test.ts index f270eb4485..2467fdba47 100644 --- a/packages/runtime-host/src/__tests__/agent-graph-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/agent-graph-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/artifact-coordinator.test.ts b/packages/runtime-host/src/__tests__/artifact-coordinator.test.ts index bccd087037..c07def3702 100644 --- a/packages/runtime-host/src/__tests__/artifact-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/artifact-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/artifact-protocol.test.ts b/packages/runtime-host/src/__tests__/artifact-protocol.test.ts index ce5b178736..aa4391e2b1 100644 --- a/packages/runtime-host/src/__tests__/artifact-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/artifact-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/artifact-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/artifact-two-client-uds.test.ts index d1bddb8023..6c49731e53 100644 --- a/packages/runtime-host/src/__tests__/artifact-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/artifact-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/authenticated-websocket.test.ts b/packages/runtime-host/src/__tests__/authenticated-websocket.test.ts index b96a7a594e..874ba0d973 100644 --- a/packages/runtime-host/src/__tests__/authenticated-websocket.test.ts +++ b/packages/runtime-host/src/__tests__/authenticated-websocket.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/bootstrap-runtime-policy.test.ts b/packages/runtime-host/src/__tests__/bootstrap-runtime-policy.test.ts index 75ba92e623..d70ddcceae 100644 --- a/packages/runtime-host/src/__tests__/bootstrap-runtime-policy.test.ts +++ b/packages/runtime-host/src/__tests__/bootstrap-runtime-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/bundled-git-runtime.test.ts b/packages/runtime-host/src/__tests__/bundled-git-runtime.test.ts index e85c540162..c6899b7ed7 100644 --- a/packages/runtime-host/src/__tests__/bundled-git-runtime.test.ts +++ b/packages/runtime-host/src/__tests__/bundled-git-runtime.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, realpath, rm, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/runtime-host/src/__tests__/candidate-cli.test.ts b/packages/runtime-host/src/__tests__/candidate-cli.test.ts index a773f156b9..4499e37ee5 100644 --- a/packages/runtime-host/src/__tests__/candidate-cli.test.ts +++ b/packages/runtime-host/src/__tests__/candidate-cli.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { parseInteractiveRuntimeHostCandidateArguments } from '../candidate-cli.js'; diff --git a/packages/runtime-host/src/__tests__/candidate-launch-barrier.test.ts b/packages/runtime-host/src/__tests__/candidate-launch-barrier.test.ts index 850ad55348..5e0743e6c4 100644 --- a/packages/runtime-host/src/__tests__/candidate-launch-barrier.test.ts +++ b/packages/runtime-host/src/__tests__/candidate-launch-barrier.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { ConnectOrSpawnRuntimeHostInput } from '../client/connect-or-spawn.js'; diff --git a/packages/runtime-host/src/__tests__/candidate-startup-failure.test.ts b/packages/runtime-host/src/__tests__/candidate-startup-failure.test.ts index bcc5b210fa..7ff85b3db4 100644 --- a/packages/runtime-host/src/__tests__/candidate-startup-failure.test.ts +++ b/packages/runtime-host/src/__tests__/candidate-startup-failure.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/canonical-permission-outcome-reader.test.ts b/packages/runtime-host/src/__tests__/canonical-permission-outcome-reader.test.ts index e4ff159adc..83c9a9160a 100644 --- a/packages/runtime-host/src/__tests__/canonical-permission-outcome-reader.test.ts +++ b/packages/runtime-host/src/__tests__/canonical-permission-outcome-reader.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { InteractionRecord, StoredInteractionRequest } from '@maka/storage/interaction-store'; diff --git a/packages/runtime-host/src/__tests__/canonical-session-projection.test.ts b/packages/runtime-host/src/__tests__/canonical-session-projection.test.ts index 8e71bc8d0d..d68c5e8111 100644 --- a/packages/runtime-host/src/__tests__/canonical-session-projection.test.ts +++ b/packages/runtime-host/src/__tests__/canonical-session-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/capability-provider-service.test.ts b/packages/runtime-host/src/__tests__/capability-provider-service.test.ts index d9cc75b8ea..ff71f2c022 100644 --- a/packages/runtime-host/src/__tests__/capability-provider-service.test.ts +++ b/packages/runtime-host/src/__tests__/capability-provider-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { ClientCapabilityChannel } from '../client/client-capability-channel.js'; diff --git a/packages/runtime-host/src/__tests__/catalog-reader.test.ts b/packages/runtime-host/src/__tests__/catalog-reader.test.ts index 002759b104..f35516651b 100644 --- a/packages/runtime-host/src/__tests__/catalog-reader.test.ts +++ b/packages/runtime-host/src/__tests__/catalog-reader.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { RuntimeHostConnection } from '../client/connection.js'; diff --git a/packages/runtime-host/src/__tests__/client-capability-channel.test.ts b/packages/runtime-host/src/__tests__/client-capability-channel.test.ts index 20bc0562b1..a878f3d18e 100644 --- a/packages/runtime-host/src/__tests__/client-capability-channel.test.ts +++ b/packages/runtime-host/src/__tests__/client-capability-channel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { ClientCapabilityChannel } from '../client/client-capability-channel.js'; diff --git a/packages/runtime-host/src/__tests__/client-capability-coordinator.test.ts b/packages/runtime-host/src/__tests__/client-capability-coordinator.test.ts index 082b221cc8..aa5ad74899 100644 --- a/packages/runtime-host/src/__tests__/client-capability-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/client-capability-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createManagedExecutionBoundary } from '@maka/core/sandbox-boundary'; diff --git a/packages/runtime-host/src/__tests__/client-capability-protocol.test.ts b/packages/runtime-host/src/__tests__/client-capability-protocol.test.ts index fe3f7a29a7..ca0b1a7f39 100644 --- a/packages/runtime-host/src/__tests__/client-capability-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/client-capability-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/client-capability-recovery.test.ts b/packages/runtime-host/src/__tests__/client-capability-recovery.test.ts index 497782dfff..01df649f31 100644 --- a/packages/runtime-host/src/__tests__/client-capability-recovery.test.ts +++ b/packages/runtime-host/src/__tests__/client-capability-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/client-capability-uds.test.ts b/packages/runtime-host/src/__tests__/client-capability-uds.test.ts index e646773bb0..74a0ee272e 100644 --- a/packages/runtime-host/src/__tests__/client-capability-uds.test.ts +++ b/packages/runtime-host/src/__tests__/client-capability-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/client-instance-identity.test.ts b/packages/runtime-host/src/__tests__/client-instance-identity.test.ts index aedda81772..fd0560c5de 100644 --- a/packages/runtime-host/src/__tests__/client-instance-identity.test.ts +++ b/packages/runtime-host/src/__tests__/client-instance-identity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/connection-effect-coordinator.test.ts b/packages/runtime-host/src/__tests__/connection-effect-coordinator.test.ts index a4865aee02..46c74659fe 100644 --- a/packages/runtime-host/src/__tests__/connection-effect-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/connection-effect-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, open, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/connection-effects-protocol.test.ts b/packages/runtime-host/src/__tests__/connection-effects-protocol.test.ts index 0a54ba8986..dc143e198a 100644 --- a/packages/runtime-host/src/__tests__/connection-effects-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/connection-effects-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/connection-resource.test.ts b/packages/runtime-host/src/__tests__/connection-resource.test.ts index fbc6facb29..9511bdde63 100644 --- a/packages/runtime-host/src/__tests__/connection-resource.test.ts +++ b/packages/runtime-host/src/__tests__/connection-resource.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { once } from 'node:events'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/connection-session.test.ts b/packages/runtime-host/src/__tests__/connection-session.test.ts index 63fdada8cf..d0e6c7303a 100644 --- a/packages/runtime-host/src/__tests__/connection-session.test.ts +++ b/packages/runtime-host/src/__tests__/connection-session.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/context-coordinator.test.ts b/packages/runtime-host/src/__tests__/context-coordinator.test.ts index d57a11df60..2e7320cc0f 100644 --- a/packages/runtime-host/src/__tests__/context-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/context-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { SessionHeader } from '@maka/core/session'; diff --git a/packages/runtime-host/src/__tests__/context-protocol.test.ts b/packages/runtime-host/src/__tests__/context-protocol.test.ts index a1172fd396..33b5b36e66 100644 --- a/packages/runtime-host/src/__tests__/context-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/context-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/control-endpoint.test.ts b/packages/runtime-host/src/__tests__/control-endpoint.test.ts index 0137783e5c..db64a95527 100644 --- a/packages/runtime-host/src/__tests__/control-endpoint.test.ts +++ b/packages/runtime-host/src/__tests__/control-endpoint.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { type ExecFileException, spawnSync } from 'node:child_process'; import { mkdir, mkdtemp, rm, stat } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/daily-review-coordinator.test.ts b/packages/runtime-host/src/__tests__/daily-review-coordinator.test.ts index 92fd7a633b..18cdad4770 100644 --- a/packages/runtime-host/src/__tests__/daily-review-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/daily-review-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/daily-review-protocol.test.ts b/packages/runtime-host/src/__tests__/daily-review-protocol.test.ts index d8d7fbc355..ff8587b64e 100644 --- a/packages/runtime-host/src/__tests__/daily-review-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/daily-review-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { DailyReviewArchive } from '@maka/core/daily-review'; diff --git a/packages/runtime-host/src/__tests__/daily-review-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/daily-review-two-client-uds.test.ts index 22c88952df..36e128c21a 100644 --- a/packages/runtime-host/src/__tests__/daily-review-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/daily-review-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/deep-research-protocol.test.ts b/packages/runtime-host/src/__tests__/deep-research-protocol.test.ts index d63bce3cc6..6696814a19 100644 --- a/packages/runtime-host/src/__tests__/deep-research-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/deep-research-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/deep-research-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/deep-research-two-client-uds.test.ts index ade14c6f15..ef082b3813 100644 --- a/packages/runtime-host/src/__tests__/deep-research-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/deep-research-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/desktop-e2e-execution.test.ts b/packages/runtime-host/src/__tests__/desktop-e2e-execution.test.ts index 08f12deaba..2721c316c0 100644 --- a/packages/runtime-host/src/__tests__/desktop-e2e-execution.test.ts +++ b/packages/runtime-host/src/__tests__/desktop-e2e-execution.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime-host/src/__tests__/execution-artifacts.test.ts b/packages/runtime-host/src/__tests__/execution-artifacts.test.ts index bec03431f9..b0fcbe59e1 100644 --- a/packages/runtime-host/src/__tests__/execution-artifacts.test.ts +++ b/packages/runtime-host/src/__tests__/execution-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdir, mkdtemp, rm, truncate, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/execution-candidate-main.test.ts b/packages/runtime-host/src/__tests__/execution-candidate-main.test.ts index d87c4ce417..8fbc343451 100644 --- a/packages/runtime-host/src/__tests__/execution-candidate-main.test.ts +++ b/packages/runtime-host/src/__tests__/execution-candidate-main.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { createHash, randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/execution-composition.test.ts b/packages/runtime-host/src/__tests__/execution-composition.test.ts index 6e474e8c61..41334a025d 100644 --- a/packages/runtime-host/src/__tests__/execution-composition.test.ts +++ b/packages/runtime-host/src/__tests__/execution-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { parseNoRealConnectionError } from '@maka/core/connection-error-copy'; import { createRequire } from 'node:module'; diff --git a/packages/runtime-host/src/__tests__/execution-host-continuation.test.ts b/packages/runtime-host/src/__tests__/execution-host-continuation.test.ts index 968d157a9f..77b5d228b7 100644 --- a/packages/runtime-host/src/__tests__/execution-host-continuation.test.ts +++ b/packages/runtime-host/src/__tests__/execution-host-continuation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { mcpProxyToolName } from '@maka/runtime/mcp-tools'; diff --git a/packages/runtime-host/src/__tests__/execution-host-message.test.ts b/packages/runtime-host/src/__tests__/execution-host-message.test.ts index 9f69b0c2a5..8c75c21e5a 100644 --- a/packages/runtime-host/src/__tests__/execution-host-message.test.ts +++ b/packages/runtime-host/src/__tests__/execution-host-message.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/execution-host-queue.test.ts b/packages/runtime-host/src/__tests__/execution-host-queue.test.ts index 5019f7bb3d..6cc97ee966 100644 --- a/packages/runtime-host/src/__tests__/execution-host-queue.test.ts +++ b/packages/runtime-host/src/__tests__/execution-host-queue.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/execution-host-recovery.test.ts b/packages/runtime-host/src/__tests__/execution-host-recovery.test.ts index 9537037295..86e95b4cf0 100644 --- a/packages/runtime-host/src/__tests__/execution-host-recovery.test.ts +++ b/packages/runtime-host/src/__tests__/execution-host-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/execution-host.test.ts b/packages/runtime-host/src/__tests__/execution-host.test.ts index d6837ac7c6..4a2b3cf1c5 100644 --- a/packages/runtime-host/src/__tests__/execution-host.test.ts +++ b/packages/runtime-host/src/__tests__/execution-host.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/execution-inspect-coordinator.test.ts b/packages/runtime-host/src/__tests__/execution-inspect-coordinator.test.ts index 7b47d0483a..600d9007df 100644 --- a/packages/runtime-host/src/__tests__/execution-inspect-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/execution-inspect-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/execution-inspect-protocol.test.ts b/packages/runtime-host/src/__tests__/execution-inspect-protocol.test.ts index 1df6c43e17..382063de65 100644 --- a/packages/runtime-host/src/__tests__/execution-inspect-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/execution-inspect-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/execution-inspect-uds.test.ts b/packages/runtime-host/src/__tests__/execution-inspect-uds.test.ts index cde2845ed2..49925fbbce 100644 --- a/packages/runtime-host/src/__tests__/execution-inspect-uds.test.ts +++ b/packages/runtime-host/src/__tests__/execution-inspect-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { mkdtemp, readdir, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/execution-model-composition.test.ts b/packages/runtime-host/src/__tests__/execution-model-composition.test.ts index adb359e8ca..4dd5d094a3 100644 --- a/packages/runtime-host/src/__tests__/execution-model-composition.test.ts +++ b/packages/runtime-host/src/__tests__/execution-model-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/external-session-coordinator.test.ts b/packages/runtime-host/src/__tests__/external-session-coordinator.test.ts index 7cbcd21f76..a253500333 100644 --- a/packages/runtime-host/src/__tests__/external-session-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/external-session-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/external-session-protocol.test.ts b/packages/runtime-host/src/__tests__/external-session-protocol.test.ts index 342fd25d7c..aa4e88aff5 100644 --- a/packages/runtime-host/src/__tests__/external-session-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/external-session-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/fixtures/agent-graph-provider-scenario.ts b/packages/runtime-host/src/__tests__/fixtures/agent-graph-provider-scenario.ts index a2e293f797..3c64dea057 100644 --- a/packages/runtime-host/src/__tests__/fixtures/agent-graph-provider-scenario.ts +++ b/packages/runtime-host/src/__tests__/fixtures/agent-graph-provider-scenario.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; type ScenarioPhase = diff --git a/packages/runtime-host/src/__tests__/fixtures/client-capability.ts b/packages/runtime-host/src/__tests__/fixtures/client-capability.ts index 3adcd410f2..eb4ced75d9 100644 --- a/packages/runtime-host/src/__tests__/fixtures/client-capability.ts +++ b/packages/runtime-host/src/__tests__/fixtures/client-capability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ClientCapabilityConnectionIdentity } from '../../server/client-capability-service.js'; export function clientCapabilityConnectionIdentity( diff --git a/packages/runtime-host/src/__tests__/fixtures/connect-client.ts b/packages/runtime-host/src/__tests__/fixtures/connect-client.ts index d723e63b10..d204ede8bc 100644 --- a/packages/runtime-host/src/__tests__/fixtures/connect-client.ts +++ b/packages/runtime-host/src/__tests__/fixtures/connect-client.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { connectOrSpawnRuntimeHostWithDependencies } from '../../client/connect-or-spawn.js'; import { launchDetachedRuntimeHostCandidate } from '../../client/launcher.js'; import { diff --git a/packages/runtime-host/src/__tests__/fixtures/detached-launcher.ts b/packages/runtime-host/src/__tests__/fixtures/detached-launcher.ts index bed38c053e..06e7b30b0b 100644 --- a/packages/runtime-host/src/__tests__/fixtures/detached-launcher.ts +++ b/packages/runtime-host/src/__tests__/fixtures/detached-launcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { launchDetachedRuntimeHostCandidate } from '../../client/launcher.js'; const [rootPath, expectedRootId] = process.argv.slice(2); diff --git a/packages/runtime-host/src/__tests__/fixtures/electron-connect-parent.ts b/packages/runtime-host/src/__tests__/fixtures/electron-connect-parent.ts index 2a5e84bad1..49eb76ed67 100644 --- a/packages/runtime-host/src/__tests__/fixtures/electron-connect-parent.ts +++ b/packages/runtime-host/src/__tests__/fixtures/electron-connect-parent.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { prepareStorageRootControlDirectory, resolveStorageRoot, diff --git a/packages/runtime-host/src/__tests__/fixtures/endpoint-hygiene.ts b/packages/runtime-host/src/__tests__/fixtures/endpoint-hygiene.ts index 4999a41410..21c94062e8 100644 --- a/packages/runtime-host/src/__tests__/fixtures/endpoint-hygiene.ts +++ b/packages/runtime-host/src/__tests__/fixtures/endpoint-hygiene.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readdir, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; diff --git a/packages/runtime-host/src/__tests__/fixtures/execution-host-suite.ts b/packages/runtime-host/src/__tests__/fixtures/execution-host-suite.ts index 88289e779a..234f987c45 100644 --- a/packages/runtime-host/src/__tests__/fixtures/execution-host-suite.ts +++ b/packages/runtime-host/src/__tests__/fixtures/execution-host-suite.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/fixtures/execution-host.ts b/packages/runtime-host/src/__tests__/fixtures/execution-host.ts index 0af2d2dd77..dea303bf6f 100644 --- a/packages/runtime-host/src/__tests__/fixtures/execution-host.ts +++ b/packages/runtime-host/src/__tests__/fixtures/execution-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import { inspect } from 'node:util'; import { FakeBackend } from '@maka/runtime/test-only/fake-backend'; diff --git a/packages/runtime-host/src/__tests__/fixtures/kernel-candidate.ts b/packages/runtime-host/src/__tests__/fixtures/kernel-candidate.ts index 4500ff42fb..03f2116506 100644 --- a/packages/runtime-host/src/__tests__/fixtures/kernel-candidate.ts +++ b/packages/runtime-host/src/__tests__/fixtures/kernel-candidate.ts @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseInteractiveRuntimeHostCandidateArguments } from '../../candidate-cli.js'; import { defineInteractiveRuntimeHostComposition } from '../../server/host-composition.js'; import { createUnavailableDomainOperationHandlers } from '../../server/operation-dispatcher.js'; diff --git a/packages/runtime-host/src/__tests__/fixtures/owned-candidate-exit.ts b/packages/runtime-host/src/__tests__/fixtures/owned-candidate-exit.ts index c4813b491a..d97dac81c3 100644 --- a/packages/runtime-host/src/__tests__/fixtures/owned-candidate-exit.ts +++ b/packages/runtime-host/src/__tests__/fixtures/owned-candidate-exit.ts @@ -1 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + process.exitCode = Number(process.env.MAKA_TEST_EXIT_CODE ?? 0); diff --git a/packages/runtime-host/src/__tests__/fixtures/owned-candidate-wait.ts b/packages/runtime-host/src/__tests__/fixtures/owned-candidate-wait.ts index 0a50c6ca9d..aa93686597 100644 --- a/packages/runtime-host/src/__tests__/fixtures/owned-candidate-wait.ts +++ b/packages/runtime-host/src/__tests__/fixtures/owned-candidate-wait.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const timer = setInterval(() => undefined, 1_000); process.once('SIGTERM', () => { clearInterval(timer); diff --git a/packages/runtime-host/src/__tests__/fixtures/session-transcript-reader.ts b/packages/runtime-host/src/__tests__/fixtures/session-transcript-reader.ts index 4671543456..bc86eb9954 100644 --- a/packages/runtime-host/src/__tests__/fixtures/session-transcript-reader.ts +++ b/packages/runtime-host/src/__tests__/fixtures/session-transcript-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StoredMessage } from '@maka/core/session'; import type { SessionTranscriptReader } from '../../server/session-transcript-reader.js'; diff --git a/packages/runtime-host/src/__tests__/fixtures/uncooperative-host.ts b/packages/runtime-host/src/__tests__/fixtures/uncooperative-host.ts index 1714122c52..efd8be6bcb 100644 --- a/packages/runtime-host/src/__tests__/fixtures/uncooperative-host.ts +++ b/packages/runtime-host/src/__tests__/fixtures/uncooperative-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../../server/host-composition.js'; import { resolveExistingStorageRoot, diff --git a/packages/runtime-host/src/__tests__/fixtures/windows-local-ipc-trust-host.ts b/packages/runtime-host/src/__tests__/fixtures/windows-local-ipc-trust-host.ts index 460201ab05..084612e667 100644 --- a/packages/runtime-host/src/__tests__/fixtures/windows-local-ipc-trust-host.ts +++ b/packages/runtime-host/src/__tests__/fixtures/windows-local-ipc-trust-host.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { once } from 'node:events'; import { startLocalIpcRuntimeHostListener } from '../../server/local-ipc-listener.js'; import type { RuntimeHostMessageTransport } from '../../transport/message-transport.js'; diff --git a/packages/runtime-host/src/__tests__/framed-transport.test.ts b/packages/runtime-host/src/__tests__/framed-transport.test.ts index 7d5109d0c3..c7935c0d3f 100644 --- a/packages/runtime-host/src/__tests__/framed-transport.test.ts +++ b/packages/runtime-host/src/__tests__/framed-transport.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { createServer, Socket, type Server } from 'node:net'; diff --git a/packages/runtime-host/src/__tests__/goal-coordinator.test.ts b/packages/runtime-host/src/__tests__/goal-coordinator.test.ts index 13eb69a8f2..497aeb1290 100644 --- a/packages/runtime-host/src/__tests__/goal-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/goal-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/goal-protocol.test.ts b/packages/runtime-host/src/__tests__/goal-protocol.test.ts index 05fcb0ffef..5ee22aa0f4 100644 --- a/packages/runtime-host/src/__tests__/goal-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/goal-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/goal-root-authority.test.ts b/packages/runtime-host/src/__tests__/goal-root-authority.test.ts index fee1f6f99f..f5f74ebaa0 100644 --- a/packages/runtime-host/src/__tests__/goal-root-authority.test.ts +++ b/packages/runtime-host/src/__tests__/goal-root-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/handshake-compatibility.test.ts b/packages/runtime-host/src/__tests__/handshake-compatibility.test.ts index fd1ac64a4b..87469b0bf5 100644 --- a/packages/runtime-host/src/__tests__/handshake-compatibility.test.ts +++ b/packages/runtime-host/src/__tests__/handshake-compatibility.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { randomBytes, randomUUID } from 'node:crypto'; import { mkdir, mkdtemp, rm, stat, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/host-change-feed.test.ts b/packages/runtime-host/src/__tests__/host-change-feed.test.ts index 89f1b5cfce..a296aae37a 100644 --- a/packages/runtime-host/src/__tests__/host-change-feed.test.ts +++ b/packages/runtime-host/src/__tests__/host-change-feed.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { HostChangeFeed } from '../server/host-change-feed.js'; diff --git a/packages/runtime-host/src/__tests__/host-composition.test.ts b/packages/runtime-host/src/__tests__/host-composition.test.ts index 6bc48287b1..21eb278e6e 100644 --- a/packages/runtime-host/src/__tests__/host-composition.test.ts +++ b/packages/runtime-host/src/__tests__/host-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/host-kernel.test.ts b/packages/runtime-host/src/__tests__/host-kernel.test.ts index 1c3c84a545..ab32ed0c69 100644 --- a/packages/runtime-host/src/__tests__/host-kernel.test.ts +++ b/packages/runtime-host/src/__tests__/host-kernel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; diff --git a/packages/runtime-host/src/__tests__/host-profile.test.ts b/packages/runtime-host/src/__tests__/host-profile.test.ts index 0eb45a64ba..098da5a7a4 100644 --- a/packages/runtime-host/src/__tests__/host-profile.test.ts +++ b/packages/runtime-host/src/__tests__/host-profile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/host-residency-registry.test.ts b/packages/runtime-host/src/__tests__/host-residency-registry.test.ts index d497c5ef55..09130ed308 100644 --- a/packages/runtime-host/src/__tests__/host-residency-registry.test.ts +++ b/packages/runtime-host/src/__tests__/host-residency-registry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { HostResidencyRegistry } from '../server/host-residency-registry.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-client.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-client.test.ts index 429175ac80..596cfab0ab 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-client.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-client.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { runHostedExecutionWithDependencies } from '../client/hosted-execution.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-coordinator.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-coordinator.test.ts index f4cb427a5e..ed448e41dc 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { HostHostedExecutionCoordinator } from '../server/hosted-execution-coordinator.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-registry.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-registry.test.ts index ebe6bc7650..aa6db9760f 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-registry.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-registry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { HostedExecutionRef } from '../server/hosted-execution-authority.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-runner.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-runner.test.ts index cdba8118c8..ca91d32413 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-runner.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-runner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { OperationHandlerMap } from '../server/operation-dispatcher.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-target.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-target.test.ts index 3ff68d0d21..7cf18a6fac 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-target.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-target.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { RuntimeHostConnection } from '../client/connection.js'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-tool-profile.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-tool-profile.test.ts index 68c0133d76..a71c6b93bd 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-tool-profile.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-tool-profile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { MakaTool } from '@maka/runtime/tool-runtime'; diff --git a/packages/runtime-host/src/__tests__/hosted-execution-wait.test.ts b/packages/runtime-host/src/__tests__/hosted-execution-wait.test.ts index a7ae9facf9..889e69394a 100644 --- a/packages/runtime-host/src/__tests__/hosted-execution-wait.test.ts +++ b/packages/runtime-host/src/__tests__/hosted-execution-wait.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { diff --git a/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts b/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts index b5b68c4c35..1a8e5982f0 100644 --- a/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/interaction-protocol.test.ts b/packages/runtime-host/src/__tests__/interaction-protocol.test.ts index 01340909a2..ba0e1ee51a 100644 --- a/packages/runtime-host/src/__tests__/interaction-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/interaction-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/memory-coordinator.test.ts b/packages/runtime-host/src/__tests__/memory-coordinator.test.ts index 1d7737b143..57738b8a29 100644 --- a/packages/runtime-host/src/__tests__/memory-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/memory-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/memory-extraction-coordinator.test.ts b/packages/runtime-host/src/__tests__/memory-extraction-coordinator.test.ts index dff8c7c7b3..c5edc83c3d 100644 --- a/packages/runtime-host/src/__tests__/memory-extraction-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/memory-extraction-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/memory-extraction-session-lane.test.ts b/packages/runtime-host/src/__tests__/memory-extraction-session-lane.test.ts index 1963c85023..57c09580f4 100644 --- a/packages/runtime-host/src/__tests__/memory-extraction-session-lane.test.ts +++ b/packages/runtime-host/src/__tests__/memory-extraction-session-lane.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/memory-protocol.test.ts b/packages/runtime-host/src/__tests__/memory-protocol.test.ts index 5ef38f78a1..fea1bddf1f 100644 --- a/packages/runtime-host/src/__tests__/memory-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/memory-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/memory-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/memory-two-client-uds.test.ts index 7aa3721ba7..a4fbf1a0e3 100644 --- a/packages/runtime-host/src/__tests__/memory-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/memory-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/message-coordinator.test.ts b/packages/runtime-host/src/__tests__/message-coordinator.test.ts index 959d3a4e9d..129e16aefc 100644 --- a/packages/runtime-host/src/__tests__/message-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/message-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { MessageContent } from '@maka/core/events'; diff --git a/packages/runtime-host/src/__tests__/oauth-coordinator.test.ts b/packages/runtime-host/src/__tests__/oauth-coordinator.test.ts index 77423fe788..3918a40144 100644 --- a/packages/runtime-host/src/__tests__/oauth-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/oauth-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/oauth-execution-authority.test.ts b/packages/runtime-host/src/__tests__/oauth-execution-authority.test.ts index 18f60605c7..f64dfd118c 100644 --- a/packages/runtime-host/src/__tests__/oauth-execution-authority.test.ts +++ b/packages/runtime-host/src/__tests__/oauth-execution-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; import { open, writeFile, mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/oauth-protocol.test.ts b/packages/runtime-host/src/__tests__/oauth-protocol.test.ts index c001eeff52..579635c9d7 100644 --- a/packages/runtime-host/src/__tests__/oauth-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/oauth-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/oauth-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/oauth-two-client-uds.test.ts index 3d439b1b54..38258865f3 100644 --- a/packages/runtime-host/src/__tests__/oauth-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/oauth-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/operation-dispatcher.test.ts b/packages/runtime-host/src/__tests__/operation-dispatcher.test.ts index 422ecf33a0..a11d6758f7 100644 --- a/packages/runtime-host/src/__tests__/operation-dispatcher.test.ts +++ b/packages/runtime-host/src/__tests__/operation-dispatcher.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { OperationKey, OperationOutcome, RequestFrame } from '../protocol/index.js'; diff --git a/packages/runtime-host/src/__tests__/owned-candidate.test.ts b/packages/runtime-host/src/__tests__/owned-candidate.test.ts index 4eecc4016c..94c73d7a4c 100644 --- a/packages/runtime-host/src/__tests__/owned-candidate.test.ts +++ b/packages/runtime-host/src/__tests__/owned-candidate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readdir } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/plan-protocol.test.ts b/packages/runtime-host/src/__tests__/plan-protocol.test.ts index afbf233a59..756aa0e7a5 100644 --- a/packages/runtime-host/src/__tests__/plan-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/plan-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/plan-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/plan-two-client-uds.test.ts index 4343a044cf..536972ef46 100644 --- a/packages/runtime-host/src/__tests__/plan-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/plan-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/process-lifecycle.test.ts b/packages/runtime-host/src/__tests__/process-lifecycle.test.ts index 33857ddebc..73bd3620cf 100644 --- a/packages/runtime-host/src/__tests__/process-lifecycle.test.ts +++ b/packages/runtime-host/src/__tests__/process-lifecycle.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { runRuntimeHostProcessLifecycle } from '../server/process-lifecycle.js'; diff --git a/packages/runtime-host/src/__tests__/project-catalog-coordinator.test.ts b/packages/runtime-host/src/__tests__/project-catalog-coordinator.test.ts index eae011e5be..909b79dda9 100644 --- a/packages/runtime-host/src/__tests__/project-catalog-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/project-catalog-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rename, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/project-catalog-protocol.test.ts b/packages/runtime-host/src/__tests__/project-catalog-protocol.test.ts index 9f237fc8d0..8e2a4d4966 100644 --- a/packages/runtime-host/src/__tests__/project-catalog-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/project-catalog-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/project-catalog-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/project-catalog-two-client-uds.test.ts index 75ef73ff4f..c9e2a1aaa0 100644 --- a/packages/runtime-host/src/__tests__/project-catalog-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/project-catalog-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rename, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/project-directory-authority.test.ts b/packages/runtime-host/src/__tests__/project-directory-authority.test.ts index 0fb7293c51..7ceb8edae2 100644 --- a/packages/runtime-host/src/__tests__/project-directory-authority.test.ts +++ b/packages/runtime-host/src/__tests__/project-directory-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rm, symlink } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/protocol.test.ts b/packages/runtime-host/src/__tests__/protocol.test.ts index ed3a806b2c..6a9d13bf90 100644 --- a/packages/runtime-host/src/__tests__/protocol.test.ts +++ b/packages/runtime-host/src/__tests__/protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/reconnecting-connection.test.ts b/packages/runtime-host/src/__tests__/reconnecting-connection.test.ts index 79113cc326..a4d0d4c9f2 100644 --- a/packages/runtime-host/src/__tests__/reconnecting-connection.test.ts +++ b/packages/runtime-host/src/__tests__/reconnecting-connection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/root-admission-owner.test.ts b/packages/runtime-host/src/__tests__/root-admission-owner.test.ts index 1500608cb5..43a6223a1c 100644 --- a/packages/runtime-host/src/__tests__/root-admission-owner.test.ts +++ b/packages/runtime-host/src/__tests__/root-admission-owner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/root-turn-coordinator.test.ts b/packages/runtime-host/src/__tests__/root-turn-coordinator.test.ts index bcd4e0d9d3..d808c0adc3 100644 --- a/packages/runtime-host/src/__tests__/root-turn-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/root-turn-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/runtime-policy-activation-gate.test.ts b/packages/runtime-host/src/__tests__/runtime-policy-activation-gate.test.ts index 3b3998686e..c5271b5f1e 100644 --- a/packages/runtime-host/src/__tests__/runtime-policy-activation-gate.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-policy-activation-gate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { RuntimePolicyActivationGate } from '../server/runtime-policy-activation-gate.js'; diff --git a/packages/runtime-host/src/__tests__/runtime-policy-coordinator.test.ts b/packages/runtime-host/src/__tests__/runtime-policy-coordinator.test.ts index 1699b22791..fff900af22 100644 --- a/packages/runtime-host/src/__tests__/runtime-policy-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-policy-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; import { mkdtemp, open, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/runtime-resource-coordinator.test.ts b/packages/runtime-host/src/__tests__/runtime-resource-coordinator.test.ts index cea8652db7..fd1508cade 100644 --- a/packages/runtime-host/src/__tests__/runtime-resource-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-resource-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { SHELL_RUN_SOURCE_TOOL_CALL_ID_MAX_BYTES } from '@maka/core/shell-run'; diff --git a/packages/runtime-host/src/__tests__/runtime-resource-process.test.ts b/packages/runtime-host/src/__tests__/runtime-resource-process.test.ts index d9593f18dc..f4ca28d7ec 100644 --- a/packages/runtime-host/src/__tests__/runtime-resource-process.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-resource-process.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/runtime-resource-protocol.test.ts b/packages/runtime-host/src/__tests__/runtime-resource-protocol.test.ts index 3a71c43e52..9bcce899c0 100644 --- a/packages/runtime-host/src/__tests__/runtime-resource-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-resource-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { SHELL_RUN_SOURCE_TOOL_CALL_ID_MAX_BYTES } from '@maka/core/shell-run'; diff --git a/packages/runtime-host/src/__tests__/runtime-resource-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/runtime-resource-two-client-uds.test.ts index 0278029c23..c6a5936d85 100644 --- a/packages/runtime-host/src/__tests__/runtime-resource-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/runtime-resource-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/sandbox-boundary-graph-wake.test.ts b/packages/runtime-host/src/__tests__/sandbox-boundary-graph-wake.test.ts index c71fb6b9e8..20b56508e0 100644 --- a/packages/runtime-host/src/__tests__/sandbox-boundary-graph-wake.test.ts +++ b/packages/runtime-host/src/__tests__/sandbox-boundary-graph-wake.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { agentGraphIdForRootSession } from '@maka/runtime/stream-graph-coordinator'; diff --git a/packages/runtime-host/src/__tests__/scheduled-task-protocol.test.ts b/packages/runtime-host/src/__tests__/scheduled-task-protocol.test.ts index cc9f44e2b4..3d9ea5e7d1 100644 --- a/packages/runtime-host/src/__tests__/scheduled-task-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/scheduled-task-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { ScheduledTask, ScheduledTaskEffect } from '@maka/core/scheduled-task'; diff --git a/packages/runtime-host/src/__tests__/session-admission-gate.test.ts b/packages/runtime-host/src/__tests__/session-admission-gate.test.ts index f88d12b4f2..312bedd401 100644 --- a/packages/runtime-host/src/__tests__/session-admission-gate.test.ts +++ b/packages/runtime-host/src/__tests__/session-admission-gate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { SessionAdmissionGate } from '../server/session-admission-gate.js'; diff --git a/packages/runtime-host/src/__tests__/session-catalog-coordinator.test.ts b/packages/runtime-host/src/__tests__/session-catalog-coordinator.test.ts index f59fb1b367..9fc9ee06b2 100644 --- a/packages/runtime-host/src/__tests__/session-catalog-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/session-catalog-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, realpath, rm, symlink } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts b/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts index 1fa200e48f..92829b2bdf 100644 --- a/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-catalog-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/session-catalog-two-client-uds.test.ts index c16f9e0591..ce4bc3f478 100644 --- a/packages/runtime-host/src/__tests__/session-catalog-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/session-catalog-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; diff --git a/packages/runtime-host/src/__tests__/session-continuity-coordinator.test.ts b/packages/runtime-host/src/__tests__/session-continuity-coordinator.test.ts index dd1002de53..f996dfe35d 100644 --- a/packages/runtime-host/src/__tests__/session-continuity-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/session-continuity-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { setImmediate as delayImmediate } from 'node:timers/promises'; import test from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-effect-coordinator.test.ts b/packages/runtime-host/src/__tests__/session-effect-coordinator.test.ts index 72b6f3e86a..328c6dbb8b 100644 --- a/packages/runtime-host/src/__tests__/session-effect-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/session-effect-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/session-effect-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/session-effect-two-client-uds.test.ts index 7642809101..21edde3183 100644 --- a/packages/runtime-host/src/__tests__/session-effect-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/session-effect-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/session-effects-protocol.test.ts b/packages/runtime-host/src/__tests__/session-effects-protocol.test.ts index 06918ed204..e5fb0ecd5d 100644 --- a/packages/runtime-host/src/__tests__/session-effects-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-effects-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-projector.test.ts b/packages/runtime-host/src/__tests__/session-projector.test.ts index a3b0e462e6..4ffad9e9cd 100644 --- a/packages/runtime-host/src/__tests__/session-projector.test.ts +++ b/packages/runtime-host/src/__tests__/session-projector.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { StoredMessage } from '@maka/core/session'; diff --git a/packages/runtime-host/src/__tests__/session-retirement-coordinator.test.ts b/packages/runtime-host/src/__tests__/session-retirement-coordinator.test.ts index 48bdb4a410..eae496611d 100644 --- a/packages/runtime-host/src/__tests__/session-retirement-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/session-retirement-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts b/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts index cce4d583a6..69737f8fd5 100644 --- a/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-revision-graph-references.test.ts b/packages/runtime-host/src/__tests__/session-revision-graph-references.test.ts index 2119e9c283..ed1ac3b05c 100644 --- a/packages/runtime-host/src/__tests__/session-revision-graph-references.test.ts +++ b/packages/runtime-host/src/__tests__/session-revision-graph-references.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime-host/src/__tests__/session-revision-protocol.test.ts b/packages/runtime-host/src/__tests__/session-revision-protocol.test.ts index bc5d527ce9..11f47ac531 100644 --- a/packages/runtime-host/src/__tests__/session-revision-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-revision-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-revision-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/session-revision-two-client-uds.test.ts index 71d54e171d..20a7ecafa1 100644 --- a/packages/runtime-host/src/__tests__/session-revision-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/session-revision-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/session-subscription-client.test.ts b/packages/runtime-host/src/__tests__/session-subscription-client.test.ts index 2f6f8304b9..1734826ef9 100644 --- a/packages/runtime-host/src/__tests__/session-subscription-client.test.ts +++ b/packages/runtime-host/src/__tests__/session-subscription-client.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash, randomUUID } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/session-transcript-pager.test.ts b/packages/runtime-host/src/__tests__/session-transcript-pager.test.ts index 4320adc5a3..e4ea72480a 100644 --- a/packages/runtime-host/src/__tests__/session-transcript-pager.test.ts +++ b/packages/runtime-host/src/__tests__/session-transcript-pager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { StoredMessage } from '@maka/core/session'; diff --git a/packages/runtime-host/src/__tests__/session-transcript-protocol.test.ts b/packages/runtime-host/src/__tests__/session-transcript-protocol.test.ts index 79099379b9..d6b9886a6f 100644 --- a/packages/runtime-host/src/__tests__/session-transcript-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-transcript-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/session-transcript-reader.test.ts b/packages/runtime-host/src/__tests__/session-transcript-reader.test.ts index d4ee4998b6..0baad3f799 100644 --- a/packages/runtime-host/src/__tests__/session-transcript-reader.test.ts +++ b/packages/runtime-host/src/__tests__/session-transcript-reader.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/session-turns.test.ts b/packages/runtime-host/src/__tests__/session-turns.test.ts index 2e9d842de6..945e36e780 100644 --- a/packages/runtime-host/src/__tests__/session-turns.test.ts +++ b/packages/runtime-host/src/__tests__/session-turns.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/runtime-host/src/__tests__/skill-catalog-coordinator.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-coordinator.test.ts index 982b2e6c09..e8966c05d4 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/skill-catalog-protocol.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-protocol.test.ts index 8b45077038..a0ad74b206 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts index 59d4c718a9..14d3ea9ad6 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/skill-catalog-transaction.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-transaction.test.ts index e1af0e6a3b..c435d758d4 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-transaction.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-transaction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { closeSync, fsyncSync, openSync, writeSync } from 'node:fs'; diff --git a/packages/runtime-host/src/__tests__/skill-catalog-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-two-client-uds.test.ts index d578ab0a8d..e49baebd00 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/ssh-tunnel.test.ts b/packages/runtime-host/src/__tests__/ssh-tunnel.test.ts index c449817ecd..a86819d662 100644 --- a/packages/runtime-host/src/__tests__/ssh-tunnel.test.ts +++ b/packages/runtime-host/src/__tests__/ssh-tunnel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { writeFile } from 'node:fs/promises'; import { test } from 'node:test'; diff --git a/packages/runtime-host/src/__tests__/startup-diagnostic.test.ts b/packages/runtime-host/src/__tests__/startup-diagnostic.test.ts index 0b29b698e7..4b8e5095fd 100644 --- a/packages/runtime-host/src/__tests__/startup-diagnostic.test.ts +++ b/packages/runtime-host/src/__tests__/startup-diagnostic.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash, randomUUID } from 'node:crypto'; import { mkdir, rm, stat, utimes } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/startup-error.test.ts b/packages/runtime-host/src/__tests__/startup-error.test.ts index 84a7c5571a..3ac7319c96 100644 --- a/packages/runtime-host/src/__tests__/startup-error.test.ts +++ b/packages/runtime-host/src/__tests__/startup-error.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { RuntimeHostPermanentReconnectError } from '../client/reconnect-lifecycle.js'; diff --git a/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts b/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts index 4c1ffa158d..14fb1536c2 100644 --- a/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { Task } from '@maka/core/task-ledger'; diff --git a/packages/runtime-host/src/__tests__/usage-pricing-client-correlation.test.ts b/packages/runtime-host/src/__tests__/usage-pricing-client-correlation.test.ts index f32afa2b6f..a1fcc42901 100644 --- a/packages/runtime-host/src/__tests__/usage-pricing-client-correlation.test.ts +++ b/packages/runtime-host/src/__tests__/usage-pricing-client-correlation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { randomUUID } from 'node:crypto'; diff --git a/packages/runtime-host/src/__tests__/usage-pricing-protocol.test.ts b/packages/runtime-host/src/__tests__/usage-pricing-protocol.test.ts index f345179e88..eb1ca1f9c1 100644 --- a/packages/runtime-host/src/__tests__/usage-pricing-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/usage-pricing-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/usage-pricing-root-identity.test.ts b/packages/runtime-host/src/__tests__/usage-pricing-root-identity.test.ts index 668604a4c2..c4ec42e261 100644 --- a/packages/runtime-host/src/__tests__/usage-pricing-root-identity.test.ts +++ b/packages/runtime-host/src/__tests__/usage-pricing-root-identity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/__tests__/usage-pricing-two-client-uds.test.ts b/packages/runtime-host/src/__tests__/usage-pricing-two-client-uds.test.ts index 5ec37a5995..ede75459dd 100644 --- a/packages/runtime-host/src/__tests__/usage-pricing-two-client-uds.test.ts +++ b/packages/runtime-host/src/__tests__/usage-pricing-two-client-uds.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { defineInteractiveRuntimeHostComposition } from '../server/host-composition.js'; import assert from 'node:assert/strict'; import { lstat, mkdtemp, rename, rm } from 'node:fs/promises'; diff --git a/packages/runtime-host/src/__tests__/wait-for-ready.test.ts b/packages/runtime-host/src/__tests__/wait-for-ready.test.ts index 002855a041..1ba9b85530 100644 --- a/packages/runtime-host/src/__tests__/wait-for-ready.test.ts +++ b/packages/runtime-host/src/__tests__/wait-for-ready.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { waitForRuntimeHostReady } from '../client/wait-for-ready.js'; diff --git a/packages/runtime-host/src/__tests__/web-fetch-tool.test.ts b/packages/runtime-host/src/__tests__/web-fetch-tool.test.ts index 3b0644ff7f..f31086638f 100644 --- a/packages/runtime-host/src/__tests__/web-fetch-tool.test.ts +++ b/packages/runtime-host/src/__tests__/web-fetch-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createDefaultRuntimePolicy } from '@maka/core/runtime-policy'; diff --git a/packages/runtime-host/src/__tests__/web-search-tool.test.ts b/packages/runtime-host/src/__tests__/web-search-tool.test.ts index ac4d5f258a..029c127efe 100644 --- a/packages/runtime-host/src/__tests__/web-search-tool.test.ts +++ b/packages/runtime-host/src/__tests__/web-search-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createDefaultRuntimePolicy } from '@maka/core/runtime-policy'; diff --git a/packages/runtime-host/src/__tests__/websocket-listener.test.ts b/packages/runtime-host/src/__tests__/websocket-listener.test.ts index ff5ee616b6..480ccdfa1d 100644 --- a/packages/runtime-host/src/__tests__/websocket-listener.test.ts +++ b/packages/runtime-host/src/__tests__/websocket-listener.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import assert from 'node:assert/strict'; import { once } from 'node:events'; diff --git a/packages/runtime-host/src/__tests__/workspace-execution-composition.test.ts b/packages/runtime-host/src/__tests__/workspace-execution-composition.test.ts index 8983e21841..a9e958f016 100644 --- a/packages/runtime-host/src/__tests__/workspace-execution-composition.test.ts +++ b/packages/runtime-host/src/__tests__/workspace-execution-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { diff --git a/packages/runtime-host/src/adapter/index.ts b/packages/runtime-host/src/adapter/index.ts index 1383a458b4..a5abd63b5b 100644 --- a/packages/runtime-host/src/adapter/index.ts +++ b/packages/runtime-host/src/adapter/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { createRuntimeHostSessionProjectionSeed, RuntimeHostSessionProjector, diff --git a/packages/runtime-host/src/adapter/session-projector.ts b/packages/runtime-host/src/adapter/session-projector.ts index 192229e552..d263dde493 100644 --- a/packages/runtime-host/src/adapter/session-projector.ts +++ b/packages/runtime-host/src/adapter/session-projector.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import type { ActiveInteractionRequestEvent, SessionEvent } from '@maka/core/events'; import type { StoredMessage, TurnRecord } from '@maka/core/session'; diff --git a/packages/runtime-host/src/candidate-cli.ts b/packages/runtime-host/src/candidate-cli.ts index dfa5319415..c6c5c4b01c 100644 --- a/packages/runtime-host/src/candidate-cli.ts +++ b/packages/runtime-host/src/candidate-cli.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { InteractiveRuntimeHostCandidateOptions } from './server/candidate.js'; import { isCandidateStartupAttemptId } from './candidate-startup-failure.js'; diff --git a/packages/runtime-host/src/candidate-entry.ts b/packages/runtime-host/src/candidate-entry.ts index a9a3af2555..a09b5e1566 100644 --- a/packages/runtime-host/src/candidate-entry.ts +++ b/packages/runtime-host/src/candidate-entry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { candidateStartupFailureExitCode, classifyCandidateStartupFailure, diff --git a/packages/runtime-host/src/candidate-startup-failure.ts b/packages/runtime-host/src/candidate-startup-failure.ts index 7b1ef21e59..1c4a7d43a6 100644 --- a/packages/runtime-host/src/candidate-startup-failure.ts +++ b/packages/runtime-host/src/candidate-startup-failure.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type CandidateStartupFailureReason = | 'stored_data_incompatible' | 'operational_state_migration_blocked' diff --git a/packages/runtime-host/src/client/agent-graph-reader.ts b/packages/runtime-host/src/client/agent-graph-reader.ts index 1a91860aa2..79446f7dbb 100644 --- a/packages/runtime-host/src/client/agent-graph-reader.ts +++ b/packages/runtime-host/src/client/agent-graph-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphEpochListInput, AgentGraphEpochListResult, diff --git a/packages/runtime-host/src/client/candidate-launch-barrier.ts b/packages/runtime-host/src/client/candidate-launch-barrier.ts index e53fd08f7a..bd533ca268 100644 --- a/packages/runtime-host/src/client/candidate-launch-barrier.ts +++ b/packages/runtime-host/src/client/candidate-launch-barrier.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectOrSpawnRuntimeHostInput, ConnectOrSpawnRuntimeHostResult, diff --git a/packages/runtime-host/src/client/capability-provider-service.ts b/packages/runtime-host/src/client/capability-provider-service.ts index 6e59ed89e6..6980a1ed33 100644 --- a/packages/runtime-host/src/client/capability-provider-service.ts +++ b/packages/runtime-host/src/client/capability-provider-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ClientCapabilityProvider } from './client-capability.js'; import type { RuntimeHostConnection } from './connection.js'; import { decodeClientCapabilityReplaceInput } from '../protocol/index.js'; diff --git a/packages/runtime-host/src/client/catalog-reader.ts b/packages/runtime-host/src/client/catalog-reader.ts index ebbcaa6f63..e176dc64b3 100644 --- a/packages/runtime-host/src/client/catalog-reader.ts +++ b/packages/runtime-host/src/client/catalog-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeProjectCatalogProject, decodeProjectCatalogProjectDetails, diff --git a/packages/runtime-host/src/client/client-capability-channel.ts b/packages/runtime-host/src/client/client-capability-channel.ts index 95cf84cb4b..5a1361e53c 100644 --- a/packages/runtime-host/src/client/client-capability-channel.ts +++ b/packages/runtime-host/src/client/client-capability-channel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { CLIENT_CAPABILITY_MAX_RESULT_BYTES, diff --git a/packages/runtime-host/src/client/client-capability.ts b/packages/runtime-host/src/client/client-capability.ts index 34874e2067..daa338471b 100644 --- a/packages/runtime-host/src/client/client-capability.ts +++ b/packages/runtime-host/src/client/client-capability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ClientCapabilityCallFrame, ClientCapabilityCallResult, diff --git a/packages/runtime-host/src/client/client-instance-identity.ts b/packages/runtime-host/src/client/client-instance-identity.ts index 91451af73a..14f4f4a0a5 100644 --- a/packages/runtime-host/src/client/client-instance-identity.ts +++ b/packages/runtime-host/src/client/client-instance-identity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { link, mkdir, open, readFile, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/packages/runtime-host/src/client/connect-or-spawn.ts b/packages/runtime-host/src/client/connect-or-spawn.ts index 9e7bb3072a..d5894a5977 100644 --- a/packages/runtime-host/src/client/connect-or-spawn.ts +++ b/packages/runtime-host/src/client/connect-or-spawn.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { prepareStorageRootControlDirectory, diff --git a/packages/runtime-host/src/client/connection.ts b/packages/runtime-host/src/client/connection.ts index 4e4ab01f05..0366c5a8bc 100644 --- a/packages/runtime-host/src/client/connection.ts +++ b/packages/runtime-host/src/client/connection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { ClientRequest, IncomingMessage } from 'node:http'; import { connect } from 'node:net'; diff --git a/packages/runtime-host/src/client/host-profile.ts b/packages/runtime-host/src/client/host-profile.ts index 512384c312..d08a65ae71 100644 --- a/packages/runtime-host/src/client/host-profile.ts +++ b/packages/runtime-host/src/client/host-profile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { chmod, mkdir, open, readFile, rename, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/packages/runtime-host/src/client/hosted-execution-target.ts b/packages/runtime-host/src/client/hosted-execution-target.ts index 865673c017..2ba97b5821 100644 --- a/packages/runtime-host/src/client/hosted-execution-target.ts +++ b/packages/runtime-host/src/client/hosted-execution-target.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { authorizeConnectionModel, effectiveBaseUrl } from '@maka/core/llm-connections'; import { readRuntimeHostConnectionCatalog } from './catalog-reader.js'; import type { RuntimeHostConnection } from './connection.js'; diff --git a/packages/runtime-host/src/client/hosted-execution.ts b/packages/runtime-host/src/client/hosted-execution.ts index 1f4b30639a..fbce39b1f5 100644 --- a/packages/runtime-host/src/client/hosted-execution.ts +++ b/packages/runtime-host/src/client/hosted-execution.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { INTERACTIVE_RUNTIME_HOST_COMPOSITION_ID, preservesHostedExecutionEnvironment, diff --git a/packages/runtime-host/src/client/index.ts b/packages/runtime-host/src/client/index.ts index 21f3d15e9a..4ffed7f2b1 100644 --- a/packages/runtime-host/src/client/index.ts +++ b/packages/runtime-host/src/client/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { connectRuntimeHost, connectExistingRuntimeHost, diff --git a/packages/runtime-host/src/client/launcher.ts b/packages/runtime-host/src/client/launcher.ts index 5059e42b35..3a9a56b21c 100644 --- a/packages/runtime-host/src/client/launcher.ts +++ b/packages/runtime-host/src/client/launcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { randomUUID } from 'node:crypto'; import { dirname, isAbsolute } from 'node:path'; diff --git a/packages/runtime-host/src/client/oauth-presentation.ts b/packages/runtime-host/src/client/oauth-presentation.ts index 917b22ac7a..7100f6eaa4 100644 --- a/packages/runtime-host/src/client/oauth-presentation.ts +++ b/packages/runtime-host/src/client/oauth-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ClientCapabilityServiceCallFrame } from '../protocol/index.js'; import { decodeOAuthPresentationRequest, diff --git a/packages/runtime-host/src/client/reconnect-lifecycle.ts b/packages/runtime-host/src/client/reconnect-lifecycle.ts index 9bd2733c17..2000b06336 100644 --- a/packages/runtime-host/src/client/reconnect-lifecycle.ts +++ b/packages/runtime-host/src/client/reconnect-lifecycle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const DEFAULT_BACKOFF_MIN_MS = 100; const DEFAULT_BACKOFF_MAX_MS = 5_000; const DEFAULT_STABLE_CONNECTION_MS = 10_000; diff --git a/packages/runtime-host/src/client/reconnecting-connection.ts b/packages/runtime-host/src/client/reconnecting-connection.ts index 62a9543341..84fc4e2ac1 100644 --- a/packages/runtime-host/src/client/reconnecting-connection.ts +++ b/packages/runtime-host/src/client/reconnecting-connection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { HOST_OPERATION_SPECS, type ClientCapabilityReplaceResult, diff --git a/packages/runtime-host/src/client/remote-compatibility-error.ts b/packages/runtime-host/src/client/remote-compatibility-error.ts index d6ee4c7685..3e276cf263 100644 --- a/packages/runtime-host/src/client/remote-compatibility-error.ts +++ b/packages/runtime-host/src/client/remote-compatibility-error.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { INTERACTIVE_RUNTIME_HOST_COMPOSITION_ID, RUNTIME_HOST_COMPATIBILITY_EPOCH, diff --git a/packages/runtime-host/src/client/session-subscription.ts b/packages/runtime-host/src/client/session-subscription.ts index 8afaac31eb..569261d0af 100644 --- a/packages/runtime-host/src/client/session-subscription.ts +++ b/packages/runtime-host/src/client/session-subscription.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { encodeProtocolMessage, diff --git a/packages/runtime-host/src/client/setup-frame.ts b/packages/runtime-host/src/client/setup-frame.ts index 8a93c931ee..84c64db3cb 100644 --- a/packages/runtime-host/src/client/setup-frame.ts +++ b/packages/runtime-host/src/client/setup-frame.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { isCanonicalRuntimeHostWebSocketPath } from '../protocol/index.js'; diff --git a/packages/runtime-host/src/client/ssh-tunnel.ts b/packages/runtime-host/src/client/ssh-tunnel.ts index f0d97c1364..f957f9ba1e 100644 --- a/packages/runtime-host/src/client/ssh-tunnel.ts +++ b/packages/runtime-host/src/client/ssh-tunnel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, spawn, type ChildProcess } from 'node:child_process'; import { chmod, mkdtemp, readFile, rm } from 'node:fs/promises'; import { createServer } from 'node:net'; diff --git a/packages/runtime-host/src/client/startup-error.ts b/packages/runtime-host/src/client/startup-error.ts index 2d4210afb2..3f06cb17a7 100644 --- a/packages/runtime-host/src/client/startup-error.ts +++ b/packages/runtime-host/src/client/startup-error.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CandidateStartupFailureReason } from '../candidate-startup-failure.js'; import { RuntimeHostPermanentReconnectError } from './reconnect-lifecycle.js'; diff --git a/packages/runtime-host/src/client/wait-for-ready.ts b/packages/runtime-host/src/client/wait-for-ready.ts index e9f4e584e6..13ea284c99 100644 --- a/packages/runtime-host/src/client/wait-for-ready.ts +++ b/packages/runtime-host/src/client/wait-for-ready.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeHostConnection } from './connection.js'; export async function waitForRuntimeHostReady( diff --git a/packages/runtime-host/src/control/access-credential-delivery.ts b/packages/runtime-host/src/control/access-credential-delivery.ts index 856dd12416..9c305104c6 100644 --- a/packages/runtime-host/src/control/access-credential-delivery.ts +++ b/packages/runtime-host/src/control/access-credential-delivery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, open, readdir, rm, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/runtime-host/src/control/endpoint.ts b/packages/runtime-host/src/control/endpoint.ts index 529b6182c6..19909a3627 100644 --- a/packages/runtime-host/src/control/endpoint.ts +++ b/packages/runtime-host/src/control/endpoint.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, type ExecFileException } from 'node:child_process'; import { chmod, lstat, mkdtemp, readdir, rm, rmdir, unlink } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime-host/src/control/registration.ts b/packages/runtime-host/src/control/registration.ts index 517ccc0560..c99b57aab5 100644 --- a/packages/runtime-host/src/control/registration.ts +++ b/packages/runtime-host/src/control/registration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, lstat, open, readFile, rename, unlink } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/runtime-host/src/control/startup-diagnostic.ts b/packages/runtime-host/src/control/startup-diagnostic.ts index d62a3fede1..cb910345dc 100644 --- a/packages/runtime-host/src/control/startup-diagnostic.ts +++ b/packages/runtime-host/src/control/startup-diagnostic.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, lstat, open, readFile, readdir, rename, unlink } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/packages/runtime-host/src/execution-candidate-main.ts b/packages/runtime-host/src/execution-candidate-main.ts index 4c6cf4c39f..72fd39f1bb 100644 --- a/packages/runtime-host/src/execution-candidate-main.ts +++ b/packages/runtime-host/src/execution-candidate-main.ts @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { runExecutionCandidateEntry } from './candidate-entry.js'; await runExecutionCandidateEntry(process.argv.slice(2)); diff --git a/packages/runtime-host/src/process-diagnostics.ts b/packages/runtime-host/src/process-diagnostics.ts index b7fc96d39f..c111fe9fbb 100644 --- a/packages/runtime-host/src/process-diagnostics.ts +++ b/packages/runtime-host/src/process-diagnostics.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DiagnosticLogBuffer } from '@maka/core/diagnostic-log'; import { installConsoleDiagnosticLogCapture } from '@maka/core/node-diagnostic-log'; import { diff --git a/packages/runtime-host/src/protocol/access-authority.ts b/packages/runtime-host/src/protocol/access-authority.ts index fcd7ff05ca..b4f84088c6 100644 --- a/packages/runtime-host/src/protocol/access-authority.ts +++ b/packages/runtime-host/src/protocol/access-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { invalidProtocolFrame } from './errors.js'; import { requireExactRecord, requireId, requireString, requireUtf8String } from './codec.js'; import { defineOperation } from './operation-spec.js'; diff --git a/packages/runtime-host/src/protocol/agent-graph.ts b/packages/runtime-host/src/protocol/agent-graph.ts index 369efa0fbd..faa0c7d246 100644 --- a/packages/runtime-host/src/protocol/agent-graph.ts +++ b/packages/runtime-host/src/protocol/agent-graph.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEncodedByteLimit, diff --git a/packages/runtime-host/src/protocol/artifact.ts b/packages/runtime-host/src/protocol/artifact.ts index a43c9d1c04..9b9e2b06d6 100644 --- a/packages/runtime-host/src/protocol/artifact.ts +++ b/packages/runtime-host/src/protocol/artifact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ARTIFACT_KINDS, ARTIFACT_SOURCES, diff --git a/packages/runtime-host/src/protocol/client-capability.ts b/packages/runtime-host/src/protocol/client-capability.ts index 6b8a968ade..a3a33083e3 100644 --- a/packages/runtime-host/src/protocol/client-capability.ts +++ b/packages/runtime-host/src/protocol/client-capability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { assertExactKeys, requireCount, diff --git a/packages/runtime-host/src/protocol/codec.ts b/packages/runtime-host/src/protocol/codec.ts index f4aa2e8bf0..b1288ea309 100644 --- a/packages/runtime-host/src/protocol/codec.ts +++ b/packages/runtime-host/src/protocol/codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { invalidProtocolFrame } from './errors.js'; export function requireRecord(value: unknown, label: string): Record { diff --git a/packages/runtime-host/src/protocol/configuration-change.ts b/packages/runtime-host/src/protocol/configuration-change.ts index 3cd007a940..6515c1ffbc 100644 --- a/packages/runtime-host/src/protocol/configuration-change.ts +++ b/packages/runtime-host/src/protocol/configuration-change.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireExactRecord } from './codec.js'; export interface ConfigurationChangedFrame { diff --git a/packages/runtime-host/src/protocol/configuration.ts b/packages/runtime-host/src/protocol/configuration.ts index f674ee4958..1da6c4f375 100644 --- a/packages/runtime-host/src/protocol/configuration.ts +++ b/packages/runtime-host/src/protocol/configuration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeCredentialLocator, REQUEST_HEADERS_MAX_BYTES, diff --git a/packages/runtime-host/src/protocol/connection-effects.ts b/packages/runtime-host/src/protocol/connection-effects.ts index a588d71be8..f4cec26037 100644 --- a/packages/runtime-host/src/protocol/connection-effects.ts +++ b/packages/runtime-host/src/protocol/connection-effects.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { CONNECTION_CATALOG_MAX_MODELS_PER_CONNECTION, decodeConnectionModelId, diff --git a/packages/runtime-host/src/protocol/context.ts b/packages/runtime-host/src/protocol/context.ts index 717626b0b5..360ea24491 100644 --- a/packages/runtime-host/src/protocol/context.ts +++ b/packages/runtime-host/src/protocol/context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEntityId, diff --git a/packages/runtime-host/src/protocol/daily-review.ts b/packages/runtime-host/src/protocol/daily-review.ts index d16915dfb2..20c0a57e0a 100644 --- a/packages/runtime-host/src/protocol/daily-review.ts +++ b/packages/runtime-host/src/protocol/daily-review.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DAILY_REVIEW_ARCHIVE_STATUSES, DAILY_REVIEW_LIST_LIMIT, diff --git a/packages/runtime-host/src/protocol/deep-research.ts b/packages/runtime-host/src/protocol/deep-research.ts index 2c96b39d24..e2bd7696ee 100644 --- a/packages/runtime-host/src/protocol/deep-research.ts +++ b/packages/runtime-host/src/protocol/deep-research.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DEEP_RESEARCH_CHECKLIST_ITEMS_MAX, DEEP_RESEARCH_CLIENT_IMPLEMENTATION_PROMPT_MAX_BYTES, diff --git a/packages/runtime-host/src/protocol/errors.ts b/packages/runtime-host/src/protocol/errors.ts index 31ddf6d532..6f2e27851a 100644 --- a/packages/runtime-host/src/protocol/errors.ts +++ b/packages/runtime-host/src/protocol/errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export class RuntimeHostProtocolError extends Error { constructor( readonly code: 'invalid_frame' | 'frame_too_large' | 'invalid_utf8' | 'invalid_json', diff --git a/packages/runtime-host/src/protocol/execution-inspect.ts b/packages/runtime-host/src/protocol/execution-inspect.ts index 2aefb29ec6..ff37798a07 100644 --- a/packages/runtime-host/src/protocol/execution-inspect.ts +++ b/packages/runtime-host/src/protocol/execution-inspect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isAgentRunInspectDocument, isSessionInspectDocument, diff --git a/packages/runtime-host/src/protocol/external-session.ts b/packages/runtime-host/src/protocol/external-session.ts index b9ef3b130a..ea4ce40558 100644 --- a/packages/runtime-host/src/protocol/external-session.ts +++ b/packages/runtime-host/src/protocol/external-session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEncodedByteLimit, diff --git a/packages/runtime-host/src/protocol/goal.ts b/packages/runtime-host/src/protocol/goal.ts index 086af08eec..cab1ff1b3a 100644 --- a/packages/runtime-host/src/protocol/goal.ts +++ b/packages/runtime-host/src/protocol/goal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { GOAL_CONDITION_TEXT_LIMIT, GOAL_MAX_ITERATIONS_LIMIT, diff --git a/packages/runtime-host/src/protocol/host-status.ts b/packages/runtime-host/src/protocol/host-status.ts index eecc4db8d8..4aac3a9603 100644 --- a/packages/runtime-host/src/protocol/host-status.ts +++ b/packages/runtime-host/src/protocol/host-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { invalidProtocolFrame } from './errors.js'; import { requireCount, diff --git a/packages/runtime-host/src/protocol/hosted-execution.ts b/packages/runtime-host/src/protocol/hosted-execution.ts index 79cdca59dd..f1fee49dea 100644 --- a/packages/runtime-host/src/protocol/hosted-execution.ts +++ b/packages/runtime-host/src/protocol/hosted-execution.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { MessageContent } from '@maka/core/events'; import { requireCount, diff --git a/packages/runtime-host/src/protocol/index.ts b/packages/runtime-host/src/protocol/index.ts index 8391aeb26c..ea2dfef347 100644 --- a/packages/runtime-host/src/protocol/index.ts +++ b/packages/runtime-host/src/protocol/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireId, requireRecord, requireString } from './codec.js'; import { invalidProtocolFrame, RuntimeHostProtocolError } from './errors.js'; import { diff --git a/packages/runtime-host/src/protocol/interaction.ts b/packages/runtime-host/src/protocol/interaction.ts index c20348ca9e..3fe0907d9d 100644 --- a/packages/runtime-host/src/protocol/interaction.ts +++ b/packages/runtime-host/src/protocol/interaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeInteractionAnswer as decodeCoreInteractionAnswer, decodeInteractionCanonicalOutcome as decodeCoreInteractionCanonicalOutcome, diff --git a/packages/runtime-host/src/protocol/memory.ts b/packages/runtime-host/src/protocol/memory.ts index 36f9ef47f2..47ab88a83b 100644 --- a/packages/runtime-host/src/protocol/memory.ts +++ b/packages/runtime-host/src/protocol/memory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { LOCAL_MEMORY_MAX_BYTES, type LocalMemoryEntryPreview, diff --git a/packages/runtime-host/src/protocol/message.ts b/packages/runtime-host/src/protocol/message.ts index 1d7fe41653..dc2572d798 100644 --- a/packages/runtime-host/src/protocol/message.ts +++ b/packages/runtime-host/src/protocol/message.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { invalidProtocolFrame } from './errors.js'; import { assertExactKeys, diff --git a/packages/runtime-host/src/protocol/network-proxy.ts b/packages/runtime-host/src/protocol/network-proxy.ts index af07dcd4b3..ed5f2b1187 100644 --- a/packages/runtime-host/src/protocol/network-proxy.ts +++ b/packages/runtime-host/src/protocol/network-proxy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimePolicy } from '@maka/core/runtime-policy'; import type { TestProxyResult } from '@maka/core/settings/network-settings'; import { diff --git a/packages/runtime-host/src/protocol/oauth.ts b/packages/runtime-host/src/protocol/oauth.ts index 88e37f93d0..751d33d66c 100644 --- a/packages/runtime-host/src/protocol/oauth.ts +++ b/packages/runtime-host/src/protocol/oauth.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireEntityId, requireExactRecord, diff --git a/packages/runtime-host/src/protocol/operation-spec.ts b/packages/runtime-host/src/protocol/operation-spec.ts index 744c4346d9..6371f1dfa8 100644 --- a/packages/runtime-host/src/protocol/operation-spec.ts +++ b/packages/runtime-host/src/protocol/operation-spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type OperationMode = 'command' | 'query' | 'control'; export type OperationAvailability = 'bootstrap' | 'ready'; diff --git a/packages/runtime-host/src/protocol/operations.ts b/packages/runtime-host/src/protocol/operations.ts index 9c0b1530f1..106abe825f 100644 --- a/packages/runtime-host/src/protocol/operations.ts +++ b/packages/runtime-host/src/protocol/operations.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ARTIFACT_OPERATION_SPECS } from './artifact.js'; import { ACCESS_AUTHORITY_OPERATION_SPECS } from './access-authority.js'; import { AGENT_GRAPH_OPERATION_SPECS } from './agent-graph.js'; diff --git a/packages/runtime-host/src/protocol/plan.ts b/packages/runtime-host/src/protocol/plan.ts index 3362c4316c..100f054096 100644 --- a/packages/runtime-host/src/protocol/plan.ts +++ b/packages/runtime-host/src/protocol/plan.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PLAN_EXECUTION_STATUSES, PLAN_LIFECYCLE_REASON_MAX_BYTES, diff --git a/packages/runtime-host/src/protocol/project-catalog-change.ts b/packages/runtime-host/src/protocol/project-catalog-change.ts index e81cc58762..da1e25343b 100644 --- a/packages/runtime-host/src/protocol/project-catalog-change.ts +++ b/packages/runtime-host/src/protocol/project-catalog-change.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireExactRecord } from './codec.js'; export interface ProjectCatalogChangedFrame { diff --git a/packages/runtime-host/src/protocol/project-catalog.ts b/packages/runtime-host/src/protocol/project-catalog.ts index 57c1278ee9..a09321eb04 100644 --- a/packages/runtime-host/src/protocol/project-catalog.ts +++ b/packages/runtime-host/src/protocol/project-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEncodedByteLimit, diff --git a/packages/runtime-host/src/protocol/runtime-policy.ts b/packages/runtime-host/src/protocol/runtime-policy.ts index ecbd46181c..edb88831eb 100644 --- a/packages/runtime-host/src/protocol/runtime-policy.ts +++ b/packages/runtime-host/src/protocol/runtime-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { CONNECTION_CATALOG_MAX_CONNECTIONS, CONNECTION_CATALOG_MAX_ENABLED_MODEL_IDS, diff --git a/packages/runtime-host/src/protocol/runtime-resource.ts b/packages/runtime-host/src/protocol/runtime-resource.ts index a8a88c341d..f848f6cc16 100644 --- a/packages/runtime-host/src/protocol/runtime-resource.ts +++ b/packages/runtime-host/src/protocol/runtime-resource.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { SHELL_RUN_SOURCE_TOOL_CALL_ID_MAX_BYTES, type ShellRunSnapshotResult, diff --git a/packages/runtime-host/src/protocol/scheduled-task-change.ts b/packages/runtime-host/src/protocol/scheduled-task-change.ts index de469bb257..12c4c1df92 100644 --- a/packages/runtime-host/src/protocol/scheduled-task-change.ts +++ b/packages/runtime-host/src/protocol/scheduled-task-change.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEntityId, requireShapedRecord } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; diff --git a/packages/runtime-host/src/protocol/scheduled-task.ts b/packages/runtime-host/src/protocol/scheduled-task.ts index 6c0b9e5be7..48b3d48746 100644 --- a/packages/runtime-host/src/protocol/scheduled-task.ts +++ b/packages/runtime-host/src/protocol/scheduled-task.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isBotDeliveryProvider } from '@maka/core/bot-chat-settings'; import { isCollaborationMode } from '@maka/core/collaboration'; import { isOrchestrationMode } from '@maka/core/orchestration'; diff --git a/packages/runtime-host/src/protocol/session-catalog-change.ts b/packages/runtime-host/src/protocol/session-catalog-change.ts index 5a8ba7c192..f0c7d91bcc 100644 --- a/packages/runtime-host/src/protocol/session-catalog-change.ts +++ b/packages/runtime-host/src/protocol/session-catalog-change.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireExactRecord, requireId } from './codec.js'; export interface SessionCatalogChangedFrame { diff --git a/packages/runtime-host/src/protocol/session-catalog.ts b/packages/runtime-host/src/protocol/session-catalog.ts index 2a832de532..7cb0004aee 100644 --- a/packages/runtime-host/src/protocol/session-catalog.ts +++ b/packages/runtime-host/src/protocol/session-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isCollaborationMode, type CollaborationMode } from '@maka/core/collaboration'; import { isOrchestrationMode, type OrchestrationMode } from '@maka/core/orchestration'; import { isPermissionMode, type PermissionMode } from '@maka/core/permission'; diff --git a/packages/runtime-host/src/protocol/session-continuity.ts b/packages/runtime-host/src/protocol/session-continuity.ts index 41054b03b8..0060c0bdfd 100644 --- a/packages/runtime-host/src/protocol/session-continuity.ts +++ b/packages/runtime-host/src/protocol/session-continuity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { TOOL_ACTIVITY_KINDS, TOOL_OUTPUT_DELTA_MAX_CHARS } from '@maka/core/events'; import type { SandboxBoundaryFailureSignal, ToolResultPreviewContent } from '@maka/core/events'; import { decodeToolResultPreviewContent } from '@maka/core/tool-result-preview'; diff --git a/packages/runtime-host/src/protocol/session-effects.ts b/packages/runtime-host/src/protocol/session-effects.ts index 20071fa88e..2a0e5c0118 100644 --- a/packages/runtime-host/src/protocol/session-effects.ts +++ b/packages/runtime-host/src/protocol/session-effects.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireEntityId, requireExactRecord, requireRecord, requireUtf8String } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; import { defineOperation } from './operation-spec.js'; diff --git a/packages/runtime-host/src/protocol/session-retirement.ts b/packages/runtime-host/src/protocol/session-retirement.ts index b869ecc6ed..5ffb9b6105 100644 --- a/packages/runtime-host/src/protocol/session-retirement.ts +++ b/packages/runtime-host/src/protocol/session-retirement.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeSessionCatalogItem, type SessionCatalogItem } from './session-catalog.js'; import { requireEntityId, requireExactRecord, requireRecord } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; diff --git a/packages/runtime-host/src/protocol/session-revision.ts b/packages/runtime-host/src/protocol/session-revision.ts index f8c56cf4a3..a61d995be9 100644 --- a/packages/runtime-host/src/protocol/session-revision.ts +++ b/packages/runtime-host/src/protocol/session-revision.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEntityId, requireExactRecord, requireRecord } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; import { defineOperation } from './operation-spec.js'; diff --git a/packages/runtime-host/src/protocol/session-status.ts b/packages/runtime-host/src/protocol/session-status.ts index 48d7249456..70c3f23464 100644 --- a/packages/runtime-host/src/protocol/session-status.ts +++ b/packages/runtime-host/src/protocol/session-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isSessionStatus, type SessionStatus } from '@maka/core/session'; import { invalidProtocolFrame } from './errors.js'; diff --git a/packages/runtime-host/src/protocol/session-transcript.ts b/packages/runtime-host/src/protocol/session-transcript.ts index 964c87d9cd..6369f73344 100644 --- a/packages/runtime-host/src/protocol/session-transcript.ts +++ b/packages/runtime-host/src/protocol/session-transcript.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireCount, requireEncodedByteLimit, diff --git a/packages/runtime-host/src/protocol/session-turns.ts b/packages/runtime-host/src/protocol/session-turns.ts index 52295d068b..2484581435 100644 --- a/packages/runtime-host/src/protocol/session-turns.ts +++ b/packages/runtime-host/src/protocol/session-turns.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeStoredMessage, type TurnRecord, type TurnStateMessage } from '@maka/core/session'; import { truncateUtf8 } from '@maka/core/diagnostic-log'; import { diff --git a/packages/runtime-host/src/protocol/skill-catalog.ts b/packages/runtime-host/src/protocol/skill-catalog.ts index 6f3a9c2813..ee2353400c 100644 --- a/packages/runtime-host/src/protocol/skill-catalog.ts +++ b/packages/runtime-host/src/protocol/skill-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isPermissionMode, type PermissionMode } from '@maka/core/permission'; import { requireCount, requireEntityId, requireExactRecord, requireRecord } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; diff --git a/packages/runtime-host/src/protocol/task-ledger.ts b/packages/runtime-host/src/protocol/task-ledger.ts index a5543e888c..284fd6e164 100644 --- a/packages/runtime-host/src/protocol/task-ledger.ts +++ b/packages/runtime-host/src/protocol/task-ledger.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { TASK_EVIDENCE_MAX_CHARS, TASK_SUBJECT_MAX_CHARS, diff --git a/packages/runtime-host/src/protocol/turn.ts b/packages/runtime-host/src/protocol/turn.ts index c5f2ee055f..a0d4ff0635 100644 --- a/packages/runtime-host/src/protocol/turn.ts +++ b/packages/runtime-host/src/protocol/turn.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_ATTACHMENT_BYTES, MAX_ATTACHMENT_COUNT } from '@maka/core/attachments'; import { decodeMessageContent as decodeCanonicalMessageContent, diff --git a/packages/runtime-host/src/protocol/usage-pricing.ts b/packages/runtime-host/src/protocol/usage-pricing.ts index d8b59680ff..266fa11bab 100644 --- a/packages/runtime-host/src/protocol/usage-pricing.ts +++ b/packages/runtime-host/src/protocol/usage-pricing.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { comparePricingModelKeys, normalizePricingModelKey, diff --git a/packages/runtime-host/src/protocol/web-search.ts b/packages/runtime-host/src/protocol/web-search.ts index 33d02ac1be..67caf04e5f 100644 --- a/packages/runtime-host/src/protocol/web-search.ts +++ b/packages/runtime-host/src/protocol/web-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WEB_SEARCH_MAX_LIMIT, WEB_SEARCH_PROVIDERS, diff --git a/packages/runtime-host/src/protocol/websocket-path.ts b/packages/runtime-host/src/protocol/websocket-path.ts index cd8b83140d..d2531be28b 100644 --- a/packages/runtime-host/src/protocol/websocket-path.ts +++ b/packages/runtime-host/src/protocol/websocket-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const RUNTIME_HOST_WEBSOCKET_PATH_MAX_BYTES = 1_000; export function isCanonicalRuntimeHostWebSocketPath(value: unknown): value is string { diff --git a/packages/runtime-host/src/protocol/workspace.ts b/packages/runtime-host/src/protocol/workspace.ts index a713839c2d..49d1d1cd58 100644 --- a/packages/runtime-host/src/protocol/workspace.ts +++ b/packages/runtime-host/src/protocol/workspace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { requireEntityId, requireExactRecord, requireRecord, requireUtf8String } from './codec.js'; import { invalidProtocolFrame } from './errors.js'; diff --git a/packages/runtime-host/src/server/access-authority.ts b/packages/runtime-host/src/server/access-authority.ts index 5b9f29e9be..78d8876bab 100644 --- a/packages/runtime-host/src/server/access-authority.ts +++ b/packages/runtime-host/src/server/access-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomBytes, randomUUID, timingSafeEqual } from 'node:crypto'; import { join } from 'node:path'; import { diff --git a/packages/runtime-host/src/server/access-credential-store.ts b/packages/runtime-host/src/server/access-credential-store.ts index daef99abda..53bff90cc3 100644 --- a/packages/runtime-host/src/server/access-credential-store.ts +++ b/packages/runtime-host/src/server/access-credential-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, open, rename, rm, type FileHandle } from 'node:fs/promises'; import { dirname } from 'node:path'; diff --git a/packages/runtime-host/src/server/agent-graph-coordinator.ts b/packages/runtime-host/src/server/agent-graph-coordinator.ts index beac8c58fc..6060b12631 100644 --- a/packages/runtime-host/src/server/agent-graph-coordinator.ts +++ b/packages/runtime-host/src/server/agent-graph-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AgentGraphClientOperationError, type AgentGraphClientChangedEvent, diff --git a/packages/runtime-host/src/server/agent-graph-execution-coordinator.ts b/packages/runtime-host/src/server/agent-graph-execution-coordinator.ts index cd26caaac3..48be08cb7c 100644 --- a/packages/runtime-host/src/server/agent-graph-execution-coordinator.ts +++ b/packages/runtime-host/src/server/agent-graph-execution-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { normalizeMessageContent } from '@maka/core/events'; import { type UserMessageInput } from '@maka/core/runtime-inputs'; diff --git a/packages/runtime-host/src/server/agent-settings-tools.ts b/packages/runtime-host/src/server/agent-settings-tools.ts index 4ef98e3ea8..e09cdfed1e 100644 --- a/packages/runtime-host/src/server/agent-settings-tools.ts +++ b/packages/runtime-host/src/server/agent-settings-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRuntimeSettingsPatch, MutateRuntimePolicyInput, diff --git a/packages/runtime-host/src/server/artifact-coordinator.ts b/packages/runtime-host/src/server/artifact-coordinator.ts index 4bea712e8c..76cd0a4834 100644 --- a/packages/runtime-host/src/server/artifact-coordinator.ts +++ b/packages/runtime-host/src/server/artifact-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { attachmentKindFromMimeType } from '@maka/core/attachments'; import type { AttachmentRef } from '@maka/core/events'; diff --git a/packages/runtime-host/src/server/bootstrap-runtime-policy.ts b/packages/runtime-host/src/server/bootstrap-runtime-policy.ts index 9e558bffbf..c1b016e416 100644 --- a/packages/runtime-host/src/server/bootstrap-runtime-policy.ts +++ b/packages/runtime-host/src/server/bootstrap-runtime-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { readFile, rename, rm, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/runtime-host/src/server/bundled-git-runtime.ts b/packages/runtime-host/src/server/bundled-git-runtime.ts index f67914153c..5ad7229534 100644 --- a/packages/runtime-host/src/server/bundled-git-runtime.ts +++ b/packages/runtime-host/src/server/bundled-git-runtime.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { lstat, open, readFile, realpath } from 'node:fs/promises'; import { isAbsolute, join, normalize, relative } from 'node:path'; diff --git a/packages/runtime-host/src/server/candidate.ts b/packages/runtime-host/src/server/candidate.ts index e866511d18..767e72e168 100644 --- a/packages/runtime-host/src/server/candidate.ts +++ b/packages/runtime-host/src/server/candidate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveExistingStorageRoot, tryAcquireStateRootOwner } from '@maka/storage/root-authority'; import type { RuntimeHostCompositionSource } from './host-composition.js'; import { RuntimeHostKernel } from './host-kernel.js'; diff --git a/packages/runtime-host/src/server/canonical-permission-outcome-reader.ts b/packages/runtime-host/src/server/canonical-permission-outcome-reader.ts index a65410d054..9092be18ed 100644 --- a/packages/runtime-host/src/server/canonical-permission-outcome-reader.ts +++ b/packages/runtime-host/src/server/canonical-permission-outcome-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CanonicalPermissionOutcomeReader, CanonicalPermissionOutcomeRecord, diff --git a/packages/runtime-host/src/server/canonical-session-projection.ts b/packages/runtime-host/src/server/canonical-session-projection.ts index d3e7683776..72761f60aa 100644 --- a/packages/runtime-host/src/server/canonical-session-projection.ts +++ b/packages/runtime-host/src/server/canonical-session-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader } from '@maka/core/session'; import type { ExecutionStoresWriter } from '@maka/storage/execution-stores'; import type { diff --git a/packages/runtime-host/src/server/canonical-turn-snapshot.ts b/packages/runtime-host/src/server/canonical-turn-snapshot.ts index b585e2d587..7b0d2f3445 100644 --- a/packages/runtime-host/src/server/canonical-turn-snapshot.ts +++ b/packages/runtime-host/src/server/canonical-turn-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import { truncateUtf8 } from '@maka/core/diagnostic-log'; import { redactSecrets } from '@maka/core/redaction'; diff --git a/packages/runtime-host/src/server/canonical-usage-reader.ts b/packages/runtime-host/src/server/canonical-usage-reader.ts index e7fa599a5f..75b0c2f4a1 100644 --- a/packages/runtime-host/src/server/canonical-usage-reader.ts +++ b/packages/runtime-host/src/server/canonical-usage-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveUsageRange } from '@maka/core/model-call-usage-projection'; import type { UsageQuery } from '@maka/core/usage-stats/types'; import type { CanonicalUsageSource } from '@maka/core/usage-ledger-merge'; diff --git a/packages/runtime-host/src/server/child-agent-composition.ts b/packages/runtime-host/src/server/child-agent-composition.ts index 6c371c24dd..6624f9cb15 100644 --- a/packages/runtime-host/src/server/child-agent-composition.ts +++ b/packages/runtime-host/src/server/child-agent-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { TaskLedgerStore } from '@maka/core/task-ledger'; import { AiSdkBackend } from '@maka/runtime/ai-sdk-backend'; diff --git a/packages/runtime-host/src/server/client-capability-coordinator.ts b/packages/runtime-host/src/server/client-capability-coordinator.ts index 83a44a6a24..eff9566f0d 100644 --- a/packages/runtime-host/src/server/client-capability-coordinator.ts +++ b/packages/runtime-host/src/server/client-capability-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { AsyncLocalStorage } from 'node:async_hooks'; import { buildMcpTools, mcpProxyToolName, type McpToolProvider } from '@maka/runtime/mcp-tools'; diff --git a/packages/runtime-host/src/server/client-capability-invocation-broker.ts b/packages/runtime-host/src/server/client-capability-invocation-broker.ts index caabf721dc..70842f690f 100644 --- a/packages/runtime-host/src/server/client-capability-invocation-broker.ts +++ b/packages/runtime-host/src/server/client-capability-invocation-broker.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { ToolOutcomeUnknownError } from '@maka/core/events'; import { diff --git a/packages/runtime-host/src/server/client-capability-recovery.ts b/packages/runtime-host/src/server/client-capability-recovery.ts index 23c32ff376..1ad74e8402 100644 --- a/packages/runtime-host/src/server/client-capability-recovery.ts +++ b/packages/runtime-host/src/server/client-capability-recovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultContent } from '@maka/core/events'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { ExecutionRuntimeEventWriter } from '@maka/storage/execution-stores'; diff --git a/packages/runtime-host/src/server/client-capability-service.ts b/packages/runtime-host/src/server/client-capability-service.ts index a725297a3d..58ea30ec09 100644 --- a/packages/runtime-host/src/server/client-capability-service.ts +++ b/packages/runtime-host/src/server/client-capability-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AccessCredentialPrincipalKind, ClientCapabilityClientFrame, diff --git a/packages/runtime-host/src/server/configuration-coordinator.ts b/packages/runtime-host/src/server/configuration-coordinator.ts index 9a85165d5b..143f0b5a69 100644 --- a/packages/runtime-host/src/server/configuration-coordinator.ts +++ b/packages/runtime-host/src/server/configuration-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimePolicyOperationCoordinator } from '@maka/storage/runtime-policy-stores'; import type { ConfigurationCredentialExportInput, OperationOutcome } from '../protocol/index.js'; import type { ConfigurationOperationHandlerMap } from './operation-dispatcher.js'; diff --git a/packages/runtime-host/src/server/connection-authority.ts b/packages/runtime-host/src/server/connection-authority.ts index 6530b22a85..01c5e92ab4 100644 --- a/packages/runtime-host/src/server/connection-authority.ts +++ b/packages/runtime-host/src/server/connection-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { HOST_OPERATION_SPECS, operationAllowsRemoteOwner, diff --git a/packages/runtime-host/src/server/connection-bound-chunk-uploads.ts b/packages/runtime-host/src/server/connection-bound-chunk-uploads.ts index 0695c7a46f..7a09066cfa 100644 --- a/packages/runtime-host/src/server/connection-bound-chunk-uploads.ts +++ b/packages/runtime-host/src/server/connection-bound-chunk-uploads.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface ChunkUploadOwner { readonly hostEpoch: string; readonly connectionId: string; diff --git a/packages/runtime-host/src/server/connection-effect-coordinator.ts b/packages/runtime-host/src/server/connection-effect-coordinator.ts index 732b3c9223..132a6f5317 100644 --- a/packages/runtime-host/src/server/connection-effect-coordinator.ts +++ b/packages/runtime-host/src/server/connection-effect-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionCatalogEntry, ConnectionModelDiscoveryResult, diff --git a/packages/runtime-host/src/server/connection-session.ts b/packages/runtime-host/src/server/connection-session.ts index 8c6dbe0617..717699b3ed 100644 --- a/packages/runtime-host/src/server/connection-session.ts +++ b/packages/runtime-host/src/server/connection-session.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeClientFrame, isClientCapabilityClientFrameKind, diff --git a/packages/runtime-host/src/server/context-coordinator.ts b/packages/runtime-host/src/server/context-coordinator.ts index 7beeb720b0..f693715bc7 100644 --- a/packages/runtime-host/src/server/context-coordinator.ts +++ b/packages/runtime-host/src/server/context-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { SessionHeader } from '@maka/core/session'; import { RuntimeContextCompactError } from '@maka/runtime/runtime-kernel'; diff --git a/packages/runtime-host/src/server/daily-review-coordinator.ts b/packages/runtime-host/src/server/daily-review-coordinator.ts index 163a90a43f..864e507b01 100644 --- a/packages/runtime-host/src/server/daily-review-coordinator.ts +++ b/packages/runtime-host/src/server/daily-review-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DAILY_REVIEW_LIST_LIMIT, buildDailyReviewSummary, diff --git a/packages/runtime-host/src/server/deep-research-coordinator.ts b/packages/runtime-host/src/server/deep-research-coordinator.ts index 68a46eee43..bc13f11489 100644 --- a/packages/runtime-host/src/server/deep-research-coordinator.ts +++ b/packages/runtime-host/src/server/deep-research-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { projectDeepResearchEvents, type DeepResearchRun } from '@maka/core/deep-research-run'; import { projectDeepResearchClientProgress } from '@maka/core/deep-research-client-progress'; import { isDeepResearchSession } from '@maka/core/explore-agent'; diff --git a/packages/runtime-host/src/server/execution-artifacts.ts b/packages/runtime-host/src/server/execution-artifacts.ts index 01dbdb354c..7ec86eb52d 100644 --- a/packages/runtime-host/src/server/execution-artifacts.ts +++ b/packages/runtime-host/src/server/execution-artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { open, realpath, stat } from 'node:fs/promises'; import { isAbsolute, resolve } from 'node:path'; diff --git a/packages/runtime-host/src/server/execution-candidate.ts b/packages/runtime-host/src/server/execution-candidate.ts index 0aa666408a..8d07a9d5a9 100644 --- a/packages/runtime-host/src/server/execution-candidate.ts +++ b/packages/runtime-host/src/server/execution-candidate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { VerifiedGitRuntimeInput } from '@maka/storage/managed-workspace-owner'; import { startInteractiveRuntimeHostCandidate, diff --git a/packages/runtime-host/src/server/execution-composition-factory.ts b/packages/runtime-host/src/server/execution-composition-factory.ts index a9a2d76a3f..35a9c0721d 100644 --- a/packages/runtime-host/src/server/execution-composition-factory.ts +++ b/packages/runtime-host/src/server/execution-composition-factory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { VerifiedGitRuntimeInput } from '@maka/storage/managed-workspace-owner'; import { resolveBundledGitRuntime } from './bundled-git-runtime.js'; import type { PublishedProjectDirectoryRoot } from './project-directory-authority.js'; diff --git a/packages/runtime-host/src/server/execution-composition.ts b/packages/runtime-host/src/server/execution-composition.ts index 1bb701a64b..7a0d877b1a 100644 --- a/packages/runtime-host/src/server/execution-composition.ts +++ b/packages/runtime-host/src/server/execution-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { describeChatConfigurationReason, diff --git a/packages/runtime-host/src/server/execution-inspect-coordinator.ts b/packages/runtime-host/src/server/execution-inspect-coordinator.ts index ca4e04fcba..ef4d437533 100644 --- a/packages/runtime-host/src/server/execution-inspect-coordinator.ts +++ b/packages/runtime-host/src/server/execution-inspect-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeModelCallAttempt, MODEL_CALL_ATTEMPT_EVENT_TYPE, diff --git a/packages/runtime-host/src/server/execution-model-authority.ts b/packages/runtime-host/src/server/execution-model-authority.ts index 1dc55e5527..7df90ad64d 100644 --- a/packages/runtime-host/src/server/execution-model-authority.ts +++ b/packages/runtime-host/src/server/execution-model-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { authorizeConnectionModel, diff --git a/packages/runtime-host/src/server/execution-model-composition.ts b/packages/runtime-host/src/server/execution-model-composition.ts index 9504cac5ed..5c0f3acdaa 100644 --- a/packages/runtime-host/src/server/execution-model-composition.ts +++ b/packages/runtime-host/src/server/execution-model-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { createRunCompositionSnapshot } from '@maka/core/run-composition'; import { resolveModelVisionSupport } from '@maka/core/model-metadata'; diff --git a/packages/runtime-host/src/server/execution-service.ts b/packages/runtime-host/src/server/execution-service.ts index ad39cc17b3..e601750dd1 100644 --- a/packages/runtime-host/src/server/execution-service.ts +++ b/packages/runtime-host/src/server/execution-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveStorageRoot, tryAcquireStateRootOwner } from '@maka/storage/root-authority'; import type { VerifiedGitRuntimeInput } from '@maka/storage/managed-workspace-owner'; import { diff --git a/packages/runtime-host/src/server/external-session-coordinator.ts b/packages/runtime-host/src/server/external-session-coordinator.ts index 59cce45969..a95b4fe06b 100644 --- a/packages/runtime-host/src/server/external-session-coordinator.ts +++ b/packages/runtime-host/src/server/external-session-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ExternalSessionAdapter, ExternalSessionAdapterRegistry, diff --git a/packages/runtime-host/src/server/goal-coordinator.ts b/packages/runtime-host/src/server/goal-coordinator.ts index 85bee60bb6..9949bae516 100644 --- a/packages/runtime-host/src/server/goal-coordinator.ts +++ b/packages/runtime-host/src/server/goal-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { sameGoalControlLease, diff --git a/packages/runtime-host/src/server/goal-execution-coordinator.ts b/packages/runtime-host/src/server/goal-execution-coordinator.ts index 2cec85975c..620b9066eb 100644 --- a/packages/runtime-host/src/server/goal-execution-coordinator.ts +++ b/packages/runtime-host/src/server/goal-execution-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { GoalCheckpoint, GoalControlLease } from '@maka/runtime/goal-state'; import type { GoalTurnAdmission, GoalTurnOutcome } from '@maka/runtime/goal-continuation'; diff --git a/packages/runtime-host/src/server/goal-projection.ts b/packages/runtime-host/src/server/goal-projection.ts index acd5c575d2..f695841643 100644 --- a/packages/runtime-host/src/server/goal-projection.ts +++ b/packages/runtime-host/src/server/goal-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { GOAL_CONDITION_TEXT_LIMIT, GOAL_REASON_TEXT_LIMIT, diff --git a/packages/runtime-host/src/server/host-change-feed.ts b/packages/runtime-host/src/server/host-change-feed.ts index 92e66f5217..6ad41e1f14 100644 --- a/packages/runtime-host/src/server/host-change-feed.ts +++ b/packages/runtime-host/src/server/host-change-feed.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConfigurationChangedFrame, ProjectCatalogChangedFrame, diff --git a/packages/runtime-host/src/server/host-composition.ts b/packages/runtime-host/src/server/host-composition.ts index e9bd739fe5..86d5c26c6e 100644 --- a/packages/runtime-host/src/server/host-composition.ts +++ b/packages/runtime-host/src/server/host-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeHostCompositionFactory } from './host-kernel.js'; import { INTERACTIVE_RUNTIME_HOST_COMPOSITION_ID } from '../protocol/index.js'; import { diff --git a/packages/runtime-host/src/server/host-kernel.ts b/packages/runtime-host/src/server/host-kernel.ts index 844c649fc7..eb3a0734ae 100644 --- a/packages/runtime-host/src/server/host-kernel.ts +++ b/packages/runtime-host/src/server/host-kernel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { arch as osArch, homedir, release as osRelease } from 'node:os'; import { collapseHomePath } from '@maka/core/diagnostic-log'; diff --git a/packages/runtime-host/src/server/host-residency-registry.ts b/packages/runtime-host/src/server/host-residency-registry.ts index 252e45359a..cbb94fc4fe 100644 --- a/packages/runtime-host/src/server/host-residency-registry.ts +++ b/packages/runtime-host/src/server/host-residency-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OperationResidency } from './operation-dispatcher.js'; const RESIDENCY_LABEL_PATTERN = /^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/; diff --git a/packages/runtime-host/src/server/host-run-composer.ts b/packages/runtime-host/src/server/host-run-composer.ts index fbff0c8829..5323cf4564 100644 --- a/packages/runtime-host/src/server/host-run-composer.ts +++ b/packages/runtime-host/src/server/host-run-composer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RunCompositionSourceRevision } from '@maka/core/run-composition'; import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import type { RuntimePolicySnapshot } from '@maka/core/runtime-policy'; diff --git a/packages/runtime-host/src/server/host-session-availability.ts b/packages/runtime-host/src/server/host-session-availability.ts index 9ad1eefe37..4178a2c3e3 100644 --- a/packages/runtime-host/src/server/host-session-availability.ts +++ b/packages/runtime-host/src/server/host-session-availability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RootExecutionDescriptor } from '@maka/core/agent-run'; import type { SessionHeader } from '@maka/core/session'; diff --git a/packages/runtime-host/src/server/hosted-execution-admission-registry.ts b/packages/runtime-host/src/server/hosted-execution-admission-registry.ts index 69147d3be0..9403b305f9 100644 --- a/packages/runtime-host/src/server/hosted-execution-admission-registry.ts +++ b/packages/runtime-host/src/server/hosted-execution-admission-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RootTurnAdmission } from '@maka/storage/execution-stores'; export interface HostedExecutionDeferred { diff --git a/packages/runtime-host/src/server/hosted-execution-authority.ts b/packages/runtime-host/src/server/hosted-execution-authority.ts index fe83ba1d17..152eeace91 100644 --- a/packages/runtime-host/src/server/hosted-execution-authority.ts +++ b/packages/runtime-host/src/server/hosted-execution-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BackendStopMode } from '@maka/core/backend-types'; import type { RootExecutionDescriptor } from '@maka/core/agent-run'; import type { MessageContent, SessionEvent } from '@maka/core/events'; diff --git a/packages/runtime-host/src/server/hosted-execution-coordinator.ts b/packages/runtime-host/src/server/hosted-execution-coordinator.ts index d6471f40ee..e8307b0813 100644 --- a/packages/runtime-host/src/server/hosted-execution-coordinator.ts +++ b/packages/runtime-host/src/server/hosted-execution-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import { preservesHostedExecutionEnvironment } from '../protocol/index.js'; import type { diff --git a/packages/runtime-host/src/server/hosted-execution-projection.ts b/packages/runtime-host/src/server/hosted-execution-projection.ts index d53f6c8418..f5f50f82cd 100644 --- a/packages/runtime-host/src/server/hosted-execution-projection.ts +++ b/packages/runtime-host/src/server/hosted-execution-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { agentRunMatchesHostedRootExecution, type AgentRunHeader, diff --git a/packages/runtime-host/src/server/hosted-execution-recovery.ts b/packages/runtime-host/src/server/hosted-execution-recovery.ts index 8495f6c0a4..5187583b16 100644 --- a/packages/runtime-host/src/server/hosted-execution-recovery.ts +++ b/packages/runtime-host/src/server/hosted-execution-recovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import type { RootExecutionDescriptor } from '@maka/core/agent-run'; import { diff --git a/packages/runtime-host/src/server/hosted-execution-registry.ts b/packages/runtime-host/src/server/hosted-execution-registry.ts index 40df3230d3..02e7a7c7d1 100644 --- a/packages/runtime-host/src/server/hosted-execution-registry.ts +++ b/packages/runtime-host/src/server/hosted-execution-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { HostedExecutionListener, HostedExecutionRef } from './hosted-execution-authority.js'; export class HostedExecutionRegistry { diff --git a/packages/runtime-host/src/server/hosted-execution-runner.ts b/packages/runtime-host/src/server/hosted-execution-runner.ts index da46a41ba7..ea38fdfa2b 100644 --- a/packages/runtime-host/src/server/hosted-execution-runner.ts +++ b/packages/runtime-host/src/server/hosted-execution-runner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { HostedExecutionProjection, HostedExecutionStartInput, diff --git a/packages/runtime-host/src/server/hosted-execution-tool-profile.ts b/packages/runtime-host/src/server/hosted-execution-tool-profile.ts index 221ad295dd..151aebb05a 100644 --- a/packages/runtime-host/src/server/hosted-execution-tool-profile.ts +++ b/packages/runtime-host/src/server/hosted-execution-tool-profile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionToolProfile } from '@maka/core/session'; import type { MakaTool } from '@maka/runtime/tool-runtime'; import { z } from 'zod'; diff --git a/packages/runtime-host/src/server/hosted-execution-wait.ts b/packages/runtime-host/src/server/hosted-execution-wait.ts index fbe61c55b2..3ed5ebc3a1 100644 --- a/packages/runtime-host/src/server/hosted-execution-wait.ts +++ b/packages/runtime-host/src/server/hosted-execution-wait.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { HostedExecutionAdmissionResult, HostedExecutionAuthority, diff --git a/packages/runtime-host/src/server/index.ts b/packages/runtime-host/src/server/index.ts index 2c6c753f74..67a4d1022f 100644 --- a/packages/runtime-host/src/server/index.ts +++ b/packages/runtime-host/src/server/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { RuntimeHostKernel, type RuntimeHostComposition, diff --git a/packages/runtime-host/src/server/interaction-coordinator.ts b/packages/runtime-host/src/server/interaction-coordinator.ts index c311e9b523..4ef15e9442 100644 --- a/packages/runtime-host/src/server/interaction-coordinator.ts +++ b/packages/runtime-host/src/server/interaction-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import type { SandboxBoundaryRequestEvent, UserQuestionRequestEvent } from '@maka/core/events'; import { diff --git a/packages/runtime-host/src/server/interaction-projection.ts b/packages/runtime-host/src/server/interaction-projection.ts index 76564992c4..672533b843 100644 --- a/packages/runtime-host/src/server/interaction-projection.ts +++ b/packages/runtime-host/src/server/interaction-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { INTERACTION_CLOSURE_REASONS, interactionCanonicalOutcomesEquivalent, diff --git a/packages/runtime-host/src/server/interactive-run-composer.ts b/packages/runtime-host/src/server/interactive-run-composer.ts index e44a5f3962..f7cfdda08f 100644 --- a/packages/runtime-host/src/server/interactive-run-composer.ts +++ b/packages/runtime-host/src/server/interactive-run-composer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildSideConversationSystemPromptFragment, isSideConversationSession, diff --git a/packages/runtime-host/src/server/interactive-turn-coordinator.ts b/packages/runtime-host/src/server/interactive-turn-coordinator.ts index b97f449fbe..79a0e4881c 100644 --- a/packages/runtime-host/src/server/interactive-turn-coordinator.ts +++ b/packages/runtime-host/src/server/interactive-turn-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { isDeepStrictEqual } from 'node:util'; import type { RootExecutionDescriptor } from '@maka/core/agent-run'; diff --git a/packages/runtime-host/src/server/listener-set.ts b/packages/runtime-host/src/server/listener-set.ts index 6c617a37e9..f1be99e006 100644 --- a/packages/runtime-host/src/server/listener-set.ts +++ b/packages/runtime-host/src/server/listener-set.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { startLocalIpcRuntimeHostListener } from './local-ipc-listener.js'; import type { RuntimeHostMessageTransport } from '../transport/message-transport.js'; import type { RuntimeHostConnectionAuthority } from './connection-authority.js'; diff --git a/packages/runtime-host/src/server/local-ipc-listener.ts b/packages/runtime-host/src/server/local-ipc-listener.ts index c0e1a5645f..28fa68eee1 100644 --- a/packages/runtime-host/src/server/local-ipc-listener.ts +++ b/packages/runtime-host/src/server/local-ipc-listener.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createServer, type Server } from 'node:net'; import { prepareRuntimeHostEndpoint, type RuntimeHostEndpoint } from '../control/endpoint.js'; import { FramedTransport } from '../transport/framed-transport.js'; diff --git a/packages/runtime-host/src/server/memory-coordinator.ts b/packages/runtime-host/src/server/memory-coordinator.ts index c4676a31af..0f1ad14cc3 100644 --- a/packages/runtime-host/src/server/memory-coordinator.ts +++ b/packages/runtime-host/src/server/memory-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { appendApprovedLocalMemoryEntryDraft, diff --git a/packages/runtime-host/src/server/memory-extraction-coordinator.ts b/packages/runtime-host/src/server/memory-extraction-coordinator.ts index 63001c2b3c..c21b638c75 100644 --- a/packages/runtime-host/src/server/memory-extraction-coordinator.ts +++ b/packages/runtime-host/src/server/memory-extraction-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader } from '@maka/core/session'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { InteractiveLongTermMemoryWriter } from '@maka/storage/long-term-memory-store'; diff --git a/packages/runtime-host/src/server/memory-extraction-session-lane.ts b/packages/runtime-host/src/server/memory-extraction-session-lane.ts index 7a023cd502..802517610a 100644 --- a/packages/runtime-host/src/server/memory-extraction-session-lane.ts +++ b/packages/runtime-host/src/server/memory-extraction-session-lane.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type MemoryExtractionLanePriority = 'foreground' | 'background'; interface LaneJob { diff --git a/packages/runtime-host/src/server/memory-projection.ts b/packages/runtime-host/src/server/memory-projection.ts index 65ee54c2bb..39540b5019 100644 --- a/packages/runtime-host/src/server/memory-projection.ts +++ b/packages/runtime-host/src/server/memory-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseLocalMemoryMarkdown, type LocalMemoryEntryPreview } from '@maka/core/local-memory'; import type { MemoryBackupSnapshot, diff --git a/packages/runtime-host/src/server/message-content-digest.ts b/packages/runtime-host/src/server/message-content-digest.ts index baa1c7b42c..03f88d598a 100644 --- a/packages/runtime-host/src/server/message-content-digest.ts +++ b/packages/runtime-host/src/server/message-content-digest.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { normalizeMessageContent, type MessageContent } from '@maka/core/events'; diff --git a/packages/runtime-host/src/server/message-coordinator.ts b/packages/runtime-host/src/server/message-coordinator.ts index e52d58f04f..071907a8bf 100644 --- a/packages/runtime-host/src/server/message-coordinator.ts +++ b/packages/runtime-host/src/server/message-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isDeepStrictEqual } from 'node:util'; import type { SteeringLease } from '@maka/core/backend-types'; diff --git a/packages/runtime-host/src/server/message-queue-capacity.ts b/packages/runtime-host/src/server/message-queue-capacity.ts index 3e042eb94f..2987e5f818 100644 --- a/packages/runtime-host/src/server/message-queue-capacity.ts +++ b/packages/runtime-host/src/server/message-queue-capacity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionMessageQueueProjection } from '../protocol/index.js'; export function worstCaseMessageQueueProjection( diff --git a/packages/runtime-host/src/server/network-proxy-coordinator.ts b/packages/runtime-host/src/server/network-proxy-coordinator.ts index 1b44b7452a..f87a4cfe4b 100644 --- a/packages/runtime-host/src/server/network-proxy-coordinator.ts +++ b/packages/runtime-host/src/server/network-proxy-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProxySettings } from '@maka/core/settings/network-settings'; import type { RuntimePolicy } from '@maka/core/runtime-policy'; import { testProxyConnection } from '@maka/runtime/network/proxy-test'; diff --git a/packages/runtime-host/src/server/oauth-coordinator.ts b/packages/runtime-host/src/server/oauth-coordinator.ts index c07702a399..24fb1cfa6c 100644 --- a/packages/runtime-host/src/server/oauth-coordinator.ts +++ b/packages/runtime-host/src/server/oauth-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { OAuthTokenEndpointError } from '@maka/runtime/oauth-login'; import { createProxiedFetchTransport } from '@maka/runtime/network/scoped-fetch-transport'; import { diff --git a/packages/runtime-host/src/server/oauth-execution-authority.ts b/packages/runtime-host/src/server/oauth-execution-authority.ts index fe401433cf..f3af8b099d 100644 --- a/packages/runtime-host/src/server/oauth-execution-authority.ts +++ b/packages/runtime-host/src/server/oauth-execution-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import type { CredentialLocator } from '@maka/core/runtime-policy'; import { buildSubscriptionModelFetch } from '@maka/runtime/subscription-model-fetch'; diff --git a/packages/runtime-host/src/server/operation-dispatcher.ts b/packages/runtime-host/src/server/operation-dispatcher.ts index d90c5a05b2..7eb4ed297c 100644 --- a/packages/runtime-host/src/server/operation-dispatcher.ts +++ b/packages/runtime-host/src/server/operation-dispatcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { truncateUtf8 } from '@maka/core/diagnostic-log'; import { redactSecrets } from '@maka/core/redaction'; import { diff --git a/packages/runtime-host/src/server/plan-coordinator.ts b/packages/runtime-host/src/server/plan-coordinator.ts index 8bfcd10ce0..8bd777fbd6 100644 --- a/packages/runtime-host/src/server/plan-coordinator.ts +++ b/packages/runtime-host/src/server/plan-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { PlanConflictError, diff --git a/packages/runtime-host/src/server/process-lifecycle.ts b/packages/runtime-host/src/server/process-lifecycle.ts index 7b4ec39b30..ea2e1153bf 100644 --- a/packages/runtime-host/src/server/process-lifecycle.ts +++ b/packages/runtime-host/src/server/process-lifecycle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProcessTerminationRequiredError, type RuntimeHostKernel, diff --git a/packages/runtime-host/src/server/project-catalog-coordinator.ts b/packages/runtime-host/src/server/project-catalog-coordinator.ts index 245099c43a..c70dbf75d9 100644 --- a/packages/runtime-host/src/server/project-catalog-coordinator.ts +++ b/packages/runtime-host/src/server/project-catalog-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { ProjectRecord } from '@maka/core/project'; import { diff --git a/packages/runtime-host/src/server/project-directory-authority.ts b/packages/runtime-host/src/server/project-directory-authority.ts index c6f5f5daa5..d63d8629ab 100644 --- a/packages/runtime-host/src/server/project-directory-authority.ts +++ b/packages/runtime-host/src/server/project-directory-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpathSync, statSync } from 'node:fs'; import { opendir, realpath, stat } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/runtime-host/src/server/project-membership-gate.ts b/packages/runtime-host/src/server/project-membership-gate.ts index df76fbb311..1843ca65c6 100644 --- a/packages/runtime-host/src/server/project-membership-gate.ts +++ b/packages/runtime-host/src/server/project-membership-gate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export class HostProjectMembershipGate { #tail: Promise = Promise.resolve(); diff --git a/packages/runtime-host/src/server/root-admission-owner.ts b/packages/runtime-host/src/server/root-admission-owner.ts index c7c3ae316f..b199fb930b 100644 --- a/packages/runtime-host/src/server/root-admission-owner.ts +++ b/packages/runtime-host/src/server/root-admission-owner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import { messageContentsEqual, diff --git a/packages/runtime-host/src/server/root-turn-coordinator.ts b/packages/runtime-host/src/server/root-turn-coordinator.ts index b9afbd4fd0..c05a8a019d 100644 --- a/packages/runtime-host/src/server/root-turn-coordinator.ts +++ b/packages/runtime-host/src/server/root-turn-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { isDeepStrictEqual } from 'node:util'; import type { BackendStopMode } from '@maka/core/backend-types'; diff --git a/packages/runtime-host/src/server/runtime-policy-activation-gate.ts b/packages/runtime-host/src/server/runtime-policy-activation-gate.ts index d8e8480196..9668e756f1 100644 --- a/packages/runtime-host/src/server/runtime-policy-activation-gate.ts +++ b/packages/runtime-host/src/server/runtime-policy-activation-gate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const POISONED_MESSAGE = 'Runtime policy activation is poisoned'; /** diff --git a/packages/runtime-host/src/server/runtime-policy-coordinator.ts b/packages/runtime-host/src/server/runtime-policy-coordinator.ts index ab202285b7..7f3e9dbcdf 100644 --- a/packages/runtime-host/src/server/runtime-policy-coordinator.ts +++ b/packages/runtime-host/src/server/runtime-policy-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionCatalogEntry, ConnectionCatalogSnapshot, diff --git a/packages/runtime-host/src/server/runtime-policy-proxy.ts b/packages/runtime-host/src/server/runtime-policy-proxy.ts index 85493a7f73..20b0b8195c 100644 --- a/packages/runtime-host/src/server/runtime-policy-proxy.ts +++ b/packages/runtime-host/src/server/runtime-policy-proxy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimePolicy } from '@maka/core/runtime-policy'; import type { ProxiedFetchProxy } from '@maka/runtime/network/scoped-fetch-transport'; diff --git a/packages/runtime-host/src/server/runtime-resource-coordinator.ts b/packages/runtime-host/src/server/runtime-resource-coordinator.ts index 3dcd8ae4d6..18602c6ea5 100644 --- a/packages/runtime-host/src/server/runtime-resource-coordinator.ts +++ b/packages/runtime-host/src/server/runtime-resource-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { userInfo } from 'node:os'; import type { ShellRunSnapshotResult, ShellRunUpdate, ToolResultContent } from '@maka/core/events'; diff --git a/packages/runtime-host/src/server/runtime-resource-projection.ts b/packages/runtime-host/src/server/runtime-resource-projection.ts index 5e1d578ba2..bf823ee0fc 100644 --- a/packages/runtime-host/src/server/runtime-resource-projection.ts +++ b/packages/runtime-host/src/server/runtime-resource-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { ShellRunSnapshotResult, diff --git a/packages/runtime-host/src/server/sandbox-boundary-graph-wake.ts b/packages/runtime-host/src/server/sandbox-boundary-graph-wake.ts index 70ee5e8155..03505b0c75 100644 --- a/packages/runtime-host/src/server/sandbox-boundary-graph-wake.ts +++ b/packages/runtime-host/src/server/sandbox-boundary-graph-wake.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader } from '@maka/core/session'; export interface SandboxBoundaryGraphWakeHeaderReader { diff --git a/packages/runtime-host/src/server/scheduled-task-coordinator.ts b/packages/runtime-host/src/server/scheduled-task-coordinator.ts index d851abc2bd..10718225d1 100644 --- a/packages/runtime-host/src/server/scheduled-task-coordinator.ts +++ b/packages/runtime-host/src/server/scheduled-task-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { botDisplayLabel } from '@maka/core/bot-events'; import { isBotDeliveryProvider } from '@maka/core/bot-chat-settings'; diff --git a/packages/runtime-host/src/server/serial-outbound-writer.ts b/packages/runtime-host/src/server/serial-outbound-writer.ts index a2891a77fc..97a06b78d5 100644 --- a/packages/runtime-host/src/server/serial-outbound-writer.ts +++ b/packages/runtime-host/src/server/serial-outbound-writer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { encodeProtocolMessage, type EncodedProtocolMessage, diff --git a/packages/runtime-host/src/server/session-admission-gate.ts b/packages/runtime-host/src/server/session-admission-gate.ts index d8c3aec6cd..49dc631181 100644 --- a/packages/runtime-host/src/server/session-admission-gate.ts +++ b/packages/runtime-host/src/server/session-admission-gate.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AsyncLocalStorage } from 'node:async_hooks'; const sessionAdmissionLeaseBrand: unique symbol = Symbol('SessionAdmissionLease'); diff --git a/packages/runtime-host/src/server/session-catalog-coordinator.ts b/packages/runtime-host/src/server/session-catalog-coordinator.ts index 5dc81d8c19..760453eb89 100644 --- a/packages/runtime-host/src/server/session-catalog-coordinator.ts +++ b/packages/runtime-host/src/server/session-catalog-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import { createHash } from 'node:crypto'; import { authorizeConnectionModel } from '@maka/core/llm-connections'; diff --git a/packages/runtime-host/src/server/session-continuity-coordinator.ts b/packages/runtime-host/src/server/session-continuity-coordinator.ts index e7096ffba7..4f3e894c46 100644 --- a/packages/runtime-host/src/server/session-continuity-coordinator.ts +++ b/packages/runtime-host/src/server/session-continuity-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isDeepStrictEqual } from 'node:util'; import type { SessionEvent, ShellRunUpdate } from '@maka/core/events'; diff --git a/packages/runtime-host/src/server/session-continuity-service.ts b/packages/runtime-host/src/server/session-continuity-service.ts index 5e91769e55..a830ff57ee 100644 --- a/packages/runtime-host/src/server/session-continuity-service.ts +++ b/packages/runtime-host/src/server/session-continuity-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SubscriptionFrame } from '../protocol/index.js'; import type { SessionContinuityOperationHandlerMap } from './operation-dispatcher.js'; diff --git a/packages/runtime-host/src/server/session-effect-coordinator.ts b/packages/runtime-host/src/server/session-effect-coordinator.ts index e25feb3e70..6696d2cfb2 100644 --- a/packages/runtime-host/src/server/session-effect-coordinator.ts +++ b/packages/runtime-host/src/server/session-effect-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { SessionHeader } from '@maka/core/session'; import { cleanSessionRecapText } from '@maka/runtime/session-recap'; diff --git a/packages/runtime-host/src/server/session-presence.ts b/packages/runtime-host/src/server/session-presence.ts index 0ed8cf4a11..3268afc497 100644 --- a/packages/runtime-host/src/server/session-presence.ts +++ b/packages/runtime-host/src/server/session-presence.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface SessionPresenceReader { probeSessionRemoval( sessionId: string, diff --git a/packages/runtime-host/src/server/session-retirement-coordinator.ts b/packages/runtime-host/src/server/session-retirement-coordinator.ts index 0be8c9272a..2bbf8cf211 100644 --- a/packages/runtime-host/src/server/session-retirement-coordinator.ts +++ b/packages/runtime-host/src/server/session-retirement-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { sessionRevisionFamilyId } from '@maka/core/session'; import type { SubagentWorkspaceBinding, diff --git a/packages/runtime-host/src/server/session-revision-coordinator.ts b/packages/runtime-host/src/server/session-revision-coordinator.ts index 280915a6c7..be72f6fc29 100644 --- a/packages/runtime-host/src/server/session-revision-coordinator.ts +++ b/packages/runtime-host/src/server/session-revision-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { isDeepResearchSession } from '@maka/core/explore-agent'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime-host/src/server/session-revision-graph-references.ts b/packages/runtime-host/src/server/session-revision-graph-references.ts index 3d4af2649a..6aba82b59c 100644 --- a/packages/runtime-host/src/server/session-revision-graph-references.ts +++ b/packages/runtime-host/src/server/session-revision-graph-references.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import { sessionRevisionFamilyId, type SessionHeader } from '@maka/core/session'; import { type AgentGraphCoordinator } from '@maka/runtime/stream-graph-coordinator'; diff --git a/packages/runtime-host/src/server/session-sidecar-purge.ts b/packages/runtime-host/src/server/session-sidecar-purge.ts index f23290b33d..b1cdbcf2e2 100644 --- a/packages/runtime-host/src/server/session-sidecar-purge.ts +++ b/packages/runtime-host/src/server/session-sidecar-purge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { InteractiveArtifactStoreWriter } from '@maka/storage/artifact-stores'; import type { InteractiveTaskLedgerWriter } from '@maka/storage/task-ledger-authority'; diff --git a/packages/runtime-host/src/server/session-transcript-pager.ts b/packages/runtime-host/src/server/session-transcript-pager.ts index 01d9c5a8dd..01f5618bc8 100644 --- a/packages/runtime-host/src/server/session-transcript-pager.ts +++ b/packages/runtime-host/src/server/session-transcript-pager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto'; import type { StoredMessage } from '@maka/core/session'; import { diff --git a/packages/runtime-host/src/server/session-transcript-reader.ts b/packages/runtime-host/src/server/session-transcript-reader.ts index f290ec96ad..311cf5dc91 100644 --- a/packages/runtime-host/src/server/session-transcript-reader.ts +++ b/packages/runtime-host/src/server/session-transcript-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { StoredMessage } from '@maka/core/session'; import { diff --git a/packages/runtime-host/src/server/skill-catalog-coordinator.ts b/packages/runtime-host/src/server/skill-catalog-coordinator.ts index 522ba8f71d..39e53bbcf0 100644 --- a/packages/runtime-host/src/server/skill-catalog-coordinator.ts +++ b/packages/runtime-host/src/server/skill-catalog-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OperationOutcome, SkillCatalogInvocableQueryInput, diff --git a/packages/runtime-host/src/server/skill-catalog-repository.ts b/packages/runtime-host/src/server/skill-catalog-repository.ts index 0711679639..e4f85f3e96 100644 --- a/packages/runtime-host/src/server/skill-catalog-repository.ts +++ b/packages/runtime-host/src/server/skill-catalog-repository.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { lstat, mkdir, open, readdir, realpath, rename, rm, stat, unlink } from 'node:fs/promises'; import { dirname, isAbsolute, join, resolve } from 'node:path'; diff --git a/packages/runtime-host/src/server/skill-catalog-transaction.ts b/packages/runtime-host/src/server/skill-catalog-transaction.ts index 46740dd9b2..04b8729aac 100644 --- a/packages/runtime-host/src/server/skill-catalog-transaction.ts +++ b/packages/runtime-host/src/server/skill-catalog-transaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { constants, diff --git a/packages/runtime-host/src/server/task-ledger-coordinator.ts b/packages/runtime-host/src/server/task-ledger-coordinator.ts index 7337ddaa14..e447fd995a 100644 --- a/packages/runtime-host/src/server/task-ledger-coordinator.ts +++ b/packages/runtime-host/src/server/task-ledger-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { findTaskByRef, diff --git a/packages/runtime-host/src/server/turn-control-coordinator.ts b/packages/runtime-host/src/server/turn-control-coordinator.ts index 18740ae229..f33d7ec3ac 100644 --- a/packages/runtime-host/src/server/turn-control-coordinator.ts +++ b/packages/runtime-host/src/server/turn-control-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostedRootConflictError, RuntimeHostedRootUnavailableError, diff --git a/packages/runtime-host/src/server/usage-pricing-coordinator.ts b/packages/runtime-host/src/server/usage-pricing-coordinator.ts index e6a78dd107..cc01f93877 100644 --- a/packages/runtime-host/src/server/usage-pricing-coordinator.ts +++ b/packages/runtime-host/src/server/usage-pricing-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { PricingConfig, diff --git a/packages/runtime-host/src/server/web-fetch-tool.ts b/packages/runtime-host/src/server/web-fetch-tool.ts index 3796983e56..1f18cef172 100644 --- a/packages/runtime-host/src/server/web-fetch-tool.ts +++ b/packages/runtime-host/src/server/web-fetch-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildWebFetchTool } from '@maka/runtime/web-fetch-tool'; import { createLocalWebFetchExecutor } from '@maka/runtime/local-web-fetch'; import { diff --git a/packages/runtime-host/src/server/web-search-coordinator.ts b/packages/runtime-host/src/server/web-search-coordinator.ts index 47009d9558..59208c6d66 100644 --- a/packages/runtime-host/src/server/web-search-coordinator.ts +++ b/packages/runtime-host/src/server/web-search-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WEB_SEARCH_DEFAULT_LIMIT } from '@maka/core/web-search'; import type { OperationOutcome, WebSearchExecuteInput } from '../protocol/index.js'; import type { WebSearchOperationHandlerMap } from './operation-dispatcher.js'; diff --git a/packages/runtime-host/src/server/web-search-tool.ts b/packages/runtime-host/src/server/web-search-tool.ts index 79f84ad80b..33956cf140 100644 --- a/packages/runtime-host/src/server/web-search-tool.ts +++ b/packages/runtime-host/src/server/web-search-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildWebSearchTool } from '@maka/runtime/web-search-tool'; import { createProxiedFetchTransport, diff --git a/packages/runtime-host/src/server/websocket-listener.ts b/packages/runtime-host/src/server/websocket-listener.ts index 5b816a91d6..a954cfb3c7 100644 --- a/packages/runtime-host/src/server/websocket-listener.ts +++ b/packages/runtime-host/src/server/websocket-listener.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createServer as createHttpServer, type Server as HttpServer } from 'node:http'; import { createServer as createHttpsServer, type Server as HttpsServer } from 'node:https'; import type { Duplex } from 'node:stream'; diff --git a/packages/runtime-host/src/server/workspace-execution-composition.ts b/packages/runtime-host/src/server/workspace-execution-composition.ts index 53d80b867d..570532efbb 100644 --- a/packages/runtime-host/src/server/workspace-execution-composition.ts +++ b/packages/runtime-host/src/server/workspace-execution-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createReadOnlyPermissionProfile } from '@maka/core/permission-profile'; import { createManagedExecutionBoundary } from '@maka/core/sandbox-boundary'; import type { diff --git a/packages/runtime-host/src/server/workspace-resolver.ts b/packages/runtime-host/src/server/workspace-resolver.ts index eae5f9a0c6..fdea265032 100644 --- a/packages/runtime-host/src/server/workspace-resolver.ts +++ b/packages/runtime-host/src/server/workspace-resolver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath, stat } from 'node:fs/promises'; import { isAbsolute, resolve } from 'node:path'; import { findProjectByIdentity, type ProjectRecord } from '@maka/core/project'; diff --git a/packages/runtime-host/src/test-only/desktop-e2e-execution.ts b/packages/runtime-host/src/test-only/desktop-e2e-execution.ts index 0a3aab8e83..5ac43c4b98 100644 --- a/packages/runtime-host/src/test-only/desktop-e2e-execution.ts +++ b/packages/runtime-host/src/test-only/desktop-e2e-execution.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BackendCompactHistoryInput, BackendCompactHistoryResult, diff --git a/packages/runtime-host/src/test-only/execution-candidate-e2e-main.ts b/packages/runtime-host/src/test-only/execution-candidate-e2e-main.ts index 22c3a9d4f0..4b09dddd17 100644 --- a/packages/runtime-host/src/test-only/execution-candidate-e2e-main.ts +++ b/packages/runtime-host/src/test-only/execution-candidate-e2e-main.ts @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Desktop E2E candidate entry. It exists so the production entry * (`execution-candidate-main.ts`) carries no import of the E2E composition and diff --git a/packages/runtime-host/src/transport/framed-transport.ts b/packages/runtime-host/src/transport/framed-transport.ts index bb5fa2073a..666afed243 100644 --- a/packages/runtime-host/src/transport/framed-transport.ts +++ b/packages/runtime-host/src/transport/framed-transport.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import type { Socket } from 'node:net'; import { RUNTIME_HOST_MAX_MESSAGE_BYTES, type EncodedProtocolMessage } from '../protocol/index.js'; diff --git a/packages/runtime-host/src/transport/local-ipc-framing.ts b/packages/runtime-host/src/transport/local-ipc-framing.ts index 78b3d73ba1..af4b5d54f2 100644 --- a/packages/runtime-host/src/transport/local-ipc-framing.ts +++ b/packages/runtime-host/src/transport/local-ipc-framing.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import { TextDecoder } from 'node:util'; import { RUNTIME_HOST_MAX_MESSAGE_BYTES, type EncodedProtocolMessage } from '../protocol/index.js'; diff --git a/packages/runtime-host/src/transport/message-transport.ts b/packages/runtime-host/src/transport/message-transport.ts index 06aa336c2d..73e4d45d39 100644 --- a/packages/runtime-host/src/transport/message-transport.ts +++ b/packages/runtime-host/src/transport/message-transport.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { EncodedProtocolMessage } from '../protocol/index.js'; export interface RuntimeHostMessageTransport { diff --git a/packages/runtime-host/src/transport/websocket-transport.ts b/packages/runtime-host/src/transport/websocket-transport.ts index cc617c102e..b3903da7e4 100644 --- a/packages/runtime-host/src/transport/websocket-transport.ts +++ b/packages/runtime-host/src/transport/websocket-transport.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimeHostProtocolError } from '../protocol/errors.js'; import { TextDecoder } from 'node:util'; import WebSocket, { type RawData } from 'ws'; diff --git a/packages/runtime/README.md b/packages/runtime/README.md index bd85a047b2..3c9975526b 100644 --- a/packages/runtime/README.md +++ b/packages/runtime/README.md @@ -1,3 +1,22 @@ + + # `@maka/runtime` `@maka/runtime` is Maka's pure-Node agent runtime. It owns model/backend execution, session sandbox-boundary control flow, event projection, context handling, recovery, and sandbox-aware workspace execution. Product shells compose it; they do not reimplement its loop. diff --git a/packages/runtime/scripts/build-filesystem-worker.mjs b/packages/runtime/scripts/build-filesystem-worker.mjs index 5370630514..69b40fb775 100644 --- a/packages/runtime/scripts/build-filesystem-worker.mjs +++ b/packages/runtime/scripts/build-filesystem-worker.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir } from 'node:fs/promises'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/packages/runtime/src/__tests__/active-compaction-kernel.test.ts b/packages/runtime/src/__tests__/active-compaction-kernel.test.ts index 9872b65f1d..50d048d1a7 100644 --- a/packages/runtime/src/__tests__/active-compaction-kernel.test.ts +++ b/packages/runtime/src/__tests__/active-compaction-kernel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/active-tool-result-prune.test.ts b/packages/runtime/src/__tests__/active-tool-result-prune.test.ts index 92f2f7682f..aae79e767b 100644 --- a/packages/runtime/src/__tests__/active-tool-result-prune.test.ts +++ b/packages/runtime/src/__tests__/active-tool-result-prune.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { z } from 'zod'; diff --git a/packages/runtime/src/__tests__/admission-limiter.test.ts b/packages/runtime/src/__tests__/admission-limiter.test.ts index b93fa77bdb..f33c68eeb8 100644 --- a/packages/runtime/src/__tests__/admission-limiter.test.ts +++ b/packages/runtime/src/__tests__/admission-limiter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/agent-graph-supervisor-wake.test.ts b/packages/runtime/src/__tests__/agent-graph-supervisor-wake.test.ts index 43baccf470..e0cb7731de 100644 --- a/packages/runtime/src/__tests__/agent-graph-supervisor-wake.test.ts +++ b/packages/runtime/src/__tests__/agent-graph-supervisor-wake.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createSqliteSessionMetadataStore } from '@maka/storage'; diff --git a/packages/runtime/src/__tests__/agent-graph-timeline.test.ts b/packages/runtime/src/__tests__/agent-graph-timeline.test.ts index a2d8dffbe4..e7506cb80e 100644 --- a/packages/runtime/src/__tests__/agent-graph-timeline.test.ts +++ b/packages/runtime/src/__tests__/agent-graph-timeline.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { AGENT_GRAPH_SUPERVISOR_WAKE_SCHEMA_VERSION } from '@maka/core/agent-graph-supervisor-wake'; diff --git a/packages/runtime/src/__tests__/agent-run-inspect.test.ts b/packages/runtime/src/__tests__/agent-run-inspect.test.ts index 32ccf3a57a..0f7f7a26df 100644 --- a/packages/runtime/src/__tests__/agent-run-inspect.test.ts +++ b/packages/runtime/src/__tests__/agent-run-inspect.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import type { AgentRunEvent, AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/agent-run-recovery.test.ts b/packages/runtime/src/__tests__/agent-run-recovery.test.ts index f35891ce4b..d03943d33b 100644 --- a/packages/runtime/src/__tests__/agent-run-recovery.test.ts +++ b/packages/runtime/src/__tests__/agent-run-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/agent-run-steering-recovery.test.ts b/packages/runtime/src/__tests__/agent-run-steering-recovery.test.ts index 0da6eaff2e..a82b0d6cbc 100644 --- a/packages/runtime/src/__tests__/agent-run-steering-recovery.test.ts +++ b/packages/runtime/src/__tests__/agent-run-steering-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { access, chmod, mkdir, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; diff --git a/packages/runtime/src/__tests__/agent-swarm-status-tool.test.ts b/packages/runtime/src/__tests__/agent-swarm-status-tool.test.ts index a2603ba05c..b820a9a408 100644 --- a/packages/runtime/src/__tests__/agent-swarm-status-tool.test.ts +++ b/packages/runtime/src/__tests__/agent-swarm-status-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/ai-sdk-backend.test.ts b/packages/runtime/src/__tests__/ai-sdk-backend.test.ts index 297aee2152..cbf8a5e2c9 100644 --- a/packages/runtime/src/__tests__/ai-sdk-backend.test.ts +++ b/packages/runtime/src/__tests__/ai-sdk-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { Buffer } from 'node:buffer'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime/src/__tests__/ai-sdk-flow.test.ts b/packages/runtime/src/__tests__/ai-sdk-flow.test.ts index 0be760549c..3a4a1d1edc 100644 --- a/packages/runtime/src/__tests__/ai-sdk-flow.test.ts +++ b/packages/runtime/src/__tests__/ai-sdk-flow.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/apply-patch-profile.test.ts b/packages/runtime/src/__tests__/apply-patch-profile.test.ts index cf6c762343..820bb327dc 100644 --- a/packages/runtime/src/__tests__/apply-patch-profile.test.ts +++ b/packages/runtime/src/__tests__/apply-patch-profile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/ask-user-question.test.ts b/packages/runtime/src/__tests__/ask-user-question.test.ts index 6fd0bdcbc7..c678058056 100644 --- a/packages/runtime/src/__tests__/ask-user-question.test.ts +++ b/packages/runtime/src/__tests__/ask-user-question.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/async-queue.test.ts b/packages/runtime/src/__tests__/async-queue.test.ts index abe4545d5a..fa7a6e236a 100644 --- a/packages/runtime/src/__tests__/async-queue.test.ts +++ b/packages/runtime/src/__tests__/async-queue.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { expect } from '../test-helpers.js'; diff --git a/packages/runtime/src/__tests__/await-registry.test.ts b/packages/runtime/src/__tests__/await-registry.test.ts index c3d10e2d7e..19cf795fde 100644 --- a/packages/runtime/src/__tests__/await-registry.test.ts +++ b/packages/runtime/src/__tests__/await-registry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/bash-tail-buffer.test.ts b/packages/runtime/src/__tests__/bash-tail-buffer.test.ts index b37026b9da..739faf41b3 100644 --- a/packages/runtime/src/__tests__/bash-tail-buffer.test.ts +++ b/packages/runtime/src/__tests__/bash-tail-buffer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { BashTailBuffer } from '../bash-tail-buffer.js'; diff --git a/packages/runtime/src/__tests__/builtin-tools-file-worker.test.ts b/packages/runtime/src/__tests__/builtin-tools-file-worker.test.ts index c947245a68..bc0eaa5886 100644 --- a/packages/runtime/src/__tests__/builtin-tools-file-worker.test.ts +++ b/packages/runtime/src/__tests__/builtin-tools-file-worker.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/builtin-tools.test.ts b/packages/runtime/src/__tests__/builtin-tools.test.ts index 84e1bb232c..af031b0f4d 100644 --- a/packages/runtime/src/__tests__/builtin-tools.test.ts +++ b/packages/runtime/src/__tests__/builtin-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime/src/__tests__/child-process-lifecycle.test.ts b/packages/runtime/src/__tests__/child-process-lifecycle.test.ts index 5585a723ce..970ad3e80b 100644 --- a/packages/runtime/src/__tests__/child-process-lifecycle.test.ts +++ b/packages/runtime/src/__tests__/child-process-lifecycle.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import type { ChildProcess } from 'node:child_process'; import { EventEmitter } from 'node:events'; diff --git a/packages/runtime/src/__tests__/claude-subscription-runtime.test.ts b/packages/runtime/src/__tests__/claude-subscription-runtime.test.ts index 47bb8db077..d55299b56a 100644 --- a/packages/runtime/src/__tests__/claude-subscription-runtime.test.ts +++ b/packages/runtime/src/__tests__/claude-subscription-runtime.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { PROVIDER_REGISTRY, type LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/code-mode-backend.test.ts b/packages/runtime/src/__tests__/code-mode-backend.test.ts index eca833c772..36167b2119 100644 --- a/packages/runtime/src/__tests__/code-mode-backend.test.ts +++ b/packages/runtime/src/__tests__/code-mode-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import type { LanguageModelV4StreamPart, LanguageModelV4Usage } from '@ai-sdk/provider'; diff --git a/packages/runtime/src/__tests__/code-mode.test.ts b/packages/runtime/src/__tests__/code-mode.test.ts index 149267be9c..a245704b9d 100644 --- a/packages/runtime/src/__tests__/code-mode.test.ts +++ b/packages/runtime/src/__tests__/code-mode.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { spawn } from 'node:child_process'; diff --git a/packages/runtime/src/__tests__/codex-oauth-enrollment.test.ts b/packages/runtime/src/__tests__/codex-oauth-enrollment.test.ts index 4c30a78137..fcbc0fccf0 100644 --- a/packages/runtime/src/__tests__/codex-oauth-enrollment.test.ts +++ b/packages/runtime/src/__tests__/codex-oauth-enrollment.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { OAuthTokenEndpointError } from '../oauth-login.js'; diff --git a/packages/runtime/src/__tests__/computer-use-args-violation.test.ts b/packages/runtime/src/__tests__/computer-use-args-violation.test.ts index e98ab3f871..204bf91589 100644 --- a/packages/runtime/src/__tests__/computer-use-args-violation.test.ts +++ b/packages/runtime/src/__tests__/computer-use-args-violation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/computer-use-codec-adapt.test.ts b/packages/runtime/src/__tests__/computer-use-codec-adapt.test.ts index ccfd811fd3..4a90dfc520 100644 --- a/packages/runtime/src/__tests__/computer-use-codec-adapt.test.ts +++ b/packages/runtime/src/__tests__/computer-use-codec-adapt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What the wire adapter says when it cannot build an action. // // These throws become the tool result the model reads, so the code in front of diff --git a/packages/runtime/src/__tests__/computer-use-codec-summary.test.ts b/packages/runtime/src/__tests__/computer-use-codec-summary.test.ts index 3dfd78461b..61e08511d9 100644 --- a/packages/runtime/src/__tests__/computer-use-codec-summary.test.ts +++ b/packages/runtime/src/__tests__/computer-use-codec-summary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What a failed Computer Use call tells the model. // // The code alone is not a recovery instruction. `unsupported_action` covers a diff --git a/packages/runtime/src/__tests__/computer-use-frame-survival.test.ts b/packages/runtime/src/__tests__/computer-use-frame-survival.test.ts index a727c8f8b3..49898f4516 100644 --- a/packages/runtime/src/__tests__/computer-use-frame-survival.test.ts +++ b/packages/runtime/src/__tests__/computer-use-frame-survival.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // A refusal that never reached the window, as the model reads it. // // The state machine keeps the frame (see cua-frame-state.test.ts). This is the diff --git a/packages/runtime/src/__tests__/computer-use-list-apps.test.ts b/packages/runtime/src/__tests__/computer-use-list-apps.test.ts index b9d316f6d3..7d8e8d953a 100644 --- a/packages/runtime/src/__tests__/computer-use-list-apps.test.ts +++ b/packages/runtime/src/__tests__/computer-use-list-apps.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What `list_apps` costs, and what it should say. // // On a real three-call turn this was 12,933 bytes — about 3,600 tokens, 85% of diff --git a/packages/runtime/src/__tests__/computer-use-menu.test.ts b/packages/runtime/src/__tests__/computer-use-menu.test.ts index e59c0b0791..ef6409edae 100644 --- a/packages/runtime/src/__tests__/computer-use-menu.test.ts +++ b/packages/runtime/src/__tests__/computer-use-menu.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The menu bar as the model reads it. // // Against a five-model, six-task real-machine matrix, three of the four tasks diff --git a/packages/runtime/src/__tests__/computer-use-model-loop.test.ts b/packages/runtime/src/__tests__/computer-use-model-loop.test.ts index 2a8ccbb040..abf54361d9 100644 --- a/packages/runtime/src/__tests__/computer-use-model-loop.test.ts +++ b/packages/runtime/src/__tests__/computer-use-model-loop.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LanguageModelV4StreamPart, LanguageModelV4Usage } from '@ai-sdk/provider'; diff --git a/packages/runtime/src/__tests__/computer-use-observation-text.test.ts b/packages/runtime/src/__tests__/computer-use-observation-text.test.ts index e1a203ef2d..dab96bc1a2 100644 --- a/packages/runtime/src/__tests__/computer-use-observation-text.test.ts +++ b/packages/runtime/src/__tests__/computer-use-observation-text.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Behavior contract for how an observation is written for the model. // // The format follows Codex's Computer Use — one indented line per element, diff --git a/packages/runtime/src/__tests__/computer-use-privacy-boundary.test.ts b/packages/runtime/src/__tests__/computer-use-privacy-boundary.test.ts index 4dbcf1cc80..b96eb8c1cc 100644 --- a/packages/runtime/src/__tests__/computer-use-privacy-boundary.test.ts +++ b/packages/runtime/src/__tests__/computer-use-privacy-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime/src/__tests__/computer-use-provider-protocol.test.ts b/packages/runtime/src/__tests__/computer-use-provider-protocol.test.ts index a86db582f2..d8594ada4c 100644 --- a/packages/runtime/src/__tests__/computer-use-provider-protocol.test.ts +++ b/packages/runtime/src/__tests__/computer-use-provider-protocol.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage, type ServerResponse } from 'node:http'; import { after, describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/computer-use-query.test.ts b/packages/runtime/src/__tests__/computer-use-query.test.ts index fd7897fe39..e9b2e75489 100644 --- a/packages/runtime/src/__tests__/computer-use-query.test.ts +++ b/packages/runtime/src/__tests__/computer-use-query.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Showing part of a window, without making the rest unreachable. // // Some windows are too big to read. Finder observes at 1,226 elements and about diff --git a/packages/runtime/src/__tests__/computer-use-schema-parity.test.ts b/packages/runtime/src/__tests__/computer-use-schema-parity.test.ts index 77889b2568..e476406dd9 100644 --- a/packages/runtime/src/__tests__/computer-use-schema-parity.test.ts +++ b/packages/runtime/src/__tests__/computer-use-schema-parity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/computer-use-screen-lock-gate.test.ts b/packages/runtime/src/__tests__/computer-use-screen-lock-gate.test.ts index f42e91794b..5ae0669db9 100644 --- a/packages/runtime/src/__tests__/computer-use-screen-lock-gate.test.ts +++ b/packages/runtime/src/__tests__/computer-use-screen-lock-gate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The `screen_locked` producer. * diff --git a/packages/runtime/src/__tests__/computer-use-tools.test.ts b/packages/runtime/src/__tests__/computer-use-tools.test.ts index 61ec6e3156..76a3dfd88b 100644 --- a/packages/runtime/src/__tests__/computer-use-tools.test.ts +++ b/packages/runtime/src/__tests__/computer-use-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { CuAction } from '@maka/core/computer-use'; diff --git a/packages/runtime/src/__tests__/computer-use-wait-for.test.ts b/packages/runtime/src/__tests__/computer-use-wait-for.test.ts index a506a67ed8..97b7f8c75e 100644 --- a/packages/runtime/src/__tests__/computer-use-wait-for.test.ts +++ b/packages/runtime/src/__tests__/computer-use-wait-for.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Waiting for the thing, instead of waiting a number. // // The only wait there was slept for a duration the model had to guess. After an diff --git a/packages/runtime/src/__tests__/computer-use-window-action.test.ts b/packages/runtime/src/__tests__/computer-use-window-action.test.ts index 80a47db4d9..d1df2b8b9a 100644 --- a/packages/runtime/src/__tests__/computer-use-window-action.test.ts +++ b/packages/runtime/src/__tests__/computer-use-window-action.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Moving a window, which was always possible and had no way to be said. // // A model asked to move a window reached for a title-bar drag — the only route a diff --git a/packages/runtime/src/__tests__/computer-use-wire-schema.test.ts b/packages/runtime/src/__tests__/computer-use-wire-schema.test.ts index ec0781bb4c..539185ff66 100644 --- a/packages/runtime/src/__tests__/computer-use-wire-schema.test.ts +++ b/packages/runtime/src/__tests__/computer-use-wire-schema.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What the model is allowed to send has to match what the tool knows how to do. // // There are two schemas. `computerWireParams` is what the SDK validates a tool diff --git a/packages/runtime/src/__tests__/configured-subagent-catalog.test.ts b/packages/runtime/src/__tests__/configured-subagent-catalog.test.ts index 27f35ec71f..81ae884a8f 100644 --- a/packages/runtime/src/__tests__/configured-subagent-catalog.test.ts +++ b/packages/runtime/src/__tests__/configured-subagent-catalog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { expect } from '../test-helpers.js'; diff --git a/packages/runtime/src/__tests__/conformance-harness.ts b/packages/runtime/src/__tests__/conformance-harness.ts index 9c17bbe9d9..c5c4f7bf3a 100644 --- a/packages/runtime/src/__tests__/conformance-harness.ts +++ b/packages/runtime/src/__tests__/conformance-harness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared scripted-HTTP harness for the provider conformance suites. * diff --git a/packages/runtime/src/__tests__/context-budget-mid-turn-policy.test.ts b/packages/runtime/src/__tests__/context-budget-mid-turn-policy.test.ts index 87ac196c39..c84bc4153c 100644 --- a/packages/runtime/src/__tests__/context-budget-mid-turn-policy.test.ts +++ b/packages/runtime/src/__tests__/context-budget-mid-turn-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/context-budget-model-facts.test.ts b/packages/runtime/src/__tests__/context-budget-model-facts.test.ts index c003892ca5..0208f14a8d 100644 --- a/packages/runtime/src/__tests__/context-budget-model-facts.test.ts +++ b/packages/runtime/src/__tests__/context-budget-model-facts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/context-budget-semantic-compact-policy.test.ts b/packages/runtime/src/__tests__/context-budget-semantic-compact-policy.test.ts index cac5263e6e..468ba4275b 100644 --- a/packages/runtime/src/__tests__/context-budget-semantic-compact-policy.test.ts +++ b/packages/runtime/src/__tests__/context-budget-semantic-compact-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/context-budget.test.ts b/packages/runtime/src/__tests__/context-budget.test.ts index d978aeafc4..0448dc98be 100644 --- a/packages/runtime/src/__tests__/context-budget.test.ts +++ b/packages/runtime/src/__tests__/context-budget.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { Buffer } from 'node:buffer'; import { createHash } from 'node:crypto'; diff --git a/packages/runtime/src/__tests__/context-diagnostics.test.ts b/packages/runtime/src/__tests__/context-diagnostics.test.ts index eabe07ec0d..9f7c33ed92 100644 --- a/packages/runtime/src/__tests__/context-diagnostics.test.ts +++ b/packages/runtime/src/__tests__/context-diagnostics.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/continuation-replay.test.ts b/packages/runtime/src/__tests__/continuation-replay.test.ts index ff5bd1b50e..12238e83f3 100644 --- a/packages/runtime/src/__tests__/continuation-replay.test.ts +++ b/packages/runtime/src/__tests__/continuation-replay.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { type RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/conversation-copy.test.ts b/packages/runtime/src/__tests__/conversation-copy.test.ts index 0e40f0c8d5..7f194753a7 100644 --- a/packages/runtime/src/__tests__/conversation-copy.test.ts +++ b/packages/runtime/src/__tests__/conversation-copy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/cost.test.ts b/packages/runtime/src/__tests__/cost.test.ts index 4a7d1f8f93..b2f0b43b77 100644 --- a/packages/runtime/src/__tests__/cost.test.ts +++ b/packages/runtime/src/__tests__/cost.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/cua-frame-state.test.ts b/packages/runtime/src/__tests__/cua-frame-state.test.ts index 5bd399df46..18a5b265b5 100644 --- a/packages/runtime/src/__tests__/cua-frame-state.test.ts +++ b/packages/runtime/src/__tests__/cua-frame-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { CuAction } from '@maka/core/computer-use'; diff --git a/packages/runtime/src/__tests__/cua-session-state.test.ts b/packages/runtime/src/__tests__/cua-session-state.test.ts index 776c2b3f8c..18ef43e194 100644 --- a/packages/runtime/src/__tests__/cua-session-state.test.ts +++ b/packages/runtime/src/__tests__/cua-session-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { CuaSessionState } from '../cua-session-state.js'; diff --git a/packages/runtime/src/__tests__/deep-research-tools.test.ts b/packages/runtime/src/__tests__/deep-research-tools.test.ts index 58a47aa42d..0dfef1c306 100644 --- a/packages/runtime/src/__tests__/deep-research-tools.test.ts +++ b/packages/runtime/src/__tests__/deep-research-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/default-sandbox-manager.test.ts b/packages/runtime/src/__tests__/default-sandbox-manager.test.ts index ad8e3d828e..58aec890b3 100644 --- a/packages/runtime/src/__tests__/default-sandbox-manager.test.ts +++ b/packages/runtime/src/__tests__/default-sandbox-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/deferred-guard.test.ts b/packages/runtime/src/__tests__/deferred-guard.test.ts index 7797bde2f3..33d8d083e7 100644 --- a/packages/runtime/src/__tests__/deferred-guard.test.ts +++ b/packages/runtime/src/__tests__/deferred-guard.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/deferred-tools-backend.test.ts b/packages/runtime/src/__tests__/deferred-tools-backend.test.ts index 3d5a454e7d..cfc7c0840e 100644 --- a/packages/runtime/src/__tests__/deferred-tools-backend.test.ts +++ b/packages/runtime/src/__tests__/deferred-tools-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { z } from 'zod'; diff --git a/packages/runtime/src/__tests__/deferred-tools-wire.test.ts b/packages/runtime/src/__tests__/deferred-tools-wire.test.ts index eb776761ec..14b7f58fae 100644 --- a/packages/runtime/src/__tests__/deferred-tools-wire.test.ts +++ b/packages/runtime/src/__tests__/deferred-tools-wire.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { z } from 'zod'; diff --git a/packages/runtime/src/__tests__/durable-turn-harness.ts b/packages/runtime/src/__tests__/durable-turn-harness.ts index 6c1335a3ec..554bab7071 100644 --- a/packages/runtime/src/__tests__/durable-turn-harness.ts +++ b/packages/runtime/src/__tests__/durable-turn-harness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BackendSendInput } from '@maka/core/backend-types'; import type { SessionEvent } from '@maka/core/events'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/edit-replace.test.ts b/packages/runtime/src/__tests__/edit-replace.test.ts index e8a47d0c3b..d4804a7760 100644 --- a/packages/runtime/src/__tests__/edit-replace.test.ts +++ b/packages/runtime/src/__tests__/edit-replace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { computeEditedSource } from '../edit-replace.js'; diff --git a/packages/runtime/src/__tests__/execution-boundary-test-helpers.ts b/packages/runtime/src/__tests__/execution-boundary-test-helpers.ts index cc6ac82be9..65900de151 100644 --- a/packages/runtime/src/__tests__/execution-boundary-test-helpers.ts +++ b/packages/runtime/src/__tests__/execution-boundary-test-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createExternalExecutionBoundary } from '@maka/core/sandbox-boundary'; import { AiSdkBackend, type AiSdkBackendInput } from '../ai-sdk-backend.js'; diff --git a/packages/runtime/src/__tests__/execution-inspect.test.ts b/packages/runtime/src/__tests__/execution-inspect.test.ts index cf4e4b3100..b4f4bd5f73 100644 --- a/packages/runtime/src/__tests__/execution-inspect.test.ts +++ b/packages/runtime/src/__tests__/execution-inspect.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/explore-agent-tool.test.ts b/packages/runtime/src/__tests__/explore-agent-tool.test.ts index 3c2cb2846e..5f8fea0228 100644 --- a/packages/runtime/src/__tests__/explore-agent-tool.test.ts +++ b/packages/runtime/src/__tests__/explore-agent-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { mkdtemp, mkdir, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/fake-backend.test.ts b/packages/runtime/src/__tests__/fake-backend.test.ts index a5a6e724dc..5d6c30e068 100644 --- a/packages/runtime/src/__tests__/fake-backend.test.ts +++ b/packages/runtime/src/__tests__/fake-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/packages/runtime/src/__tests__/file-write-lock.test.ts b/packages/runtime/src/__tests__/file-write-lock.test.ts index 30ef90788a..15d34ca0d9 100644 --- a/packages/runtime/src/__tests__/file-write-lock.test.ts +++ b/packages/runtime/src/__tests__/file-write-lock.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Tests for withFileWriteLock — per-key serialization that makes file-mutating * tools race-free when the AI SDK runs a step's tool calls concurrently. diff --git a/packages/runtime/src/__tests__/filesystem-apply-patch.test.ts b/packages/runtime/src/__tests__/filesystem-apply-patch.test.ts index a9aabaa1ac..f43d4c3cdd 100644 --- a/packages/runtime/src/__tests__/filesystem-apply-patch.test.ts +++ b/packages/runtime/src/__tests__/filesystem-apply-patch.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/filesystem-authority.test.ts b/packages/runtime/src/__tests__/filesystem-authority.test.ts index 8184f808da..4d9e50588a 100644 --- a/packages/runtime/src/__tests__/filesystem-authority.test.ts +++ b/packages/runtime/src/__tests__/filesystem-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { Buffer } from 'node:buffer'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-client.test.ts b/packages/runtime/src/__tests__/filesystem-worker-client.test.ts index ff12ce1c49..c1b6e0c638 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-client.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-client.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { rmSync } from 'node:fs'; import { mkdtemp, mkdir, realpath, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-launch-spec.test.ts b/packages/runtime/src/__tests__/filesystem-worker-launch-spec.test.ts index 9a6f72c535..5166cda7d8 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-launch-spec.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-launch-spec.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { copyFile, mkdir, mkdtemp, realpath, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-linux-smoke.test.ts b/packages/runtime/src/__tests__/filesystem-worker-linux-smoke.test.ts index 21696be080..f4badbdc71 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-linux-smoke.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-linux-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, readFile, realpath, rm } from 'node:fs/promises'; import { homedir, tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-process-runner.test.ts b/packages/runtime/src/__tests__/filesystem-worker-process-runner.test.ts index 1ffe89b028..15a2aebaa4 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-process-runner.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-process-runner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-smoke.test.ts b/packages/runtime/src/__tests__/filesystem-worker-smoke.test.ts index 6295b2a042..78596e925e 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-smoke.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, readFile, realpath, rm, writeFile } from 'node:fs/promises'; import { homedir, tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/filesystem-worker-windows-smoke.test.ts b/packages/runtime/src/__tests__/filesystem-worker-windows-smoke.test.ts index 5852d87c14..158997b788 100644 --- a/packages/runtime/src/__tests__/filesystem-worker-windows-smoke.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker-windows-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { existsSync } from 'node:fs'; import { copyFile, mkdir, mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/filesystem-worker.test.ts b/packages/runtime/src/__tests__/filesystem-worker.test.ts index a7e077e307..79ce2975ac 100644 --- a/packages/runtime/src/__tests__/filesystem-worker.test.ts +++ b/packages/runtime/src/__tests__/filesystem-worker.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { mkdtemp, mkdir, readFile, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/goal-continuation.test.ts b/packages/runtime/src/__tests__/goal-continuation.test.ts index 85b1582d1c..e97d0ea5c3 100644 --- a/packages/runtime/src/__tests__/goal-continuation.test.ts +++ b/packages/runtime/src/__tests__/goal-continuation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { GoalManager, type GoalManagerDeps } from '../goal-state.js'; diff --git a/packages/runtime/src/__tests__/goal-evaluator.test.ts b/packages/runtime/src/__tests__/goal-evaluator.test.ts index da128e0951..abcfc7dbcd 100644 --- a/packages/runtime/src/__tests__/goal-evaluator.test.ts +++ b/packages/runtime/src/__tests__/goal-evaluator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { parseGoalEvaluation, evaluateGoal } from '../goal-evaluator.js'; diff --git a/packages/runtime/src/__tests__/goal-state.test.ts b/packages/runtime/src/__tests__/goal-state.test.ts index b6ce1cdcfa..6ea022b89f 100644 --- a/packages/runtime/src/__tests__/goal-state.test.ts +++ b/packages/runtime/src/__tests__/goal-state.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { isDrivingGoal } from '@maka/core/goal'; diff --git a/packages/runtime/src/__tests__/goal-tools.test.ts b/packages/runtime/src/__tests__/goal-tools.test.ts index 987251dfd3..abee998846 100644 --- a/packages/runtime/src/__tests__/goal-tools.test.ts +++ b/packages/runtime/src/__tests__/goal-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { GoalManager } from '../goal-state.js'; diff --git a/packages/runtime/src/__tests__/goal-turn-lifecycle.test.ts b/packages/runtime/src/__tests__/goal-turn-lifecycle.test.ts index b012f84340..3185c5ff27 100644 --- a/packages/runtime/src/__tests__/goal-turn-lifecycle.test.ts +++ b/packages/runtime/src/__tests__/goal-turn-lifecycle.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { SessionEvent } from '@maka/core/events'; diff --git a/packages/runtime/src/__tests__/history-compact-artifacts.test.ts b/packages/runtime/src/__tests__/history-compact-artifacts.test.ts index 6aa17bd8e6..8b8490c164 100644 --- a/packages/runtime/src/__tests__/history-compact-artifacts.test.ts +++ b/packages/runtime/src/__tests__/history-compact-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/history-compact-checkpoint.test.ts b/packages/runtime/src/__tests__/history-compact-checkpoint.test.ts index 7c7cd66a73..51240d0d09 100644 --- a/packages/runtime/src/__tests__/history-compact-checkpoint.test.ts +++ b/packages/runtime/src/__tests__/history-compact-checkpoint.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunEvent, AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/history-compact-input-fit.test.ts b/packages/runtime/src/__tests__/history-compact-input-fit.test.ts index 48edd81572..1ac1bdbe6c 100644 --- a/packages/runtime/src/__tests__/history-compact-input-fit.test.ts +++ b/packages/runtime/src/__tests__/history-compact-input-fit.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { stableJsonLength } from '../context-budget-helpers.js'; diff --git a/packages/runtime/src/__tests__/history-compact-mid-turn-checkpoint.test.ts b/packages/runtime/src/__tests__/history-compact-mid-turn-checkpoint.test.ts index 3f950cfdca..d8f05dcbe1 100644 --- a/packages/runtime/src/__tests__/history-compact-mid-turn-checkpoint.test.ts +++ b/packages/runtime/src/__tests__/history-compact-mid-turn-checkpoint.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/history-compact-summarizer.test.ts b/packages/runtime/src/__tests__/history-compact-summarizer.test.ts index 479a78bdf4..cd10abfd43 100644 --- a/packages/runtime/src/__tests__/history-compact-summarizer.test.ts +++ b/packages/runtime/src/__tests__/history-compact-summarizer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelCallCommit } from '@maka/core/agent-run'; /** * Tests for buildLlmHistorySummarizer — the AI-SDK-backed LLM summary that diff --git a/packages/runtime/src/__tests__/image-file.test.ts b/packages/runtime/src/__tests__/image-file.test.ts index e1d31a92b1..0811fb415c 100644 --- a/packages/runtime/src/__tests__/image-file.test.ts +++ b/packages/runtime/src/__tests__/image-file.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { test } from 'node:test'; import assert from 'node:assert/strict'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/interaction-authority.test.ts b/packages/runtime/src/__tests__/interaction-authority.test.ts index 13200a5367..c3c82eda9b 100644 --- a/packages/runtime/src/__tests__/interaction-authority.test.ts +++ b/packages/runtime/src/__tests__/interaction-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/latest-context-commit.test.ts b/packages/runtime/src/__tests__/latest-context-commit.test.ts index 96c41bcdb0..e183039359 100644 --- a/packages/runtime/src/__tests__/latest-context-commit.test.ts +++ b/packages/runtime/src/__tests__/latest-context-commit.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The commit crossing the production chain (#2323). * diff --git a/packages/runtime/src/__tests__/linux-sandbox-smoke.test.ts b/packages/runtime/src/__tests__/linux-sandbox-smoke.test.ts index 9217d1f160..ab23f19ed4 100644 --- a/packages/runtime/src/__tests__/linux-sandbox-smoke.test.ts +++ b/packages/runtime/src/__tests__/linux-sandbox-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { mkdirSync, renameSync } from 'node:fs'; diff --git a/packages/runtime/src/__tests__/linux-sandbox.test.ts b/packages/runtime/src/__tests__/linux-sandbox.test.ts index 5cdffcf632..b3c37bda5d 100644 --- a/packages/runtime/src/__tests__/linux-sandbox.test.ts +++ b/packages/runtime/src/__tests__/linux-sandbox.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { mkdir, mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/local-web-fetch.test.ts b/packages/runtime/src/__tests__/local-web-fetch.test.ts index 2068a8c440..898964cbba 100644 --- a/packages/runtime/src/__tests__/local-web-fetch.test.ts +++ b/packages/runtime/src/__tests__/local-web-fetch.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createLocalWebFetchExecutor, WEB_FETCH_RESPONSE_MAX_BYTES } from '../local-web-fetch.js'; diff --git a/packages/runtime/src/__tests__/loop-gate.test.ts b/packages/runtime/src/__tests__/loop-gate.test.ts index 0da6faa15c..5d947976a5 100644 --- a/packages/runtime/src/__tests__/loop-gate.test.ts +++ b/packages/runtime/src/__tests__/loop-gate.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/macos-executable-dependencies.test.ts b/packages/runtime/src/__tests__/macos-executable-dependencies.test.ts index 2935780014..3c6eaa6b7b 100644 --- a/packages/runtime/src/__tests__/macos-executable-dependencies.test.ts +++ b/packages/runtime/src/__tests__/macos-executable-dependencies.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { dirname } from 'node:path'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/macos-seatbelt-smoke.test.ts b/packages/runtime/src/__tests__/macos-seatbelt-smoke.test.ts index bd6345048b..1afadf5e69 100644 --- a/packages/runtime/src/__tests__/macos-seatbelt-smoke.test.ts +++ b/packages/runtime/src/__tests__/macos-seatbelt-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { after, describe, it } from 'node:test'; import { existsSync } from 'node:fs'; diff --git a/packages/runtime/src/__tests__/macos-seatbelt.test.ts b/packages/runtime/src/__tests__/macos-seatbelt.test.ts index 117c1837f7..67d4980f0b 100644 --- a/packages/runtime/src/__tests__/macos-seatbelt.test.ts +++ b/packages/runtime/src/__tests__/macos-seatbelt.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/__tests__/materializer.test.ts b/packages/runtime/src/__tests__/materializer.test.ts index 147ea864d3..2d94918ece 100644 --- a/packages/runtime/src/__tests__/materializer.test.ts +++ b/packages/runtime/src/__tests__/materializer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Tests for materializer. * diff --git a/packages/runtime/src/__tests__/mcp-tools.test.ts b/packages/runtime/src/__tests__/mcp-tools.test.ts index da73e78e9b..c111973cee 100644 --- a/packages/runtime/src/__tests__/mcp-tools.test.ts +++ b/packages/runtime/src/__tests__/mcp-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createManagedExecutionBoundary } from '@maka/core/sandbox-boundary'; diff --git a/packages/runtime/src/__tests__/memory-artifact-store.ts b/packages/runtime/src/__tests__/memory-artifact-store.ts index 14e9362444..790da33165 100644 --- a/packages/runtime/src/__tests__/memory-artifact-store.ts +++ b/packages/runtime/src/__tests__/memory-artifact-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import type { ArtifactRecord } from '@maka/core/artifacts'; import type { HistoryCompactArtifactStore } from '../history-compact-artifacts.js'; diff --git a/packages/runtime/src/__tests__/memory-extraction-evidence.test.ts b/packages/runtime/src/__tests__/memory-extraction-evidence.test.ts index 98420e7003..db8915d6b8 100644 --- a/packages/runtime/src/__tests__/memory-extraction-evidence.test.ts +++ b/packages/runtime/src/__tests__/memory-extraction-evidence.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/memory-extraction-provider-prefix.test.ts b/packages/runtime/src/__tests__/memory-extraction-provider-prefix.test.ts index 9460eb4d68..3719330ce6 100644 --- a/packages/runtime/src/__tests__/memory-extraction-provider-prefix.test.ts +++ b/packages/runtime/src/__tests__/memory-extraction-provider-prefix.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/memory-extraction.test.ts b/packages/runtime/src/__tests__/memory-extraction.test.ts index cd20c5079e..5d9eb07b69 100644 --- a/packages/runtime/src/__tests__/memory-extraction.test.ts +++ b/packages/runtime/src/__tests__/memory-extraction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/mid-turn-capacity-backend.test.ts b/packages/runtime/src/__tests__/mid-turn-capacity-backend.test.ts index 4736e78485..16aaaaad06 100644 --- a/packages/runtime/src/__tests__/mid-turn-capacity-backend.test.ts +++ b/packages/runtime/src/__tests__/mid-turn-capacity-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelCallCommit } from '@maka/core/agent-run'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/mid-turn-capacity-compact.test.ts b/packages/runtime/src/__tests__/mid-turn-capacity-compact.test.ts index c430929381..f633ca64c4 100644 --- a/packages/runtime/src/__tests__/mid-turn-capacity-compact.test.ts +++ b/packages/runtime/src/__tests__/mid-turn-capacity-compact.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/__tests__/model-adapter-onerror.test.ts b/packages/runtime/src/__tests__/model-adapter-onerror.test.ts index 51d0b31ac4..0b2dd3de7c 100644 --- a/packages/runtime/src/__tests__/model-adapter-onerror.test.ts +++ b/packages/runtime/src/__tests__/model-adapter-onerror.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { convertArrayToReadableStream, MockLanguageModelV4 } from 'ai/test'; diff --git a/packages/runtime/src/__tests__/model-adapter-stream-activity.test.ts b/packages/runtime/src/__tests__/model-adapter-stream-activity.test.ts index 443cd85500..f58a34564b 100644 --- a/packages/runtime/src/__tests__/model-adapter-stream-activity.test.ts +++ b/packages/runtime/src/__tests__/model-adapter-stream-activity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { LanguageModelV4StreamPart, LanguageModelV4Usage } from '@ai-sdk/provider'; diff --git a/packages/runtime/src/__tests__/model-adapter.test.ts b/packages/runtime/src/__tests__/model-adapter.test.ts index 67aa5efe8c..719ee50617 100644 --- a/packages/runtime/src/__tests__/model-adapter.test.ts +++ b/packages/runtime/src/__tests__/model-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { RetryError } from 'ai'; diff --git a/packages/runtime/src/__tests__/model-factory-thinking.test.ts b/packages/runtime/src/__tests__/model-factory-thinking.test.ts index 9dd507b8a3..7cd446b16a 100644 --- a/packages/runtime/src/__tests__/model-factory-thinking.test.ts +++ b/packages/runtime/src/__tests__/model-factory-thinking.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/model-factory-tool-call-index.test.ts b/packages/runtime/src/__tests__/model-factory-tool-call-index.test.ts index 2f27064b1a..f707cb2e7d 100644 --- a/packages/runtime/src/__tests__/model-factory-tool-call-index.test.ts +++ b/packages/runtime/src/__tests__/model-factory-tool-call-index.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LanguageModelV4CallOptions, LanguageModelV4StreamPart } from '@ai-sdk/provider'; diff --git a/packages/runtime/src/__tests__/model-fetcher.test.ts b/packages/runtime/src/__tests__/model-fetcher.test.ts index c123655cca..9b81d427c8 100644 --- a/packages/runtime/src/__tests__/model-fetcher.test.ts +++ b/packages/runtime/src/__tests__/model-fetcher.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer, type IncomingMessage, type ServerResponse } from 'node:http'; import { after, describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/native-web-search-tool.test.ts b/packages/runtime/src/__tests__/native-web-search-tool.test.ts index 968a1c41ff..9b111a77c1 100644 --- a/packages/runtime/src/__tests__/native-web-search-tool.test.ts +++ b/packages/runtime/src/__tests__/native-web-search-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/node-pty-write-lifecycle.test.ts b/packages/runtime/src/__tests__/node-pty-write-lifecycle.test.ts index 415f16a0e0..121e37eef1 100644 --- a/packages/runtime/src/__tests__/node-pty-write-lifecycle.test.ts +++ b/packages/runtime/src/__tests__/node-pty-write-lifecycle.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/oauth-login.test.ts b/packages/runtime/src/__tests__/oauth-login.test.ts index b90df21e9e..d25d2a9c5a 100644 --- a/packages/runtime/src/__tests__/oauth-login.test.ts +++ b/packages/runtime/src/__tests__/oauth-login.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/observation-text-reader.ts b/packages/runtime/src/__tests__/observation-text-reader.ts index dccfef85c3..ed9fe37df8 100644 --- a/packages/runtime/src/__tests__/observation-text-reader.ts +++ b/packages/runtime/src/__tests__/observation-text-reader.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Test-only reader for the model-facing observation text. // // Production has no parser for this format and should not grow one: the text diff --git a/packages/runtime/src/__tests__/openai-codex-history-compactor.test.ts b/packages/runtime/src/__tests__/openai-codex-history-compactor.test.ts index 09e8f12a5c..63a56949ba 100644 --- a/packages/runtime/src/__tests__/openai-codex-history-compactor.test.ts +++ b/packages/runtime/src/__tests__/openai-codex-history-compactor.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/openai-responses-continuation.test.ts b/packages/runtime/src/__tests__/openai-responses-continuation.test.ts index c7658eed19..af587c77cb 100644 --- a/packages/runtime/src/__tests__/openai-responses-continuation.test.ts +++ b/packages/runtime/src/__tests__/openai-responses-continuation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/openai-responses-model-adapter.test.ts b/packages/runtime/src/__tests__/openai-responses-model-adapter.test.ts index 67a4a6aaef..c962232372 100644 --- a/packages/runtime/src/__tests__/openai-responses-model-adapter.test.ts +++ b/packages/runtime/src/__tests__/openai-responses-model-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { diff --git a/packages/runtime/src/__tests__/openai-responses-plaintext-reasoning.test.ts b/packages/runtime/src/__tests__/openai-responses-plaintext-reasoning.test.ts index d9c7b66ec1..f28f382ce6 100644 --- a/packages/runtime/src/__tests__/openai-responses-plaintext-reasoning.test.ts +++ b/packages/runtime/src/__tests__/openai-responses-plaintext-reasoning.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/openai-responses-websocket.test.ts b/packages/runtime/src/__tests__/openai-responses-websocket.test.ts index 1517cfb739..05ad081a51 100644 --- a/packages/runtime/src/__tests__/openai-responses-websocket.test.ts +++ b/packages/runtime/src/__tests__/openai-responses-websocket.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { once } from 'node:events'; import { createServer, type IncomingMessage } from 'node:http'; diff --git a/packages/runtime/src/__tests__/openai-strict-function.test.ts b/packages/runtime/src/__tests__/openai-strict-function.test.ts index cb1ef550e3..91e4607d01 100644 --- a/packages/runtime/src/__tests__/openai-strict-function.test.ts +++ b/packages/runtime/src/__tests__/openai-strict-function.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime/src/__tests__/opencode-free-anonymous.test.ts b/packages/runtime/src/__tests__/opencode-free-anonymous.test.ts index 4c63c06b20..792abdb2dd 100644 --- a/packages/runtime/src/__tests__/opencode-free-anonymous.test.ts +++ b/packages/runtime/src/__tests__/opencode-free-anonymous.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * opencode-free anonymous runtime — the invariant the free tier depends on. * diff --git a/packages/runtime/src/__tests__/overflow-reactive-recovery.test.ts b/packages/runtime/src/__tests__/overflow-reactive-recovery.test.ts index c2fad52423..3a2b96f2fe 100644 --- a/packages/runtime/src/__tests__/overflow-reactive-recovery.test.ts +++ b/packages/runtime/src/__tests__/overflow-reactive-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { setImmediate as flushMacrotask } from 'node:timers/promises'; diff --git a/packages/runtime/src/__tests__/path-containment.test.ts b/packages/runtime/src/__tests__/path-containment.test.ts index dd8cb96628..36c267c0ff 100644 --- a/packages/runtime/src/__tests__/path-containment.test.ts +++ b/packages/runtime/src/__tests__/path-containment.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { mkdir, mkdtemp, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/pipe-process-driver.test.ts b/packages/runtime/src/__tests__/pipe-process-driver.test.ts index 6a497a2900..10acb549aa 100644 --- a/packages/runtime/src/__tests__/pipe-process-driver.test.ts +++ b/packages/runtime/src/__tests__/pipe-process-driver.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime/src/__tests__/plan-mode.test.ts b/packages/runtime/src/__tests__/plan-mode.test.ts index daa2a8914f..ee17fd271c 100644 --- a/packages/runtime/src/__tests__/plan-mode.test.ts +++ b/packages/runtime/src/__tests__/plan-mode.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/pre-dispatch-refusal-ledger.test.ts b/packages/runtime/src/__tests__/pre-dispatch-refusal-ledger.test.ts index 171440ff50..a550241d1b 100644 --- a/packages/runtime/src/__tests__/pre-dispatch-refusal-ledger.test.ts +++ b/packages/runtime/src/__tests__/pre-dispatch-refusal-ledger.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/prompt-composition.test.ts b/packages/runtime/src/__tests__/prompt-composition.test.ts index a3a196ab44..5ad9077bf0 100644 --- a/packages/runtime/src/__tests__/prompt-composition.test.ts +++ b/packages/runtime/src/__tests__/prompt-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Prompt composition — what one request's prompt was made of (#2323). * diff --git a/packages/runtime/src/__tests__/provider-conformance.test.ts b/packages/runtime/src/__tests__/provider-conformance.test.ts index ddb8682bd9..06c3cad86a 100644 --- a/packages/runtime/src/__tests__/provider-conformance.test.ts +++ b/packages/runtime/src/__tests__/provider-conformance.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import type { IncomingMessage } from 'node:http'; import { after, describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/provider-contract-matrix.test.ts b/packages/runtime/src/__tests__/provider-contract-matrix.test.ts index a0bece8582..4f3b95ffe5 100644 --- a/packages/runtime/src/__tests__/provider-contract-matrix.test.ts +++ b/packages/runtime/src/__tests__/provider-contract-matrix.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import type { IncomingMessage } from 'node:http'; import { after, describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/provider-contract-matrix.ts b/packages/runtime/src/__tests__/provider-contract-matrix.ts index 864f5ccde0..274c7851fb 100644 --- a/packages/runtime/src/__tests__/provider-contract-matrix.ts +++ b/packages/runtime/src/__tests__/provider-contract-matrix.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Provider conformance matrix — a registry-driven plan. * diff --git a/packages/runtime/src/__tests__/provider-contract-overrides.ts b/packages/runtime/src/__tests__/provider-contract-overrides.ts index b1371bc96d..6a25c8b36a 100644 --- a/packages/runtime/src/__tests__/provider-contract-overrides.ts +++ b/packages/runtime/src/__tests__/provider-contract-overrides.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Executable override bindings for the provider conformance matrix. * diff --git a/packages/runtime/src/__tests__/provider-error-classification.test.ts b/packages/runtime/src/__tests__/provider-error-classification.test.ts index 49ef12bbbf..bfc7984267 100644 --- a/packages/runtime/src/__tests__/provider-error-classification.test.ts +++ b/packages/runtime/src/__tests__/provider-error-classification.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createJsonErrorResponseHandler } from '@ai-sdk/provider-utils'; diff --git a/packages/runtime/src/__tests__/provider-request-telemetry.test.ts b/packages/runtime/src/__tests__/provider-request-telemetry.test.ts index 2936f8cd03..9ef2d8412e 100644 --- a/packages/runtime/src/__tests__/provider-request-telemetry.test.ts +++ b/packages/runtime/src/__tests__/provider-request-telemetry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelCallCommit } from '@maka/core/agent-run'; import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/runtime/src/__tests__/pty-process-driver.test.ts b/packages/runtime/src/__tests__/pty-process-driver.test.ts index 102f7f2b4c..51575e206e 100644 --- a/packages/runtime/src/__tests__/pty-process-driver.test.ts +++ b/packages/runtime/src/__tests__/pty-process-driver.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/pty-screen-collector.test.ts b/packages/runtime/src/__tests__/pty-screen-collector.test.ts index 083a1abee9..5b6466be47 100644 --- a/packages/runtime/src/__tests__/pty-screen-collector.test.ts +++ b/packages/runtime/src/__tests__/pty-screen-collector.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/recovery-authority-equivalence.test.ts b/packages/runtime/src/__tests__/recovery-authority-equivalence.test.ts index 7ada9f67bd..64c6cb1413 100644 --- a/packages/runtime/src/__tests__/recovery-authority-equivalence.test.ts +++ b/packages/runtime/src/__tests__/recovery-authority-equivalence.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/recovery-resolver.test.ts b/packages/runtime/src/__tests__/recovery-resolver.test.ts index 4a16863aa9..dd975fcd74 100644 --- a/packages/runtime/src/__tests__/recovery-resolver.test.ts +++ b/packages/runtime/src/__tests__/recovery-resolver.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { canonicalToolArgsHash } from '@maka/core/tool-args-identity'; diff --git a/packages/runtime/src/__tests__/request-customization-fetch.test.ts b/packages/runtime/src/__tests__/request-customization-fetch.test.ts index e2319ae8ba..cca34784aa 100644 --- a/packages/runtime/src/__tests__/request-customization-fetch.test.ts +++ b/packages/runtime/src/__tests__/request-customization-fetch.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createRequestCustomizationFetch } from '../request-customization-fetch.js'; diff --git a/packages/runtime/src/__tests__/request-shape.test.ts b/packages/runtime/src/__tests__/request-shape.test.ts index 4710c76fb9..55954f65ff 100644 --- a/packages/runtime/src/__tests__/request-shape.test.ts +++ b/packages/runtime/src/__tests__/request-shape.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; diff --git a/packages/runtime/src/__tests__/responses-wire-contract.test.ts b/packages/runtime/src/__tests__/responses-wire-contract.test.ts index 5dddbe918f..7758e7db89 100644 --- a/packages/runtime/src/__tests__/responses-wire-contract.test.ts +++ b/packages/runtime/src/__tests__/responses-wire-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/run-trace.test.ts b/packages/runtime/src/__tests__/run-trace.test.ts index 567c3ea8bf..254eea7eaf 100644 --- a/packages/runtime/src/__tests__/run-trace.test.ts +++ b/packages/runtime/src/__tests__/run-trace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { RunTrace, type RunTraceEvent } from '../run-trace.js'; diff --git a/packages/runtime/src/__tests__/runtime-commit-sink.test.ts b/packages/runtime/src/__tests__/runtime-commit-sink.test.ts index 76a262bc7f..44fe86c00e 100644 --- a/packages/runtime/src/__tests__/runtime-commit-sink.test.ts +++ b/packages/runtime/src/__tests__/runtime-commit-sink.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { buildToolOperationId, canonicalToolArgsHash } from '../runtime-commit-sink.js'; diff --git a/packages/runtime/src/__tests__/runtime-continuation-crash.test.ts b/packages/runtime/src/__tests__/runtime-continuation-crash.test.ts index 0a69757089..2759569e76 100644 --- a/packages/runtime/src/__tests__/runtime-continuation-crash.test.ts +++ b/packages/runtime/src/__tests__/runtime-continuation-crash.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { once } from 'node:events'; diff --git a/packages/runtime/src/__tests__/runtime-continuation.test.ts b/packages/runtime/src/__tests__/runtime-continuation.test.ts index 23f7a42042..76879d086b 100644 --- a/packages/runtime/src/__tests__/runtime-continuation.test.ts +++ b/packages/runtime/src/__tests__/runtime-continuation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/runtime-event-read-model.test.ts b/packages/runtime/src/__tests__/runtime-event-read-model.test.ts index 0dc9608aee..419a4486f5 100644 --- a/packages/runtime/src/__tests__/runtime-event-read-model.test.ts +++ b/packages/runtime/src/__tests__/runtime-event-read-model.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; import type { CreateSessionInput, SessionListFilter } from '@maka/core/runtime-inputs'; diff --git a/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts b/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts index b1461b3422..04027bb9d9 100644 --- a/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts +++ b/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/runtime-ledger-repair.test.ts b/packages/runtime/src/__tests__/runtime-ledger-repair.test.ts index 2d507c7966..173fd568b6 100644 --- a/packages/runtime/src/__tests__/runtime-ledger-repair.test.ts +++ b/packages/runtime/src/__tests__/runtime-ledger-repair.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/runtime-resume-crash.test.ts b/packages/runtime/src/__tests__/runtime-resume-crash.test.ts index 020d797ffb..c4372960af 100644 --- a/packages/runtime/src/__tests__/runtime-resume-crash.test.ts +++ b/packages/runtime/src/__tests__/runtime-resume-crash.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { once } from 'node:events'; import { access, mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/runtime-resume.test.ts b/packages/runtime/src/__tests__/runtime-resume.test.ts index c7b404ffc4..21207ab0c9 100644 --- a/packages/runtime/src/__tests__/runtime-resume.test.ts +++ b/packages/runtime/src/__tests__/runtime-resume.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/runtime-runner-continuation-admission.test.ts b/packages/runtime/src/__tests__/runtime-runner-continuation-admission.test.ts index 7df675cd8a..e5eb266a71 100644 --- a/packages/runtime/src/__tests__/runtime-runner-continuation-admission.test.ts +++ b/packages/runtime/src/__tests__/runtime-runner-continuation-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/runtime-runner.test.ts b/packages/runtime/src/__tests__/runtime-runner.test.ts index e46c6a6cdf..53e21e9f6a 100644 --- a/packages/runtime/src/__tests__/runtime-runner.test.ts +++ b/packages/runtime/src/__tests__/runtime-runner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../test-helpers.js'; import { diff --git a/packages/runtime/src/__tests__/sandbox-boundary-restart-recovery.test.ts b/packages/runtime/src/__tests__/sandbox-boundary-restart-recovery.test.ts index 69357e17b9..95c8d08378 100644 --- a/packages/runtime/src/__tests__/sandbox-boundary-restart-recovery.test.ts +++ b/packages/runtime/src/__tests__/sandbox-boundary-restart-recovery.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/sandbox-detect.test.ts b/packages/runtime/src/__tests__/sandbox-detect.test.ts index aa48321c05..da68e9c8fe 100644 --- a/packages/runtime/src/__tests__/sandbox-detect.test.ts +++ b/packages/runtime/src/__tests__/sandbox-detect.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/sandbox-diagnostics.test.ts b/packages/runtime/src/__tests__/sandbox-diagnostics.test.ts index 8db778d7de..e6fb9f7553 100644 --- a/packages/runtime/src/__tests__/sandbox-diagnostics.test.ts +++ b/packages/runtime/src/__tests__/sandbox-diagnostics.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/sandbox-manager.test.ts b/packages/runtime/src/__tests__/sandbox-manager.test.ts index 13166425ce..28c529a347 100644 --- a/packages/runtime/src/__tests__/sandbox-manager.test.ts +++ b/packages/runtime/src/__tests__/sandbox-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/__tests__/semantic-compact.test.ts b/packages/runtime/src/__tests__/semantic-compact.test.ts index ae05852d9f..ad1fdfebc7 100644 --- a/packages/runtime/src/__tests__/semantic-compact.test.ts +++ b/packages/runtime/src/__tests__/semantic-compact.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { ModelMessage } from '../model-protocol.js'; diff --git a/packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts b/packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts index bf484a033b..ccf6fdc4b3 100644 --- a/packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts +++ b/packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { setTimeout as timerDelay } from 'node:timers/promises'; diff --git a/packages/runtime/src/__tests__/session-manager.test.ts b/packages/runtime/src/__tests__/session-manager.test.ts index be00dd12f6..7db8f914c2 100644 --- a/packages/runtime/src/__tests__/session-manager.test.ts +++ b/packages/runtime/src/__tests__/session-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { setTimeout as timerDelay } from 'node:timers/promises'; diff --git a/packages/runtime/src/__tests__/session-projection-helpers.test.ts b/packages/runtime/src/__tests__/session-projection-helpers.test.ts index 68a6e6aa8f..5ff759adac 100644 --- a/packages/runtime/src/__tests__/session-projection-helpers.test.ts +++ b/packages/runtime/src/__tests__/session-projection-helpers.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../test-helpers.js'; import type { StoredMessage } from '@maka/core/session'; diff --git a/packages/runtime/src/__tests__/session-title.test.ts b/packages/runtime/src/__tests__/session-title.test.ts index 0b92eeda25..3eaf5b9fc0 100644 --- a/packages/runtime/src/__tests__/session-title.test.ts +++ b/packages/runtime/src/__tests__/session-title.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/session-trace-projection.test.ts b/packages/runtime/src/__tests__/session-trace-projection.test.ts index 5a97bf1d73..4a9260732d 100644 --- a/packages/runtime/src/__tests__/session-trace-projection.test.ts +++ b/packages/runtime/src/__tests__/session-trace-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Session Inspector trace projection (#1625). * diff --git a/packages/runtime/src/__tests__/shell-detect.test.ts b/packages/runtime/src/__tests__/shell-detect.test.ts index e2c5b7fba4..60614e695b 100644 --- a/packages/runtime/src/__tests__/shell-detect.test.ts +++ b/packages/runtime/src/__tests__/shell-detect.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/shell-exec.test.ts b/packages/runtime/src/__tests__/shell-exec.test.ts index b856a0f344..18c1867772 100644 --- a/packages/runtime/src/__tests__/shell-exec.test.ts +++ b/packages/runtime/src/__tests__/shell-exec.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { existsSync, promises as fs } from 'node:fs'; diff --git a/packages/runtime/src/__tests__/shell-run-manager.test.ts b/packages/runtime/src/__tests__/shell-run-manager.test.ts index 3fe3e3c5b5..27416463b1 100644 --- a/packages/runtime/src/__tests__/shell-run-manager.test.ts +++ b/packages/runtime/src/__tests__/shell-run-manager.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import childProcess, { type ExecFileException, diff --git a/packages/runtime/src/__tests__/shell-run-tool-result.test.ts b/packages/runtime/src/__tests__/shell-run-tool-result.test.ts index 7578b6642c..4602125a40 100644 --- a/packages/runtime/src/__tests__/shell-run-tool-result.test.ts +++ b/packages/runtime/src/__tests__/shell-run-tool-result.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/shell-tools.test.ts b/packages/runtime/src/__tests__/shell-tools.test.ts index c179ff167e..b5c1992abe 100644 --- a/packages/runtime/src/__tests__/shell-tools.test.ts +++ b/packages/runtime/src/__tests__/shell-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/skill-invocation.test.ts b/packages/runtime/src/__tests__/skill-invocation.test.ts index 0997c2be78..ad8b5f0883 100644 --- a/packages/runtime/src/__tests__/skill-invocation.test.ts +++ b/packages/runtime/src/__tests__/skill-invocation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/skills-governance.test.ts b/packages/runtime/src/__tests__/skills-governance.test.ts index d362953809..01f8f1508e 100644 --- a/packages/runtime/src/__tests__/skills-governance.test.ts +++ b/packages/runtime/src/__tests__/skills-governance.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { chmod, mkdir, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/skills.test.ts b/packages/runtime/src/__tests__/skills.test.ts index 545912703f..2e92539dc6 100644 --- a/packages/runtime/src/__tests__/skills.test.ts +++ b/packages/runtime/src/__tests__/skills.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/stream-graph-admission.test.ts b/packages/runtime/src/__tests__/stream-graph-admission.test.ts index 5b90fa9cfe..28042cde2b 100644 --- a/packages/runtime/src/__tests__/stream-graph-admission.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { diff --git a/packages/runtime/src/__tests__/stream-graph-coordinator.test.ts b/packages/runtime/src/__tests__/stream-graph-coordinator.test.ts index 208336dab3..9556db0538 100644 --- a/packages/runtime/src/__tests__/stream-graph-coordinator.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-coordinator.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/stream-graph-handoff.test.ts b/packages/runtime/src/__tests__/stream-graph-handoff.test.ts index 7255b8c806..950983f24f 100644 --- a/packages/runtime/src/__tests__/stream-graph-handoff.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-handoff.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/stream-graph-projection.test.ts b/packages/runtime/src/__tests__/stream-graph-projection.test.ts index ff1078f588..102de1fd19 100644 --- a/packages/runtime/src/__tests__/stream-graph-projection.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/stream-graph-read-model.test.ts b/packages/runtime/src/__tests__/stream-graph-read-model.test.ts index a9f25793d5..3f37466605 100644 --- a/packages/runtime/src/__tests__/stream-graph-read-model.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-read-model.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentGraphOperatorProvision } from '@maka/core/agent-graph-topology'; diff --git a/packages/runtime/src/__tests__/stream-graph-readiness.test.ts b/packages/runtime/src/__tests__/stream-graph-readiness.test.ts index 1daf133a98..59a425136e 100644 --- a/packages/runtime/src/__tests__/stream-graph-readiness.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-readiness.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/stream-graph-schedule-reconcile.test.ts b/packages/runtime/src/__tests__/stream-graph-schedule-reconcile.test.ts index 4cf1c59d6c..e86f12ef8e 100644 --- a/packages/runtime/src/__tests__/stream-graph-schedule-reconcile.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-schedule-reconcile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { diff --git a/packages/runtime/src/__tests__/stream-graph-supervisor-tools.test.ts b/packages/runtime/src/__tests__/stream-graph-supervisor-tools.test.ts index d5f9b74b62..ac892ce157 100644 --- a/packages/runtime/src/__tests__/stream-graph-supervisor-tools.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-supervisor-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createSqliteSessionMetadataStore } from '@maka/storage'; diff --git a/packages/runtime/src/__tests__/stream-graph-trace.test.ts b/packages/runtime/src/__tests__/stream-graph-trace.test.ts index 112ddbd28d..58549fd744 100644 --- a/packages/runtime/src/__tests__/stream-graph-trace.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-trace.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { AgentRunHeader } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/__tests__/stream-watchdog.test.ts b/packages/runtime/src/__tests__/stream-watchdog.test.ts index 3926cd1e8e..75afb4f0e0 100644 --- a/packages/runtime/src/__tests__/stream-watchdog.test.ts +++ b/packages/runtime/src/__tests__/stream-watchdog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../test-helpers.js'; import { StreamWatchdog, type StreamWatchdogTimeout } from '../stream-watchdog.js'; diff --git a/packages/runtime/src/__tests__/subagent-tools.test.ts b/packages/runtime/src/__tests__/subagent-tools.test.ts index 768844f2cc..bdd4fdcd02 100644 --- a/packages/runtime/src/__tests__/subagent-tools.test.ts +++ b/packages/runtime/src/__tests__/subagent-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import { mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/subscription-auth.test.ts b/packages/runtime/src/__tests__/subscription-auth.test.ts index 536da4b754..c0ee00b526 100644 --- a/packages/runtime/src/__tests__/subscription-auth.test.ts +++ b/packages/runtime/src/__tests__/subscription-auth.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { base64urlEncode } from '@maka/core/oauth-subscription'; diff --git a/packages/runtime/src/__tests__/subscription-credentials.test.ts b/packages/runtime/src/__tests__/subscription-credentials.test.ts index 05af218714..4268e03757 100644 --- a/packages/runtime/src/__tests__/subscription-credentials.test.ts +++ b/packages/runtime/src/__tests__/subscription-credentials.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/subscription-model-fetch.test.ts b/packages/runtime/src/__tests__/subscription-model-fetch.test.ts index 63b88b5d1f..bdf636e5d5 100644 --- a/packages/runtime/src/__tests__/subscription-model-fetch.test.ts +++ b/packages/runtime/src/__tests__/subscription-model-fetch.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/swarm-orchestration.test.ts b/packages/runtime/src/__tests__/swarm-orchestration.test.ts index eba4da2ab3..d4b9de3876 100644 --- a/packages/runtime/src/__tests__/swarm-orchestration.test.ts +++ b/packages/runtime/src/__tests__/swarm-orchestration.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/synthesis-cache-artifacts.test.ts b/packages/runtime/src/__tests__/synthesis-cache-artifacts.test.ts index 277f34df67..7f64c754cb 100644 --- a/packages/runtime/src/__tests__/synthesis-cache-artifacts.test.ts +++ b/packages/runtime/src/__tests__/synthesis-cache-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/task-ledger-tools.test.ts b/packages/runtime/src/__tests__/task-ledger-tools.test.ts index 67d1805463..299a189c7d 100644 --- a/packages/runtime/src/__tests__/task-ledger-tools.test.ts +++ b/packages/runtime/src/__tests__/task-ledger-tools.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { z } from 'zod'; diff --git a/packages/runtime/src/__tests__/tavily-search.test.ts b/packages/runtime/src/__tests__/tavily-search.test.ts index 251ccfd770..e039111e04 100644 --- a/packages/runtime/src/__tests__/tavily-search.test.ts +++ b/packages/runtime/src/__tests__/tavily-search.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { queryTavily } from '../tavily-search.js'; diff --git a/packages/runtime/src/__tests__/tool-args-violation.test.ts b/packages/runtime/src/__tests__/tool-args-violation.test.ts index b53a4106ad..18d7675be8 100644 --- a/packages/runtime/src/__tests__/tool-args-violation.test.ts +++ b/packages/runtime/src/__tests__/tool-args-violation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/tool-artifacts.test.ts b/packages/runtime/src/__tests__/tool-artifacts.test.ts index a1702a8437..24a07fc292 100644 --- a/packages/runtime/src/__tests__/tool-artifacts.test.ts +++ b/packages/runtime/src/__tests__/tool-artifacts.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import { describe, test } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/tool-availability.test.ts b/packages/runtime/src/__tests__/tool-availability.test.ts index 5818e2f1d8..1c4fcbf7e4 100644 --- a/packages/runtime/src/__tests__/tool-availability.test.ts +++ b/packages/runtime/src/__tests__/tool-availability.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { z } from 'zod'; diff --git a/packages/runtime/src/__tests__/tool-catalog-derive.test.ts b/packages/runtime/src/__tests__/tool-catalog-derive.test.ts index 1378a2dc31..fa48051565 100644 --- a/packages/runtime/src/__tests__/tool-catalog-derive.test.ts +++ b/packages/runtime/src/__tests__/tool-catalog-derive.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/runtime/src/__tests__/tool-output-delta.test.ts b/packages/runtime/src/__tests__/tool-output-delta.test.ts index abd016e56d..1594349407 100644 --- a/packages/runtime/src/__tests__/tool-output-delta.test.ts +++ b/packages/runtime/src/__tests__/tool-output-delta.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import type { ToolOutputDeltaEvent } from '@maka/core/events'; import { TOOL_OUTPUT_DELTA_MAX_CHARS } from '@maka/core/events'; diff --git a/packages/runtime/src/__tests__/tool-output.test.ts b/packages/runtime/src/__tests__/tool-output.test.ts index f1b28ee6c8..d1a250b0e9 100644 --- a/packages/runtime/src/__tests__/tool-output.test.ts +++ b/packages/runtime/src/__tests__/tool-output.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { truncateToolOutput } from '../tool-output.js'; diff --git a/packages/runtime/src/__tests__/tool-result-archive-capability-backend.test.ts b/packages/runtime/src/__tests__/tool-result-archive-capability-backend.test.ts index 586793cf7c..bc1f8d539b 100644 --- a/packages/runtime/src/__tests__/tool-result-archive-capability-backend.test.ts +++ b/packages/runtime/src/__tests__/tool-result-archive-capability-backend.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { MockLanguageModelV4, convertArrayToReadableStream } from 'ai/test'; diff --git a/packages/runtime/src/__tests__/tool-result-archive-resource.test.ts b/packages/runtime/src/__tests__/tool-result-archive-resource.test.ts index 9bf4255233..e38c666438 100644 --- a/packages/runtime/src/__tests__/tool-result-archive-resource.test.ts +++ b/packages/runtime/src/__tests__/tool-result-archive-resource.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/tool-runtime-argument-ownership.test.ts b/packages/runtime/src/__tests__/tool-runtime-argument-ownership.test.ts index 65f1ba09a8..4faba0d105 100644 --- a/packages/runtime/src/__tests__/tool-runtime-argument-ownership.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-argument-ownership.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/__tests__/tool-runtime-durable-boundary.test.ts b/packages/runtime/src/__tests__/tool-runtime-durable-boundary.test.ts index 156ac7e652..03f4d92948 100644 --- a/packages/runtime/src/__tests__/tool-runtime-durable-boundary.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-durable-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/__tests__/tool-runtime-sandbox-boundary.test.ts b/packages/runtime/src/__tests__/tool-runtime-sandbox-boundary.test.ts index e0764eeaad..75a2d8f921 100644 --- a/packages/runtime/src/__tests__/tool-runtime-sandbox-boundary.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-sandbox-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, realpath, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/tool-runtime-settlement.test.ts b/packages/runtime/src/__tests__/tool-runtime-settlement.test.ts index 19b122f351..133c531620 100644 --- a/packages/runtime/src/__tests__/tool-runtime-settlement.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-settlement.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/__tests__/tool-runtime-sqlite-boundary.test.ts b/packages/runtime/src/__tests__/tool-runtime-sqlite-boundary.test.ts index 9d7f4e53b4..107c08e5f0 100644 --- a/packages/runtime/src/__tests__/tool-runtime-sqlite-boundary.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-sqlite-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createTestToolRuntime } from './execution-boundary-test-helpers.js'; import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/tool-runtime-turn-close-outcome.test.ts b/packages/runtime/src/__tests__/tool-runtime-turn-close-outcome.test.ts index a95eafffbd..9b569a9676 100644 --- a/packages/runtime/src/__tests__/tool-runtime-turn-close-outcome.test.ts +++ b/packages/runtime/src/__tests__/tool-runtime-turn-close-outcome.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/__tests__/web-fetch-tool.test.ts b/packages/runtime/src/__tests__/web-fetch-tool.test.ts index 1f3d68c767..3d7d32d2f6 100644 --- a/packages/runtime/src/__tests__/web-fetch-tool.test.ts +++ b/packages/runtime/src/__tests__/web-fetch-tool.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import type { ZodType } from 'zod'; diff --git a/packages/runtime/src/__tests__/windows-broker-errors.test.ts b/packages/runtime/src/__tests__/windows-broker-errors.test.ts index babb261a73..e88df30c1a 100644 --- a/packages/runtime/src/__tests__/windows-broker-errors.test.ts +++ b/packages/runtime/src/__tests__/windows-broker-errors.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime/src/__tests__/windows-sandbox-profile.test.ts b/packages/runtime/src/__tests__/windows-sandbox-profile.test.ts index ef6bb6ec18..e10cc01b32 100644 --- a/packages/runtime/src/__tests__/windows-sandbox-profile.test.ts +++ b/packages/runtime/src/__tests__/windows-sandbox-profile.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; diff --git a/packages/runtime/src/__tests__/windows-sandbox.test.ts b/packages/runtime/src/__tests__/windows-sandbox.test.ts index 0a883dcc7a..e7e9b2042a 100644 --- a/packages/runtime/src/__tests__/windows-sandbox.test.ts +++ b/packages/runtime/src/__tests__/windows-sandbox.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, readFile, rm } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/workspace-executor.test.ts b/packages/runtime/src/__tests__/workspace-executor.test.ts index 3e984f7ed0..e517260d4e 100644 --- a/packages/runtime/src/__tests__/workspace-executor.test.ts +++ b/packages/runtime/src/__tests__/workspace-executor.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, truncate, writeFile } from 'node:fs/promises'; diff --git a/packages/runtime/src/__tests__/workspace-instructions.test.ts b/packages/runtime/src/__tests__/workspace-instructions.test.ts index 2ce7e4b620..91e23d725f 100644 --- a/packages/runtime/src/__tests__/workspace-instructions.test.ts +++ b/packages/runtime/src/__tests__/workspace-instructions.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/__tests__/xai-oauth-enrollment.test.ts b/packages/runtime/src/__tests__/xai-oauth-enrollment.test.ts index e2590441bf..c9920d4f30 100644 --- a/packages/runtime/src/__tests__/xai-oauth-enrollment.test.ts +++ b/packages/runtime/src/__tests__/xai-oauth-enrollment.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { OAuthTokenEndpointError } from '../oauth-login.js'; diff --git a/packages/runtime/src/active-compaction-kernel.ts b/packages/runtime/src/active-compaction-kernel.ts index 261ab42dd1..2eb2de279a 100644 --- a/packages/runtime/src/active-compaction-kernel.ts +++ b/packages/runtime/src/active-compaction-kernel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { ModelMessage } from './model-protocol.js'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/active-tool-result-prune.ts b/packages/runtime/src/active-tool-result-prune.ts index 4b295ba51d..277a846536 100644 --- a/packages/runtime/src/active-tool-result-prune.ts +++ b/packages/runtime/src/active-tool-result-prune.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { JSONValue, ModelMessage } from './model-protocol.js'; import { diff --git a/packages/runtime/src/active-tool-result-working-set.ts b/packages/runtime/src/active-tool-result-working-set.ts index 43ffaf6eca..6314494a0c 100644 --- a/packages/runtime/src/active-tool-result-working-set.ts +++ b/packages/runtime/src/active-tool-result-working-set.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type ActiveToolResultSupersessionReason = | 'exact_duplicate' | 'newer_read_covers_range' diff --git a/packages/runtime/src/admission-limiter.ts b/packages/runtime/src/admission-limiter.ts index d347b588be..120c68106a 100644 --- a/packages/runtime/src/admission-limiter.ts +++ b/packages/runtime/src/admission-limiter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface AdmissionPermit { release(): void; } diff --git a/packages/runtime/src/agent-catalog.ts b/packages/runtime/src/agent-catalog.ts index 3322957ef5..5898bd2b08 100644 --- a/packages/runtime/src/agent-catalog.ts +++ b/packages/runtime/src/agent-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { BUILTIN_TOOL_CATEGORY, type PermissionMode, diff --git a/packages/runtime/src/agent-flow.ts b/packages/runtime/src/agent-flow.ts index 6d355263e7..d619d29d0f 100644 --- a/packages/runtime/src/agent-flow.ts +++ b/packages/runtime/src/agent-flow.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AgentFlow — the runtime v2 model/tool loop seam. * diff --git a/packages/runtime/src/agent-graph-supervisor-wake.ts b/packages/runtime/src/agent-graph-supervisor-wake.ts index f317a69f59..264a4b8253 100644 --- a/packages/runtime/src/agent-graph-supervisor-wake.ts +++ b/packages/runtime/src/agent-graph-supervisor-wake.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AGENT_GRAPH_SUPERVISOR_WAKE_SCHEMA_VERSION, type AgentGraphSupervisorWakeRecord, diff --git a/packages/runtime/src/agent-graph-timeline.ts b/packages/runtime/src/agent-graph-timeline.ts index 15712c574c..08d31fb4ae 100644 --- a/packages/runtime/src/agent-graph-timeline.ts +++ b/packages/runtime/src/agent-graph-timeline.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import type { AgentGraphIntentAdmissionState, diff --git a/packages/runtime/src/agent-run-inspect.ts b/packages/runtime/src/agent-run-inspect.ts index 3ae7bbccc0..977f97cd42 100644 --- a/packages/runtime/src/agent-run-inspect.ts +++ b/packages/runtime/src/agent-run-inspect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunEvent, AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeEventStore } from '@maka/core/runtime-event-store'; diff --git a/packages/runtime/src/agent-run-recovery.ts b/packages/runtime/src/agent-run-recovery.ts index 1d8ce8dda2..6aea8e74ed 100644 --- a/packages/runtime/src/agent-run-recovery.ts +++ b/packages/runtime/src/agent-run-recovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { SANDBOX_BOUNDARY_RESTART_CLOSURE_CLASS, isSandboxBoundaryRestartClosure, diff --git a/packages/runtime/src/agent-run.ts b/packages/runtime/src/agent-run.ts index cff60aa298..1e9a83227e 100644 --- a/packages/runtime/src/agent-run.ts +++ b/packages/runtime/src/agent-run.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunEvent, AgentRunHeader, diff --git a/packages/runtime/src/agent-swarm-status-tool.ts b/packages/runtime/src/agent-swarm-status-tool.ts index 06bcc6b628..8c7044ad80 100644 --- a/packages/runtime/src/agent-swarm-status-tool.ts +++ b/packages/runtime/src/agent-swarm-status-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import type { MakaTool } from './tool-runtime.js'; import type { diff --git a/packages/runtime/src/ai-sdk-backend.ts b/packages/runtime/src/ai-sdk-backend.ts index 33fbba7737..6451837fb2 100644 --- a/packages/runtime/src/ai-sdk-backend.ts +++ b/packages/runtime/src/ai-sdk-backend.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AiSdkBackend — single backend for all LLM providers via Vercel AI SDK. * diff --git a/packages/runtime/src/ai-sdk-compaction-contract.ts b/packages/runtime/src/ai-sdk-compaction-contract.ts index 213d840caa..cb8294ea66 100644 --- a/packages/runtime/src/ai-sdk-compaction-contract.ts +++ b/packages/runtime/src/ai-sdk-compaction-contract.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import type { HistoryCompactRoute } from '@maka/core/model-call-attempt'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/ai-sdk-compaction.ts b/packages/runtime/src/ai-sdk-compaction.ts index f57d90aee8..5a217587a2 100644 --- a/packages/runtime/src/ai-sdk-compaction.ts +++ b/packages/runtime/src/ai-sdk-compaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AiSdkCompaction — history-compaction / context-budget orchestrator extracted * from AiSdkBackend (issue #1084, runtime/compaction lane, slice 2). diff --git a/packages/runtime/src/ai-sdk-flow.ts b/packages/runtime/src/ai-sdk-flow.ts index f781fb1cf8..3cfbab34d4 100644 --- a/packages/runtime/src/ai-sdk-flow.ts +++ b/packages/runtime/src/ai-sdk-flow.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AiSdkFlow — the default long-term AgentFlow implementation. * diff --git a/packages/runtime/src/apply-patch-batch.ts b/packages/runtime/src/apply-patch-batch.ts index 4e73b6a52d..37ec4dcd17 100644 --- a/packages/runtime/src/apply-patch-batch.ts +++ b/packages/runtime/src/apply-patch-batch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ApplyPatchOperation } from './filesystem-executor.js'; import { formatSyntheticToolErrorText } from './tool-runtime.js'; diff --git a/packages/runtime/src/apply-patch-file.ts b/packages/runtime/src/apply-patch-file.ts index 156a77ed71..3e1b69181f 100644 --- a/packages/runtime/src/apply-patch-file.ts +++ b/packages/runtime/src/apply-patch-file.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { promises as fs } from 'node:fs'; import { dirname } from 'node:path'; import { applyDiff } from '@openai/agents-core/utils'; diff --git a/packages/runtime/src/apply-patch-profile.ts b/packages/runtime/src/apply-patch-profile.ts index 5a906bcd18..d4d524b4ee 100644 --- a/packages/runtime/src/apply-patch-profile.ts +++ b/packages/runtime/src/apply-patch-profile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ApplyPatchProtocol } from '@maka/core/llm-connections'; import { parseCodexV4aPatch } from './codex-v4a-patch.js'; import type { ApplyPatchOperation } from './filesystem-executor.js'; diff --git a/packages/runtime/src/archive-read-tool.ts b/packages/runtime/src/archive-read-tool.ts index 9df93aaeb7..a8d313c02e 100644 --- a/packages/runtime/src/archive-read-tool.ts +++ b/packages/runtime/src/archive-read-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { jsonSchema, zodSchema } from 'ai'; import { z } from 'zod'; import type { MakaTool } from './tool-runtime.js'; diff --git a/packages/runtime/src/ask-user-question-tool.ts b/packages/runtime/src/ask-user-question-tool.ts index 2af8a11f08..3400ee785b 100644 --- a/packages/runtime/src/ask-user-question-tool.ts +++ b/packages/runtime/src/ask-user-question-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import type { UserQuestion, UserQuestionResult } from '@maka/core/user-question'; diff --git a/packages/runtime/src/async-queue.ts b/packages/runtime/src/async-queue.ts index 9a46308dc5..1928aedc57 100644 --- a/packages/runtime/src/async-queue.ts +++ b/packages/runtime/src/async-queue.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * AsyncEventQueue — single-producer, single-consumer FIFO with async iteration. * diff --git a/packages/runtime/src/await-registry.ts b/packages/runtime/src/await-registry.ts index 0a42e9d3b8..6884678ffe 100644 --- a/packages/runtime/src/await-registry.ts +++ b/packages/runtime/src/await-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + interface ParkedRequest { metadata: TMetadata; resolve(value: TValue): void; diff --git a/packages/runtime/src/bash-model-output.ts b/packages/runtime/src/bash-model-output.ts index 741b848226..054f6ed64e 100644 --- a/packages/runtime/src/bash-model-output.ts +++ b/packages/runtime/src/bash-model-output.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultOutput } from './model-protocol.js'; import { toolResultOutput } from './tool-result-output.js'; diff --git a/packages/runtime/src/bash-tail-buffer.ts b/packages/runtime/src/bash-tail-buffer.ts index 69ae9ff1a5..bfe5b98522 100644 --- a/packages/runtime/src/bash-tail-buffer.ts +++ b/packages/runtime/src/bash-tail-buffer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/bash-tail-buffer.ts // // Memory-bounded tail accumulator for streaming shell output. A runaway command diff --git a/packages/runtime/src/bots/__tests__/base-adapter.test.ts b/packages/runtime/src/bots/__tests__/base-adapter.test.ts index bead569965..b2a4afb9b6 100644 --- a/packages/runtime/src/bots/__tests__/base-adapter.test.ts +++ b/packages/runtime/src/bots/__tests__/base-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createDefaultBotChannel } from '@maka/core/settings'; diff --git a/packages/runtime/src/bots/__tests__/bot-registry.test.ts b/packages/runtime/src/bots/__tests__/bot-registry.test.ts index 596364e401..7f41d1841c 100644 --- a/packages/runtime/src/bots/__tests__/bot-registry.test.ts +++ b/packages/runtime/src/bots/__tests__/bot-registry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createDefaultBotChannel } from '@maka/core/settings'; diff --git a/packages/runtime/src/bots/__tests__/bot-user-allowlist.test.ts b/packages/runtime/src/bots/__tests__/bot-user-allowlist.test.ts index 62b4ef317f..1f6cc8d2cc 100644 --- a/packages/runtime/src/bots/__tests__/bot-user-allowlist.test.ts +++ b/packages/runtime/src/bots/__tests__/bot-user-allowlist.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/dingtalk-bridge.test.ts b/packages/runtime/src/bots/__tests__/dingtalk-bridge.test.ts index a420608d5e..5f2779e1d6 100644 --- a/packages/runtime/src/bots/__tests__/dingtalk-bridge.test.ts +++ b/packages/runtime/src/bots/__tests__/dingtalk-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/discord-bridge.test.ts b/packages/runtime/src/bots/__tests__/discord-bridge.test.ts index 26f53e5696..d7579ef3f1 100644 --- a/packages/runtime/src/bots/__tests__/discord-bridge.test.ts +++ b/packages/runtime/src/bots/__tests__/discord-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { createDefaultBotChannel } from '@maka/core/settings'; diff --git a/packages/runtime/src/bots/__tests__/gateway-bridge-base.test.ts b/packages/runtime/src/bots/__tests__/gateway-bridge-base.test.ts index 0a31f335f6..0f2cbb252c 100644 --- a/packages/runtime/src/bots/__tests__/gateway-bridge-base.test.ts +++ b/packages/runtime/src/bots/__tests__/gateway-bridge-base.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { WebSocket } from 'undici'; diff --git a/packages/runtime/src/bots/__tests__/im-channel-mapping.test.ts b/packages/runtime/src/bots/__tests__/im-channel-mapping.test.ts index c30316f601..f03adfe7f7 100644 --- a/packages/runtime/src/bots/__tests__/im-channel-mapping.test.ts +++ b/packages/runtime/src/bots/__tests__/im-channel-mapping.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { NormalizedMessage } from '@larksuiteoapi/node-sdk'; diff --git a/packages/runtime/src/bots/__tests__/proxied-fetch.test.ts b/packages/runtime/src/bots/__tests__/proxied-fetch.test.ts index 8bf04e9506..6f434e186e 100644 --- a/packages/runtime/src/bots/__tests__/proxied-fetch.test.ts +++ b/packages/runtime/src/bots/__tests__/proxied-fetch.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import { getEventListeners } from 'node:events'; diff --git a/packages/runtime/src/bots/__tests__/qq-bridge.test.ts b/packages/runtime/src/bots/__tests__/qq-bridge.test.ts index 9a9e735dc4..42ca06d8ed 100644 --- a/packages/runtime/src/bots/__tests__/qq-bridge.test.ts +++ b/packages/runtime/src/bots/__tests__/qq-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/slack-bridge.test.ts b/packages/runtime/src/bots/__tests__/slack-bridge.test.ts index 141e94b2c5..fa0ba1d557 100644 --- a/packages/runtime/src/bots/__tests__/slack-bridge.test.ts +++ b/packages/runtime/src/bots/__tests__/slack-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { slackMessageToEvent } from '../slack-bridge.js'; diff --git a/packages/runtime/src/bots/__tests__/telegram-ratelimit-retry.test.ts b/packages/runtime/src/bots/__tests__/telegram-ratelimit-retry.test.ts index f9b6e1f4b3..b9c5e2809a 100644 --- a/packages/runtime/src/bots/__tests__/telegram-ratelimit-retry.test.ts +++ b/packages/runtime/src/bots/__tests__/telegram-ratelimit-retry.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/telegram-reply-stream.test.ts b/packages/runtime/src/bots/__tests__/telegram-reply-stream.test.ts index 87fee3ff87..882bf4dad1 100644 --- a/packages/runtime/src/bots/__tests__/telegram-reply-stream.test.ts +++ b/packages/runtime/src/bots/__tests__/telegram-reply-stream.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { createDefaultBotChannel } from '@maka/core/settings'; diff --git a/packages/runtime/src/bots/__tests__/telegram-reply-to.test.ts b/packages/runtime/src/bots/__tests__/telegram-reply-to.test.ts index 44922c9c24..70b42e60a5 100644 --- a/packages/runtime/src/bots/__tests__/telegram-reply-to.test.ts +++ b/packages/runtime/src/bots/__tests__/telegram-reply-to.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/telegram-utf16.test.ts b/packages/runtime/src/bots/__tests__/telegram-utf16.test.ts index 381c8290e0..4d8b23240c 100644 --- a/packages/runtime/src/bots/__tests__/telegram-utf16.test.ts +++ b/packages/runtime/src/bots/__tests__/telegram-utf16.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; diff --git a/packages/runtime/src/bots/__tests__/wechat-bridge.test.ts b/packages/runtime/src/bots/__tests__/wechat-bridge.test.ts index 4aed273a8d..ee59eea286 100644 --- a/packages/runtime/src/bots/__tests__/wechat-bridge.test.ts +++ b/packages/runtime/src/bots/__tests__/wechat-bridge.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer } from 'node:http'; import { describe, test } from 'node:test'; diff --git a/packages/runtime/src/bots/base-adapter.ts b/packages/runtime/src/bots/base-adapter.ts index 225bef2f84..42694f0d98 100644 --- a/packages/runtime/src/bots/base-adapter.ts +++ b/packages/runtime/src/bots/base-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { EventEmitter } from 'node:events'; import { hasBotChannelCredentials, type BotChannelSettings } from '@maka/core/bot-chat-settings'; import type { BotBridge, BotIncomingMessage, BotPlatform, BotStatus } from './types.js'; diff --git a/packages/runtime/src/bots/bot-registry.ts b/packages/runtime/src/bots/bot-registry.ts index 2db4dab42f..5c2dc1d764 100644 --- a/packages/runtime/src/bots/bot-registry.ts +++ b/packages/runtime/src/bots/bot-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { EventEmitter } from 'node:events'; import { type BotChannelSettings, diff --git a/packages/runtime/src/bots/bot-test.ts b/packages/runtime/src/bots/bot-test.ts index 200207b62c..f3b5d2e867 100644 --- a/packages/runtime/src/bots/bot-test.ts +++ b/packages/runtime/src/bots/bot-test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { botDisplayLabel } from '@maka/core/bot-events'; import { type BotChannelSettings, type BotProvider } from '@maka/core/bot-chat-settings'; import { generalizedErrorMessage } from '@maka/core/redaction'; diff --git a/packages/runtime/src/bots/dingtalk-bridge.ts b/packages/runtime/src/bots/dingtalk-bridge.ts index e319d6835f..2a5ebe5646 100644 --- a/packages/runtime/src/bots/dingtalk-bridge.ts +++ b/packages/runtime/src/bots/dingtalk-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BOT-DINGTALK-OPERATIONAL-0 (external bot research: DingTalk Stream): * full DingTalk (钉钉) bot lifecycle — access_token cache, Stream diff --git a/packages/runtime/src/bots/discord-bridge.ts b/packages/runtime/src/bots/discord-bridge.ts index 9dcd2ce694..191e88bd48 100644 --- a/packages/runtime/src/bots/discord-bridge.ts +++ b/packages/runtime/src/bots/discord-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BOT-DISCORD-OPERATIONAL-0 (external bot research: Discord Gateway): * full Discord bot lifecycle — gateway WebSocket, identify, heartbeat, diff --git a/packages/runtime/src/bots/feishu-bridge.ts b/packages/runtime/src/bots/feishu-bridge.ts index d88457ecfc..ce69e9646f 100644 --- a/packages/runtime/src/bots/feishu-bridge.ts +++ b/packages/runtime/src/bots/feishu-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Domain, LoggerLevel, diff --git a/packages/runtime/src/bots/gateway-bridge-base.ts b/packages/runtime/src/bots/gateway-bridge-base.ts index 393549f00e..f544973659 100644 --- a/packages/runtime/src/bots/gateway-bridge-base.ts +++ b/packages/runtime/src/bots/gateway-bridge-base.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Discord/QQ-shaped gateway protocol on top of {@link WsBridgeBase}: * opcode dispatch (HELLO / HEARTBEAT / DISPATCH / RECONNECT / diff --git a/packages/runtime/src/bots/index.ts b/packages/runtime/src/bots/index.ts index 2a04a398f0..1a4d0fd6c9 100644 --- a/packages/runtime/src/bots/index.ts +++ b/packages/runtime/src/bots/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { BaseBotAdapter, botReadinessFromSettings, diff --git a/packages/runtime/src/bots/proxied-fetch.ts b/packages/runtime/src/bots/proxied-fetch.ts index 8548978318..0377e9eb9d 100644 --- a/packages/runtime/src/bots/proxied-fetch.ts +++ b/packages/runtime/src/bots/proxied-fetch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { fetch, type Dispatcher, type RequestInit as UndiciRequestInit } from 'undici'; import { matchesBypassList } from '../network/bypass-matcher.js'; import { buildProxyDispatcher } from '../network/proxy-dispatcher.js'; diff --git a/packages/runtime/src/bots/qq-bridge.ts b/packages/runtime/src/bots/qq-bridge.ts index e6f6148fd1..76a6ea6d87 100644 --- a/packages/runtime/src/bots/qq-bridge.ts +++ b/packages/runtime/src/bots/qq-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BOT-QQ-OPERATIONAL-0 (external bot research: QQ 官方机器人 Gateway): * full QQ Channel Bot lifecycle — access_token cache, Gateway WebSocket diff --git a/packages/runtime/src/bots/slack-bridge.ts b/packages/runtime/src/bots/slack-bridge.ts index f0008b2e18..9bc4b2bfd6 100644 --- a/packages/runtime/src/bots/slack-bridge.ts +++ b/packages/runtime/src/bots/slack-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotChannelSettings } from '@maka/core/bot-chat-settings'; import { generalizedErrorMessage } from '@maka/core/redaction'; import { SocketModeClient } from '@slack/socket-mode'; diff --git a/packages/runtime/src/bots/telegram-bridge.ts b/packages/runtime/src/bots/telegram-bridge.ts index 500cf13ddf..b4d7cc4557 100644 --- a/packages/runtime/src/bots/telegram-bridge.ts +++ b/packages/runtime/src/bots/telegram-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Telegram bot bridge — HTTP long-poll (`getUpdates`) receive loop, * REST send with UTF-16 chunk splitting, reply threading, typing diff --git a/packages/runtime/src/bots/types.ts b/packages/runtime/src/bots/types.ts index 6bdd70978a..4e9d3719a9 100644 --- a/packages/runtime/src/bots/types.ts +++ b/packages/runtime/src/bots/types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider, BotReadinessState } from '@maka/core/bot-chat-settings'; import type { BotMessageEvent, BotPlatform } from '@maka/core/bot-events'; diff --git a/packages/runtime/src/bots/wechat-bridge.ts b/packages/runtime/src/bots/wechat-bridge.ts index 048ebac220..642fbbf17f 100644 --- a/packages/runtime/src/bots/wechat-bridge.ts +++ b/packages/runtime/src/bots/wechat-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotChannelSettings } from '@maka/core/bot-chat-settings'; import { generalizedErrorMessage } from '@maka/core/redaction'; import { randomBytes, randomUUID } from 'node:crypto'; diff --git a/packages/runtime/src/bots/wecom-bridge.ts b/packages/runtime/src/bots/wecom-bridge.ts index 309dc951c1..32f7872c9d 100644 --- a/packages/runtime/src/bots/wecom-bridge.ts +++ b/packages/runtime/src/bots/wecom-bridge.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WSClient, type TextMessage, type WsFrame } from '@wecom/aibot-node-sdk'; import type { BotChannelSettings } from '@maka/core/bot-chat-settings'; import { generalizedErrorMessage } from '@maka/core/redaction'; diff --git a/packages/runtime/src/bots/ws-bridge-base.ts b/packages/runtime/src/bots/ws-bridge-base.ts index f130d2c572..07aea7cf8a 100644 --- a/packages/runtime/src/bots/ws-bridge-base.ts +++ b/packages/runtime/src/bots/ws-bridge-base.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared transport lifecycle for outbound-WebSocket bot bridges * (Discord / QQ gateway, DingTalk Stream): connect, close policy, diff --git a/packages/runtime/src/builtin-tools.ts b/packages/runtime/src/builtin-tools.ts index e57b6d53f3..3a71a0ab35 100644 --- a/packages/runtime/src/builtin-tools.ts +++ b/packages/runtime/src/builtin-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/builtin-tools.ts // Baseline tool set. ToolRuntime settlement decorates each tool with durable // execution facts, while the active session ExecutionBoundary constrains local diff --git a/packages/runtime/src/child-agent-progress.ts b/packages/runtime/src/child-agent-progress.ts index e90aaaf7d6..0641e94bc2 100644 --- a/packages/runtime/src/child-agent-progress.ts +++ b/packages/runtime/src/child-agent-progress.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionEvent } from '@maka/core/events'; import type { MakaToolContext } from './tool-runtime.js'; diff --git a/packages/runtime/src/child-fd-input.ts b/packages/runtime/src/child-fd-input.ts index 36c254ce88..b9f7792898 100644 --- a/packages/runtime/src/child-fd-input.ts +++ b/packages/runtime/src/child-fd-input.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChildProcess } from 'node:child_process'; import { closeSync } from 'node:fs'; import type { Writable } from 'node:stream'; diff --git a/packages/runtime/src/child-process-lifecycle.ts b/packages/runtime/src/child-process-lifecycle.ts index 8cd2c6a20c..9ce9037eff 100644 --- a/packages/runtime/src/child-process-lifecycle.ts +++ b/packages/runtime/src/child-process-lifecycle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChildProcess } from 'node:child_process'; import type { Readable } from 'node:stream'; diff --git a/packages/runtime/src/code-mode.ts b/packages/runtime/src/code-mode.ts index effc4eab78..ebaeb7d2d0 100644 --- a/packages/runtime/src/code-mode.ts +++ b/packages/runtime/src/code-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/code-mode.ts // Integration glue over `@ai-sdk/code-mode`: the product execution policy, the // result shapes the backend publishes, and the adapter that bridges sandbox diff --git a/packages/runtime/src/codex-oauth-enrollment.ts b/packages/runtime/src/codex-oauth-enrollment.ts index f42363bbaa..19a1953de8 100644 --- a/packages/runtime/src/codex-oauth-enrollment.ts +++ b/packages/runtime/src/codex-oauth-enrollment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OAuthSubscriptionTokens } from './subscription-credentials.js'; import { decodeOAuthInitialTokenPayload, diff --git a/packages/runtime/src/codex-v4a-patch.ts b/packages/runtime/src/codex-v4a-patch.ts index b32b677527..0e414956f2 100644 --- a/packages/runtime/src/codex-v4a-patch.ts +++ b/packages/runtime/src/codex-v4a-patch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ApplyPatchOperation } from './filesystem-executor.js'; export class CodexV4aPatchError extends Error { diff --git a/packages/runtime/src/compaction-boundary.ts b/packages/runtime/src/compaction-boundary.ts index 1f45c10887..d3bad2b3ad 100644 --- a/packages/runtime/src/compaction-boundary.ts +++ b/packages/runtime/src/compaction-boundary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CompactionDecisionDiagnostic, ContextBudgetDiagnostic, diff --git a/packages/runtime/src/completion-latch.ts b/packages/runtime/src/completion-latch.ts index d309e3b8f9..0f1552ccdd 100644 --- a/packages/runtime/src/completion-latch.ts +++ b/packages/runtime/src/completion-latch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + type CompletionOutcome = | { status: 'fulfilled'; value: T } | { status: 'rejected'; error: unknown }; diff --git a/packages/runtime/src/computer-use-codec.ts b/packages/runtime/src/computer-use-codec.ts index e712e28adf..4a6dd70af2 100644 --- a/packages/runtime/src/computer-use-codec.ts +++ b/packages/runtime/src/computer-use-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { type CuAction, type CuPoint } from '@maka/core/computer-use'; import type { CuDispatchEvidence, CuRunResult, CuSemanticAction } from './computer-use-types.js'; diff --git a/packages/runtime/src/computer-use-observation-text.ts b/packages/runtime/src/computer-use-observation-text.ts index f379a82cb2..fe09216438 100644 --- a/packages/runtime/src/computer-use-observation-text.ts +++ b/packages/runtime/src/computer-use-observation-text.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // How an observation is written for the model. // // The previous rendering was `JSON.stringify` over the element array, which diff --git a/packages/runtime/src/computer-use-tools.ts b/packages/runtime/src/computer-use-tools.ts index ab059ce55a..576829ee84 100644 --- a/packages/runtime/src/computer-use-tools.ts +++ b/packages/runtime/src/computer-use-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // PR-RUNTIME-CU — the model-facing `computer` tool + its dispatch seam. // // This is platform-agnostic: the actual host input/capture is done by an diff --git a/packages/runtime/src/computer-use-types.ts b/packages/runtime/src/computer-use-types.ts index 39fccdacbd..48b0104b5e 100644 --- a/packages/runtime/src/computer-use-types.ts +++ b/packages/runtime/src/computer-use-types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ComputerUseDispatchTier, ComputerUseDisplayIdentity, diff --git a/packages/runtime/src/configured-subagent-catalog.ts b/packages/runtime/src/configured-subagent-catalog.ts index ab4d3d22a3..484e5981a5 100644 --- a/packages/runtime/src/configured-subagent-catalog.ts +++ b/packages/runtime/src/configured-subagent-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { connectionEnabledModelIds, type ProviderType } from '@maka/core/llm-connections'; import { isRetiredProvider } from '@maka/core/provider-registry'; import { type SubagentPreset } from '@maka/core/subagent-settings'; diff --git a/packages/runtime/src/connection-effect-fetch.ts b/packages/runtime/src/connection-effect-fetch.ts index 6301b39abb..c1d9a8787e 100644 --- a/packages/runtime/src/connection-effect-fetch.ts +++ b/packages/runtime/src/connection-effect-fetch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { proxiedFetch, type ProxiedFetchInit } from './bots/proxied-fetch.js'; import { ConnectionEffectInvalidResponseError } from './connection-effect-outcome.js'; diff --git a/packages/runtime/src/connection-effect-outcome.ts b/packages/runtime/src/connection-effect-outcome.ts index 5bbe8678c2..c578d20b4f 100644 --- a/packages/runtime/src/connection-effect-outcome.ts +++ b/packages/runtime/src/connection-effect-outcome.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelDiscoverySource, ModelInfo, ProviderType } from '@maka/core/llm-connections'; export interface ConnectionEffectConnection { diff --git a/packages/runtime/src/context-budget-helpers.ts b/packages/runtime/src/context-budget-helpers.ts index 2e3392f82f..9baefa536a 100644 --- a/packages/runtime/src/context-budget-helpers.ts +++ b/packages/runtime/src/context-budget-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/context-budget-policy.ts b/packages/runtime/src/context-budget-policy.ts index 0ca6af5cd2..3d5ecb7714 100644 --- a/packages/runtime/src/context-budget-policy.ts +++ b/packages/runtime/src/context-budget-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import { lookupModelMetadata } from '@maka/core/model-metadata'; import { relayModelProfile } from '@maka/core/model-thinking'; diff --git a/packages/runtime/src/context-budget.ts b/packages/runtime/src/context-budget.ts index f9a7e7f2a8..9a2df75c60 100644 --- a/packages/runtime/src/context-budget.ts +++ b/packages/runtime/src/context-budget.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { estimateTokens, estimateRuntimeEventsTokens, diff --git a/packages/runtime/src/context-diagnostics.ts b/packages/runtime/src/context-diagnostics.ts index 562672274a..a8d7cfaf0c 100644 --- a/packages/runtime/src/context-diagnostics.ts +++ b/packages/runtime/src/context-diagnostics.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isSessionInlineRun, supersedesLatestContext, diff --git a/packages/runtime/src/context-source-ref.ts b/packages/runtime/src/context-source-ref.ts index db4e3489c7..547499a6b3 100644 --- a/packages/runtime/src/context-source-ref.ts +++ b/packages/runtime/src/context-source-ref.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared provenance contract for context-compaction source references. * diff --git a/packages/runtime/src/continuation-replay.ts b/packages/runtime/src/continuation-replay.ts index e46a5828ce..bbfac86c2e 100644 --- a/packages/runtime/src/continuation-replay.ts +++ b/packages/runtime/src/continuation-replay.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import { stableJsonStringify } from '@maka/core/tool-args-identity'; diff --git a/packages/runtime/src/continuation-safety.ts b/packages/runtime/src/continuation-safety.ts index b4d65a2869..1e5b06934c 100644 --- a/packages/runtime/src/continuation-safety.ts +++ b/packages/runtime/src/continuation-safety.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeContinuationSafetyObservation } from './runtime-resume.js'; export interface ResolvedWorkspaceIdentity { diff --git a/packages/runtime/src/conversation-copy.ts b/packages/runtime/src/conversation-copy.ts index 067381dff8..b750194cfa 100644 --- a/packages/runtime/src/conversation-copy.ts +++ b/packages/runtime/src/conversation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunEvent, AgentRunHeader, diff --git a/packages/runtime/src/cua-frame-state.ts b/packages/runtime/src/cua-frame-state.ts index d42f4d5914..7dbb65e90c 100644 --- a/packages/runtime/src/cua-frame-state.ts +++ b/packages/runtime/src/cua-frame-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { ComputerUseBoundAction, diff --git a/packages/runtime/src/cua-session-state.ts b/packages/runtime/src/cua-session-state.ts index ceff043834..46e3a78e6f 100644 --- a/packages/runtime/src/cua-session-state.ts +++ b/packages/runtime/src/cua-session-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const CUA_SESSION_STATUSES = [ 'unobserved', 'active', diff --git a/packages/runtime/src/deep-research-tools.ts b/packages/runtime/src/deep-research-tools.ts index 350e0e45d7..cc35cd78f1 100644 --- a/packages/runtime/src/deep-research-tools.ts +++ b/packages/runtime/src/deep-research-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { z } from 'zod'; import { diff --git a/packages/runtime/src/delivery-ack-queue.ts b/packages/runtime/src/delivery-ack-queue.ts index 73f7bc3d8c..56a1b3db7c 100644 --- a/packages/runtime/src/delivery-ack-queue.ts +++ b/packages/runtime/src/delivery-ack-queue.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * DeliveryAckQueue — single-consumer FIFO with per-entry delivery acknowledgement. * diff --git a/packages/runtime/src/execution-inspect.ts b/packages/runtime/src/execution-inspect.ts index fe87d97d91..a2a9ad6460 100644 --- a/packages/runtime/src/execution-inspect.ts +++ b/packages/runtime/src/execution-inspect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { SessionHeader } from '@maka/core/session'; diff --git a/packages/runtime/src/explore-agent-tool.ts b/packages/runtime/src/explore-agent-tool.ts index 7cf2211f3b..bf5717d489 100644 --- a/packages/runtime/src/explore-agent-tool.ts +++ b/packages/runtime/src/explore-agent-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lstat, readdir, readFile, realpath, stat } from 'node:fs/promises'; import { basename, extname, join, resolve } from 'node:path'; import { z } from 'zod'; diff --git a/packages/runtime/src/file-tool-model-output.ts b/packages/runtime/src/file-tool-model-output.ts index 4fde73893d..64890fb915 100644 --- a/packages/runtime/src/file-tool-model-output.ts +++ b/packages/runtime/src/file-tool-model-output.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { countDiffLineStats } from '@maka/core/unified-diff'; import type { ToolResultOutput } from './model-protocol.js'; import { toolResultOutput } from './tool-result-output.js'; diff --git a/packages/runtime/src/file-write-lock.ts b/packages/runtime/src/file-write-lock.ts index e023d26f6a..799d844017 100644 --- a/packages/runtime/src/file-write-lock.ts +++ b/packages/runtime/src/file-write-lock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/file-write-lock.ts // Serialize file-mutating tools (Write/Edit) per file. The AI SDK runs a single // step's tool calls concurrently, so two edits to one file would race on the diff --git a/packages/runtime/src/filesystem-executor.ts b/packages/runtime/src/filesystem-executor.ts index a4769dea75..2950ab0734 100644 --- a/packages/runtime/src/filesystem-executor.ts +++ b/packages/runtime/src/filesystem-executor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/filesystem-executor.ts // The single authority for where the built-in file tools may reach. // diff --git a/packages/runtime/src/filesystem-worker/client.ts b/packages/runtime/src/filesystem-worker/client.ts index 14db96891d..5007f2e363 100644 --- a/packages/runtime/src/filesystem-worker/client.ts +++ b/packages/runtime/src/filesystem-worker/client.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { lstat, realpath } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/filesystem-worker/index.ts b/packages/runtime/src/filesystem-worker/index.ts index 2365ae269f..8204e2683e 100644 --- a/packages/runtime/src/filesystem-worker/index.ts +++ b/packages/runtime/src/filesystem-worker/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { FilesystemWorkerClient, FilesystemWorkerClientError, diff --git a/packages/runtime/src/filesystem-worker/launch-spec.ts b/packages/runtime/src/filesystem-worker/launch-spec.ts index ad4cb3dc7b..e64383ca92 100644 --- a/packages/runtime/src/filesystem-worker/launch-spec.ts +++ b/packages/runtime/src/filesystem-worker/launch-spec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { constants } from 'node:fs'; import { access, realpath } from 'node:fs/promises'; import { delimiter, dirname, isAbsolute, join, resolve } from 'node:path'; diff --git a/packages/runtime/src/filesystem-worker/macos-executable-dependencies.ts b/packages/runtime/src/filesystem-worker/macos-executable-dependencies.ts index 63012d0195..6feca8eef9 100644 --- a/packages/runtime/src/filesystem-worker/macos-executable-dependencies.ts +++ b/packages/runtime/src/filesystem-worker/macos-executable-dependencies.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { stat, realpath } from 'node:fs/promises'; import { dirname, isAbsolute, normalize, resolve } from 'node:path'; diff --git a/packages/runtime/src/filesystem-worker/operations.ts b/packages/runtime/src/filesystem-worker/operations.ts index 2bf5c56255..84d43f8574 100644 --- a/packages/runtime/src/filesystem-worker/operations.ts +++ b/packages/runtime/src/filesystem-worker/operations.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { promises as fs } from 'node:fs'; import { glob as nodeGlob } from 'node:fs/promises'; diff --git a/packages/runtime/src/filesystem-worker/process-runner.ts b/packages/runtime/src/filesystem-worker/process-runner.ts index 63a8eeb79b..7a196d622c 100644 --- a/packages/runtime/src/filesystem-worker/process-runner.ts +++ b/packages/runtime/src/filesystem-worker/process-runner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn, type ChildProcessByStdio } from 'node:child_process'; import type { Readable, Writable } from 'node:stream'; diff --git a/packages/runtime/src/filesystem-worker/protocol.ts b/packages/runtime/src/filesystem-worker/protocol.ts index e42460f346..c78b4d8fb8 100644 --- a/packages/runtime/src/filesystem-worker/protocol.ts +++ b/packages/runtime/src/filesystem-worker/protocol.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { validateSandboxBoundaryExpansion } from '@maka/core/sandbox-boundary'; diff --git a/packages/runtime/src/filesystem-worker/resource-resolver.ts b/packages/runtime/src/filesystem-worker/resource-resolver.ts index dcff286cf5..57bad5e499 100644 --- a/packages/runtime/src/filesystem-worker/resource-resolver.ts +++ b/packages/runtime/src/filesystem-worker/resource-resolver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { realpath, stat } from 'node:fs/promises'; import { dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/packages/runtime/src/filesystem-worker/sandbox-paths.ts b/packages/runtime/src/filesystem-worker/sandbox-paths.ts index 0e6977adf1..715e80b137 100644 --- a/packages/runtime/src/filesystem-worker/sandbox-paths.ts +++ b/packages/runtime/src/filesystem-worker/sandbox-paths.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { promises as fs } from 'node:fs'; import { basename, dirname, resolve } from 'node:path'; diff --git a/packages/runtime/src/filesystem-worker/worker-entry.ts b/packages/runtime/src/filesystem-worker/worker-entry.ts index c20c88a0e9..aa4f7b2f67 100644 --- a/packages/runtime/src/filesystem-worker/worker-entry.ts +++ b/packages/runtime/src/filesystem-worker/worker-entry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stdin, stdout } from 'node:process'; import { executeFilesystemWorkerRequest } from './operations.js'; diff --git a/packages/runtime/src/goal-continuation.ts b/packages/runtime/src/goal-continuation.ts index 6c20d1fd61..9abe61dfdc 100644 --- a/packages/runtime/src/goal-continuation.ts +++ b/packages/runtime/src/goal-continuation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Session-scoped Goal continuation coordinator. * diff --git a/packages/runtime/src/goal-evaluator.ts b/packages/runtime/src/goal-evaluator.ts index bbd2fd2fbd..bfce6faa06 100644 --- a/packages/runtime/src/goal-evaluator.ts +++ b/packages/runtime/src/goal-evaluator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Goal evaluator — CC-style external judge. Runs after each turn to decide * whether the goal is met, impossible, making progress, or waiting on an diff --git a/packages/runtime/src/goal-session-close-fence.ts b/packages/runtime/src/goal-session-close-fence.ts index 4630b87be4..75ddd7b269 100644 --- a/packages/runtime/src/goal-session-close-fence.ts +++ b/packages/runtime/src/goal-session-close-fence.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type GoalSessionCloseKind = 'archive' | 'remove'; interface GoalSessionCloseState { diff --git a/packages/runtime/src/goal-state.ts b/packages/runtime/src/goal-state.ts index c0d702a90c..097f139b57 100644 --- a/packages/runtime/src/goal-state.ts +++ b/packages/runtime/src/goal-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Goal execution state for one Runtime Host epoch. * diff --git a/packages/runtime/src/goal-task-gate-policy.ts b/packages/runtime/src/goal-task-gate-policy.ts index f24c9aafce..6915271111 100644 --- a/packages/runtime/src/goal-task-gate-policy.ts +++ b/packages/runtime/src/goal-task-gate-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type GoalTaskGateDecision = | 'evaluator_terminal' | 'goal_stopped' diff --git a/packages/runtime/src/goal-tools.ts b/packages/runtime/src/goal-tools.ts index 5b90238a90..c5185f9138 100644 --- a/packages/runtime/src/goal-tools.ts +++ b/packages/runtime/src/goal-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Goal tools — GoalSet / GoalClear / GoalStatus / GoalPause / GoalResume. * diff --git a/packages/runtime/src/goal-turn-lifecycle.ts b/packages/runtime/src/goal-turn-lifecycle.ts index c992e7f3ae..6e6c82ffaa 100644 --- a/packages/runtime/src/goal-turn-lifecycle.ts +++ b/packages/runtime/src/goal-turn-lifecycle.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { failureClassFromCompleteStopReason, type SessionEvent } from '@maka/core/events'; export type GoalTurnOutcome = diff --git a/packages/runtime/src/graph-mode.ts b/packages/runtime/src/graph-mode.ts index e2426529b9..05e24d938b 100644 --- a/packages/runtime/src/graph-mode.ts +++ b/packages/runtime/src/graph-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function renderGraphModePrompt(): string { return [ '', diff --git a/packages/runtime/src/history-compact-artifacts.ts b/packages/runtime/src/history-compact-artifacts.ts index e59084a435..1b684c3a58 100644 --- a/packages/runtime/src/history-compact-artifacts.ts +++ b/packages/runtime/src/history-compact-artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { createHash, randomUUID } from 'node:crypto'; import type { ArtifactRecord, ArtifactSource } from '@maka/core/artifacts'; diff --git a/packages/runtime/src/history-compact-checkpoint-coordinator.ts b/packages/runtime/src/history-compact-checkpoint-coordinator.ts index 0cd2150d5a..684e71c7b5 100644 --- a/packages/runtime/src/history-compact-checkpoint-coordinator.ts +++ b/packages/runtime/src/history-compact-checkpoint-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeEventStore } from '@maka/core/runtime-event-store'; diff --git a/packages/runtime/src/history-compact-checkpoint.ts b/packages/runtime/src/history-compact-checkpoint.ts index c57558f69a..d47463bfb3 100644 --- a/packages/runtime/src/history-compact-checkpoint.ts +++ b/packages/runtime/src/history-compact-checkpoint.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { Buffer } from 'node:buffer'; import type { ExecutionLogCoverage } from '@maka/core/execution-log-coverage'; diff --git a/packages/runtime/src/history-compact-error.ts b/packages/runtime/src/history-compact-error.ts index b809f94959..7d48caec0f 100644 --- a/packages/runtime/src/history-compact-error.ts +++ b/packages/runtime/src/history-compact-error.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type HistoryCompactSummarizerFailureReason = | 'output_length' | 'input_too_large' diff --git a/packages/runtime/src/history-compact-input-fit.ts b/packages/runtime/src/history-compact-input-fit.ts index b2b24724c7..638760b2be 100644 --- a/packages/runtime/src/history-compact-input-fit.ts +++ b/packages/runtime/src/history-compact-input-fit.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { finitePositive, stableJsonLength } from './context-budget-helpers.js'; import { HistoryCompactSummarizerError } from './history-compact-error.js'; import type { ModelMessage } from './model-protocol.js'; diff --git a/packages/runtime/src/history-compact-ledger.ts b/packages/runtime/src/history-compact-ledger.ts index 05fa5dc82f..6348877790 100644 --- a/packages/runtime/src/history-compact-ledger.ts +++ b/packages/runtime/src/history-compact-ledger.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunEvent, AgentRunStore } from '@maka/core/agent-run'; import { canReplaceHistoryCompactCheckpoint, diff --git a/packages/runtime/src/history-compact-summarizer.ts b/packages/runtime/src/history-compact-summarizer.ts index b4d70192b3..9790420f14 100644 --- a/packages/runtime/src/history-compact-summarizer.ts +++ b/packages/runtime/src/history-compact-summarizer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { rawFinishReasonString, type ModelMessage, type ToolCallPart } from './model-protocol.js'; import { buildRuntimeEventModelReplayPlan } from './model-history.js'; import { diff --git a/packages/runtime/src/history-compact-summary-validation.ts b/packages/runtime/src/history-compact-summary-validation.ts index 16f32f2b37..60de5fc32f 100644 --- a/packages/runtime/src/history-compact-summary-validation.ts +++ b/packages/runtime/src/history-compact-summary-validation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import { estimateRuntimeEventsTokens, estimateTokens } from './context-budget-helpers.js'; diff --git a/packages/runtime/src/history-compact.ts b/packages/runtime/src/history-compact.ts index b7d0783b7b..4d4484870a 100644 --- a/packages/runtime/src/history-compact.ts +++ b/packages/runtime/src/history-compact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type HistoryCompactCheckpointReplayFit = | { fits: true; checkpointTokens: number; replayTokens: number } | { diff --git a/packages/runtime/src/http-response.ts b/packages/runtime/src/http-response.ts index 8aa3d388cc..16b8463fa9 100644 --- a/packages/runtime/src/http-response.ts +++ b/packages/runtime/src/http-response.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * A transport that rewrites a response body must not carry over the headers * that described the old one. `content-length` becomes a lie the moment the diff --git a/packages/runtime/src/image-file.ts b/packages/runtime/src/image-file.ts index 9cd0eb76e1..e87a04a4a6 100644 --- a/packages/runtime/src/image-file.ts +++ b/packages/runtime/src/image-file.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stat, readFile } from 'node:fs/promises'; import { extname } from 'node:path'; import { imageDimensionsFromData } from 'image-dimensions'; diff --git a/packages/runtime/src/interaction-authority.ts b/packages/runtime/src/interaction-authority.ts index 3e2f63f8bf..2f13d36ee9 100644 --- a/packages/runtime/src/interaction-authority.ts +++ b/packages/runtime/src/interaction-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import type { diff --git a/packages/runtime/src/invocation-context.ts b/packages/runtime/src/invocation-context.ts index bb664e399a..1dc8a9a996 100644 --- a/packages/runtime/src/invocation-context.ts +++ b/packages/runtime/src/invocation-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * InvocationContext — Runtime v2 invocation/run spine. * diff --git a/packages/runtime/src/latest-context-snapshot.ts b/packages/runtime/src/latest-context-snapshot.ts index db4e935b03..4e070bbb37 100644 --- a/packages/runtime/src/latest-context-snapshot.ts +++ b/packages/runtime/src/latest-context-snapshot.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { LATEST_CONTEXT_PROJECTION_TYPE, type AgentRunEvent, diff --git a/packages/runtime/src/local-web-fetch.ts b/packages/runtime/src/local-web-fetch.ts index 4a6f08e66d..02ee3bf0cb 100644 --- a/packages/runtime/src/local-web-fetch.ts +++ b/packages/runtime/src/local-web-fetch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Readability } from '@mozilla/readability'; import { parseHTML } from 'linkedom'; import TurndownService from 'turndown'; diff --git a/packages/runtime/src/managed-skill-sources.ts b/packages/runtime/src/managed-skill-sources.ts index f19a17ff55..dc005e882e 100644 --- a/packages/runtime/src/managed-skill-sources.ts +++ b/packages/runtime/src/managed-skill-sources.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { lstat, readdir, readFile, realpath } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/runtime/src/materializer.ts b/packages/runtime/src/materializer.ts index 4a0a8624cc..196b4af7d9 100644 --- a/packages/runtime/src/materializer.ts +++ b/packages/runtime/src/materializer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Materializer — converts durable messages into the view-model shape the UI * renders. Lives in `runtime` (not `storage`) because correlation is a semantic diff --git a/packages/runtime/src/mcp-tools.ts b/packages/runtime/src/mcp-tools.ts index d2047f2c00..75af88b6c3 100644 --- a/packages/runtime/src/mcp-tools.ts +++ b/packages/runtime/src/mcp-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { jsonSchema } from 'ai'; import type { McpCallResult, McpToolBinding, McpToolSnapshot } from '@maka/core/mcp'; diff --git a/packages/runtime/src/memory-extraction-evidence.ts b/packages/runtime/src/memory-extraction-evidence.ts index 6f7b39c981..aaafd20077 100644 --- a/packages/runtime/src/memory-extraction-evidence.ts +++ b/packages/runtime/src/memory-extraction-evidence.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { ModelMessage } from './model-protocol.js'; diff --git a/packages/runtime/src/memory-extraction-proposal.ts b/packages/runtime/src/memory-extraction-proposal.ts index 1a96749c4e..e24bedb2eb 100644 --- a/packages/runtime/src/memory-extraction-proposal.ts +++ b/packages/runtime/src/memory-extraction-proposal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MEMORY_ITEM_KINDS, MEMORY_KEY_TYPES, diff --git a/packages/runtime/src/memory-extraction.ts b/packages/runtime/src/memory-extraction.ts index bd4bf0d2c5..41e7652916 100644 --- a/packages/runtime/src/memory-extraction.ts +++ b/packages/runtime/src/memory-extraction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { CommitMemoryExtractionRequest, diff --git a/packages/runtime/src/message-authority.ts b/packages/runtime/src/message-authority.ts index 40bbe52a92..09cc562786 100644 --- a/packages/runtime/src/message-authority.ts +++ b/packages/runtime/src/message-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BackendStopMode, SteeringLease } from '@maka/core/backend-types'; import type { RootExecutionDescriptor } from '@maka/core/agent-run'; import type { MessageContent, SessionEvent } from '@maka/core/events'; diff --git a/packages/runtime/src/mid-turn-capacity-compact.ts b/packages/runtime/src/mid-turn-capacity-compact.ts index f950b24e0a..7d65e62708 100644 --- a/packages/runtime/src/mid-turn-capacity-compact.ts +++ b/packages/runtime/src/mid-turn-capacity-compact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import { estimateRuntimeEventsTokens } from './context-budget-helpers.js'; import { diff --git a/packages/runtime/src/model-adapter.ts b/packages/runtime/src/model-adapter.ts index c3a24291db..33fc8afbbe 100644 --- a/packages/runtime/src/model-adapter.ts +++ b/packages/runtime/src/model-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ErrorEvent, CompleteEvent } from '@maka/core/events'; import { openai } from '@ai-sdk/openai'; import { anthropic } from '@ai-sdk/anthropic'; diff --git a/packages/runtime/src/model-factory.ts b/packages/runtime/src/model-factory.ts index ecd876bf81..de357a539d 100644 --- a/packages/runtime/src/model-factory.ts +++ b/packages/runtime/src/model-factory.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createAnthropic } from '@ai-sdk/anthropic'; import { createCohere } from '@ai-sdk/cohere'; import { createGoogle } from '@ai-sdk/google'; diff --git a/packages/runtime/src/model-fetcher.ts b/packages/runtime/src/model-fetcher.ts index 4457be689e..3b4e478509 100644 --- a/packages/runtime/src/model-fetcher.ts +++ b/packages/runtime/src/model-fetcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, effectiveBaseUrl, diff --git a/packages/runtime/src/model-history.ts b/packages/runtime/src/model-history.ts index 8c6987d594..e4a978aa67 100644 --- a/packages/runtime/src/model-history.ts +++ b/packages/runtime/src/model-history.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Model history projection — build the model-visible message history from a * RuntimeEvent stream. diff --git a/packages/runtime/src/model-runtime.ts b/packages/runtime/src/model-runtime.ts index 5c0b19eeb9..a44ffaf805 100644 --- a/packages/runtime/src/model-runtime.ts +++ b/packages/runtime/src/model-runtime.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, effectiveBaseUrl, diff --git a/packages/runtime/src/native-web-search-tool.ts b/packages/runtime/src/native-web-search-tool.ts index b0dde574d6..143a288168 100644 --- a/packages/runtime/src/native-web-search-tool.ts +++ b/packages/runtime/src/native-web-search-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { resolveHostedWebSearchCapability } from '@maka/core/model-web-search'; import type { HostedWebSearchAdapter } from '@maka/core/model-web-search'; diff --git a/packages/runtime/src/network/__tests__/bypass-matcher.test.ts b/packages/runtime/src/network/__tests__/bypass-matcher.test.ts index 52587ab973..eb96f6f599 100644 --- a/packages/runtime/src/network/__tests__/bypass-matcher.test.ts +++ b/packages/runtime/src/network/__tests__/bypass-matcher.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../../test-helpers.js'; import { matchesBypassList } from '../bypass-matcher.js'; diff --git a/packages/runtime/src/network/__tests__/proxy-env.test.ts b/packages/runtime/src/network/__tests__/proxy-env.test.ts index 2eb2bf1889..53eac94b4f 100644 --- a/packages/runtime/src/network/__tests__/proxy-env.test.ts +++ b/packages/runtime/src/network/__tests__/proxy-env.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../../test-helpers.js'; import { PROXY_DEFAULTS } from '@maka/core/settings/network-settings'; diff --git a/packages/runtime/src/network/__tests__/proxy-parser.test.ts b/packages/runtime/src/network/__tests__/proxy-parser.test.ts index f335962531..32b6eec13c 100644 --- a/packages/runtime/src/network/__tests__/proxy-parser.test.ts +++ b/packages/runtime/src/network/__tests__/proxy-parser.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import { expect } from '../../test-helpers.js'; import { PROXY_DEFAULTS } from '@maka/core/settings/network-settings'; diff --git a/packages/runtime/src/network/__tests__/proxy-test.test.ts b/packages/runtime/src/network/__tests__/proxy-test.test.ts index 2e1d1c1a6d..31666d3f31 100644 --- a/packages/runtime/src/network/__tests__/proxy-test.test.ts +++ b/packages/runtime/src/network/__tests__/proxy-test.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, test } from 'node:test'; import assert from 'node:assert/strict'; import net from 'node:net'; diff --git a/packages/runtime/src/network/__tests__/scoped-fetch-transport.test.ts b/packages/runtime/src/network/__tests__/scoped-fetch-transport.test.ts index ff1ee0c0e6..201705ab6a 100644 --- a/packages/runtime/src/network/__tests__/scoped-fetch-transport.test.ts +++ b/packages/runtime/src/network/__tests__/scoped-fetch-transport.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createServer } from 'node:http'; import net from 'node:net'; diff --git a/packages/runtime/src/network/active-proxy-state.ts b/packages/runtime/src/network/active-proxy-state.ts index b4b612806f..40fd24bb9b 100644 --- a/packages/runtime/src/network/active-proxy-state.ts +++ b/packages/runtime/src/network/active-proxy-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProxySettings } from '@maka/core/settings/network-settings'; let activeProxy: ProxySettings | null = null; diff --git a/packages/runtime/src/network/bypass-matcher.ts b/packages/runtime/src/network/bypass-matcher.ts index 6ff1964cc0..bb21af8e21 100644 --- a/packages/runtime/src/network/bypass-matcher.ts +++ b/packages/runtime/src/network/bypass-matcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isIP } from 'node:net'; export function matchesBypassList(host: string, bypassList: string[]): boolean { diff --git a/packages/runtime/src/network/proxy-dispatcher.ts b/packages/runtime/src/network/proxy-dispatcher.ts index 3c7fc0c136..71fee079b0 100644 --- a/packages/runtime/src/network/proxy-dispatcher.ts +++ b/packages/runtime/src/network/proxy-dispatcher.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Agent, ProxyAgent, buildConnector } from 'undici'; import { SocksClient } from 'socks'; import { isIP } from 'node:net'; diff --git a/packages/runtime/src/network/proxy-env.ts b/packages/runtime/src/network/proxy-env.ts index c16d0b864f..c148d2a084 100644 --- a/packages/runtime/src/network/proxy-env.ts +++ b/packages/runtime/src/network/proxy-env.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { buildProxyUrl, bracketIfIpv6 } from './proxy-parser.js'; import type { ProxySettings } from '@maka/core/settings/network-settings'; diff --git a/packages/runtime/src/network/proxy-parser.ts b/packages/runtime/src/network/proxy-parser.ts index 4d8bc3d0cd..c25e019af2 100644 --- a/packages/runtime/src/network/proxy-parser.ts +++ b/packages/runtime/src/network/proxy-parser.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROXY_DEFAULTS, type ProxySettings, diff --git a/packages/runtime/src/network/proxy-test.ts b/packages/runtime/src/network/proxy-test.ts index e774e74190..33465cc3d9 100644 --- a/packages/runtime/src/network/proxy-test.ts +++ b/packages/runtime/src/network/proxy-test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseProxyConfig } from './proxy-parser.js'; import { buildProxyDispatcher } from './proxy-dispatcher.js'; import type { diff --git a/packages/runtime/src/network/scoped-fetch-transport.ts b/packages/runtime/src/network/scoped-fetch-transport.ts index 32c38a56b4..d160e0541a 100644 --- a/packages/runtime/src/network/scoped-fetch-transport.ts +++ b/packages/runtime/src/network/scoped-fetch-transport.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProxySettings } from '@maka/core/settings/network-settings'; import { Agent, fetch as undiciFetch, type Dispatcher } from 'undici'; import type { ConnectionEffectFetch } from '../connection-effect-fetch.js'; diff --git a/packages/runtime/src/oauth-login.ts b/packages/runtime/src/oauth-login.ts index 8c6d1aed4e..5425b9f8a5 100644 --- a/packages/runtime/src/oauth-login.ts +++ b/packages/runtime/src/oauth-login.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OAuthSubscriptionTokens } from './subscription-credentials.js'; import { OAUTH_MAX_TOKEN_CHARS, diff --git a/packages/runtime/src/oauth-provider-contracts.ts b/packages/runtime/src/oauth-provider-contracts.ts index ee4cb3b12d..6746e0ed5f 100644 --- a/packages/runtime/src/oauth-provider-contracts.ts +++ b/packages/runtime/src/oauth-provider-contracts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type OAuthEnrollmentProvider = 'openai-codex' | 'xai-oauth'; export type OAuthTokenEndpointErrorCategory = diff --git a/packages/runtime/src/openai-apply-patch.ts b/packages/runtime/src/openai-apply-patch.ts index f95ce52f85..2fc22d6f9b 100644 --- a/packages/runtime/src/openai-apply-patch.ts +++ b/packages/runtime/src/openai-apply-patch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { openai } from '@ai-sdk/openai'; export const openAiApplyPatchProviderTool = openai.tools.applyPatch({}); diff --git a/packages/runtime/src/openai-chat-reasoning-transport.ts b/packages/runtime/src/openai-chat-reasoning-transport.ts index f00071012d..bdc737ef3f 100644 --- a/packages/runtime/src/openai-chat-reasoning-transport.ts +++ b/packages/runtime/src/openai-chat-reasoning-transport.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { responseWithBody } from './http-response.js'; export interface OpenAiChatReasoningTransport { diff --git a/packages/runtime/src/openai-codex-history-compactor.ts b/packages/runtime/src/openai-codex-history-compactor.ts index f7731a775a..5b2f987a6c 100644 --- a/packages/runtime/src/openai-codex-history-compactor.ts +++ b/packages/runtime/src/openai-codex-history-compactor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { HistoryCompactSummaryInput } from './ai-sdk-compaction-contract.js'; import { HistoryCompactSummarizerError } from './history-compact-error.js'; import { diff --git a/packages/runtime/src/openai-responses-continuation.ts b/packages/runtime/src/openai-responses-continuation.ts index 43b497c1d6..7c2fbecf75 100644 --- a/packages/runtime/src/openai-responses-continuation.ts +++ b/packages/runtime/src/openai-responses-continuation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import type { ModelMessage } from './model-protocol.js'; diff --git a/packages/runtime/src/openai-responses-websocket.ts b/packages/runtime/src/openai-responses-websocket.ts index 3192104ed2..413d62e9fc 100644 --- a/packages/runtime/src/openai-responses-websocket.ts +++ b/packages/runtime/src/openai-responses-websocket.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isDeepStrictEqual } from 'node:util'; import { HttpsProxyAgent } from 'https-proxy-agent'; import { SocksProxyAgent } from 'socks-proxy-agent'; diff --git a/packages/runtime/src/openai-strict-function.ts b/packages/runtime/src/openai-strict-function.ts index fd76669f65..cd85a27174 100644 --- a/packages/runtime/src/openai-strict-function.ts +++ b/packages/runtime/src/openai-strict-function.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface OpenAIStrictFunctionProjection { args: Record; discardedKeys: string[]; diff --git a/packages/runtime/src/path-containment.ts b/packages/runtime/src/path-containment.ts index a6457c67b2..64348928e6 100644 --- a/packages/runtime/src/path-containment.ts +++ b/packages/runtime/src/path-containment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { lstat, diff --git a/packages/runtime/src/pipe-process-driver.ts b/packages/runtime/src/pipe-process-driver.ts index e676210180..cbe91d6d87 100644 --- a/packages/runtime/src/pipe-process-driver.ts +++ b/packages/runtime/src/pipe-process-driver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn, type ChildProcess } from 'node:child_process'; import type { Readable, Writable } from 'node:stream'; diff --git a/packages/runtime/src/pipe-tail-collector.ts b/packages/runtime/src/pipe-tail-collector.ts index de96aee750..91bcfa334a 100644 --- a/packages/runtime/src/pipe-tail-collector.ts +++ b/packages/runtime/src/pipe-tail-collector.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PipeShellOutput } from '@maka/core/shell-run'; import { redactSecrets } from '@maka/core/redaction'; diff --git a/packages/runtime/src/plan-mode.ts b/packages/runtime/src/plan-mode.ts index c6eed7bc00..2a92654815 100644 --- a/packages/runtime/src/plan-mode.ts +++ b/packages/runtime/src/plan-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { classifyToolUse } from '@maka/core/permission'; import type { CollaborationMode } from '@maka/core/collaboration'; import type { PlanExecution, PlanProposal } from '@maka/core/plan'; diff --git a/packages/runtime/src/plan-tools.ts b/packages/runtime/src/plan-tools.ts index 148ada46d6..a02a4e95df 100644 --- a/packages/runtime/src/plan-tools.ts +++ b/packages/runtime/src/plan-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { z } from 'zod'; import type { diff --git a/packages/runtime/src/prior-run-context.ts b/packages/runtime/src/prior-run-context.ts index 9eab8ed35f..e968c45d44 100644 --- a/packages/runtime/src/prior-run-context.ts +++ b/packages/runtime/src/prior-run-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeEventStore } from '@maka/core/runtime-event-store'; diff --git a/packages/runtime/src/process-tree-terminator.ts b/packages/runtime/src/process-tree-terminator.ts index 454ab2d4bb..95284230fd 100644 --- a/packages/runtime/src/process-tree-terminator.ts +++ b/packages/runtime/src/process-tree-terminator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, spawn, type ChildProcess } from 'node:child_process'; export type ProcessTerminationSignal = 'SIGTERM' | 'SIGKILL'; diff --git a/packages/runtime/src/prompt-composition.ts b/packages/runtime/src/prompt-composition.ts index 5d13580478..6a2f98cb39 100644 --- a/packages/runtime/src/prompt-composition.ts +++ b/packages/runtime/src/prompt-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ContextDiagnosticsComposition, ContextDiagnosticsSegment, diff --git a/packages/runtime/src/provider-error-classification.ts b/packages/runtime/src/provider-error-classification.ts index a0709b2e93..7180708745 100644 --- a/packages/runtime/src/provider-error-classification.ts +++ b/packages/runtime/src/provider-error-classification.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RetryError } from 'ai'; import { truncateUtf8 } from '@maka/core/diagnostic-log'; import { isAuthenticationErrorText, redactSecrets } from '@maka/core/redaction'; diff --git a/packages/runtime/src/provider-request-telemetry.ts b/packages/runtime/src/provider-request-telemetry.ts index 9ec30674bb..5a7d40f64a 100644 --- a/packages/runtime/src/provider-request-telemetry.ts +++ b/packages/runtime/src/provider-request-telemetry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MODEL_CALL_ATTEMPT_SCHEMA_VERSION, type ModelCallAttempt, diff --git a/packages/runtime/src/provider-urls.ts b/packages/runtime/src/provider-urls.ts index ab0074a91b..f7ddbffc6a 100644 --- a/packages/runtime/src/provider-urls.ts +++ b/packages/runtime/src/provider-urls.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The Anthropic AI SDK expects a versioned API prefix and appends * `/messages` internally. Maka's provider defaults are user-facing roots diff --git a/packages/runtime/src/pty-process-driver.ts b/packages/runtime/src/pty-process-driver.ts index d5c34378b6..b8d21a3663 100644 --- a/packages/runtime/src/pty-process-driver.ts +++ b/packages/runtime/src/pty-process-driver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IDisposable, IPty } from 'node-pty'; import type { PtyStack } from './pty-stack.js'; diff --git a/packages/runtime/src/pty-screen-collector.ts b/packages/runtime/src/pty-screen-collector.ts index 4ff9408c47..ecb3e5647e 100644 --- a/packages/runtime/src/pty-screen-collector.ts +++ b/packages/runtime/src/pty-screen-collector.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { IBuffer, IDisposable } from '@xterm/headless'; import type { PtyShellOutput } from '@maka/core/shell-run'; import type { TerminalInputState, TerminalMouseEncoding } from '@maka/core/terminal-input'; diff --git a/packages/runtime/src/pty-stack.ts b/packages/runtime/src/pty-stack.ts index 75abb695a5..c0535e04e7 100644 --- a/packages/runtime/src/pty-stack.ts +++ b/packages/runtime/src/pty-stack.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type * as NodePty from 'node-pty'; import type { Terminal as HeadlessTerminal } from '@xterm/headless'; import type { Unicode11Addon as HeadlessUnicode11Addon } from '@xterm/addon-unicode11'; diff --git a/packages/runtime/src/recovery-resolver.ts b/packages/runtime/src/recovery-resolver.ts index 4eb8024cac..925944c8c0 100644 --- a/packages/runtime/src/recovery-resolver.ts +++ b/packages/runtime/src/recovery-resolver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { TOOL_BOUNDARY_PROTOCOL_V1, type RuntimeEvent, diff --git a/packages/runtime/src/request-customization-fetch.ts b/packages/runtime/src/request-customization-fetch.ts index 4b67f76fc4..a7e8dc3de0 100644 --- a/packages/runtime/src/request-customization-fetch.ts +++ b/packages/runtime/src/request-customization-fetch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { normalizeRequestBodyOverlay, normalizeRequestHeaders, diff --git a/packages/runtime/src/request-projection.ts b/packages/runtime/src/request-projection.ts index 421d11d116..04e180daab 100644 --- a/packages/runtime/src/request-projection.ts +++ b/packages/runtime/src/request-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelMessage, NormalizedUsage, ToolCallPart } from './model-protocol.js'; export interface CompletedProviderStep { diff --git a/packages/runtime/src/request-shape.ts b/packages/runtime/src/request-shape.ts index 960c3a8877..db20f23d2c 100644 --- a/packages/runtime/src/request-shape.ts +++ b/packages/runtime/src/request-shape.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { createHash } from 'node:crypto'; import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/run-trace.ts b/packages/runtime/src/run-trace.ts index 4bb7734303..c82ca4ced3 100644 --- a/packages/runtime/src/run-trace.ts +++ b/packages/runtime/src/run-trace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { generalizedErrorMessage, redactSecrets } from '@maka/core/redaction'; import type { diff --git a/packages/runtime/src/runtime-commit-sink.ts b/packages/runtime/src/runtime-commit-sink.ts index efaf6ebd21..033ca298aa 100644 --- a/packages/runtime/src/runtime-commit-sink.ts +++ b/packages/runtime/src/runtime-commit-sink.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import type { RuntimeEvent, ToolRecoveryMode } from '@maka/core/runtime-event'; import { canonicalToolArgsHash as canonicalToolArgsHashCore } from '@maka/core/tool-args-identity'; diff --git a/packages/runtime/src/runtime-continuation-admission.ts b/packages/runtime/src/runtime-continuation-admission.ts index 30614c8241..cc7a3142e1 100644 --- a/packages/runtime/src/runtime-continuation-admission.ts +++ b/packages/runtime/src/runtime-continuation-admission.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { TOOL_BOUNDARY_PROTOCOL_V1, type ToolBoundaryProtocol } from '@maka/core/runtime-event'; declare const runtimeContinuationStartAdmissionProofBrand: unique symbol; diff --git a/packages/runtime/src/runtime-event-backfill.ts b/packages/runtime/src/runtime-event-backfill.ts index 82f9495e8c..044fdfb8e2 100644 --- a/packages/runtime/src/runtime-event-backfill.ts +++ b/packages/runtime/src/runtime-event-backfill.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import type { PermissionDecisionMessage, diff --git a/packages/runtime/src/runtime-event-history-search.ts b/packages/runtime/src/runtime-event-history-search.ts index 9734e2cc06..1d7e917391 100644 --- a/packages/runtime/src/runtime-event-history-search.ts +++ b/packages/runtime/src/runtime-event-history-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { ContextBudgetDiagnostic } from '@maka/core/usage-stats/types'; import { isArchivedToolResultPlaceholder } from './tool-result-archive.js'; diff --git a/packages/runtime/src/runtime-event-read-model.ts b/packages/runtime/src/runtime-event-read-model.ts index b679e7e895..6143a940fe 100644 --- a/packages/runtime/src/runtime-event-read-model.ts +++ b/packages/runtime/src/runtime-event-read-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import type { AssistantStepContentKind, StoredMessage, TurnStatus } from '@maka/core/session'; import type { RuntimeEvent, RuntimeEventStatus } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/runtime-kernel.ts b/packages/runtime/src/runtime-kernel.ts index 18ea7e1082..0a8b242008 100644 --- a/packages/runtime/src/runtime-kernel.ts +++ b/packages/runtime/src/runtime-kernel.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { ContinuationClaimV1, ImmutableRuntimePrefixV1 } from '@maka/core/runtime-boundary'; import type { RuntimeEvent, ToolBoundaryProtocol } from '@maka/core/runtime-event'; diff --git a/packages/runtime/src/runtime-ledger-repair.ts b/packages/runtime/src/runtime-ledger-repair.ts index c033d5acd2..98e85f4105 100644 --- a/packages/runtime/src/runtime-ledger-repair.ts +++ b/packages/runtime/src/runtime-ledger-repair.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { deriveTurnRecords } from '@maka/core/session'; import { isSessionInlineRun } from '@maka/core/agent-run'; diff --git a/packages/runtime/src/runtime-read-model.ts b/packages/runtime/src/runtime-read-model.ts index 6d1cfe87b7..4a11aa446b 100644 --- a/packages/runtime/src/runtime-read-model.ts +++ b/packages/runtime/src/runtime-read-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeEventStore } from '@maka/core/runtime-event-store'; diff --git a/packages/runtime/src/runtime-resume.ts b/packages/runtime/src/runtime-resume.ts index bc7e6209cc..6e861da307 100644 --- a/packages/runtime/src/runtime-resume.ts +++ b/packages/runtime/src/runtime-resume.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isPartialRuntimeEvent, isTerminalRuntimeEvent, diff --git a/packages/runtime/src/runtime-runner.ts b/packages/runtime/src/runtime-runner.ts index 71485ecc65..f21496b259 100644 --- a/packages/runtime/src/runtime-runner.ts +++ b/packages/runtime/src/runtime-runner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * RuntimeRunner — Runtime v2 invocation shell. * diff --git a/packages/runtime/src/sandbox-boundary-declaration.ts b/packages/runtime/src/sandbox-boundary-declaration.ts index ab86de2d3c..375e73a4b8 100644 --- a/packages/runtime/src/sandbox-boundary-declaration.ts +++ b/packages/runtime/src/sandbox-boundary-declaration.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { tmpdir } from 'node:os'; import { assessSandboxBoundaryExpansion, diff --git a/packages/runtime/src/sandbox-boundary-path.ts b/packages/runtime/src/sandbox-boundary-path.ts index 6ef6654e0b..f7b42333bd 100644 --- a/packages/runtime/src/sandbox-boundary-path.ts +++ b/packages/runtime/src/sandbox-boundary-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { promises as fs } from 'node:fs'; import { resolve } from 'node:path'; import { realpathAllowMissing } from './path-containment.js'; diff --git a/packages/runtime/src/sandbox-boundary-tool.ts b/packages/runtime/src/sandbox-boundary-tool.ts index e4ae524564..a86ac7a549 100644 --- a/packages/runtime/src/sandbox-boundary-tool.ts +++ b/packages/runtime/src/sandbox-boundary-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SandboxBoundaryExpansion, SandboxBoundarySettlement, diff --git a/packages/runtime/src/sandbox/README.md b/packages/runtime/src/sandbox/README.md index 64e9b511fc..a1e33854c9 100644 --- a/packages/runtime/src/sandbox/README.md +++ b/packages/runtime/src/sandbox/README.md @@ -1,3 +1,22 @@ + + # Runtime sandbox boundary This directory owns platform sandbox selection and command transformation. It translates the profile in an active session `ExecutionBoundary` into an execution request; it does not decide whether a requested boundary expansion is approved and does not execute the request itself. diff --git a/packages/runtime/src/sandbox/default-sandbox-manager.ts b/packages/runtime/src/sandbox/default-sandbox-manager.ts index 50928308c0..35057917e2 100644 --- a/packages/runtime/src/sandbox/default-sandbox-manager.ts +++ b/packages/runtime/src/sandbox/default-sandbox-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { join } from 'node:path'; diff --git a/packages/runtime/src/sandbox/detect.ts b/packages/runtime/src/sandbox/detect.ts index 12717ac139..8f2ce255e4 100644 --- a/packages/runtime/src/sandbox/detect.ts +++ b/packages/runtime/src/sandbox/detect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const SANDBOX_DENIAL_PATTERN = /operation not permitted|sandbox-exec|file system sandbox blocked|sandbox(?:ed)?[^\n]*den(?:y|ied)/i; diff --git a/packages/runtime/src/sandbox/diagnostics.ts b/packages/runtime/src/sandbox/diagnostics.ts index a6d05ff73c..6717e3bc90 100644 --- a/packages/runtime/src/sandbox/diagnostics.ts +++ b/packages/runtime/src/sandbox/diagnostics.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { constants } from 'node:fs'; import { access, realpath } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/runtime/src/sandbox/errors.ts b/packages/runtime/src/sandbox/errors.ts index 7841c7cdad..0b7d59f54d 100644 --- a/packages/runtime/src/sandbox/errors.ts +++ b/packages/runtime/src/sandbox/errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { validateSandboxBoundaryExpansion, type SandboxBoundaryExpansion, diff --git a/packages/runtime/src/sandbox/index.ts b/packages/runtime/src/sandbox/index.ts index 3f24e26379..e311c2b079 100644 --- a/packages/runtime/src/sandbox/index.ts +++ b/packages/runtime/src/sandbox/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { SandboxManager } from './sandbox-manager.js'; export { createSandboxDiagnosticsProvider, diff --git a/packages/runtime/src/sandbox/linux-capability.ts b/packages/runtime/src/sandbox/linux-capability.ts index 5775782f67..40a82446c3 100644 --- a/packages/runtime/src/sandbox/linux-capability.ts +++ b/packages/runtime/src/sandbox/linux-capability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { accessSync, constants } from 'node:fs'; import { spawnSync } from 'node:child_process'; diff --git a/packages/runtime/src/sandbox/linux-profile-path.ts b/packages/runtime/src/sandbox/linux-profile-path.ts index 43d58f751d..f157298da6 100644 --- a/packages/runtime/src/sandbox/linux-profile-path.ts +++ b/packages/runtime/src/sandbox/linux-profile-path.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { closeSync, constants, fstatSync, lstatSync, openSync } from 'node:fs'; export interface PinnedLinuxProfilePath { diff --git a/packages/runtime/src/sandbox/linux-sandbox.ts b/packages/runtime/src/sandbox/linux-sandbox.ts index 8035449c72..9af8b0d9de 100644 --- a/packages/runtime/src/sandbox/linux-sandbox.ts +++ b/packages/runtime/src/sandbox/linux-sandbox.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { posix } from 'node:path'; import { readdirSync } from 'node:fs'; diff --git a/packages/runtime/src/sandbox/macos-seatbelt.ts b/packages/runtime/src/sandbox/macos-seatbelt.ts index dbfcedead8..65437c16ed 100644 --- a/packages/runtime/src/sandbox/macos-seatbelt.ts +++ b/packages/runtime/src/sandbox/macos-seatbelt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionProfile } from '@maka/core/permission-profile'; import type { diff --git a/packages/runtime/src/sandbox/sandbox-manager.ts b/packages/runtime/src/sandbox/sandbox-manager.ts index 731e671b6f..5e64a30108 100644 --- a/packages/runtime/src/sandbox/sandbox-manager.ts +++ b/packages/runtime/src/sandbox/sandbox-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionProfile } from '@maka/core/permission-profile'; import type { diff --git a/packages/runtime/src/sandbox/types.ts b/packages/runtime/src/sandbox/types.ts index d35c040e74..51eaaa6b0f 100644 --- a/packages/runtime/src/sandbox/types.ts +++ b/packages/runtime/src/sandbox/types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PermissionProfile } from '@maka/core/permission-profile'; import type { ChildFdInput } from '../child-fd-input.js'; diff --git a/packages/runtime/src/sandbox/windows-broker-errors.ts b/packages/runtime/src/sandbox/windows-broker-errors.ts index 706e2f569e..5800682237 100644 --- a/packages/runtime/src/sandbox/windows-broker-errors.ts +++ b/packages/runtime/src/sandbox/windows-broker-errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Maps Windows sandbox broker rejections (surfaced on stderr as * `broker rejected request (): ` by the launcher's diff --git a/packages/runtime/src/sandbox/windows-profile.ts b/packages/runtime/src/sandbox/windows-profile.ts index 37bee4c52e..16949cd032 100644 --- a/packages/runtime/src/sandbox/windows-profile.ts +++ b/packages/runtime/src/sandbox/windows-profile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { win32 } from 'node:path'; import type { FileSystemSandboxEntry, PermissionProfile } from '@maka/core/permission-profile'; diff --git a/packages/runtime/src/sandbox/windows-sandbox.ts b/packages/runtime/src/sandbox/windows-sandbox.ts index 047438b045..3c980a42f5 100644 --- a/packages/runtime/src/sandbox/windows-sandbox.ts +++ b/packages/runtime/src/sandbox/windows-sandbox.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomBytes } from 'node:crypto'; import { closeSync, diff --git a/packages/runtime/src/scheduled-task-tools.ts b/packages/runtime/src/scheduled-task-tools.ts index 31ccf79212..2ba8be19d0 100644 --- a/packages/runtime/src/scheduled-task-tools.ts +++ b/packages/runtime/src/scheduled-task-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Agent tool for the unified ScheduledTask catalog. * diff --git a/packages/runtime/src/semantic-compact.ts b/packages/runtime/src/semantic-compact.ts index 07b5babab9..8df98d45ae 100644 --- a/packages/runtime/src/semantic-compact.ts +++ b/packages/runtime/src/semantic-compact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelMessage } from './model-protocol.js'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { ContextBudgetDiagnostic } from '@maka/core/usage-stats/types'; diff --git a/packages/runtime/src/session-manager.ts b/packages/runtime/src/session-manager.ts index fa04e7fa07..9edfe06a3f 100644 --- a/packages/runtime/src/session-manager.ts +++ b/packages/runtime/src/session-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * SessionManager — the public Runtime API. * diff --git a/packages/runtime/src/session-projection-helpers.ts b/packages/runtime/src/session-projection-helpers.ts index dc46c0f890..468005fc24 100644 --- a/packages/runtime/src/session-projection-helpers.ts +++ b/packages/runtime/src/session-projection-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader } from '@maka/core/agent-run'; import { failureClassFromCompleteStopReason, type SessionEvent } from '@maka/core/events'; import type { diff --git a/packages/runtime/src/session-recap.ts b/packages/runtime/src/session-recap.ts index 0b133487fa..0961699507 100644 --- a/packages/runtime/src/session-recap.ts +++ b/packages/runtime/src/session-recap.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import { applyRuntimeEventContextBudget } from './context-budget.js'; diff --git a/packages/runtime/src/session-title.ts b/packages/runtime/src/session-title.ts index 55e2a712af..e505861050 100644 --- a/packages/runtime/src/session-title.ts +++ b/packages/runtime/src/session-title.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { generateText as aiGenerateText, type LanguageModel } from 'ai'; import { normalizeUserSessionName } from '@maka/core/session-name'; diff --git a/packages/runtime/src/session-trace-projection.ts b/packages/runtime/src/session-trace-projection.ts index 4be77cb8f1..e7c68c3897 100644 --- a/packages/runtime/src/session-trace-projection.ts +++ b/packages/runtime/src/session-trace-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { dedupeModelCallAttempts, groupModelCallAttempts, diff --git a/packages/runtime/src/shell-detect.ts b/packages/runtime/src/shell-detect.ts index f35499f681..84ea719fb6 100644 --- a/packages/runtime/src/shell-detect.ts +++ b/packages/runtime/src/shell-detect.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/shell-detect.ts // // Which shell runs Bash tool commands, and how to tell the model about it. diff --git a/packages/runtime/src/shell-exec.ts b/packages/runtime/src/shell-exec.ts index 8f402b1adf..d277aee75d 100644 --- a/packages/runtime/src/shell-exec.ts +++ b/packages/runtime/src/shell-exec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/runtime/src/shell-exec.ts // // Runtime's shared shell runner. It streams stdout/stderr into a diff --git a/packages/runtime/src/shell-run-contract.ts b/packages/runtime/src/shell-run-contract.ts index 8c9d128611..c59709f7ba 100644 --- a/packages/runtime/src/shell-run-contract.ts +++ b/packages/runtime/src/shell-run-contract.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { encodedTerminalInputActionsByteLength, isWellFormedTerminalInput, diff --git a/packages/runtime/src/shell-run-manager.ts b/packages/runtime/src/shell-run-manager.ts index b22a581c3e..791c7456fb 100644 --- a/packages/runtime/src/shell-run-manager.ts +++ b/packages/runtime/src/shell-run-manager.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { constants as osConstants } from 'node:os'; import { isDeepStrictEqual } from 'node:util'; import { encodeTerminalInputActions } from '@maka/core/terminal-input'; diff --git a/packages/runtime/src/shell-run-tool-result.ts b/packages/runtime/src/shell-run-tool-result.ts index b06a951b73..113360a002 100644 --- a/packages/runtime/src/shell-run-tool-result.ts +++ b/packages/runtime/src/shell-run-tool-result.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PtyShellOutput, ShellOutput, diff --git a/packages/runtime/src/shell-tools.ts b/packages/runtime/src/shell-tools.ts index 23e10afe12..d734bc079c 100644 --- a/packages/runtime/src/shell-tools.ts +++ b/packages/runtime/src/shell-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { jsonSchema, zodSchema } from 'ai'; import { diff --git a/packages/runtime/src/skill-invocation-receipt.ts b/packages/runtime/src/skill-invocation-receipt.ts index a5cbce2c11..1cae59981a 100644 --- a/packages/runtime/src/skill-invocation-receipt.ts +++ b/packages/runtime/src/skill-invocation-receipt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { INLINE_REFERENCE_LABEL_MAX_LENGTH, INLINE_REFERENCE_MAX_COUNT, diff --git a/packages/runtime/src/skill-invocation.ts b/packages/runtime/src/skill-invocation.ts index 0da59b2086..6e6fa77c51 100644 --- a/packages/runtime/src/skill-invocation.ts +++ b/packages/runtime/src/skill-invocation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { SKILL_INVOCATION_TOKEN_SOURCE } from '@maka/core/skill-invocation-token'; import { decodeSkillInvocationResult, diff --git a/packages/runtime/src/skills-agent-tools.ts b/packages/runtime/src/skills-agent-tools.ts index cbd98dd7f7..c3871d692f 100644 --- a/packages/runtime/src/skills-agent-tools.ts +++ b/packages/runtime/src/skills-agent-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { loadSkillInstructions, diff --git a/packages/runtime/src/skills-context.ts b/packages/runtime/src/skills-context.ts index 6f86cb5ab4..7f63d9c953 100644 --- a/packages/runtime/src/skills-context.ts +++ b/packages/runtime/src/skills-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { relative } from 'node:path'; import { cleanPromptText, truncateCodepoints } from './skills-metadata.js'; import { MAX_SKILL_TOOL_BODY_CHARS } from './skills-metadata.js'; diff --git a/packages/runtime/src/skills-discovery.ts b/packages/runtime/src/skills-discovery.ts index dc4b3411e0..d971fc6c1e 100644 --- a/packages/runtime/src/skills-discovery.ts +++ b/packages/runtime/src/skills-discovery.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { homedir } from 'node:os'; import { lstat, readdir, realpath } from 'node:fs/promises'; diff --git a/packages/runtime/src/skills-governance.ts b/packages/runtime/src/skills-governance.ts index 6a7d0a3b44..b644c4a8f3 100644 --- a/packages/runtime/src/skills-governance.ts +++ b/packages/runtime/src/skills-governance.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isRecord, isSafeSkillId } from './path-containment.js'; import { BUNDLED_SKILL_CATALOG, diff --git a/packages/runtime/src/skills-metadata.ts b/packages/runtime/src/skills-metadata.ts index fb09300b0f..6966dcdeca 100644 --- a/packages/runtime/src/skills-metadata.ts +++ b/packages/runtime/src/skills-metadata.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parseDocument } from 'yaml'; /** diff --git a/packages/runtime/src/skills-starter.ts b/packages/runtime/src/skills-starter.ts index 4e836d380d..8bac3f4e64 100644 --- a/packages/runtime/src/skills-starter.ts +++ b/packages/runtime/src/skills-starter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Builds the reviewable starter SKILL.md body used for a new local skill. * Persistence and install authority remain with the caller. diff --git a/packages/runtime/src/skills-state.ts b/packages/runtime/src/skills-state.ts index e8c1ed6df0..87c2e0b7f2 100644 --- a/packages/runtime/src/skills-state.ts +++ b/packages/runtime/src/skills-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lstat, mkdir, readFile, realpath } from 'node:fs/promises'; import { join } from 'node:path'; import { diff --git a/packages/runtime/src/skills.ts b/packages/runtime/src/skills.ts index 916ae2f10c..9e8b0b05dc 100644 --- a/packages/runtime/src/skills.ts +++ b/packages/runtime/src/skills.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Re-export barrel for all skill sub-modules. * diff --git a/packages/runtime/src/stream-graph-admission.ts b/packages/runtime/src/stream-graph-admission.ts index a8c14d04e7..deed4db641 100644 --- a/packages/runtime/src/stream-graph-admission.ts +++ b/packages/runtime/src/stream-graph-admission.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentClaimResult, AgentGraphIntentClaimStore, diff --git a/packages/runtime/src/stream-graph-coordinator.ts b/packages/runtime/src/stream-graph-coordinator.ts index aa785a6c04..fe838a7a8c 100644 --- a/packages/runtime/src/stream-graph-coordinator.ts +++ b/packages/runtime/src/stream-graph-coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphClientProjectionStore } from '@maka/core/agent-graph-client-projection'; import type { AgentGraphIntentClaim } from '@maka/core/agent-graph-control'; import type { AgentGraphEpochBinding, AgentGraphEpochStore } from '@maka/core/agent-graph-epoch'; diff --git a/packages/runtime/src/stream-graph-dispatch.ts b/packages/runtime/src/stream-graph-dispatch.ts index 70a60e1c32..e3968ccf13 100644 --- a/packages/runtime/src/stream-graph-dispatch.ts +++ b/packages/runtime/src/stream-graph-dispatch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentClaim } from '@maka/core/agent-graph-control'; import type { SessionEvent } from '@maka/core/events'; import type { diff --git a/packages/runtime/src/stream-graph-handoff.ts b/packages/runtime/src/stream-graph-handoff.ts index cc01319aee..df9eb9da3f 100644 --- a/packages/runtime/src/stream-graph-handoff.ts +++ b/packages/runtime/src/stream-graph-handoff.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { AgentGraphRecord } from './stream-graph-projection.js'; import type { AgentGraphScheduleWorkView } from './stream-graph-supervisor-tools.js'; diff --git a/packages/runtime/src/stream-graph-identity.ts b/packages/runtime/src/stream-graph-identity.ts index 68b1d9a211..f9a48c6beb 100644 --- a/packages/runtime/src/stream-graph-identity.ts +++ b/packages/runtime/src/stream-graph-identity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Locale-independent strict total order for opaque graph identities. * diff --git a/packages/runtime/src/stream-graph-projection.ts b/packages/runtime/src/stream-graph-projection.ts index 5c56df76eb..c99078e02e 100644 --- a/packages/runtime/src/stream-graph-projection.ts +++ b/packages/runtime/src/stream-graph-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunHeader, AgentRunStore } from '@maka/core/agent-run'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { RuntimeEventStore } from '@maka/core/runtime-event-store'; diff --git a/packages/runtime/src/stream-graph-read-model.ts b/packages/runtime/src/stream-graph-read-model.ts index 6ecc4d0e37..6233c2ce73 100644 --- a/packages/runtime/src/stream-graph-read-model.ts +++ b/packages/runtime/src/stream-graph-read-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphClientClaimAdmission } from '@maka/core/agent-graph-client-projection'; import type { AgentGraphIntentClaim } from '@maka/core/agent-graph-control'; import type { AgentGraphOperatorProvision } from '@maka/core/agent-graph-topology'; diff --git a/packages/runtime/src/stream-graph-readiness.ts b/packages/runtime/src/stream-graph-readiness.ts index 0ff522e7da..947f6112cb 100644 --- a/packages/runtime/src/stream-graph-readiness.ts +++ b/packages/runtime/src/stream-graph-readiness.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stableHash } from './request-shape.js'; import type { AgentGraphActivationState, diff --git a/packages/runtime/src/stream-graph-schedule-reconcile.ts b/packages/runtime/src/stream-graph-schedule-reconcile.ts index 44daccccda..f282f2fb55 100644 --- a/packages/runtime/src/stream-graph-schedule-reconcile.ts +++ b/packages/runtime/src/stream-graph-schedule-reconcile.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentGraphIntentClaim, AgentGraphIntentClaimResult, diff --git a/packages/runtime/src/stream-graph-supervisor-tools.ts b/packages/runtime/src/stream-graph-supervisor-tools.ts index a19942ea8a..0657ba9501 100644 --- a/packages/runtime/src/stream-graph-supervisor-tools.ts +++ b/packages/runtime/src/stream-graph-supervisor-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { AGENT_GRAPH_SCHEDULE_MAX_ADD_WORK, diff --git a/packages/runtime/src/stream-graph-trace.ts b/packages/runtime/src/stream-graph-trace.ts index e23b8282ba..9d71e3ca78 100644 --- a/packages/runtime/src/stream-graph-trace.ts +++ b/packages/runtime/src/stream-graph-trace.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { stableHash } from './request-shape.js'; import { compareAgentGraphIdentity } from './stream-graph-identity.js'; import { diff --git a/packages/runtime/src/stream-watchdog.ts b/packages/runtime/src/stream-watchdog.ts index 58dc50a15a..ee9dbd0930 100644 --- a/packages/runtime/src/stream-watchdog.ts +++ b/packages/runtime/src/stream-watchdog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const DEFAULT_STREAM_CONNECT_TIMEOUT_MS = 30_000; export const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 120_000; diff --git a/packages/runtime/src/subagent-execution.ts b/packages/runtime/src/subagent-execution.ts index 05a1aa9998..ac4bff95be 100644 --- a/packages/runtime/src/subagent-execution.ts +++ b/packages/runtime/src/subagent-execution.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Stable compatibility handle for subagent work during the child-session migration. * diff --git a/packages/runtime/src/subagent-tools.ts b/packages/runtime/src/subagent-tools.ts index ad99171a8d..0df610cacd 100644 --- a/packages/runtime/src/subagent-tools.ts +++ b/packages/runtime/src/subagent-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { TASK_ID_MAX_CHARS, isSafeTaskId, type TaskLedgerStore } from '@maka/core/task-ledger'; import { decodeCanonicalToolResultContent } from '@maka/core/tool-result-record-schema'; diff --git a/packages/runtime/src/subscription-auth.ts b/packages/runtime/src/subscription-auth.ts index fafe4035c6..1b7b89d4f1 100644 --- a/packages/runtime/src/subscription-auth.ts +++ b/packages/runtime/src/subscription-auth.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const CODEX_SUBSCRIPTION_USER_AGENT = 'codex_cli_rs/0.0.0 (Maka)'; export function openAiCodexHeaders(accessToken: string): Record { const accountId = extractCodexAccountId(accessToken); diff --git a/packages/runtime/src/subscription-credentials.ts b/packages/runtime/src/subscription-credentials.ts index 7fa1641bfb..b536744184 100644 --- a/packages/runtime/src/subscription-credentials.ts +++ b/packages/runtime/src/subscription-credentials.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { ProviderType } from '@maka/core/llm-connections'; diff --git a/packages/runtime/src/subscription-model-fetch.ts b/packages/runtime/src/subscription-model-fetch.ts index 4cb7abe640..8786fac15b 100644 --- a/packages/runtime/src/subscription-model-fetch.ts +++ b/packages/runtime/src/subscription-model-fetch.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { redactSecrets } from '@maka/core/redaction'; import type { RuntimeExecutionConnection } from '@maka/core/llm-connections'; import { diff --git a/packages/runtime/src/swarm-mode.ts b/packages/runtime/src/swarm-mode.ts index f9c39653f5..9ed699ced8 100644 --- a/packages/runtime/src/swarm-mode.ts +++ b/packages/runtime/src/swarm-mode.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function renderSwarmModePrompt(): string { return [ '', diff --git a/packages/runtime/src/synthesis-cache-artifacts.ts b/packages/runtime/src/synthesis-cache-artifacts.ts index 566da17dfa..23749016f6 100644 --- a/packages/runtime/src/synthesis-cache-artifacts.ts +++ b/packages/runtime/src/synthesis-cache-artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ArtifactRecord, ArtifactSource } from '@maka/core/artifacts'; import { estimateTokens } from './context-budget-helpers.js'; import { diff --git a/packages/runtime/src/synthesis-cache.ts b/packages/runtime/src/synthesis-cache.ts index d2555b4a96..92dcd4428c 100644 --- a/packages/runtime/src/synthesis-cache.ts +++ b/packages/runtime/src/synthesis-cache.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { ContextBudgetDiagnostic } from '@maka/core/usage-stats/types'; import { diff --git a/packages/runtime/src/system-prompt/main-session-prompt.ts b/packages/runtime/src/system-prompt/main-session-prompt.ts index b5955d1aa8..72467be668 100644 --- a/packages/runtime/src/system-prompt/main-session-prompt.ts +++ b/packages/runtime/src/system-prompt/main-session-prompt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared main-session prompt assembly (#2352). * diff --git a/packages/runtime/src/system-prompt/personalization-prompt.ts b/packages/runtime/src/system-prompt/personalization-prompt.ts index b95a7e02d4..c40cb0b99c 100644 --- a/packages/runtime/src/system-prompt/personalization-prompt.ts +++ b/packages/runtime/src/system-prompt/personalization-prompt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PersonalizationSettings, PersonalizationSettingsWarning } from '@maka/core/settings'; /** diff --git a/packages/runtime/src/system-prompt/project-context.ts b/packages/runtime/src/system-prompt/project-context.ts index 5e61a00c74..1a2efb775c 100644 --- a/packages/runtime/src/system-prompt/project-context.ts +++ b/packages/runtime/src/system-prompt/project-context.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, stat } from 'node:fs/promises'; import { dirname, join, resolve } from 'node:path'; diff --git a/packages/runtime/src/system-prompt/sandbox-context-prompt.ts b/packages/runtime/src/system-prompt/sandbox-context-prompt.ts index d54ec1776c..6b16460d01 100644 --- a/packages/runtime/src/system-prompt/sandbox-context-prompt.ts +++ b/packages/runtime/src/system-prompt/sandbox-context-prompt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SandboxDiagnosticCapability, SandboxDiagnosticsSnapshot, diff --git a/packages/runtime/src/system-prompt/session-environment-prompt.ts b/packages/runtime/src/system-prompt/session-environment-prompt.ts index c71b489831..6599eab143 100644 --- a/packages/runtime/src/system-prompt/session-environment-prompt.ts +++ b/packages/runtime/src/system-prompt/session-environment-prompt.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProjectGitInfo } from './project-context.js'; import { defaultShellPlan } from '../shell-detect.js'; diff --git a/packages/runtime/src/system-prompt/workspace-instructions.ts b/packages/runtime/src/system-prompt/workspace-instructions.ts index bc785e809f..188a476fa6 100644 --- a/packages/runtime/src/system-prompt/workspace-instructions.ts +++ b/packages/runtime/src/system-prompt/workspace-instructions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, realpath } from 'node:fs/promises'; import { homedir } from 'node:os'; import { join } from 'node:path'; diff --git a/packages/runtime/src/task-ledger-tools.ts b/packages/runtime/src/task-ledger-tools.ts index 05a8298f81..e8aeff5ead 100644 --- a/packages/runtime/src/task-ledger-tools.ts +++ b/packages/runtime/src/task-ledger-tools.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { TASK_STATUSES, diff --git a/packages/runtime/src/tavily-search.ts b/packages/runtime/src/tavily-search.ts index 5b258decc6..b70f3663d4 100644 --- a/packages/runtime/src/tavily-search.ts +++ b/packages/runtime/src/tavily-search.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WEB_SEARCH_MAX_LIMIT, normalizeWebSearchLimit, diff --git a/packages/runtime/src/telemetry/builtin-pricing.ts b/packages/runtime/src/telemetry/builtin-pricing.ts index 2a795e0bb4..059ed31271 100644 --- a/packages/runtime/src/telemetry/builtin-pricing.ts +++ b/packages/runtime/src/telemetry/builtin-pricing.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig } from '@maka/core/usage-stats/types'; import { GENERATED_MODEL_PRICING } from './model-pricing.generated.js'; diff --git a/packages/runtime/src/telemetry/cost.ts b/packages/runtime/src/telemetry/cost.ts index aab9c45559..3680dc2304 100644 --- a/packages/runtime/src/telemetry/cost.ts +++ b/packages/runtime/src/telemetry/cost.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig } from '@maka/core/usage-stats/types'; export interface CostInput { diff --git a/packages/runtime/src/telemetry/index.ts b/packages/runtime/src/telemetry/index.ts index 8d8a30ca3d..ff9894d9fd 100644 --- a/packages/runtime/src/telemetry/index.ts +++ b/packages/runtime/src/telemetry/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { BUILTIN_PRICING, getBuiltinPricing } from './builtin-pricing.js'; export { computeCost } from './cost.js'; export { buildPricingLookup } from './pricing.js'; diff --git a/packages/runtime/src/telemetry/llm-call-usage.ts b/packages/runtime/src/telemetry/llm-call-usage.ts index 149716a9c3..aec1e13908 100644 --- a/packages/runtime/src/telemetry/llm-call-usage.ts +++ b/packages/runtime/src/telemetry/llm-call-usage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LlmCallRecord } from '@maka/core/usage-stats/types'; import type { NormalizedUsage } from '../model-protocol.js'; diff --git a/packages/runtime/src/telemetry/pricing.ts b/packages/runtime/src/telemetry/pricing.ts index 9ee7b46af0..b5ee805090 100644 --- a/packages/runtime/src/telemetry/pricing.ts +++ b/packages/runtime/src/telemetry/pricing.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig } from '@maka/core/usage-stats/types'; import { getBuiltinPricing } from './builtin-pricing.js'; diff --git a/packages/runtime/src/telemetry/record-llm-call.ts b/packages/runtime/src/telemetry/record-llm-call.ts index d98c6966bd..f4b16e5976 100644 --- a/packages/runtime/src/telemetry/record-llm-call.ts +++ b/packages/runtime/src/telemetry/record-llm-call.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { generalizedErrorMessage } from '@maka/core/redaction'; import { pricingModelKey } from '@maka/core/usage-stats/pricing'; diff --git a/packages/runtime/src/telemetry/record-tool-invocation.ts b/packages/runtime/src/telemetry/record-tool-invocation.ts index 58ef556339..b64dd590b3 100644 --- a/packages/runtime/src/telemetry/record-tool-invocation.ts +++ b/packages/runtime/src/telemetry/record-tool-invocation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { generalizedErrorMessage } from '@maka/core/redaction'; import type { ToolInvocationRecord } from '@maka/core/usage-stats/types'; diff --git a/packages/runtime/src/telemetry/types.ts b/packages/runtime/src/telemetry/types.ts index 452f4295de..deecc67c44 100644 --- a/packages/runtime/src/telemetry/types.ts +++ b/packages/runtime/src/telemetry/types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LlmCallRecord, ToolInvocationRecord } from '@maka/core/usage-stats/types'; export interface TelemetryRepoLite { diff --git a/packages/runtime/src/terminal-run-commit.ts b/packages/runtime/src/terminal-run-commit.ts index 29a41540ca..8cc0335cab 100644 --- a/packages/runtime/src/terminal-run-commit.ts +++ b/packages/runtime/src/terminal-run-commit.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isPartialRuntimeEvent, isTerminalRuntimeEvent } from '@maka/core/runtime-event'; import type { AgentRunEvent, diff --git a/packages/runtime/src/test-connection.ts b/packages/runtime/src/test-connection.ts index af89cbd0c0..1af8805cf7 100644 --- a/packages/runtime/src/test-connection.ts +++ b/packages/runtime/src/test-connection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { PROVIDER_DEFAULTS, classifyConnectionModelInventory, diff --git a/packages/runtime/src/test-helpers.ts b/packages/runtime/src/test-helpers.ts index 2f3514f155..cc8e502891 100644 --- a/packages/runtime/src/test-helpers.ts +++ b/packages/runtime/src/test-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; export function expect(actual: unknown) { diff --git a/packages/runtime/src/test-only/fake-backend.ts b/packages/runtime/src/test-only/fake-backend.ts index 0a8df15488..5a6357a9ee 100644 --- a/packages/runtime/src/test-only/fake-backend.ts +++ b/packages/runtime/src/test-only/fake-backend.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import type { PersistedBackendKind, SessionHeader, StoredMessage } from '@maka/core/session'; import type { SessionEvent } from '@maka/core/events'; diff --git a/packages/runtime/src/tool-artifacts.ts b/packages/runtime/src/tool-artifacts.ts index 1303cb763b..aa9f7314cf 100644 --- a/packages/runtime/src/tool-artifacts.ts +++ b/packages/runtime/src/tool-artifacts.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { basename, extname, isAbsolute, resolve } from 'node:path'; import type { ArtifactKind, ArtifactRecord, ArtifactSource } from '@maka/core/artifacts'; import { generalizedErrorMessage } from '@maka/core/redaction'; diff --git a/packages/runtime/src/tool-availability.ts b/packages/runtime/src/tool-availability.ts index 8ad26700d2..0bde180a5b 100644 --- a/packages/runtime/src/tool-availability.ts +++ b/packages/runtime/src/tool-availability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolAvailabilityDiagnostic } from '@maka/core/usage-stats/types'; import { z } from 'zod'; diff --git a/packages/runtime/src/tool-catalog-derive.ts b/packages/runtime/src/tool-catalog-derive.ts index 8820c26f35..4a91737f56 100644 --- a/packages/runtime/src/tool-catalog-derive.ts +++ b/packages/runtime/src/tool-catalog-derive.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Derive HostCapabilities and deferred ToolAvailability groups from the shared * tool catalog ∩ host binding (#1099). Hosts still construct MakaTool diff --git a/packages/runtime/src/tool-free-model-call.ts b/packages/runtime/src/tool-free-model-call.ts index 1c51db8cb3..a0e09b1a74 100644 --- a/packages/runtime/src/tool-free-model-call.ts +++ b/packages/runtime/src/tool-free-model-call.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ModelMessage } from './model-protocol.js'; import { lowerModelTools, normalizeAiSdkUsage, type AiSdkUsageLike } from './model-adapter.js'; import { rawFinishReasonString, type NormalizedUsage } from './model-protocol.js'; diff --git a/packages/runtime/src/tool-output-delta.ts b/packages/runtime/src/tool-output-delta.ts index 44e9a6ddfe..3a3f85c5b4 100644 --- a/packages/runtime/src/tool-output-delta.ts +++ b/packages/runtime/src/tool-output-delta.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { TOOL_OUTPUT_DELTA_MAX_CHARS, type ToolOutputDeltaEvent, diff --git a/packages/runtime/src/tool-result-archive-capability.ts b/packages/runtime/src/tool-result-archive-capability.ts index 86b200d694..ce447f2a8e 100644 --- a/packages/runtime/src/tool-result-archive-capability.ts +++ b/packages/runtime/src/tool-result-archive-capability.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The tool-result archive is one capability, not three optional fields (#2026). * diff --git a/packages/runtime/src/tool-result-archive-resource.ts b/packages/runtime/src/tool-result-archive-resource.ts index 6f3365437c..b3c7de194c 100644 --- a/packages/runtime/src/tool-result-archive-resource.ts +++ b/packages/runtime/src/tool-result-archive-resource.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultArchiveReadResult } from './tool-result-archive.js'; export const TOOL_RESULT_ARCHIVE_RESOURCE_PROTOCOL = 'maka:'; diff --git a/packages/runtime/src/tool-result-archive.ts b/packages/runtime/src/tool-result-archive.ts index 23e11fb7ef..81a4eaf69f 100644 --- a/packages/runtime/src/tool-result-archive.ts +++ b/packages/runtime/src/tool-result-archive.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; import { createHash } from 'node:crypto'; import type { ContextBudgetDiagnostic } from '@maka/core/usage-stats/types'; diff --git a/packages/runtime/src/tool-result-output.ts b/packages/runtime/src/tool-result-output.ts index ea402939bc..df7d98e8e8 100644 --- a/packages/runtime/src/tool-result-output.ts +++ b/packages/runtime/src/tool-result-output.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { JSONValue, ToolResultOutput } from './model-protocol.js'; /** diff --git a/packages/runtime/src/tool-runtime.ts b/packages/runtime/src/tool-runtime.ts index ee1a0530b8..29a65b1e9e 100644 --- a/packages/runtime/src/tool-runtime.ts +++ b/packages/runtime/src/tool-runtime.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeCanonicalToolResultContent } from '@maka/core/tool-result-record-schema'; import { projectAgentSwarmResult } from '@maka/core/agent-swarm'; import { projectToolActivityArgs } from '@maka/core/tool-activity-args'; diff --git a/packages/runtime/src/unified-diff.ts b/packages/runtime/src/unified-diff.ts index 789d7928f3..a1d43245c9 100644 --- a/packages/runtime/src/unified-diff.ts +++ b/packages/runtime/src/unified-diff.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Minimal unified-diff generator for tool results. Producing the diff at the * write site — where both contents are already in memory — lets the UI show diff --git a/packages/runtime/src/web-fetch-tool.ts b/packages/runtime/src/web-fetch-tool.ts index ec53ee88aa..18abc15bcf 100644 --- a/packages/runtime/src/web-fetch-tool.ts +++ b/packages/runtime/src/web-fetch-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import type { MakaTool } from './tool-runtime.js'; diff --git a/packages/runtime/src/web-search-tool.ts b/packages/runtime/src/web-search-tool.ts index 1b115b828b..e8ac65f5fc 100644 --- a/packages/runtime/src/web-search-tool.ts +++ b/packages/runtime/src/web-search-tool.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { z } from 'zod'; import { WEB_SEARCH_DEFAULT_LIMIT, diff --git a/packages/runtime/src/workspace-executor.ts b/packages/runtime/src/workspace-executor.ts index 2408eb8255..6b4d22dcc2 100644 --- a/packages/runtime/src/workspace-executor.ts +++ b/packages/runtime/src/workspace-executor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { promises as fs } from 'node:fs'; import { exec, execFile } from 'node:child_process'; import { glob as nodeGlob } from 'node:fs/promises'; diff --git a/packages/runtime/src/xai-oauth-enrollment.ts b/packages/runtime/src/xai-oauth-enrollment.ts index 59bec6f305..39d85e570d 100644 --- a/packages/runtime/src/xai-oauth-enrollment.ts +++ b/packages/runtime/src/xai-oauth-enrollment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { OAuthSubscriptionTokens } from './subscription-credentials.js'; import { decodeOAuthInitialTokenPayload, diff --git a/packages/storage/src/__tests__/activation-secret-injector.test.ts b/packages/storage/src/__tests__/activation-secret-injector.test.ts index 53f8a1b7ad..c0e44789df 100644 --- a/packages/storage/src/__tests__/activation-secret-injector.test.ts +++ b/packages/storage/src/__tests__/activation-secret-injector.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/storage/src/__tests__/agent-graph-epochs.test.ts b/packages/storage/src/__tests__/agent-graph-epochs.test.ts index a27d3d83f3..5d77c285b8 100644 --- a/packages/storage/src/__tests__/agent-graph-epochs.test.ts +++ b/packages/storage/src/__tests__/agent-graph-epochs.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts b/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts index 7892484f92..0298285976 100644 --- a/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts +++ b/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/agent-graph-schedule-updates.test.ts b/packages/storage/src/__tests__/agent-graph-schedule-updates.test.ts index b2e643bc79..41d537b324 100644 --- a/packages/storage/src/__tests__/agent-graph-schedule-updates.test.ts +++ b/packages/storage/src/__tests__/agent-graph-schedule-updates.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/agent-graph-supervisor-root-admission.test.ts b/packages/storage/src/__tests__/agent-graph-supervisor-root-admission.test.ts index 3aaf3e799a..3cc98eac4c 100644 --- a/packages/storage/src/__tests__/agent-graph-supervisor-root-admission.test.ts +++ b/packages/storage/src/__tests__/agent-graph-supervisor-root-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts b/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts index bacf01556f..e4b0845317 100644 --- a/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts +++ b/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/agent-graph-timeline-metadata.test.ts b/packages/storage/src/__tests__/agent-graph-timeline-metadata.test.ts index 16f114ff20..e6c61a7650 100644 --- a/packages/storage/src/__tests__/agent-graph-timeline-metadata.test.ts +++ b/packages/storage/src/__tests__/agent-graph-timeline-metadata.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { AGENT_GRAPH_INTENT_CLAIM_SCHEMA_VERSION } from '@maka/core/agent-graph-control'; diff --git a/packages/storage/src/__tests__/artifact-attachments.test.ts b/packages/storage/src/__tests__/artifact-attachments.test.ts index d7827d8b35..7a23eadf46 100644 --- a/packages/storage/src/__tests__/artifact-attachments.test.ts +++ b/packages/storage/src/__tests__/artifact-attachments.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/artifact-store.test.ts b/packages/storage/src/__tests__/artifact-store.test.ts index b1503439aa..db16676269 100644 --- a/packages/storage/src/__tests__/artifact-store.test.ts +++ b/packages/storage/src/__tests__/artifact-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { diff --git a/packages/storage/src/__tests__/artifact-stores.test.ts b/packages/storage/src/__tests__/artifact-stores.test.ts index d3a7f8a734..e8d829ed99 100644 --- a/packages/storage/src/__tests__/artifact-stores.test.ts +++ b/packages/storage/src/__tests__/artifact-stores.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm, stat } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/artifact-writer-lock.test.ts b/packages/storage/src/__tests__/artifact-writer-lock.test.ts index 039a5e52f7..568fc9ba2d 100644 --- a/packages/storage/src/__tests__/artifact-writer-lock.test.ts +++ b/packages/storage/src/__tests__/artifact-writer-lock.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, type ChildProcess } from 'node:child_process'; import { diff --git a/packages/storage/src/__tests__/bundled-git-workspace-smoke.test.ts b/packages/storage/src/__tests__/bundled-git-workspace-smoke.test.ts index b4e53f24af..f365ff669c 100644 --- a/packages/storage/src/__tests__/bundled-git-workspace-smoke.test.ts +++ b/packages/storage/src/__tests__/bundled-git-workspace-smoke.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/storage/src/__tests__/claimed-agent-graph-root-admission.test.ts b/packages/storage/src/__tests__/claimed-agent-graph-root-admission.test.ts index 5bf00c215a..9b3e1c54cd 100644 --- a/packages/storage/src/__tests__/claimed-agent-graph-root-admission.test.ts +++ b/packages/storage/src/__tests__/claimed-agent-graph-root-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/claude-code-session-adapter.test.ts b/packages/storage/src/__tests__/claude-code-session-adapter.test.ts index 86f0c10567..c39130f4ca 100644 --- a/packages/storage/src/__tests__/claude-code-session-adapter.test.ts +++ b/packages/storage/src/__tests__/claude-code-session-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/claude-code-transcript-lineage.test.ts b/packages/storage/src/__tests__/claude-code-transcript-lineage.test.ts index b969ba32e2..ef1ebe732c 100644 --- a/packages/storage/src/__tests__/claude-code-transcript-lineage.test.ts +++ b/packages/storage/src/__tests__/claude-code-transcript-lineage.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/storage/src/__tests__/codex-session-adapter.test.ts b/packages/storage/src/__tests__/codex-session-adapter.test.ts index 720178b2a9..8c0f2f5147 100644 --- a/packages/storage/src/__tests__/codex-session-adapter.test.ts +++ b/packages/storage/src/__tests__/codex-session-adapter.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/config-transfer.test.ts b/packages/storage/src/__tests__/config-transfer.test.ts index 0201a9d49f..ea07460294 100644 --- a/packages/storage/src/__tests__/config-transfer.test.ts +++ b/packages/storage/src/__tests__/config-transfer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import type { LlmConnection } from '@maka/core/llm-connections'; diff --git a/packages/storage/src/__tests__/credential-store.test.ts b/packages/storage/src/__tests__/credential-store.test.ts index 3781547d84..9f6e195a3b 100644 --- a/packages/storage/src/__tests__/credential-store.test.ts +++ b/packages/storage/src/__tests__/credential-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { chmod, mkdir, mkdtemp, readdir, readFile, rm, stat, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/daily-review-authority.test.ts b/packages/storage/src/__tests__/daily-review-authority.test.ts index e2e35e4a50..26ab8050e5 100644 --- a/packages/storage/src/__tests__/daily-review-authority.test.ts +++ b/packages/storage/src/__tests__/daily-review-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/dugite-native-environment.test.ts b/packages/storage/src/__tests__/dugite-native-environment.test.ts index 1ef22398fa..f9f06697b8 100644 --- a/packages/storage/src/__tests__/dugite-native-environment.test.ts +++ b/packages/storage/src/__tests__/dugite-native-environment.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { bundledGitEnvironment } from '../dugite-native-environment.js'; diff --git a/packages/storage/src/__tests__/external-session-importer.test.ts b/packages/storage/src/__tests__/external-session-importer.test.ts index 565368057f..f74d0386bb 100644 --- a/packages/storage/src/__tests__/external-session-importer.test.ts +++ b/packages/storage/src/__tests__/external-session-importer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/fixtures/artifact-writer-lock-holder.ts b/packages/storage/src/__tests__/fixtures/artifact-writer-lock-holder.ts index 3e263ed15a..7eb6337093 100644 --- a/packages/storage/src/__tests__/fixtures/artifact-writer-lock-holder.ts +++ b/packages/storage/src/__tests__/fixtures/artifact-writer-lock-holder.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { mkdir, rm, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/storage/src/__tests__/fixtures/git-repository.ts b/packages/storage/src/__tests__/fixtures/git-repository.ts index f50fc50fed..98cacbc201 100644 --- a/packages/storage/src/__tests__/fixtures/git-repository.ts +++ b/packages/storage/src/__tests__/fixtures/git-repository.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { mkdir, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/storage/src/__tests__/fixtures/git-workspace-service-crash-child.ts b/packages/storage/src/__tests__/fixtures/git-workspace-service-crash-child.ts index a54e793592..5491beef18 100644 --- a/packages/storage/src/__tests__/fixtures/git-workspace-service-crash-child.ts +++ b/packages/storage/src/__tests__/fixtures/git-workspace-service-crash-child.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { writeFileSync, writeSync } from 'node:fs'; import { join } from 'node:path'; import { createGitWorkspaceService } from '../../git-workspace-service.js'; diff --git a/packages/storage/src/__tests__/fixtures/managed-dependency-environment-crash-child.ts b/packages/storage/src/__tests__/fixtures/managed-dependency-environment-crash-child.ts index b85b9ff717..4f78399a4c 100644 --- a/packages/storage/src/__tests__/fixtures/managed-dependency-environment-crash-child.ts +++ b/packages/storage/src/__tests__/fixtures/managed-dependency-environment-crash-child.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, writeFile } from 'node:fs/promises'; import { computeManagedDependencyEnvironmentIdentity, diff --git a/packages/storage/src/__tests__/fixtures/managed-dependency-environment-owner-child.ts b/packages/storage/src/__tests__/fixtures/managed-dependency-environment-owner-child.ts index 80592aa649..7340c46514 100644 --- a/packages/storage/src/__tests__/fixtures/managed-dependency-environment-owner-child.ts +++ b/packages/storage/src/__tests__/fixtures/managed-dependency-environment-owner-child.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createManagedDependencyEnvironmentAuthority, createManagedDependencyEnvironmentProducerCapability, diff --git a/packages/storage/src/__tests__/fixtures/root-initialization-race.ts b/packages/storage/src/__tests__/fixtures/root-initialization-race.ts index 3e194cdd06..6446802002 100644 --- a/packages/storage/src/__tests__/fixtures/root-initialization-race.ts +++ b/packages/storage/src/__tests__/fixtures/root-initialization-race.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; import { join } from 'node:path'; diff --git a/packages/storage/src/__tests__/fixtures/root-lock-holder.ts b/packages/storage/src/__tests__/fixtures/root-lock-holder.ts index 55064390c4..72fef3c27b 100644 --- a/packages/storage/src/__tests__/fixtures/root-lock-holder.ts +++ b/packages/storage/src/__tests__/fixtures/root-lock-holder.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { resolveStorageRoot, diff --git a/packages/storage/src/__tests__/fixtures/root-resolver.ts b/packages/storage/src/__tests__/fixtures/root-resolver.ts index 1335180bfa..5259ffd941 100644 --- a/packages/storage/src/__tests__/fixtures/root-resolver.ts +++ b/packages/storage/src/__tests__/fixtures/root-resolver.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolveStorageRoot, StorageRootAuthorityError } from '../../root-authority.js'; const [root] = process.argv.slice(2); diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-hydration-binding-crash.ts b/packages/storage/src/__tests__/fixtures/session-bundle-hydration-binding-crash.ts index e56e8b6212..7befd0ffa1 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-hydration-binding-crash.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-hydration-binding-crash.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-hydration-owner-write-failure.ts b/packages/storage/src/__tests__/fixtures/session-bundle-hydration-owner-write-failure.ts index 0809298bcc..32b89d46e0 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-hydration-owner-write-failure.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-hydration-owner-write-failure.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-inspect-child.ts b/packages/storage/src/__tests__/fixtures/session-bundle-inspect-child.ts index 5e4b23e838..6c15ba4994 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-inspect-child.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-inspect-child.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createSessionBundleFileService, type SessionBundleLimits } from '../../index.js'; const [archivePath, archiveDigest, limitsJson, destinationRoot] = process.argv.slice(2); diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-inspect-source-mutator.ts b/packages/storage/src/__tests__/fixtures/session-bundle-inspect-source-mutator.ts index d426faae2e..c774e8c915 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-inspect-source-mutator.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-inspect-source-mutator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { resolve } from 'node:path'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-pack-destination-replacer.ts b/packages/storage/src/__tests__/fixtures/session-bundle-pack-destination-replacer.ts index 54d3600e64..e02d3b3191 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-pack-destination-replacer.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-pack-destination-replacer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-pack-link-replacer.ts b/packages/storage/src/__tests__/fixtures/session-bundle-pack-link-replacer.ts index 8bffbb61b5..31137c26a9 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-pack-link-replacer.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-pack-link-replacer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-pack-linked-temp-remover.ts b/packages/storage/src/__tests__/fixtures/session-bundle-pack-linked-temp-remover.ts index f6f0ae6018..7b3bcc155d 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-pack-linked-temp-remover.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-pack-linked-temp-remover.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import fs from 'node:fs'; import { syncBuiltinESMExports } from 'node:module'; diff --git a/packages/storage/src/__tests__/fixtures/session-bundle-pack-temp-replacer.ts b/packages/storage/src/__tests__/fixtures/session-bundle-pack-temp-replacer.ts index 0e042d9568..4f2db39c18 100644 --- a/packages/storage/src/__tests__/fixtures/session-bundle-pack-temp-replacer.ts +++ b/packages/storage/src/__tests__/fixtures/session-bundle-pack-temp-replacer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readdirSync, renameSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; diff --git a/packages/storage/src/__tests__/fixtures/settle-sandbox-boundary-worker.ts b/packages/storage/src/__tests__/fixtures/settle-sandbox-boundary-worker.ts index 3cbf15919f..cfa7c50ded 100644 --- a/packages/storage/src/__tests__/fixtures/settle-sandbox-boundary-worker.ts +++ b/packages/storage/src/__tests__/fixtures/settle-sandbox-boundary-worker.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parentPort, workerData } from 'node:worker_threads'; import type { SandboxBoundarySettlement } from '@maka/core/sandbox-boundary'; diff --git a/packages/storage/src/__tests__/fixtures/sqlite-recovery-concurrency-child.ts b/packages/storage/src/__tests__/fixtures/sqlite-recovery-concurrency-child.ts index 88da6e8d03..0d67890b2f 100644 --- a/packages/storage/src/__tests__/fixtures/sqlite-recovery-concurrency-child.ts +++ b/packages/storage/src/__tests__/fixtures/sqlite-recovery-concurrency-child.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { existsSync, writeSync } from 'node:fs'; import { dirname } from 'node:path'; import { type RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/storage/src/__tests__/fixtures/work-board-cas-worker.ts b/packages/storage/src/__tests__/fixtures/work-board-cas-worker.ts index 4803c7942f..81eda1193d 100644 --- a/packages/storage/src/__tests__/fixtures/work-board-cas-worker.ts +++ b/packages/storage/src/__tests__/fixtures/work-board-cas-worker.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { parentPort, threadId, workerData } from 'node:worker_threads'; import { createWorkBoardStore } from '../../work-board-store.js'; diff --git a/packages/storage/src/__tests__/foreign-session-store.test.ts b/packages/storage/src/__tests__/foreign-session-store.test.ts index 391a7cfba2..81e268ead4 100644 --- a/packages/storage/src/__tests__/foreign-session-store.test.ts +++ b/packages/storage/src/__tests__/foreign-session-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { mkdir, mkdtemp, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/git-workspace-service.test.ts b/packages/storage/src/__tests__/git-workspace-service.test.ts index 1a6c8f7091..831b88d97f 100644 --- a/packages/storage/src/__tests__/git-workspace-service.test.ts +++ b/packages/storage/src/__tests__/git-workspace-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile, spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/storage/src/__tests__/git-worktree-child-executor.test.ts b/packages/storage/src/__tests__/git-worktree-child-executor.test.ts index a72263fe50..4e3ca56bb5 100644 --- a/packages/storage/src/__tests__/git-worktree-child-executor.test.ts +++ b/packages/storage/src/__tests__/git-worktree-child-executor.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { mkdir, mkdtemp, rm, stat, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/goal-authority.test.ts b/packages/storage/src/__tests__/goal-authority.test.ts index 1be86d8957..a632ef907b 100644 --- a/packages/storage/src/__tests__/goal-authority.test.ts +++ b/packages/storage/src/__tests__/goal-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/legacy-cron-expression.test.ts b/packages/storage/src/__tests__/legacy-cron-expression.test.ts index e67d19121b..37a1e8cdbd 100644 --- a/packages/storage/src/__tests__/legacy-cron-expression.test.ts +++ b/packages/storage/src/__tests__/legacy-cron-expression.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { canonicalizeLegacyPlanReminderCronExpression } from '../legacy-cron-expression.js'; diff --git a/packages/storage/src/__tests__/managed-dependency-environment-crash.test.ts b/packages/storage/src/__tests__/managed-dependency-environment-crash.test.ts index 74be44798f..b0576f05fa 100644 --- a/packages/storage/src/__tests__/managed-dependency-environment-crash.test.ts +++ b/packages/storage/src/__tests__/managed-dependency-environment-crash.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile, spawn, type ChildProcess } from 'node:child_process'; import { mkdtemp, mkdir, readdir, readFile, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/managed-dependency-environment.test.ts b/packages/storage/src/__tests__/managed-dependency-environment.test.ts index d214538030..d154404ecc 100644 --- a/packages/storage/src/__tests__/managed-dependency-environment.test.ts +++ b/packages/storage/src/__tests__/managed-dependency-environment.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { access, diff --git a/packages/storage/src/__tests__/managed-secret-store.test.ts b/packages/storage/src/__tests__/managed-secret-store.test.ts index 52252a9626..2eefcec9f0 100644 --- a/packages/storage/src/__tests__/managed-secret-store.test.ts +++ b/packages/storage/src/__tests__/managed-secret-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/managed-workspace-baseline.test.ts b/packages/storage/src/__tests__/managed-workspace-baseline.test.ts index 71118d9b01..8adbb57c39 100644 --- a/packages/storage/src/__tests__/managed-workspace-baseline.test.ts +++ b/packages/storage/src/__tests__/managed-workspace-baseline.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile, execFileSync, spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/storage/src/__tests__/managed-workspace-execution-authority-internal.test.ts b/packages/storage/src/__tests__/managed-workspace-execution-authority-internal.test.ts index fb8410c6f1..4c8a603404 100644 --- a/packages/storage/src/__tests__/managed-workspace-execution-authority-internal.test.ts +++ b/packages/storage/src/__tests__/managed-workspace-execution-authority-internal.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/storage/src/__tests__/managed-workspace-owner.test.ts b/packages/storage/src/__tests__/managed-workspace-owner.test.ts index c53075142c..20a2b24243 100644 --- a/packages/storage/src/__tests__/managed-workspace-owner.test.ts +++ b/packages/storage/src/__tests__/managed-workspace-owner.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/packages/storage/src/__tests__/managed-workspace-worker-bridge-internal.test.ts b/packages/storage/src/__tests__/managed-workspace-worker-bridge-internal.test.ts index e169c5b061..188271d2ae 100644 --- a/packages/storage/src/__tests__/managed-workspace-worker-bridge-internal.test.ts +++ b/packages/storage/src/__tests__/managed-workspace-worker-bridge-internal.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createReadOnlyPermissionProfile } from '@maka/core/permission-profile'; diff --git a/packages/storage/src/__tests__/marker-file.test.ts b/packages/storage/src/__tests__/marker-file.test.ts index 60e54e3d0d..294c6276da 100644 --- a/packages/storage/src/__tests__/marker-file.test.ts +++ b/packages/storage/src/__tests__/marker-file.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, open, readdir, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/mcp-config-store.test.ts b/packages/storage/src/__tests__/mcp-config-store.test.ts index 731cd582d6..7ece72bbd4 100644 --- a/packages/storage/src/__tests__/mcp-config-store.test.ts +++ b/packages/storage/src/__tests__/mcp-config-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/memory-bundle-store.test.ts b/packages/storage/src/__tests__/memory-bundle-store.test.ts index 58044814ea..00758ef89a 100644 --- a/packages/storage/src/__tests__/memory-bundle-store.test.ts +++ b/packages/storage/src/__tests__/memory-bundle-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { lstat, mkdir, mkdtemp, readFile, readdir, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/model-call-ledger.test.ts b/packages/storage/src/__tests__/model-call-ledger.test.ts index fbf27c6371..1a4190d309 100644 --- a/packages/storage/src/__tests__/model-call-ledger.test.ts +++ b/packages/storage/src/__tests__/model-call-ledger.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/operational-state-backup.test.ts b/packages/storage/src/__tests__/operational-state-backup.test.ts index 3c88be9674..9965b9e7c3 100644 --- a/packages/storage/src/__tests__/operational-state-backup.test.ts +++ b/packages/storage/src/__tests__/operational-state-backup.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdir, mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/operational-state-store.test.ts b/packages/storage/src/__tests__/operational-state-store.test.ts index c044b7de73..c906847c13 100644 --- a/packages/storage/src/__tests__/operational-state-store.test.ts +++ b/packages/storage/src/__tests__/operational-state-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { chmod, copyFile, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/pet-pack-store.test.ts b/packages/storage/src/__tests__/pet-pack-store.test.ts index c6f67c4698..5e8033b17f 100644 --- a/packages/storage/src/__tests__/pet-pack-store.test.ts +++ b/packages/storage/src/__tests__/pet-pack-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, readdir, rm, symlink, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/project-catalog-authority.test.ts b/packages/storage/src/__tests__/project-catalog-authority.test.ts index 0687a3caaf..34586827e6 100644 --- a/packages/storage/src/__tests__/project-catalog-authority.test.ts +++ b/packages/storage/src/__tests__/project-catalog-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/project-catalog.test.ts b/packages/storage/src/__tests__/project-catalog.test.ts index b34b733483..e7d81c903f 100644 --- a/packages/storage/src/__tests__/project-catalog.test.ts +++ b/packages/storage/src/__tests__/project-catalog.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { mkdir, mkdtemp, readFile, realpath, rm as remove, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/provider-request-capture-artifact.test.ts b/packages/storage/src/__tests__/provider-request-capture-artifact.test.ts index ced8ceb314..ceeeb5e6cd 100644 --- a/packages/storage/src/__tests__/provider-request-capture-artifact.test.ts +++ b/packages/storage/src/__tests__/provider-request-capture-artifact.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdtemp } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; diff --git a/packages/storage/src/__tests__/recovery-persistence-authority.test.ts b/packages/storage/src/__tests__/recovery-persistence-authority.test.ts index 0f78ee30d1..987e656073 100644 --- a/packages/storage/src/__tests__/recovery-persistence-authority.test.ts +++ b/packages/storage/src/__tests__/recovery-persistence-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/regenerate-root-admission.test.ts b/packages/storage/src/__tests__/regenerate-root-admission.test.ts index 34aa056147..f1c2d0c501 100644 --- a/packages/storage/src/__tests__/regenerate-root-admission.test.ts +++ b/packages/storage/src/__tests__/regenerate-root-admission.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/root-authority.test.ts b/packages/storage/src/__tests__/root-authority.test.ts index 28e3b33041..339a39da96 100644 --- a/packages/storage/src/__tests__/root-authority.test.ts +++ b/packages/storage/src/__tests__/root-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { fork, spawnSync, type ChildProcess } from 'node:child_process'; import { diff --git a/packages/storage/src/__tests__/root-turn-admission-normalization.test.ts b/packages/storage/src/__tests__/root-turn-admission-normalization.test.ts index d6ae92733f..431133f91c 100644 --- a/packages/storage/src/__tests__/root-turn-admission-normalization.test.ts +++ b/packages/storage/src/__tests__/root-turn-admission-normalization.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { normalizeRootTurnAdmissionPayload } from '../agent-run-store.js'; diff --git a/packages/storage/src/__tests__/runtime-policy-stores.test.ts b/packages/storage/src/__tests__/runtime-policy-stores.test.ts index 18d094d22d..f0d695967d 100644 --- a/packages/storage/src/__tests__/runtime-policy-stores.test.ts +++ b/packages/storage/src/__tests__/runtime-policy-stores.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { existsSync } from 'node:fs'; diff --git a/packages/storage/src/__tests__/session-bundle-canonical-tree.test.ts b/packages/storage/src/__tests__/session-bundle-canonical-tree.test.ts index 7d111df3ea..195ef8b2dd 100644 --- a/packages/storage/src/__tests__/session-bundle-canonical-tree.test.ts +++ b/packages/storage/src/__tests__/session-bundle-canonical-tree.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { test } from 'node:test'; diff --git a/packages/storage/src/__tests__/session-bundle-contract.test.ts b/packages/storage/src/__tests__/session-bundle-contract.test.ts index 75056e5d8d..4096df921c 100644 --- a/packages/storage/src/__tests__/session-bundle-contract.test.ts +++ b/packages/storage/src/__tests__/session-bundle-contract.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/storage/src/__tests__/session-bundle-file-service.test.ts b/packages/storage/src/__tests__/session-bundle-file-service.test.ts index c2982e5383..fc007730ec 100644 --- a/packages/storage/src/__tests__/session-bundle-file-service.test.ts +++ b/packages/storage/src/__tests__/session-bundle-file-service.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash, randomBytes } from 'node:crypto'; import { diff --git a/packages/storage/src/__tests__/session-bundle-manifest.test.ts b/packages/storage/src/__tests__/session-bundle-manifest.test.ts index 086dccdc7c..1b5d0273b1 100644 --- a/packages/storage/src/__tests__/session-bundle-manifest.test.ts +++ b/packages/storage/src/__tests__/session-bundle-manifest.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { diff --git a/packages/storage/src/__tests__/session-bundle-policy.test.ts b/packages/storage/src/__tests__/session-bundle-policy.test.ts index 9e833dfcb5..d58ec04d5c 100644 --- a/packages/storage/src/__tests__/session-bundle-policy.test.ts +++ b/packages/storage/src/__tests__/session-bundle-policy.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/session-bundle-ustar.test.ts b/packages/storage/src/__tests__/session-bundle-ustar.test.ts index d30127532b..ff23743fe8 100644 --- a/packages/storage/src/__tests__/session-bundle-ustar.test.ts +++ b/packages/storage/src/__tests__/session-bundle-ustar.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { test } from 'node:test'; diff --git a/packages/storage/src/__tests__/session-store.test.ts b/packages/storage/src/__tests__/session-store.test.ts index 87d853d0d1..71e81abe19 100644 --- a/packages/storage/src/__tests__/session-store.test.ts +++ b/packages/storage/src/__tests__/session-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/settings-store-onboarding.test.ts b/packages/storage/src/__tests__/settings-store-onboarding.test.ts index 073382b1bc..3852f11019 100644 --- a/packages/storage/src/__tests__/settings-store-onboarding.test.ts +++ b/packages/storage/src/__tests__/settings-store-onboarding.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Tests for SettingsStore.upsertOnboardingMilestone (PR110b). * diff --git a/packages/storage/src/__tests__/settings-store-usage.test.ts b/packages/storage/src/__tests__/settings-store-usage.test.ts index 7f88b83cef..0d8f43a107 100644 --- a/packages/storage/src/__tests__/settings-store-usage.test.ts +++ b/packages/storage/src/__tests__/settings-store-usage.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/shell-run-authority.test.ts b/packages/storage/src/__tests__/shell-run-authority.test.ts index 3cf7707799..719bd05723 100644 --- a/packages/storage/src/__tests__/shell-run-authority.test.ts +++ b/packages/storage/src/__tests__/shell-run-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/sqlite-core-execution-store.test.ts b/packages/storage/src/__tests__/sqlite-core-execution-store.test.ts index e2e8fb787f..d862aa31ad 100644 --- a/packages/storage/src/__tests__/sqlite-core-execution-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-core-execution-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/sqlite-long-term-memory-crash.test.ts b/packages/storage/src/__tests__/sqlite-long-term-memory-crash.test.ts index d7325a5954..52411339af 100644 --- a/packages/storage/src/__tests__/sqlite-long-term-memory-crash.test.ts +++ b/packages/storage/src/__tests__/sqlite-long-term-memory-crash.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { writeSync } from 'node:fs'; diff --git a/packages/storage/src/__tests__/sqlite-long-term-memory-store.test.ts b/packages/storage/src/__tests__/sqlite-long-term-memory-store.test.ts index 09aadc8c0f..9da19f411e 100644 --- a/packages/storage/src/__tests__/sqlite-long-term-memory-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-long-term-memory-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { createRequire } from 'node:module'; import { chmod, link, mkdtemp, readFile, rm, stat, symlink, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/sqlite-recovery-concurrency.test.ts b/packages/storage/src/__tests__/sqlite-recovery-concurrency.test.ts index b5261f4140..53879a7920 100644 --- a/packages/storage/src/__tests__/sqlite-recovery-concurrency.test.ts +++ b/packages/storage/src/__tests__/sqlite-recovery-concurrency.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/sqlite-runtime-crash.test.ts b/packages/storage/src/__tests__/sqlite-runtime-crash.test.ts index 8d8a7ce95c..3ececd2303 100644 --- a/packages/storage/src/__tests__/sqlite-runtime-crash.test.ts +++ b/packages/storage/src/__tests__/sqlite-runtime-crash.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawn } from 'node:child_process'; import { mkdtemp, readFile, rm } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/sqlite-runtime-schema.test.ts b/packages/storage/src/__tests__/sqlite-runtime-schema.test.ts index e6b3ccbde1..1469e639c0 100644 --- a/packages/storage/src/__tests__/sqlite-runtime-schema.test.ts +++ b/packages/storage/src/__tests__/sqlite-runtime-schema.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { DatabaseSync } from 'node:sqlite'; import { describe, it } from 'node:test'; diff --git a/packages/storage/src/__tests__/sqlite-runtime-store.test.ts b/packages/storage/src/__tests__/sqlite-runtime-store.test.ts index 9e3ed22587..e6544c8056 100644 --- a/packages/storage/src/__tests__/sqlite-runtime-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-runtime-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts b/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts index d8bccad8b2..9e1d6e11ff 100644 --- a/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/sqlite-usage-schema.test.ts b/packages/storage/src/__tests__/sqlite-usage-schema.test.ts index 38a929cd26..bc644548a6 100644 --- a/packages/storage/src/__tests__/sqlite-usage-schema.test.ts +++ b/packages/storage/src/__tests__/sqlite-usage-schema.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { DatabaseSync } from 'node:sqlite'; import { test } from 'node:test'; diff --git a/packages/storage/src/__tests__/sqlite-workflow-store.test.ts b/packages/storage/src/__tests__/sqlite-workflow-store.test.ts index 04f2037423..742b9aade4 100644 --- a/packages/storage/src/__tests__/sqlite-workflow-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-workflow-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/state-root-composition.test.ts b/packages/storage/src/__tests__/state-root-composition.test.ts index 05bb05a015..32b6d11b9f 100644 --- a/packages/storage/src/__tests__/state-root-composition.test.ts +++ b/packages/storage/src/__tests__/state-root-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/storage-writer-composition.test.ts b/packages/storage/src/__tests__/storage-writer-composition.test.ts index d9a1f0a6a4..7e7ea4537f 100644 --- a/packages/storage/src/__tests__/storage-writer-composition.test.ts +++ b/packages/storage/src/__tests__/storage-writer-composition.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/task-ledger-authority.test.ts b/packages/storage/src/__tests__/task-ledger-authority.test.ts index 8e3adce6a1..02d5e16651 100644 --- a/packages/storage/src/__tests__/task-ledger-authority.test.ts +++ b/packages/storage/src/__tests__/task-ledger-authority.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/usage-stores.test.ts b/packages/storage/src/__tests__/usage-stores.test.ts index b995a04a86..14536b6eb4 100644 --- a/packages/storage/src/__tests__/usage-stores.test.ts +++ b/packages/storage/src/__tests__/usage-stores.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, readFile, rename, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/work-board-store.test.ts b/packages/storage/src/__tests__/work-board-store.test.ts index 93faf56f48..1f43166107 100644 --- a/packages/storage/src/__tests__/work-board-store.test.ts +++ b/packages/storage/src/__tests__/work-board-store.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { copyFile, mkdir, mkdtemp, rm } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/workspace-identity.test.ts b/packages/storage/src/__tests__/workspace-identity.test.ts index dc3a451fca..22ed636cff 100644 --- a/packages/storage/src/__tests__/workspace-identity.test.ts +++ b/packages/storage/src/__tests__/workspace-identity.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { access, chmod, mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; diff --git a/packages/storage/src/__tests__/workspace-root.test.ts b/packages/storage/src/__tests__/workspace-root.test.ts index 3af6e75689..1743e9aa6f 100644 --- a/packages/storage/src/__tests__/workspace-root.test.ts +++ b/packages/storage/src/__tests__/workspace-root.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/packages/storage/src/__tests__/workspace-version-authority-persistence.test.ts b/packages/storage/src/__tests__/workspace-version-authority-persistence.test.ts index 282da536b3..82ceabf2a7 100644 --- a/packages/storage/src/__tests__/workspace-version-authority-persistence.test.ts +++ b/packages/storage/src/__tests__/workspace-version-authority-persistence.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/__tests__/write-queue.test.ts b/packages/storage/src/__tests__/write-queue.test.ts index ab4198b9dc..2695cc9490 100644 --- a/packages/storage/src/__tests__/write-queue.test.ts +++ b/packages/storage/src/__tests__/write-queue.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { chainWrite } from '../write-queue.js'; diff --git a/packages/storage/src/activation-secret-injector.ts b/packages/storage/src/activation-secret-injector.ts index 0d1edfeb69..1251c6321f 100644 --- a/packages/storage/src/activation-secret-injector.ts +++ b/packages/storage/src/activation-secret-injector.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeManagedSecretEnvironmentName, decodeManagedSecretReference, diff --git a/packages/storage/src/agent-graph-control-store.ts b/packages/storage/src/agent-graph-control-store.ts index 62fd96d69b..52106d121a 100644 --- a/packages/storage/src/agent-graph-control-store.ts +++ b/packages/storage/src/agent-graph-control-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import { acquireOperationalStateDatabase, diff --git a/packages/storage/src/agent-run-store.ts b/packages/storage/src/agent-run-store.ts index c8711f40a2..8da7b31c82 100644 --- a/packages/storage/src/agent-run-store.ts +++ b/packages/storage/src/agent-run-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { resolve } from 'node:path'; import { isDeepStrictEqual } from 'node:util'; diff --git a/packages/storage/src/artifact-attachments.ts b/packages/storage/src/artifact-attachments.ts index 02d75e5682..075ba28dac 100644 --- a/packages/storage/src/artifact-attachments.ts +++ b/packages/storage/src/artifact-attachments.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MAX_ATTACHMENT_BYTES, MAX_READ_IMAGE_BYTES, diff --git a/packages/storage/src/artifact-metadata-codec.ts b/packages/storage/src/artifact-metadata-codec.ts index 405f1545d8..e5f9d05b2d 100644 --- a/packages/storage/src/artifact-metadata-codec.ts +++ b/packages/storage/src/artifact-metadata-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isAbsolute, basename } from 'node:path'; import { ARTIFACT_KINDS, diff --git a/packages/storage/src/artifact-metadata-repository.ts b/packages/storage/src/artifact-metadata-repository.ts index 60987b8d1f..ac99e603cc 100644 --- a/packages/storage/src/artifact-metadata-repository.ts +++ b/packages/storage/src/artifact-metadata-repository.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ArtifactRecord } from '@maka/core/artifacts'; export interface ArtifactMetadataRepository { diff --git a/packages/storage/src/artifact-storage-layout.ts b/packages/storage/src/artifact-storage-layout.ts index 43100b167f..63b50ee369 100644 --- a/packages/storage/src/artifact-storage-layout.ts +++ b/packages/storage/src/artifact-storage-layout.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const UUID_V4_FRAGMENT = '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}'; export const ARTIFACT_PURGE_INTENT_FILE = '.artifact-purge-intent.json'; diff --git a/packages/storage/src/artifact-store.ts b/packages/storage/src/artifact-store.ts index a8e7da7f2a..bcc802d443 100644 --- a/packages/storage/src/artifact-store.ts +++ b/packages/storage/src/artifact-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { type BigIntStats, constants as fsConstants, createReadStream, type Dirent } from 'node:fs'; import { diff --git a/packages/storage/src/artifact-stores.ts b/packages/storage/src/artifact-stores.ts index 929f070dd5..4cdd20ae1d 100644 --- a/packages/storage/src/artifact-stores.ts +++ b/packages/storage/src/artifact-stores.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ArtifactRecord } from '@maka/core/artifacts'; import { createSqliteArtifactStoreWriteAuthority, diff --git a/packages/storage/src/artifact-writer-bootstrap-lock.ts b/packages/storage/src/artifact-writer-bootstrap-lock.ts index 805a418e2b..3eec8899bc 100644 --- a/packages/storage/src/artifact-writer-bootstrap-lock.ts +++ b/packages/storage/src/artifact-writer-bootstrap-lock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /// import { constants as fsConstants } from 'node:fs'; diff --git a/packages/storage/src/artifact-writer-lock.ts b/packages/storage/src/artifact-writer-lock.ts index 699ba7e34a..20869b83a3 100644 --- a/packages/storage/src/artifact-writer-lock.ts +++ b/packages/storage/src/artifact-writer-lock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /// import { constants as fsConstants } from 'node:fs'; diff --git a/packages/storage/src/bounded-evidence.ts b/packages/storage/src/bounded-evidence.ts index cd6ee3e487..b76aee156d 100644 --- a/packages/storage/src/bounded-evidence.ts +++ b/packages/storage/src/bounded-evidence.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface EvidenceReadBudget { readonly maxRecords: number; readonly maxBytes: number; diff --git a/packages/storage/src/claude-code-session-adapter.ts b/packages/storage/src/claude-code-session-adapter.ts index e450ebe111..82ed5d1fff 100644 --- a/packages/storage/src/claude-code-session-adapter.ts +++ b/packages/storage/src/claude-code-session-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Claude Code transcripts as Maka Sessions. // // Transcripts live at `~/.claude/projects//.jsonl`, one diff --git a/packages/storage/src/claude-code-transcript-lineage.ts b/packages/storage/src/claude-code-transcript-lineage.ts index 4c2ce09f5b..bbd5b73322 100644 --- a/packages/storage/src/claude-code-transcript-lineage.ts +++ b/packages/storage/src/claude-code-transcript-lineage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Source resolution for a Claude Code transcript, ahead of any conversion. * diff --git a/packages/storage/src/codex-session-adapter.ts b/packages/storage/src/codex-session-adapter.ts index 74ec33a0bb..332c2f0df3 100644 --- a/packages/storage/src/codex-session-adapter.ts +++ b/packages/storage/src/codex-session-adapter.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Dirent } from 'node:fs'; import { open, readdir, realpath, stat } from 'node:fs/promises'; import { homedir } from 'node:os'; diff --git a/packages/storage/src/config-transfer.ts b/packages/storage/src/config-transfer.ts index 8106e3b60e..8b5349d637 100644 --- a/packages/storage/src/config-transfer.ts +++ b/packages/storage/src/config-transfer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { LlmConnection } from '@maka/core/llm-connections'; import { isRetiredProvider } from '@maka/core/provider-registry'; diff --git a/packages/storage/src/conversation-operational-state.ts b/packages/storage/src/conversation-operational-state.ts index 6bdf6c6912..2f87bd8921 100644 --- a/packages/storage/src/conversation-operational-state.ts +++ b/packages/storage/src/conversation-operational-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WORKSPACE_AUTHORITY_SESSION_ID } from '@maka/core/workspace-version-authority'; import { acquireOperationalStateDatabase, diff --git a/packages/storage/src/credential-store.ts b/packages/storage/src/credential-store.ts index 2372d652e9..eaaf81cd95 100644 --- a/packages/storage/src/credential-store.ts +++ b/packages/storage/src/credential-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, mkdir, open, readFile, rename, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/packages/storage/src/daily-review-authority.ts b/packages/storage/src/daily-review-authority.ts index f25f6d099b..f4cf3b6fd2 100644 --- a/packages/storage/src/daily-review-authority.ts +++ b/packages/storage/src/daily-review-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DEFAULT_DAILY_REVIEW_CONFIG, dailyReviewArchiveId, diff --git a/packages/storage/src/deep-research-authority.ts b/packages/storage/src/deep-research-authority.ts index 9ddf0dec0a..72945ebd84 100644 --- a/packages/storage/src/deep-research-authority.ts +++ b/packages/storage/src/deep-research-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DeepResearchArtifactRef, DeepResearchChecklistItem, diff --git a/packages/storage/src/deep-research-store.ts b/packages/storage/src/deep-research-store.ts index e61cab5767..3075811057 100644 --- a/packages/storage/src/deep-research-store.ts +++ b/packages/storage/src/deep-research-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { resolve } from 'node:path'; import type { DatabaseSync } from 'node:sqlite'; diff --git a/packages/storage/src/dugite-native-environment.ts b/packages/storage/src/dugite-native-environment.ts index 287cd0d73c..2797207445 100644 --- a/packages/storage/src/dugite-native-environment.ts +++ b/packages/storage/src/dugite-native-environment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { posix, win32 } from 'node:path'; export interface BundledGitEnvironmentInput { diff --git a/packages/storage/src/encrypted-file-managed-secret-store.ts b/packages/storage/src/encrypted-file-managed-secret-store.ts index 5448eddf1b..d685970734 100644 --- a/packages/storage/src/encrypted-file-managed-secret-store.ts +++ b/packages/storage/src/encrypted-file-managed-secret-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createCipheriv, createDecipheriv, randomBytes, randomUUID } from 'node:crypto'; import { constants as fsConstants } from 'node:fs'; import { chmod, mkdir, open, rename, rm } from 'node:fs/promises'; diff --git a/packages/storage/src/execution-record-codec.ts b/packages/storage/src/execution-record-codec.ts index feb8869ae0..acb472a1f8 100644 --- a/packages/storage/src/execution-record-codec.ts +++ b/packages/storage/src/execution-record-codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeAgentRunEvent as decodeCanonicalAgentRunEvent, decodeAgentRunHeader as decodeCanonicalAgentRunHeader, diff --git a/packages/storage/src/execution-stores.ts b/packages/storage/src/execution-stores.ts index aa3a60cd71..ea8e49bcda 100644 --- a/packages/storage/src/execution-stores.ts +++ b/packages/storage/src/execution-stores.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AgentRunEvent, AgentRunEventType, diff --git a/packages/storage/src/external-session-adapters.ts b/packages/storage/src/external-session-adapters.ts index ed946db8d5..580d72110e 100644 --- a/packages/storage/src/external-session-adapters.ts +++ b/packages/storage/src/external-session-adapters.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { ExternalSessionAdapterRegistry } from '@maka/core/external-session'; import { ClaudeCodeSessionAdapter, diff --git a/packages/storage/src/external-session-importer.ts b/packages/storage/src/external-session-importer.ts index 692c969dcd..22b4d45b85 100644 --- a/packages/storage/src/external-session-importer.ts +++ b/packages/storage/src/external-session-importer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CreateSessionInput } from '@maka/core/runtime-inputs'; import type { SessionHeader } from '@maka/core/session'; import type { ExternalAgentId, ExternalSessionAdapterRegistry } from '@maka/core/external-session'; diff --git a/packages/storage/src/external-sessions.ts b/packages/storage/src/external-sessions.ts index 197691d33e..5ef1a84ab8 100644 --- a/packages/storage/src/external-sessions.ts +++ b/packages/storage/src/external-sessions.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { createExternalSessionAdapterRegistry, type ExternalSessionAdapterOptions, diff --git a/packages/storage/src/failure-utils.ts b/packages/storage/src/failure-utils.ts index 65ebc66b7e..7d02186dd5 100644 --- a/packages/storage/src/failure-utils.ts +++ b/packages/storage/src/failure-utils.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function throwDeduplicatedFailures(message: string, failures: readonly unknown[]): void { const unique = [...new Set(failures)]; if (unique.length === 0) return; diff --git a/packages/storage/src/file-update-lock.ts b/packages/storage/src/file-update-lock.ts index 486f8445ce..25596e7bff 100644 --- a/packages/storage/src/file-update-lock.ts +++ b/packages/storage/src/file-update-lock.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, rm } from 'node:fs/promises'; const LOCK_POLL_MS = 25; diff --git a/packages/storage/src/foreign-session-store.ts b/packages/storage/src/foreign-session-store.ts index ccebb769e8..d130110634 100644 --- a/packages/storage/src/foreign-session-store.ts +++ b/packages/storage/src/foreign-session-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Read-only scanner + digest reader over foreign agent session stores * (#1057): Claude Code (~/.claude/projects) and Codex (~/.codex). diff --git a/packages/storage/src/fs-native-extensions.d.ts b/packages/storage/src/fs-native-extensions.d.ts index ea836e91e8..5458f391ed 100644 --- a/packages/storage/src/fs-native-extensions.d.ts +++ b/packages/storage/src/fs-native-extensions.d.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + declare module 'fs-native-extensions' { export interface LockOptions { shared?: boolean; diff --git a/packages/storage/src/git-entry.ts b/packages/storage/src/git-entry.ts index 32237f5fba..db998487b6 100644 --- a/packages/storage/src/git-entry.ts +++ b/packages/storage/src/git-entry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lstat } from 'node:fs/promises'; import { join, parse } from 'node:path'; diff --git a/packages/storage/src/git-workspace-service.ts b/packages/storage/src/git-workspace-service.ts index a1d07e2e6c..9d4954f5bb 100644 --- a/packages/storage/src/git-workspace-service.ts +++ b/packages/storage/src/git-workspace-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, spawn, type ChildProcess } from 'node:child_process'; import { createHash, randomBytes, randomUUID } from 'node:crypto'; import { createReadStream } from 'node:fs'; diff --git a/packages/storage/src/git-worktree-child-executor.ts b/packages/storage/src/git-worktree-child-executor.ts index dcd255c56c..8aa80617aa 100644 --- a/packages/storage/src/git-worktree-child-executor.ts +++ b/packages/storage/src/git-worktree-child-executor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { copyFile, mkdir, mkdtemp, readdir, realpath, rm, stat } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/packages/storage/src/goal-authority.ts b/packages/storage/src/goal-authority.ts index a6e817cd3d..f65952687a 100644 --- a/packages/storage/src/goal-authority.ts +++ b/packages/storage/src/goal-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeGoalAuthorityRecord, type GoalAuthorityRecord } from '@maka/core/goal'; import { acquireOperationalStateDatabase, diff --git a/packages/storage/src/index.ts b/packages/storage/src/index.ts index 2f3c5c443e..1aaecd2a19 100644 --- a/packages/storage/src/index.ts +++ b/packages/storage/src/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { SessionNotFoundError, SessionReadMarkerMessageNotFoundError, diff --git a/packages/storage/src/interaction-store-public.ts b/packages/storage/src/interaction-store-public.ts index 9409c1ed64..7aa1973d29 100644 --- a/packages/storage/src/interaction-store-public.ts +++ b/packages/storage/src/interaction-store-public.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Production interaction-store surface. * diff --git a/packages/storage/src/interaction-store.ts b/packages/storage/src/interaction-store.ts index fc4cb63d39..1b53713d51 100644 --- a/packages/storage/src/interaction-store.ts +++ b/packages/storage/src/interaction-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolve } from 'node:path'; import { isDeepStrictEqual } from 'node:util'; import { diff --git a/packages/storage/src/legacy-cron-expression.ts b/packages/storage/src/legacy-cron-expression.ts index 466d44a4ff..5a2dd03cd7 100644 --- a/packages/storage/src/legacy-cron-expression.ts +++ b/packages/storage/src/legacy-cron-expression.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { compileCronExpression } from '@maka/core/cron-expression'; import { SCHEDULED_TASK_CRON_MAX_CHARS } from '@maka/core/scheduled-task'; diff --git a/packages/storage/src/long-term-memory-store.ts b/packages/storage/src/long-term-memory-store.ts index adccc9b7cd..4ab8ddd4e1 100644 --- a/packages/storage/src/long-term-memory-store.ts +++ b/packages/storage/src/long-term-memory-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import type { ApplyMemoryMutationsRequest, diff --git a/packages/storage/src/managed-baseline-receipt-authority-internal.ts b/packages/storage/src/managed-baseline-receipt-authority-internal.ts index fb2f37e5f8..e1c18ee458 100644 --- a/packages/storage/src/managed-baseline-receipt-authority-internal.ts +++ b/packages/storage/src/managed-baseline-receipt-authority-internal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CreateManagedWorkspaceFromSourceInput, GitWorkspaceService, diff --git a/packages/storage/src/managed-dependency-environment.ts b/packages/storage/src/managed-dependency-environment.ts index fa548f18b6..85065dde3c 100644 --- a/packages/storage/src/managed-dependency-environment.ts +++ b/packages/storage/src/managed-dependency-environment.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { createHash, randomUUID } from 'node:crypto'; import { createReadStream } from 'node:fs'; diff --git a/packages/storage/src/managed-secret-store.ts b/packages/storage/src/managed-secret-store.ts index 2b612656bb..ec75094988 100644 --- a/packages/storage/src/managed-secret-store.ts +++ b/packages/storage/src/managed-secret-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; export const MANAGED_SECRET_REFERENCE_SCHEMA_VERSION = 1 as const; diff --git a/packages/storage/src/managed-workspace-execution-authority-internal.ts b/packages/storage/src/managed-workspace-execution-authority-internal.ts index 9e3c798744..19676b9cde 100644 --- a/packages/storage/src/managed-workspace-execution-authority-internal.ts +++ b/packages/storage/src/managed-workspace-execution-authority-internal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeWorkspaceVersionAuthorityStore } from '@maka/core/runtime-event-store'; import type { WorkspaceHeadRecordV1 } from '@maka/core/workspace-version-authority'; import type { diff --git a/packages/storage/src/managed-workspace-owner.ts b/packages/storage/src/managed-workspace-owner.ts index 99765efcf3..5ba63d7293 100644 --- a/packages/storage/src/managed-workspace-owner.ts +++ b/packages/storage/src/managed-workspace-owner.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AsyncLocalStorage } from 'node:async_hooks'; import { createGitWorkspaceService, diff --git a/packages/storage/src/managed-workspace-worker-bridge-internal.ts b/packages/storage/src/managed-workspace-worker-bridge-internal.ts index 18512833ad..bf07b53e29 100644 --- a/packages/storage/src/managed-workspace-worker-bridge-internal.ts +++ b/packages/storage/src/managed-workspace-worker-bridge-internal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createManagedExecutionBoundary, type ExecutionBoundary, diff --git a/packages/storage/src/marker-file.ts b/packages/storage/src/marker-file.ts index 42d49d2dc7..dc9239481a 100644 --- a/packages/storage/src/marker-file.ts +++ b/packages/storage/src/marker-file.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { constants as fsConstants, type BigIntStats } from 'node:fs'; import { link, lstat, open, rename, unlink } from 'node:fs/promises'; diff --git a/packages/storage/src/mcp-config-store.ts b/packages/storage/src/mcp-config-store.ts index de9ce6222e..493e436885 100644 --- a/packages/storage/src/mcp-config-store.ts +++ b/packages/storage/src/mcp-config-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, mkdir, readFile, rename, rm, writeFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/packages/storage/src/memory-bundle-io.ts b/packages/storage/src/memory-bundle-io.ts index 3933444cc0..66ee467daa 100644 --- a/packages/storage/src/memory-bundle-io.ts +++ b/packages/storage/src/memory-bundle-io.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { constants, type BigIntStats } from 'node:fs'; import { chmod, link, lstat, mkdir, open, readdir, rename, rm, unlink } from 'node:fs/promises'; diff --git a/packages/storage/src/memory-bundle-model.ts b/packages/storage/src/memory-bundle-model.ts index 1636db0ab8..9746e8fa3d 100644 --- a/packages/storage/src/memory-bundle-model.ts +++ b/packages/storage/src/memory-bundle-model.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { LOCAL_MEMORY_MAX_BYTES } from '@maka/core/local-memory'; diff --git a/packages/storage/src/memory-bundle-store.ts b/packages/storage/src/memory-bundle-store.ts index d00c109af2..2e0cb2e04b 100644 --- a/packages/storage/src/memory-bundle-store.ts +++ b/packages/storage/src/memory-bundle-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { assertStorageRootLease, runWithStorageRootLease, diff --git a/packages/storage/src/message-receipt-store.ts b/packages/storage/src/message-receipt-store.ts index 3c791b7b77..bb948fe0bf 100644 --- a/packages/storage/src/message-receipt-store.ts +++ b/packages/storage/src/message-receipt-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolve } from 'node:path'; import { isDeepStrictEqual } from 'node:util'; import type { DatabaseSync } from 'node:sqlite'; diff --git a/packages/storage/src/model-call-ledger.ts b/packages/storage/src/model-call-ledger.ts index 1736ab2487..19749e1d40 100644 --- a/packages/storage/src/model-call-ledger.ts +++ b/packages/storage/src/model-call-ledger.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { decodeModelCallAttempt, MODEL_CALL_ATTEMPT_EVENT_TYPE, diff --git a/packages/storage/src/operational-state-backup.ts b/packages/storage/src/operational-state-backup.ts index ab69f810bb..cc64fabf1a 100644 --- a/packages/storage/src/operational-state-backup.ts +++ b/packages/storage/src/operational-state-backup.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { createReadStream, lstatSync } from 'node:fs'; import { diff --git a/packages/storage/src/operational-state-store.ts b/packages/storage/src/operational-state-store.ts index 4fed1c2772..5f2772a680 100644 --- a/packages/storage/src/operational-state-store.ts +++ b/packages/storage/src/operational-state-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { existsSync, mkdirSync } from 'node:fs'; import { dirname, resolve } from 'node:path'; import { createRequire } from 'node:module'; diff --git a/packages/storage/src/operational-target-schema.ts b/packages/storage/src/operational-target-schema.ts index 18bfd85718..b4434e21a3 100644 --- a/packages/storage/src/operational-target-schema.ts +++ b/packages/storage/src/operational-target-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { DatabaseSync } from 'node:sqlite'; import { migrateSqliteArtifactDatabase } from './sqlite-artifact-schema.js'; import { migrateSqliteCoreExecutionDatabase } from './sqlite-core-execution-schema.js'; diff --git a/packages/storage/src/pet-pack-store.ts b/packages/storage/src/pet-pack-store.ts index 6c6e59a174..43ead82c08 100644 --- a/packages/storage/src/pet-pack-store.ts +++ b/packages/storage/src/pet-pack-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { chmod, diff --git a/packages/storage/src/plan-authority.ts b/packages/storage/src/plan-authority.ts index f13e223e31..15c4a5dea3 100644 --- a/packages/storage/src/plan-authority.ts +++ b/packages/storage/src/plan-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { AbandonPlanProposalInput, ApprovePlanProposalInput, diff --git a/packages/storage/src/plan-store.ts b/packages/storage/src/plan-store.ts index 6c09a0d3c9..1ba8c2956a 100644 --- a/packages/storage/src/plan-store.ts +++ b/packages/storage/src/plan-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { resolve } from 'node:path'; import type { DatabaseSync } from 'node:sqlite'; diff --git a/packages/storage/src/pricing-store.ts b/packages/storage/src/pricing-store.ts index 08a76417e1..743f1ca726 100644 --- a/packages/storage/src/pricing-store.ts +++ b/packages/storage/src/pricing-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig } from '@maka/core/usage-stats/types'; export interface PricingSnapshot { diff --git a/packages/storage/src/project-catalog-authority.ts b/packages/storage/src/project-catalog-authority.ts index 0c9996152a..fac74a4f02 100644 --- a/packages/storage/src/project-catalog-authority.ts +++ b/packages/storage/src/project-catalog-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { assertStorageRootLease, runWithStorageRootLease, diff --git a/packages/storage/src/project-catalog.ts b/packages/storage/src/project-catalog.ts index 38986bf060..1ea3177aba 100644 --- a/packages/storage/src/project-catalog.ts +++ b/packages/storage/src/project-catalog.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { randomUUID } from 'node:crypto'; import { realpath, stat } from 'node:fs/promises'; diff --git a/packages/storage/src/provider-request-capture-artifact.ts b/packages/storage/src/provider-request-capture-artifact.ts index 658a12b1c0..2cd1d94ba8 100644 --- a/packages/storage/src/provider-request-capture-artifact.ts +++ b/packages/storage/src/provider-request-capture-artifact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ArtifactRecord } from '@maka/core/artifacts'; import type { ArtifactStore } from './artifact-store.js'; diff --git a/packages/storage/src/root-authority.ts b/packages/storage/src/root-authority.ts index d6e35bcb87..fc7bd13820 100644 --- a/packages/storage/src/root-authority.ts +++ b/packages/storage/src/root-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomBytes } from 'node:crypto'; import type { BigIntStats } from 'node:fs'; import { chmod, lstat, mkdir, open, realpath, stat, type FileHandle } from 'node:fs/promises'; diff --git a/packages/storage/src/runtime-event-authority.ts b/packages/storage/src/runtime-event-authority.ts index f6b3b031bf..bcfb82a477 100644 --- a/packages/storage/src/runtime-event-authority.ts +++ b/packages/storage/src/runtime-event-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { WORKSPACE_AUTHORITY_SESSION_ID } from '@maka/core/workspace-version-authority'; import { type RuntimeEvent } from '@maka/core/runtime-event'; diff --git a/packages/storage/src/runtime-event-invariants.ts b/packages/storage/src/runtime-event-invariants.ts index 235c6a97ce..4b0f913f0e 100644 --- a/packages/storage/src/runtime-event-invariants.ts +++ b/packages/storage/src/runtime-event-invariants.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { RuntimeEvent } from '@maka/core/runtime-event'; const SAFE_ID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/; diff --git a/packages/storage/src/runtime-event-persistence.ts b/packages/storage/src/runtime-event-persistence.ts index 97a5a0f0ff..26b11fc6f0 100644 --- a/packages/storage/src/runtime-event-persistence.ts +++ b/packages/storage/src/runtime-event-persistence.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import type { RuntimeEvent } from '@maka/core/runtime-event'; import type { BoundedEvidenceReadResult, EvidenceReadBudget } from './agent-run-store.js'; diff --git a/packages/storage/src/runtime-policy-stores.ts b/packages/storage/src/runtime-policy-stores.ts index b0cad7eb1d..e72f430bcd 100644 --- a/packages/storage/src/runtime-policy-stores.ts +++ b/packages/storage/src/runtime-policy-stores.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionCatalogMutationResult, ConnectionCatalogSnapshot, diff --git a/packages/storage/src/runtime-policy/codec.ts b/packages/storage/src/runtime-policy/codec.ts index 86910fca81..939cb70706 100644 --- a/packages/storage/src/runtime-policy/codec.ts +++ b/packages/storage/src/runtime-policy/codec.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Revision } from '@maka/core/runtime-policy'; import { codecError, type CodecSource } from './errors.js'; diff --git a/packages/storage/src/runtime-policy/connection-catalog-document.ts b/packages/storage/src/runtime-policy/connection-catalog-document.ts index 14c57a6950..4d1d9b182a 100644 --- a/packages/storage/src/runtime-policy/connection-catalog-document.ts +++ b/packages/storage/src/runtime-policy/connection-catalog-document.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { isDeepStrictEqual } from 'node:util'; import { diff --git a/packages/storage/src/runtime-policy/coordinator.ts b/packages/storage/src/runtime-policy/coordinator.ts index e804280a13..e3b541c736 100644 --- a/packages/storage/src/runtime-policy/coordinator.ts +++ b/packages/storage/src/runtime-policy/coordinator.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { decodeConnectionModelId, diff --git a/packages/storage/src/runtime-policy/credential-vault-document.ts b/packages/storage/src/runtime-policy/credential-vault-document.ts index 7833af9db0..1298b4a095 100644 --- a/packages/storage/src/runtime-policy/credential-vault-document.ts +++ b/packages/storage/src/runtime-policy/credential-vault-document.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { decodeCredentialVersionBasis, diff --git a/packages/storage/src/runtime-policy/document-io.ts b/packages/storage/src/runtime-policy/document-io.ts index 5632836253..df7d3bc137 100644 --- a/packages/storage/src/runtime-policy/document-io.ts +++ b/packages/storage/src/runtime-policy/document-io.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { constants } from 'node:fs'; import { lstat, open, readdir, rename, rm, unlink } from 'node:fs/promises'; import { join } from 'node:path'; diff --git a/packages/storage/src/runtime-policy/errors.ts b/packages/storage/src/runtime-policy/errors.ts index dd8caf95cf..612737002f 100644 --- a/packages/storage/src/runtime-policy/errors.ts +++ b/packages/storage/src/runtime-policy/errors.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { RuntimePolicyDomainDecodeError } from '@maka/core/runtime-policy'; export type RuntimePolicyStoreErrorCode = diff --git a/packages/storage/src/runtime-policy/onboarding-transaction.ts b/packages/storage/src/runtime-policy/onboarding-transaction.ts index 5b52888696..ac864cfb90 100644 --- a/packages/storage/src/runtime-policy/onboarding-transaction.ts +++ b/packages/storage/src/runtime-policy/onboarding-transaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { unlink } from 'node:fs/promises'; import { join } from 'node:path'; import { diff --git a/packages/storage/src/runtime-policy/operations.ts b/packages/storage/src/runtime-policy/operations.ts index 0d902ac953..2f7074cb65 100644 --- a/packages/storage/src/runtime-policy/operations.ts +++ b/packages/storage/src/runtime-policy/operations.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ConnectionCatalogEntry, ConnectionCatalogSnapshot, diff --git a/packages/storage/src/runtime-policy/policy-document.ts b/packages/storage/src/runtime-policy/policy-document.ts index 5e70a88a21..02c450382a 100644 --- a/packages/storage/src/runtime-policy/policy-document.ts +++ b/packages/storage/src/runtime-policy/policy-document.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createDefaultRuntimePolicy, decodeCanonicalRuntimePolicy, diff --git a/packages/storage/src/scheduled-task-store.ts b/packages/storage/src/scheduled-task-store.ts index 8d78f32fa3..d910684ef2 100644 --- a/packages/storage/src/scheduled-task-store.ts +++ b/packages/storage/src/scheduled-task-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { resolve } from 'node:path'; import { diff --git a/packages/storage/src/serialized-operation-lane.ts b/packages/storage/src/serialized-operation-lane.ts index db67cc6343..df6b7ab520 100644 --- a/packages/storage/src/serialized-operation-lane.ts +++ b/packages/storage/src/serialized-operation-lane.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type SerializedOperationExecutor = ( operation: (context: Context) => Promise, ) => Promise; diff --git a/packages/storage/src/session-bundle-canonical-tree.ts b/packages/storage/src/session-bundle-canonical-tree.ts index ec983af6f4..8ea22afe9e 100644 --- a/packages/storage/src/session-bundle-canonical-tree.ts +++ b/packages/storage/src/session-bundle-canonical-tree.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { createHash, type Hash } from 'node:crypto'; import { diff --git a/packages/storage/src/session-bundle-contract.ts b/packages/storage/src/session-bundle-contract.ts index 6989b416c5..968ab76e16 100644 --- a/packages/storage/src/session-bundle-contract.ts +++ b/packages/storage/src/session-bundle-contract.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Filesystem-facing contract for portable Session Bundles. * diff --git a/packages/storage/src/session-bundle-file-service.ts b/packages/storage/src/session-bundle-file-service.ts index 9b72faeacf..4939126fd7 100644 --- a/packages/storage/src/session-bundle-file-service.ts +++ b/packages/storage/src/session-bundle-file-service.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { createHash, randomUUID, type Hash } from 'node:crypto'; import { constants as fsConstants, type BigIntStats } from 'node:fs'; diff --git a/packages/storage/src/session-bundle-manifest.ts b/packages/storage/src/session-bundle-manifest.ts index 4e3f217f49..eaed8765b4 100644 --- a/packages/storage/src/session-bundle-manifest.ts +++ b/packages/storage/src/session-bundle-manifest.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isNonEmptyUnicodeString, isSha256Digest, diff --git a/packages/storage/src/session-bundle-policy.ts b/packages/storage/src/session-bundle-policy.ts index d21b56f731..eb7ccfbdd1 100644 --- a/packages/storage/src/session-bundle-policy.ts +++ b/packages/storage/src/session-bundle-policy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { copyFile, lstat, mkdir, readFile, readdir, realpath, rename, rm } from 'node:fs/promises'; import { randomUUID } from 'node:crypto'; import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path'; diff --git a/packages/storage/src/session-bundle-ustar.ts b/packages/storage/src/session-bundle-ustar.ts index 6b2e41393b..8038660dc0 100644 --- a/packages/storage/src/session-bundle-ustar.ts +++ b/packages/storage/src/session-bundle-ustar.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Buffer } from 'node:buffer'; import { isValidUnicodeString, SessionBundleFileError } from './session-bundle-contract.js'; diff --git a/packages/storage/src/session-conversation-copy.ts b/packages/storage/src/session-conversation-copy.ts index 30061f698b..db33111d7d 100644 --- a/packages/storage/src/session-conversation-copy.ts +++ b/packages/storage/src/session-conversation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionHeader } from '@maka/core/session'; export function isDiscardableConversationCopy(header: SessionHeader): boolean { diff --git a/packages/storage/src/session-store.ts b/packages/storage/src/session-store.ts index 4dc5e36d5b..091a2867ce 100644 --- a/packages/storage/src/session-store.ts +++ b/packages/storage/src/session-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import { createHash, randomUUID } from 'node:crypto'; import { diff --git a/packages/storage/src/settings-store.ts b/packages/storage/src/settings-store.ts index f211a47b14..390006ed3b 100644 --- a/packages/storage/src/settings-store.ts +++ b/packages/storage/src/settings-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, readFile, rename, writeFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; import type { diff --git a/packages/storage/src/shell-run-authority.ts b/packages/storage/src/shell-run-authority.ts index 921a5b2de0..ba09ef3abf 100644 --- a/packages/storage/src/shell-run-authority.ts +++ b/packages/storage/src/shell-run-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ShellRunPatch, ShellRunRecord, ShellRunStore } from '@maka/core/shell-run'; import { assertStorageRootLease, diff --git a/packages/storage/src/shell-run-store.ts b/packages/storage/src/shell-run-store.ts index 3f09b8fbee..89d67c9640 100644 --- a/packages/storage/src/shell-run-store.ts +++ b/packages/storage/src/shell-run-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { assertShellRunIdentifier, assertShellRunPatch, diff --git a/packages/storage/src/sqlite-artifact-metadata.ts b/packages/storage/src/sqlite-artifact-metadata.ts index b7a514e78a..50b89e4eb4 100644 --- a/packages/storage/src/sqlite-artifact-metadata.ts +++ b/packages/storage/src/sqlite-artifact-metadata.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { resolve } from 'node:path'; import type { ArtifactRecord } from '@maka/core/artifacts'; diff --git a/packages/storage/src/sqlite-artifact-schema.ts b/packages/storage/src/sqlite-artifact-schema.ts index 9129891baf..d330e66833 100644 --- a/packages/storage/src/sqlite-artifact-schema.ts +++ b/packages/storage/src/sqlite-artifact-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_ARTIFACT_SCHEMA_VERSION = 1; diff --git a/packages/storage/src/sqlite-core-execution-schema.ts b/packages/storage/src/sqlite-core-execution-schema.ts index 24c08ac880..2e394e61b4 100644 --- a/packages/storage/src/sqlite-core-execution-schema.ts +++ b/packages/storage/src/sqlite-core-execution-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_CORE_EXECUTION_SCHEMA_VERSION = 4; diff --git a/packages/storage/src/sqlite-legacy-scheduling.ts b/packages/storage/src/sqlite-legacy-scheduling.ts index 1f0411c74a..c24042aa06 100644 --- a/packages/storage/src/sqlite-legacy-scheduling.ts +++ b/packages/storage/src/sqlite-legacy-scheduling.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isBotDeliveryProvider } from '@maka/core/bot-chat-settings'; import type { ScheduledTask, diff --git a/packages/storage/src/sqlite-long-term-memory-schema.ts b/packages/storage/src/sqlite-long-term-memory-schema.ts index aed63e827f..f03d067d7b 100644 --- a/packages/storage/src/sqlite-long-term-memory-schema.ts +++ b/packages/storage/src/sqlite-long-term-memory-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_LONG_TERM_MEMORY_SCHEMA_VERSION = 5; diff --git a/packages/storage/src/sqlite-long-term-memory-store.ts b/packages/storage/src/sqlite-long-term-memory-store.ts index a0d0aeb1f2..0f94ac1577 100644 --- a/packages/storage/src/sqlite-long-term-memory-store.ts +++ b/packages/storage/src/sqlite-long-term-memory-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash, randomUUID } from 'node:crypto'; import { closeSync, diff --git a/packages/storage/src/sqlite-runtime-schema.ts b/packages/storage/src/sqlite-runtime-schema.ts index bfbc391806..f48093f604 100644 --- a/packages/storage/src/sqlite-runtime-schema.ts +++ b/packages/storage/src/sqlite-runtime-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_RUNTIME_SCHEMA_VERSION = 12; diff --git a/packages/storage/src/sqlite-runtime-store.ts b/packages/storage/src/sqlite-runtime-store.ts index b94421ff1c..6a406734ee 100644 --- a/packages/storage/src/sqlite-runtime-store.ts +++ b/packages/storage/src/sqlite-runtime-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { mkdirSync } from 'node:fs'; import { createRequire } from 'node:module'; diff --git a/packages/storage/src/sqlite-session-catalog-query.ts b/packages/storage/src/sqlite-session-catalog-query.ts index 3ae296a8ff..80ee7f08f2 100644 --- a/packages/storage/src/sqlite-session-catalog-query.ts +++ b/packages/storage/src/sqlite-session-catalog-query.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionListFilter } from '@maka/core/runtime-inputs'; export interface SqliteSessionCatalogCursor { diff --git a/packages/storage/src/sqlite-session-metadata-schema.ts b/packages/storage/src/sqlite-session-metadata-schema.ts index 5fc3a927b7..3ffd2a37cd 100644 --- a/packages/storage/src/sqlite-session-metadata-schema.ts +++ b/packages/storage/src/sqlite-session-metadata-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_SESSION_METADATA_SCHEMA_VERSION = 28; diff --git a/packages/storage/src/sqlite-session-metadata-store.ts b/packages/storage/src/sqlite-session-metadata-store.ts index c8fdbc341e..27e818c293 100644 --- a/packages/storage/src/sqlite-session-metadata-store.ts +++ b/packages/storage/src/sqlite-session-metadata-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createRequire } from 'node:module'; import { createHash } from 'node:crypto'; import { dirname, resolve } from 'node:path'; diff --git a/packages/storage/src/sqlite-usage-schema.ts b/packages/storage/src/sqlite-usage-schema.ts index a4be9cb052..95c07c7a7d 100644 --- a/packages/storage/src/sqlite-usage-schema.ts +++ b/packages/storage/src/sqlite-usage-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_USAGE_SCHEMA_VERSION = 5; diff --git a/packages/storage/src/sqlite-usage-store.ts b/packages/storage/src/sqlite-usage-store.ts index 484109a9dc..2b73e859d3 100644 --- a/packages/storage/src/sqlite-usage-store.ts +++ b/packages/storage/src/sqlite-usage-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { resolve } from 'node:path'; import type { diff --git a/packages/storage/src/sqlite-workflow-schema.ts b/packages/storage/src/sqlite-workflow-schema.ts index 2f0df6661e..4ddb483308 100644 --- a/packages/storage/src/sqlite-workflow-schema.ts +++ b/packages/storage/src/sqlite-workflow-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DatabaseSync } from 'node:sqlite'; export const SQLITE_WORKFLOW_SCHEMA_VERSION = 9; diff --git a/packages/storage/src/stable-storage.ts b/packages/storage/src/stable-storage.ts index ecbbe7b353..90aafe4ab2 100644 --- a/packages/storage/src/stable-storage.ts +++ b/packages/storage/src/stable-storage.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { open } from 'node:fs/promises'; import { dirname, isAbsolute, relative, resolve, sep } from 'node:path'; diff --git a/packages/storage/src/state-root-composition.ts b/packages/storage/src/state-root-composition.ts index fe4ccbe999..aa891235d5 100644 --- a/packages/storage/src/state-root-composition.ts +++ b/packages/storage/src/state-root-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import { createStorageRootLeaseIdentityGuard, diff --git a/packages/storage/src/storage-writer-composition.ts b/packages/storage/src/storage-writer-composition.ts index 5027af845a..5261127c7b 100644 --- a/packages/storage/src/storage-writer-composition.ts +++ b/packages/storage/src/storage-writer-composition.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { openInteractiveArtifactStoreForWrite } from './artifact-stores.js'; import { openInteractiveDailyReviewAuthorityForWrite } from './daily-review-authority.js'; import { openInteractiveDeepResearchStoreForWrite } from './deep-research-authority.js'; diff --git a/packages/storage/src/task-ledger-authority.ts b/packages/storage/src/task-ledger-authority.ts index 15889fefb3..9d2f2d8e47 100644 --- a/packages/storage/src/task-ledger-authority.ts +++ b/packages/storage/src/task-ledger-authority.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { TaskLedgerStore } from '@maka/core/task-ledger'; import { assertStorageRootLease, diff --git a/packages/storage/src/task-ledger-store-internal.ts b/packages/storage/src/task-ledger-store-internal.ts index d4a00ed5a7..03340d10c3 100644 --- a/packages/storage/src/task-ledger-store-internal.ts +++ b/packages/storage/src/task-ledger-store-internal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Task, TaskLedgerListOptions, TaskLedgerStore } from '@maka/core/task-ledger'; export interface TaskLedgerCanonicalReader { diff --git a/packages/storage/src/task-ledger-store.ts b/packages/storage/src/task-ledger-store.ts index c68dccaf02..78d40d508b 100644 --- a/packages/storage/src/task-ledger-store.ts +++ b/packages/storage/src/task-ledger-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { resolve } from 'node:path'; import { createHash, randomUUID } from 'node:crypto'; import type { DatabaseSync } from 'node:sqlite'; diff --git a/packages/storage/src/telemetry-file-schema.ts b/packages/storage/src/telemetry-file-schema.ts index e43862eca2..0cdf262e13 100644 --- a/packages/storage/src/telemetry-file-schema.ts +++ b/packages/storage/src/telemetry-file-schema.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { MODEL_CALL_KINDS, type LlmCallRecord, diff --git a/packages/storage/src/telemetry-repo.ts b/packages/storage/src/telemetry-repo.ts index a6fcf7c4bc..c3ed654452 100644 --- a/packages/storage/src/telemetry-repo.ts +++ b/packages/storage/src/telemetry-repo.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig, UsageBucket, diff --git a/packages/storage/src/usage-stats-store.ts b/packages/storage/src/usage-stats-store.ts index 078bc8cb78..1a722ef06a 100644 --- a/packages/storage/src/usage-stats-store.ts +++ b/packages/storage/src/usage-stats-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { join } from 'node:path'; import type { UsageRange, UsageStats } from '@maka/core/settings'; import type { SessionHeader } from '@maka/core/session'; diff --git a/packages/storage/src/usage-stores.ts b/packages/storage/src/usage-stores.ts index b0e74c184b..19823028e3 100644 --- a/packages/storage/src/usage-stores.ts +++ b/packages/storage/src/usage-stores.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { PricingConfig, UsageBucket, diff --git a/packages/storage/src/work-board-list-query.ts b/packages/storage/src/work-board-list-query.ts index 797d41e4b2..661dd002d3 100644 --- a/packages/storage/src/work-board-list-query.ts +++ b/packages/storage/src/work-board-list-query.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isSafeWorkBoardId, type WorkBoardItem, diff --git a/packages/storage/src/work-board-store-error.ts b/packages/storage/src/work-board-store-error.ts index 83b19ee8ec..8460bf5285 100644 --- a/packages/storage/src/work-board-store-error.ts +++ b/packages/storage/src/work-board-store-error.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type WorkBoardStoreErrorCode = | 'invalid_input' | 'not_found' diff --git a/packages/storage/src/work-board-store.ts b/packages/storage/src/work-board-store.ts index 19016cfde8..5d2970a16f 100644 --- a/packages/storage/src/work-board-store.ts +++ b/packages/storage/src/work-board-store.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { randomUUID } from 'node:crypto'; import { resolve } from 'node:path'; import { diff --git a/packages/storage/src/workspace-identity.ts b/packages/storage/src/workspace-identity.ts index cd2ba625c7..b682dafd31 100644 --- a/packages/storage/src/workspace-identity.ts +++ b/packages/storage/src/workspace-identity.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { randomUUID } from 'node:crypto'; import { constants as fsConstants, type BigIntStats } from 'node:fs'; diff --git a/packages/storage/src/workspace-root.ts b/packages/storage/src/workspace-root.ts index 26499ca9d1..e1f92393a4 100644 --- a/packages/storage/src/workspace-root.ts +++ b/packages/storage/src/workspace-root.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { homedir } from 'node:os'; import { posix, win32 } from 'node:path'; diff --git a/packages/storage/src/workspace-version-authority-internal.ts b/packages/storage/src/workspace-version-authority-internal.ts index 5c2fc998a8..ed77104ee1 100644 --- a/packages/storage/src/workspace-version-authority-internal.ts +++ b/packages/storage/src/workspace-version-authority-internal.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { WorkspaceBaselineAuthorityInput, WorkspaceBaselineCommitResult, diff --git a/packages/storage/src/write-queue.ts b/packages/storage/src/write-queue.ts index e8ce888c4b..236dc3c366 100644 --- a/packages/storage/src/write-queue.ts +++ b/packages/storage/src/write-queue.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Serialize a write operation under `key` against a per-key promise * chain held in `queueMap`. Once the chain for a key drains with no diff --git a/packages/storage/test-fixtures/v0.1.6-operational-state/README.md b/packages/storage/test-fixtures/v0.1.6-operational-state/README.md index 818c1d4257..e3f95d21ac 100644 --- a/packages/storage/test-fixtures/v0.1.6-operational-state/README.md +++ b/packages/storage/test-fixtures/v0.1.6-operational-state/README.md @@ -1,3 +1,22 @@ + + # v0.1.6 operational state `runtime.sqlite` was created through the public storage APIs at tag `v0.1.6` (`2e4c1aabf1f562e0aa0f817201e60ee22e84c3f8`). It contains one Session and user message, one Plan Reminder, and one durable cron Automation. SHA-256: `634d514c07df704b7f30794e5fd5aa53221b20e2833e036cdb166dfe663221e5`. diff --git a/packages/ui/README.md b/packages/ui/README.md index 5fe45df79c..046c1b0e9d 100644 --- a/packages/ui/README.md +++ b/packages/ui/README.md @@ -1,3 +1,22 @@ + + # @maka/ui Shared UI layer for the Maka desktop app. Astryx is the authority for generic components; Maka keeps product-specific composition and state. The package is consumed by `apps/desktop`'s renderer, while the preload bridge imports types only. diff --git a/packages/ui/scripts/benchmark-streaming-redaction.mjs b/packages/ui/scripts/benchmark-streaming-redaction.mjs index e4609ea4c0..19e398e382 100644 --- a/packages/ui/scripts/benchmark-streaming-redaction.mjs +++ b/packages/ui/scripts/benchmark-streaming-redaction.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { performance } from 'node:perf_hooks'; import { applyAssistantDelta } from '../dist/assistant-stream.js'; diff --git a/packages/ui/src/__tests__/arrival-bottom-pin.test.ts b/packages/ui/src/__tests__/arrival-bottom-pin.test.ts index ffd6fe9efe..84d3b857ba 100644 --- a/packages/ui/src/__tests__/arrival-bottom-pin.test.ts +++ b/packages/ui/src/__tests__/arrival-bottom-pin.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/ui/src/__tests__/astryx-i18n.test.tsx b/packages/ui/src/__tests__/astryx-i18n.test.tsx index 39942742d7..a3b2a689ef 100644 --- a/packages/ui/src/__tests__/astryx-i18n.test.tsx +++ b/packages/ui/src/__tests__/astryx-i18n.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { createElement } from 'react'; diff --git a/packages/ui/src/__tests__/chat-conversation-items.test.ts b/packages/ui/src/__tests__/chat-conversation-items.test.ts index 9583dadd21..6f9528dbce 100644 --- a/packages/ui/src/__tests__/chat-conversation-items.test.ts +++ b/packages/ui/src/__tests__/chat-conversation-items.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { placeChatConversationItems } from '../chat-conversation-items.js'; diff --git a/packages/ui/src/__tests__/chat-input-behavior.test.ts b/packages/ui/src/__tests__/chat-input-behavior.test.ts index 2a4cd4a99a..06f0e24bd1 100644 --- a/packages/ui/src/__tests__/chat-input-behavior.test.ts +++ b/packages/ui/src/__tests__/chat-input-behavior.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { diff --git a/packages/ui/src/__tests__/chat-scroll-anchor.test.ts b/packages/ui/src/__tests__/chat-scroll-anchor.test.ts index 27fe18248f..c2af386cf9 100644 --- a/packages/ui/src/__tests__/chat-scroll-anchor.test.ts +++ b/packages/ui/src/__tests__/chat-scroll-anchor.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { parseHTML } from 'linkedom'; diff --git a/packages/ui/src/__tests__/chat-turn-answer-identity.test.tsx b/packages/ui/src/__tests__/chat-turn-answer-identity.test.tsx index e822a18364..f0ac7cec5b 100644 --- a/packages/ui/src/__tests__/chat-turn-answer-identity.test.tsx +++ b/packages/ui/src/__tests__/chat-turn-answer-identity.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { act } from 'react'; diff --git a/packages/ui/src/__tests__/chat-turn-steering-order.test.ts b/packages/ui/src/__tests__/chat-turn-steering-order.test.ts index f738fbd424..ce271cf4c4 100644 --- a/packages/ui/src/__tests__/chat-turn-steering-order.test.ts +++ b/packages/ui/src/__tests__/chat-turn-steering-order.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createElement } from 'react'; diff --git a/packages/ui/src/__tests__/composer-plus-menu.test.tsx b/packages/ui/src/__tests__/composer-plus-menu.test.tsx index ee58cc530a..8ea9174a35 100644 --- a/packages/ui/src/__tests__/composer-plus-menu.test.tsx +++ b/packages/ui/src/__tests__/composer-plus-menu.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The + menu's mode rows and the divider above them. * diff --git a/packages/ui/src/__tests__/composer-send-toggle.test.tsx b/packages/ui/src/__tests__/composer-send-toggle.test.tsx index 9a4b70e5d0..2bc7ce8cb1 100644 --- a/packages/ui/src/__tests__/composer-send-toggle.test.tsx +++ b/packages/ui/src/__tests__/composer-send-toggle.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The composer's send slot holds ONE control (Astryx's send/stop toggle), and * mid-turn it reads Stop while the draft is empty. This is the shape the slot diff --git a/packages/ui/src/__tests__/interaction-queue.test.ts b/packages/ui/src/__tests__/interaction-queue.test.ts index eb52557948..96b3d4e6b2 100644 --- a/packages/ui/src/__tests__/interaction-queue.test.ts +++ b/packages/ui/src/__tests__/interaction-queue.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; diff --git a/packages/ui/src/__tests__/live-turn-projection.test.ts b/packages/ui/src/__tests__/live-turn-projection.test.ts index 74c0e46a6c..be6baaa120 100644 --- a/packages/ui/src/__tests__/live-turn-projection.test.ts +++ b/packages/ui/src/__tests__/live-turn-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/ui/src/__tests__/markdown-body.test.ts b/packages/ui/src/__tests__/markdown-body.test.ts index 31d69643ee..ab4b8d8f1b 100644 --- a/packages/ui/src/__tests__/markdown-body.test.ts +++ b/packages/ui/src/__tests__/markdown-body.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { createElement } from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; diff --git a/packages/ui/src/__tests__/markdown-rhythm-contract.test.tsx b/packages/ui/src/__tests__/markdown-rhythm-contract.test.tsx index 7e6c19a972..9b4899025d 100644 --- a/packages/ui/src/__tests__/markdown-rhythm-contract.test.tsx +++ b/packages/ui/src/__tests__/markdown-rhythm-contract.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Transcript markdown rhythm contract. * diff --git a/packages/ui/src/__tests__/materialize.test.ts b/packages/ui/src/__tests__/materialize.test.ts index 07536a5da9..a95d2233d8 100644 --- a/packages/ui/src/__tests__/materialize.test.ts +++ b/packages/ui/src/__tests__/materialize.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from "node:assert/strict"; import { describe, test } from "node:test"; import type { StoredMessage } from '@maka/core/session'; diff --git a/packages/ui/src/__tests__/message-selection-quote-boundary.test.ts b/packages/ui/src/__tests__/message-selection-quote-boundary.test.ts index 17d9c08c37..224630c384 100644 --- a/packages/ui/src/__tests__/message-selection-quote-boundary.test.ts +++ b/packages/ui/src/__tests__/message-selection-quote-boundary.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { parseHTML } from 'linkedom'; diff --git a/packages/ui/src/__tests__/prompt-anchor-rail.test.ts b/packages/ui/src/__tests__/prompt-anchor-rail.test.ts index a54afac576..542e276246 100644 --- a/packages/ui/src/__tests__/prompt-anchor-rail.test.ts +++ b/packages/ui/src/__tests__/prompt-anchor-rail.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/packages/ui/src/__tests__/search-modal-source.test.ts b/packages/ui/src/__tests__/search-modal-source.test.ts index 9b929f703f..513ff50c81 100644 --- a/packages/ui/src/__tests__/search-modal-source.test.ts +++ b/packages/ui/src/__tests__/search-modal-source.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import type { SearchResult } from '@maka/core/search'; diff --git a/packages/ui/src/__tests__/selection-quote-target.test.ts b/packages/ui/src/__tests__/selection-quote-target.test.ts index bb50a7291b..71aec8059e 100644 --- a/packages/ui/src/__tests__/selection-quote-target.test.ts +++ b/packages/ui/src/__tests__/selection-quote-target.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/ui/src/__tests__/session-context-layer-goal.test.tsx b/packages/ui/src/__tests__/session-context-layer-goal.test.tsx index 01e0e68f64..ee3ac1463a 100644 --- a/packages/ui/src/__tests__/session-context-layer-goal.test.tsx +++ b/packages/ui/src/__tests__/session-context-layer-goal.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The goal chip is the desktop kill switch for an autonomous loop: a running * goal pulses with live progress, while a paused goal burns nothing and must diff --git a/packages/ui/src/__tests__/session-history-row-actions.test.tsx b/packages/ui/src/__tests__/session-history-row-actions.test.tsx index 7e9e55c158..374d10c5ff 100644 --- a/packages/ui/src/__tests__/session-history-row-actions.test.tsx +++ b/packages/ui/src/__tests__/session-history-row-actions.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { parseHTML } from 'linkedom'; diff --git a/packages/ui/src/__tests__/shell-run-projection.test.ts b/packages/ui/src/__tests__/shell-run-projection.test.ts index 0c7d436321..ca1be638e6 100644 --- a/packages/ui/src/__tests__/shell-run-projection.test.ts +++ b/packages/ui/src/__tests__/shell-run-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { ShellRunSnapshotResult, ShellRunUpdate } from '@maka/core/events'; diff --git a/packages/ui/src/__tests__/sidebar-build-stamp.test.tsx b/packages/ui/src/__tests__/sidebar-build-stamp.test.tsx index cc52c37681..28be4c0ea1 100644 --- a/packages/ui/src/__tests__/sidebar-build-stamp.test.tsx +++ b/packages/ui/src/__tests__/sidebar-build-stamp.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The rail footer answers "which build is this?" — the question the About * page already answers two clicks away, which is why it was worth putting diff --git a/packages/ui/src/__tests__/streaming-display-redaction.test.ts b/packages/ui/src/__tests__/streaming-display-redaction.test.ts index 44ef496f01..3f9ebc1ffd 100644 --- a/packages/ui/src/__tests__/streaming-display-redaction.test.ts +++ b/packages/ui/src/__tests__/streaming-display-redaction.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { redactSecrets } from '../redact.js'; diff --git a/packages/ui/src/__tests__/streaming-text.test.tsx b/packages/ui/src/__tests__/streaming-text.test.tsx index c83fe4887c..fa3e090cd7 100644 --- a/packages/ui/src/__tests__/streaming-text.test.tsx +++ b/packages/ui/src/__tests__/streaming-text.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { useStreamingText } from '@astryxdesign/core'; diff --git a/packages/ui/src/__tests__/task-ledger-panel.test.ts b/packages/ui/src/__tests__/task-ledger-panel.test.ts index c4f4ef055f..ed2934d8e8 100644 --- a/packages/ui/src/__tests__/task-ledger-panel.test.ts +++ b/packages/ui/src/__tests__/task-ledger-panel.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { Task } from '@maka/core/task-ledger'; diff --git a/packages/ui/src/__tests__/tool-activity-presentation.test.ts b/packages/ui/src/__tests__/tool-activity-presentation.test.ts index 0dd037f676..9903337718 100644 --- a/packages/ui/src/__tests__/tool-activity-presentation.test.ts +++ b/packages/ui/src/__tests__/tool-activity-presentation.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import { createElement, type ReactNode } from 'react'; diff --git a/packages/ui/src/__tests__/transcript-projection.test.ts b/packages/ui/src/__tests__/transcript-projection.test.ts index 4b51372e67..7a5fffbc45 100644 --- a/packages/ui/src/__tests__/transcript-projection.test.ts +++ b/packages/ui/src/__tests__/transcript-projection.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import type { ShellRunSnapshotResult, ShellRunUpdate } from '@maka/core/events'; diff --git a/packages/ui/src/__tests__/turn-height-index.test.ts b/packages/ui/src/__tests__/turn-height-index.test.ts index 2777f428cd..1bb1365ec4 100644 --- a/packages/ui/src/__tests__/turn-height-index.test.ts +++ b/packages/ui/src/__tests__/turn-height-index.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { createTurnHeightIndex } from '../turn-height-index.js'; diff --git a/packages/ui/src/__tests__/turn-virtualizer.test.ts b/packages/ui/src/__tests__/turn-virtualizer.test.ts index 18f9f0fe54..59ab222da3 100644 --- a/packages/ui/src/__tests__/turn-virtualizer.test.ts +++ b/packages/ui/src/__tests__/turn-virtualizer.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { strict as assert } from 'node:assert'; import { describe, it } from 'node:test'; import { diff --git a/packages/ui/src/__tests__/use-turn-virtualizer.test.tsx b/packages/ui/src/__tests__/use-turn-virtualizer.test.tsx index 29fc3ca85b..177ee68518 100644 --- a/packages/ui/src/__tests__/use-turn-virtualizer.test.tsx +++ b/packages/ui/src/__tests__/use-turn-virtualizer.test.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { afterEach, test } from 'node:test'; import { act, useRef } from 'react'; diff --git a/packages/ui/src/arrival-bottom-pin.ts b/packages/ui/src/arrival-bottom-pin.ts index 9d384c5769..a3a79da9d5 100644 --- a/packages/ui/src/arrival-bottom-pin.ts +++ b/packages/ui/src/arrival-bottom-pin.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Instant bottom pin for a transcript that is still arriving. * diff --git a/packages/ui/src/artifact-preview-registry.ts b/packages/ui/src/artifact-preview-registry.ts index d083fca6ae..bf26062a45 100644 --- a/packages/ui/src/artifact-preview-registry.ts +++ b/packages/ui/src/artifact-preview-registry.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Safe raster-image preview classification for renderer data URLs. */ import type { ArtifactBinaryReadResult, ArtifactKind } from '@maka/core/artifacts'; diff --git a/packages/ui/src/assistant-stream.ts b/packages/ui/src/assistant-stream.ts index 4087155a58..22e60848ed 100644 --- a/packages/ui/src/assistant-stream.ts +++ b/packages/ui/src/assistant-stream.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-UI-Cx (@kenji C1 residual note msg aa2d26a7) — pure * trust-boundary helper for the assistant `text_delta` stream the diff --git a/packages/ui/src/astryx-copy.ts b/packages/ui/src/astryx-copy.ts index 555258393f..31814ff206 100644 --- a/packages/ui/src/astryx-copy.ts +++ b/packages/ui/src/astryx-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Chinese copy for Astryx's own message catalog, which ships no `zh`: without * an override every `@astryx.*` string falls back to the shipped `en` catalog diff --git a/packages/ui/src/astryx-i18n.tsx b/packages/ui/src/astryx-i18n.tsx index 6b3279d541..c74861c1fe 100644 --- a/packages/ui/src/astryx-i18n.tsx +++ b/packages/ui/src/astryx-i18n.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useContext, useMemo, type ReactNode } from 'react'; import { InternationalizationContext, diff --git a/packages/ui/src/attachment-kinds.tsx b/packages/ui/src/attachment-kinds.tsx index cc673b1f05..28e474c9ab 100644 --- a/packages/ui/src/attachment-kinds.tsx +++ b/packages/ui/src/attachment-kinds.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { FileCode, FileImage, FileText, FileType, Paperclip, type LucideIcon } from './icons.js'; import type { AttachmentRef } from '@maka/core/events'; import { Icon } from '@astryxdesign/core/Icon'; diff --git a/packages/ui/src/bot-brand-logo.tsx b/packages/ui/src/bot-brand-logo.tsx index 10d28dd19a..30b99f19d6 100644 --- a/packages/ui/src/bot-brand-logo.tsx +++ b/packages/ui/src/bot-brand-logo.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Local bot channel brand logos. // // Sources and licenses: diff --git a/packages/ui/src/bot-brand.ts b/packages/ui/src/bot-brand.ts index a5353042cd..ee108c02ad 100644 --- a/packages/ui/src/bot-brand.ts +++ b/packages/ui/src/bot-brand.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BotProvider } from '@maka/core/bot-chat-settings'; export interface BotBrand { diff --git a/packages/ui/src/capability-audit-strip.tsx b/packages/ui/src/capability-audit-strip.tsx index 104d462abe..4b68a4ead4 100644 --- a/packages/ui/src/capability-audit-strip.tsx +++ b/packages/ui/src/capability-audit-strip.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { CapabilityAuditReport } from '@maka/core/capability-audit'; import type { UiLocale } from '@maka/core/ui-locale'; import { useUiLocale } from './locale-context.js'; diff --git a/packages/ui/src/chat-conversation-items.ts b/packages/ui/src/chat-conversation-items.ts index e45ce69e87..7aed16a74c 100644 --- a/packages/ui/src/chat-conversation-items.ts +++ b/packages/ui/src/chat-conversation-items.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface ChatConversationItem { readonly afterTurnId: string; readonly renderWhenAnchorMissing?: boolean; diff --git a/packages/ui/src/chat-display-helpers.ts b/packages/ui/src/chat-display-helpers.ts index 6e7e2ee2fe..555cb4101a 100644 --- a/packages/ui/src/chat-display-helpers.ts +++ b/packages/ui/src/chat-display-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Small pure helpers backing the chat surface (TurnView, * RelativeTime, AssistantAnswerBubble, etc.) — diff --git a/packages/ui/src/chat-empty-hero.tsx b/packages/ui/src/chat-empty-hero.tsx index f9c0942482..30d503a7ad 100644 --- a/packages/ui/src/chat-empty-hero.tsx +++ b/packages/ui/src/chat-empty-hero.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Empty-chat hero surfaces (`EmptyChatHero`, `DeepResearchEmptyHero`) * + their locale-aware copy bundle + the time-of-day greeting helper. diff --git a/packages/ui/src/chat-input-behavior.ts b/packages/ui/src/chat-input-behavior.ts index 1247d96b28..5ef6fd2793 100644 --- a/packages/ui/src/chat-input-behavior.ts +++ b/packages/ui/src/chat-input-behavior.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** Either a React synthetic event or the native one it wraps. */ export interface ChatInputCompositionEvent { key?: string; diff --git a/packages/ui/src/chat-model-helpers.ts b/packages/ui/src/chat-model-helpers.ts index f74f533de3..65c286c006 100644 --- a/packages/ui/src/chat-model-helpers.ts +++ b/packages/ui/src/chat-model-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure value-codec helpers backing the ChatModelSwitcher: group an * unsorted list of `ChatModelChoice`s by their connection, and diff --git a/packages/ui/src/chat-model-switcher.tsx b/packages/ui/src/chat-model-switcher.tsx index 289a2d8dd8..e102258695 100644 --- a/packages/ui/src/chat-model-switcher.tsx +++ b/packages/ui/src/chat-model-switcher.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Chat model pickers, extracted from `components.tsx`. * diff --git a/packages/ui/src/chat-scroll-anchor.ts b/packages/ui/src/chat-scroll-anchor.ts index 119605a22d..aec03488eb 100644 --- a/packages/ui/src/chat-scroll-anchor.ts +++ b/packages/ui/src/chat-scroll-anchor.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface ChatScrollAnchor { readonly turnId: string; readonly sender: string | undefined; diff --git a/packages/ui/src/chat-surface-layout.tsx b/packages/ui/src/chat-surface-layout.tsx index 416ea73b88..520d8e05e8 100644 --- a/packages/ui/src/chat-surface-layout.tsx +++ b/packages/ui/src/chat-surface-layout.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, type ComponentProps } from 'react'; import { ChatLayout } from '@astryxdesign/core/Chat'; import { AstryxLocaleProvider } from './astryx-i18n.js'; diff --git a/packages/ui/src/chat-turn.tsx b/packages/ui/src/chat-turn.tsx index c768ab3876..41b49192c1 100644 --- a/packages/ui/src/chat-turn.tsx +++ b/packages/ui/src/chat-turn.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { memo, useEffect, useMemo, useRef, useState, type ComponentPropsWithoutRef, type ReactNode } from 'react'; import { useMountedRef } from './use-mounted-ref.js'; import { ICON_SIZE, AlertOctagon, Ban, Check, Copy, GitBranch, Info, Pencil, RefreshCcw, Timer } from './icons.js'; diff --git a/packages/ui/src/chat-view.tsx b/packages/ui/src/chat-view.tsx index 6d1358e9c9..a104136090 100644 --- a/packages/ui/src/chat-view.tsx +++ b/packages/ui/src/chat-view.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Fragment, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from 'react'; import { ICON_SIZE, diff --git a/packages/ui/src/clipboard-feedback.ts b/packages/ui/src/clipboard-feedback.ts index 75e65a85d0..8ade2dfda4 100644 --- a/packages/ui/src/clipboard-feedback.ts +++ b/packages/ui/src/clipboard-feedback.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Shared clipboard-copy feedback hook + tri-state phase type. * diff --git a/packages/ui/src/components.tsx b/packages/ui/src/components.tsx index b5e7ad73dd..1d6d0fb683 100644 --- a/packages/ui/src/components.tsx +++ b/packages/ui/src/components.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export type { AutomationModule, ExtensionModule, diff --git a/packages/ui/src/composer-helpers.ts b/packages/ui/src/composer-helpers.ts index 8162b7ef28..81a94eb41f 100644 --- a/packages/ui/src/composer-helpers.ts +++ b/packages/ui/src/composer-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure helpers backing the Composer panel's draft + history behavior. * diff --git a/packages/ui/src/composer.tsx b/packages/ui/src/composer.tsx index 3e9b428e98..1b0c3b6188 100644 --- a/packages/ui/src/composer.tsx +++ b/packages/ui/src/composer.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { forwardRef, useEffect, diff --git a/packages/ui/src/conversation-copy.ts b/packages/ui/src/conversation-copy.ts index e7697cb894..bb5969e2fe 100644 --- a/packages/ui/src/conversation-copy.ts +++ b/packages/ui/src/conversation-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DeepResearchReportSectionKey } from '@maka/core/deep-research-run'; import type { ProviderRetryReason } from '@maka/core/events'; import type { PermissionMode } from '@maka/core/permission'; diff --git a/packages/ui/src/daily-review-copy.ts b/packages/ui/src/daily-review-copy.ts index b160642cca..e673d7df01 100644 --- a/packages/ui/src/daily-review-copy.ts +++ b/packages/ui/src/daily-review-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewArchive } from '@maka/core/daily-review'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/ui/src/daily-review-helpers.ts b/packages/ui/src/daily-review-helpers.ts index 02fa3197a6..04b3be6026 100644 --- a/packages/ui/src/daily-review-helpers.ts +++ b/packages/ui/src/daily-review-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure helpers backing the DailyReviewPanel — formatters, error * mappers, and the Markdown serializer. diff --git a/packages/ui/src/daily-review-panel.tsx b/packages/ui/src/daily-review-panel.tsx index 917f48b4ca..45df6a744d 100644 --- a/packages/ui/src/daily-review-panel.tsx +++ b/packages/ui/src/daily-review-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useReducer, useRef, useState } from 'react'; import type { DailyReviewArchive, diff --git a/packages/ui/src/daily-review-view-state.ts b/packages/ui/src/daily-review-view-state.ts index 29d107ec8d..4ce41ecbd7 100644 --- a/packages/ui/src/daily-review-view-state.ts +++ b/packages/ui/src/daily-review-view-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewRange, DailyReviewSummary } from '@maka/core/daily-review'; import { dailyReviewScopeKey } from './daily-review-helpers.js'; diff --git a/packages/ui/src/icons.tsx b/packages/ui/src/icons.tsx index 9876027ae9..2eeb081d7e 100644 --- a/packages/ui/src/icons.tsx +++ b/packages/ui/src/icons.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Centralized icon re-export — the single seam between Maka call sites * and the underlying generic UI icon library. diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 5c1818f6fd..a51d3b729e 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export * from './artifact-preview-registry.js'; export * from './assistant-stream.js'; export * from './chat-empty-hero.js'; diff --git a/packages/ui/src/inline-reference.tsx b/packages/ui/src/inline-reference.tsx index ab75696404..8213010cee 100644 --- a/packages/ui/src/inline-reference.tsx +++ b/packages/ui/src/inline-reference.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { InlineReference } from '@maka/core/events'; import { ChatTokenizedText, type ChatComposerToken } from '@astryxdesign/core'; import type { ReactNode } from 'react'; diff --git a/packages/ui/src/inline-rename-input.tsx b/packages/ui/src/inline-rename-input.tsx index ea2ec95ef8..d167e6a87b 100644 --- a/packages/ui/src/inline-rename-input.tsx +++ b/packages/ui/src/inline-rename-input.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { TextInput } from '@astryxdesign/core/TextInput'; diff --git a/packages/ui/src/input-history.ts b/packages/ui/src/input-history.ts index c49be1d561..22e473d592 100644 --- a/packages/ui/src/input-history.ts +++ b/packages/ui/src/input-history.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Global input history, persisted to localStorage. * diff --git a/packages/ui/src/interaction-queue.ts b/packages/ui/src/interaction-queue.ts index 97b8a8b141..915db71af3 100644 --- a/packages/ui/src/interaction-queue.ts +++ b/packages/ui/src/interaction-queue.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ActiveInteractionRequestEvent } from '@maka/core/events'; export type ComposerInteraction = ActiveInteractionRequestEvent; diff --git a/packages/ui/src/live-turn-projection.ts b/packages/ui/src/live-turn-projection.ts index eb62fafea3..0049ebe713 100644 --- a/packages/ui/src/live-turn-projection.ts +++ b/packages/ui/src/live-turn-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { MessageContent, ProviderRetryEvent, SessionEvent } from '@maka/core/events'; import type { StoredMessage } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/ui/src/locale-context.tsx b/packages/ui/src/locale-context.tsx index 68403bd61f..9fcf749ac1 100644 --- a/packages/ui/src/locale-context.tsx +++ b/packages/ui/src/locale-context.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createContext, useContext, diff --git a/packages/ui/src/locale-helpers.ts b/packages/ui/src/locale-helpers.ts index c59f92dba0..5340e7400d 100644 --- a/packages/ui/src/locale-helpers.ts +++ b/packages/ui/src/locale-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * UI locale detection + prompt-suggestion copy. * diff --git a/packages/ui/src/maka-uri.ts b/packages/ui/src/maka-uri.ts index a6382ba919..ac8bfd421a 100644 --- a/packages/ui/src/maka-uri.ts +++ b/packages/ui/src/maka-uri.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { SETTINGS_SECTIONS, type SettingsSection } from '@maka/core/settings'; const ALLOWED_SETTINGS_SECTIONS = new Set(SETTINGS_SECTIONS); diff --git a/packages/ui/src/maka-wordmark.tsx b/packages/ui/src/maka-wordmark.tsx index 4663fc59ba..54f2618063 100644 --- a/packages/ui/src/maka-wordmark.tsx +++ b/packages/ui/src/maka-wordmark.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The Maka wordmark — our own brand asset, not a generic UI icon. * diff --git a/packages/ui/src/markdown-body.tsx b/packages/ui/src/markdown-body.tsx index 45a7ccd825..2f50c84b3f 100644 --- a/packages/ui/src/markdown-body.tsx +++ b/packages/ui/src/markdown-body.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Heavy Markdown rendering pipeline, loaded on demand by `markdown.tsx`. * diff --git a/packages/ui/src/markdown.tsx b/packages/ui/src/markdown.tsx index dd059428f4..529795332f 100644 --- a/packages/ui/src/markdown.tsx +++ b/packages/ui/src/markdown.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Markdown rendering layer — eager entry. * diff --git a/packages/ui/src/materialize.ts b/packages/ui/src/materialize.ts index dbf1026538..3b80500b2c 100644 --- a/packages/ui/src/materialize.ts +++ b/packages/ui/src/materialize.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { deriveTurnRecords, STEP_LIMIT_NOTICE_TEXT } from '@maka/core/session'; import { isInFlightToolStatus, diff --git a/packages/ui/src/mermaid-diagram.tsx b/packages/ui/src/mermaid-diagram.tsx index 13d461255c..7fd5e49397 100644 --- a/packages/ui/src/mermaid-diagram.tsx +++ b/packages/ui/src/mermaid-diagram.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { Button, IconButton } from '@astryxdesign/core'; import { CodeBlock } from '@astryxdesign/core/CodeBlock'; import { Collapsible } from '@astryxdesign/core/Collapsible'; diff --git a/packages/ui/src/model-picker-internals.ts b/packages/ui/src/model-picker-internals.ts index 0d00ad4134..4cd488d876 100644 --- a/packages/ui/src/model-picker-internals.ts +++ b/packages/ui/src/model-picker-internals.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SelectorDivider, SelectorOptionData } from '@astryxdesign/core/Selector'; import type { ProviderType } from '@maka/core/llm-connections'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/ui/src/model-picker.tsx b/packages/ui/src/model-picker.tsx index 9e6633df0a..df29709df4 100644 --- a/packages/ui/src/model-picker.tsx +++ b/packages/ui/src/model-picker.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Product-specific model catalog composition over Astryx Selector. * diff --git a/packages/ui/src/module-hub-selector.tsx b/packages/ui/src/module-hub-selector.tsx index f024949795..63c2483d01 100644 --- a/packages/ui/src/module-hub-selector.tsx +++ b/packages/ui/src/module-hub-selector.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ReactNode } from 'react'; import { Tab, TabList } from '@astryxdesign/core'; import type { AutomationModule, ExtensionModule } from './nav-selection.js'; diff --git a/packages/ui/src/module-pages.tsx b/packages/ui/src/module-pages.tsx index 70501b2e26..d286040a81 100644 --- a/packages/ui/src/module-pages.tsx +++ b/packages/ui/src/module-pages.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lazy, Suspense } from 'react'; import type { ScheduledTask } from '@maka/core/scheduled-task'; import { deriveCapabilityAuditReport } from '@maka/core/capability-audit'; diff --git a/packages/ui/src/module-panel-types.ts b/packages/ui/src/module-panel-types.ts index 0e66c0ac81..5fed6a89e3 100644 --- a/packages/ui/src/module-panel-types.ts +++ b/packages/ui/src/module-panel-types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { DailyReviewArchive, DailyReviewArchiveSummary, diff --git a/packages/ui/src/nav-selection.ts b/packages/ui/src/nav-selection.ts index 0642f614f1..26999076b5 100644 --- a/packages/ui/src/nav-selection.ts +++ b/packages/ui/src/nav-selection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The rail's session section takes no filter. * diff --git a/packages/ui/src/permission-mode-menu.tsx b/packages/ui/src/permission-mode-menu.tsx index acf8a71dd1..87d09c20b2 100644 --- a/packages/ui/src/permission-mode-menu.tsx +++ b/packages/ui/src/permission-mode-menu.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ChatDefaultPermissionMode } from '@maka/core/settings'; import type { PermissionMode } from '@maka/core/permission'; import { CHAT_DEFAULT_PERMISSION_MODES } from '@maka/core/settings'; diff --git a/packages/ui/src/primitives/chat.tsx b/packages/ui/src/primitives/chat.tsx index 79d649552a..1d5e7aa70b 100644 --- a/packages/ui/src/primitives/chat.tsx +++ b/packages/ui/src/primitives/chat.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + "use client"; import type React from "react"; diff --git a/packages/ui/src/primitives/module-page.tsx b/packages/ui/src/primitives/module-page.tsx index 70a377c998..a07f7a243a 100644 --- a/packages/ui/src/primitives/module-page.tsx +++ b/packages/ui/src/primitives/module-page.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/primitives/module-page.tsx // // The ONE shell every module page (定时任务 / 每日回顾 / …) renders into. diff --git a/packages/ui/src/primitives/page-header.tsx b/packages/ui/src/primitives/page-header.tsx index 5901bc5b46..28b7b77e35 100644 --- a/packages/ui/src/primitives/page-header.tsx +++ b/packages/ui/src/primitives/page-header.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/primitives/page-header.tsx // // PageHeader — the shared header shell for the SETTINGS intro dialect: diff --git a/packages/ui/src/primitives/stat-tile.tsx b/packages/ui/src/primitives/stat-tile.tsx index 3f09328147..b973e42bd1 100644 --- a/packages/ui/src/primitives/stat-tile.tsx +++ b/packages/ui/src/primitives/stat-tile.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/primitives/stat-tile.tsx // // The shared implementation for "big number + label (+ detail)" stat tiles. Before diff --git a/packages/ui/src/prompt-anchor-rail.tsx b/packages/ui/src/prompt-anchor-rail.tsx index f11293acee..37b2ba2474 100644 --- a/packages/ui/src/prompt-anchor-rail.tsx +++ b/packages/ui/src/prompt-anchor-rail.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { memo, useCallback, diff --git a/packages/ui/src/quote-ref-chip.tsx b/packages/ui/src/quote-ref-chip.tsx index 3dbdba6d77..b15b66ea1b 100644 --- a/packages/ui/src/quote-ref-chip.tsx +++ b/packages/ui/src/quote-ref-chip.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useLayoutEffect, useRef, useState } from 'react'; import { Button } from '@astryxdesign/core/Button'; import { IconButton } from '@astryxdesign/core/IconButton'; diff --git a/packages/ui/src/redact.ts b/packages/ui/src/redact.ts index 9f55079378..92c4b8bfa2 100644 --- a/packages/ui/src/redact.ts +++ b/packages/ui/src/redact.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Re-export the shared display-layer redactor from `@maka/core` (#1065). * diff --git a/packages/ui/src/relative-time.tsx b/packages/ui/src/relative-time.tsx index 8bbbf9f963..aeee09aa5a 100644 --- a/packages/ui/src/relative-time.tsx +++ b/packages/ui/src/relative-time.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import { formatAbsoluteTimestamp } from './chat-display-helpers.js'; import { diff --git a/packages/ui/src/runtime-resume-copy.ts b/packages/ui/src/runtime-resume-copy.ts index 1385940904..23c569937d 100644 --- a/packages/ui/src/runtime-resume-copy.ts +++ b/packages/ui/src/runtime-resume-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface ResumeParkToastCopy { title: string; description: string; diff --git a/packages/ui/src/sandbox-boundary-prompt.tsx b/packages/ui/src/sandbox-boundary-prompt.tsx index 8eda0344db..87f4eaea08 100644 --- a/packages/ui/src/sandbox-boundary-prompt.tsx +++ b/packages/ui/src/sandbox-boundary-prompt.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SandboxBoundaryRequestEvent } from '@maka/core/events'; import { useEffect, useId, useRef, useState } from 'react'; diff --git a/packages/ui/src/scheduled-task-copy.ts b/packages/ui/src/scheduled-task-copy.ts index 6cc60242db..6ef0e41ec9 100644 --- a/packages/ui/src/scheduled-task-copy.ts +++ b/packages/ui/src/scheduled-task-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ScheduledTask, ScheduledTaskRunOutcome, ScheduledTaskStatus } from '@maka/core/scheduled-task'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { diff --git a/packages/ui/src/scheduled-task-form-dialog.tsx b/packages/ui/src/scheduled-task-form-dialog.tsx index 2a4f19eadf..dfaebc1acc 100644 --- a/packages/ui/src/scheduled-task-form-dialog.tsx +++ b/packages/ui/src/scheduled-task-form-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * ScheduledTask create/edit form dialog (issue #1044). * diff --git a/packages/ui/src/scheduled-task-helpers.ts b/packages/ui/src/scheduled-task-helpers.ts index 8870209c34..bc23be6628 100644 --- a/packages/ui/src/scheduled-task-helpers.ts +++ b/packages/ui/src/scheduled-task-helpers.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure helpers and presentation data for the ScheduledTaskPanel. * diff --git a/packages/ui/src/scheduled-task-inspector.tsx b/packages/ui/src/scheduled-task-inspector.tsx index f97155c9a1..b0bafb73a9 100644 --- a/packages/ui/src/scheduled-task-inspector.tsx +++ b/packages/ui/src/scheduled-task-inspector.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/scheduled-task-inspector.tsx // // The end-panel inspector for one selected task, modelled on the vendor's diff --git a/packages/ui/src/scheduled-task-panel.tsx b/packages/ui/src/scheduled-task-panel.tsx index a8644ce770..e23babe84a 100644 --- a/packages/ui/src/scheduled-task-panel.tsx +++ b/packages/ui/src/scheduled-task-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { useMountedRef } from './use-mounted-ref.js'; import { useToast } from './toast.js'; diff --git a/packages/ui/src/scheduled-task-status.ts b/packages/ui/src/scheduled-task-status.ts index 72c7933965..ac50b29698 100644 --- a/packages/ui/src/scheduled-task-status.ts +++ b/packages/ui/src/scheduled-task-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ScheduledTaskRunOutcome, ScheduledTaskStatus } from '@maka/core/scheduled-task'; import { dotForStatus, type StatusSemantic } from './status-vocabulary.js'; diff --git a/packages/ui/src/search-modal.tsx b/packages/ui/src/search-modal.tsx index ba9bdbd528..ac13374e1a 100644 --- a/packages/ui/src/search-modal.tsx +++ b/packages/ui/src/search-modal.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react'; import type { SearchErrorReason, SearchRequest, SearchResult } from '@maka/core/search'; import type { UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/ui/src/selection-quote-target.ts b/packages/ui/src/selection-quote-target.ts index 9e1f6895c1..b8ed5a3ad5 100644 --- a/packages/ui/src/selection-quote-target.ts +++ b/packages/ui/src/selection-quote-target.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Pure resolution of "what did the user select, and which turn does it belong * to". Kept free of DOM globals (`HTMLElement`, `Node`) so it can be tested diff --git a/packages/ui/src/session-context-layer.tsx b/packages/ui/src/session-context-layer.tsx index 657fa46d41..ec881657b3 100644 --- a/packages/ui/src/session-context-layer.tsx +++ b/packages/ui/src/session-context-layer.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useReducer, type ReactElement } from 'react'; import { BreadcrumbItem, diff --git a/packages/ui/src/session-history-list.tsx b/packages/ui/src/session-history-list.tsx index 48aec1ec7e..082ba51bcc 100644 --- a/packages/ui/src/session-history-list.tsx +++ b/packages/ui/src/session-history-list.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { memo, useCallback, diff --git a/packages/ui/src/session-list-panel.tsx b/packages/ui/src/session-list-panel.tsx index c14f077cda..332c26c701 100644 --- a/packages/ui/src/session-list-panel.tsx +++ b/packages/ui/src/session-list-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ScheduledTask } from '@maka/core/scheduled-task'; import type { SessionSummary } from '@maka/core/session'; import { diff --git a/packages/ui/src/session-rename-dialog.tsx b/packages/ui/src/session-rename-dialog.tsx index 5b84ad8b08..334ac3d553 100644 --- a/packages/ui/src/session-rename-dialog.tsx +++ b/packages/ui/src/session-rename-dialog.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState, type FormEvent } from 'react'; import { Button, HStack, TextInput } from '@astryxdesign/core'; import { Dialog, DialogHeader } from '@astryxdesign/core/Dialog'; diff --git a/packages/ui/src/session-sidebar-nav.tsx b/packages/ui/src/session-sidebar-nav.tsx index d86092ad9c..e0d5e97459 100644 --- a/packages/ui/src/session-sidebar-nav.tsx +++ b/packages/ui/src/session-sidebar-nav.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ScheduledTask } from '@maka/core/scheduled-task'; import { AlertCircle, Blocks, Download, Settings, SquarePen, Timer } from './icons.js'; import type { NavModuleMemory, NavSelection } from './nav-selection.js'; diff --git a/packages/ui/src/session-status-presentation.ts b/packages/ui/src/session-status-presentation.ts index 2a87f1b3a5..a2f5c5cf9a 100644 --- a/packages/ui/src/session-status-presentation.ts +++ b/packages/ui/src/session-status-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SessionBlockedReason, SessionStatus } from '@maka/core/session'; import type { UiLocale } from '@maka/core/ui-locale'; import type { StatusDotVariant } from '@astryxdesign/core/StatusDot'; diff --git a/packages/ui/src/shared-ui-copy.ts b/packages/ui/src/shared-ui-copy.ts index d2a9b6f934..ff7cce7cb3 100644 --- a/packages/ui/src/shared-ui-copy.ts +++ b/packages/ui/src/shared-ui-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { TaskStatus } from '@maka/core/task-ledger'; import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; diff --git a/packages/ui/src/shell-controls-copy.ts b/packages/ui/src/shell-controls-copy.ts index 60c8f033bd..188ab3fe7b 100644 --- a/packages/ui/src/shell-controls-copy.ts +++ b/packages/ui/src/shell-controls-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; type ShellControlsCopy = { diff --git a/packages/ui/src/skill-inspector.tsx b/packages/ui/src/skill-inspector.tsx index fbd8781a0f..417f0ac89c 100644 --- a/packages/ui/src/skill-inspector.tsx +++ b/packages/ui/src/skill-inspector.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/skill-inspector.tsx // // The end-panel inspector for one selected Skill, modelled on diff --git a/packages/ui/src/skill-status.ts b/packages/ui/src/skill-status.ts index df6c4baf20..95611e8990 100644 --- a/packages/ui/src/skill-status.ts +++ b/packages/ui/src/skill-status.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/skill-status.ts // // One severity reading for one Skill, shared by the list rows and the diff --git a/packages/ui/src/skills-copy.ts b/packages/ui/src/skills-copy.ts index bdad0fc272..f48a163ed8 100644 --- a/packages/ui/src/skills-copy.ts +++ b/packages/ui/src/skills-copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; import type { ManagedSkillCategory, SkillEntry } from './module-panel-types.js'; diff --git a/packages/ui/src/skills-panel.tsx b/packages/ui/src/skills-panel.tsx index 4de1723a45..11cdb5e82c 100644 --- a/packages/ui/src/skills-panel.tsx +++ b/packages/ui/src/skills-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/skills-panel.tsx // // The Skills module page, on the shared ModulePage shell (Astryx Layout, diff --git a/packages/ui/src/status-vocabulary.ts b/packages/ui/src/status-vocabulary.ts index 0a931c427a..ca2617c6f6 100644 --- a/packages/ui/src/status-vocabulary.ts +++ b/packages/ui/src/status-vocabulary.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { StatusDotVariant } from '@astryxdesign/core/StatusDot'; /** diff --git a/packages/ui/src/streaming-display-redaction.ts b/packages/ui/src/streaming-display-redaction.ts index 13ca8d70c4..392d16e9f6 100644 --- a/packages/ui/src/streaming-display-redaction.ts +++ b/packages/ui/src/streaming-display-redaction.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { redactReversibleStreamingSuffix, redactSecrets, diff --git a/packages/ui/src/streaming-presentation.ts b/packages/ui/src/streaming-presentation.ts index f63d90c768..6d0b7d8b89 100644 --- a/packages/ui/src/streaming-presentation.ts +++ b/packages/ui/src/streaming-presentation.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Maka's deterministic fixture contract is product-owned. Astryx handles the * real OS reduced-motion media query; these attributes cover only renderer diff --git a/packages/ui/src/styles.css b/packages/ui/src/styles.css index a8de977dd9..8b5b7a3ea4 100644 --- a/packages/ui/src/styles.css +++ b/packages/ui/src/styles.css @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* Maka product compositions shared across desktop renderer surfaces. Astryx owns generic component chrome; these selectors own only product semantics. */ diff --git a/packages/ui/src/task-ledger-panel.tsx b/packages/ui/src/task-ledger-panel.tsx index df8c1f865c..068bcdb091 100644 --- a/packages/ui/src/task-ledger-panel.tsx +++ b/packages/ui/src/task-ledger-panel.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, type CSSProperties, type ReactNode } from 'react'; import { Banner, Collapsible, EmptyState, IconButton, Spinner } from '@astryxdesign/core'; import type { Task, TaskStatus } from '@maka/core/task-ledger'; diff --git a/packages/ui/src/thinking-stream.ts b/packages/ui/src/thinking-stream.ts index 17d32305e0..17ffe94d53 100644 --- a/packages/ui/src/thinking-stream.ts +++ b/packages/ui/src/thinking-stream.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-UI-C0 review fixup (@kenji msg 7885a347) — pure trust-boundary * helper for the Anthropic extended-thinking stream the renderer diff --git a/packages/ui/src/timeline-fold.ts b/packages/ui/src/timeline-fold.ts index 33ef328354..289d2af242 100644 --- a/packages/ui/src/timeline-fold.ts +++ b/packages/ui/src/timeline-fold.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { TurnTimelineItem } from './materialize.js'; /** diff --git a/packages/ui/src/titlebar-session-identity.tsx b/packages/ui/src/titlebar-session-identity.tsx index 009319e8f6..24b7d8ec65 100644 --- a/packages/ui/src/titlebar-session-identity.tsx +++ b/packages/ui/src/titlebar-session-identity.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState } from 'react'; import { BreadcrumbItem, Breadcrumbs } from '@astryxdesign/core/Breadcrumbs'; import { Icon } from '@astryxdesign/core/Icon'; diff --git a/packages/ui/src/toast.tsx b/packages/ui/src/toast.tsx index 9678317a57..b3a02e1268 100644 --- a/packages/ui/src/toast.tsx +++ b/packages/ui/src/toast.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/toast.tsx // // In-app toast notification system + Promise-returning confirm dialog. Both diff --git a/packages/ui/src/tool-activity.tsx b/packages/ui/src/tool-activity.tsx index 9acc02a74c..c5fd87535a 100644 --- a/packages/ui/src/tool-activity.tsx +++ b/packages/ui/src/tool-activity.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef } from 'react'; import { countDiffLineStats } from '@maka/core/unified-diff'; import { isInFlightToolStatus } from '@maka/core/tool-result-status'; diff --git a/packages/ui/src/tool-activity/agent-preview.tsx b/packages/ui/src/tool-activity/agent-preview.tsx index bcb17c2201..fcad99f557 100644 --- a/packages/ui/src/tool-activity/agent-preview.tsx +++ b/packages/ui/src/tool-activity/agent-preview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { type ToolResultContent } from '@maka/core/events'; import { type UiLocale } from '@maka/core/ui-locale'; import { ICON_SIZE, Check, Copy } from '../icons.js'; diff --git a/packages/ui/src/tool-activity/builtin-preview.ts b/packages/ui/src/tool-activity/builtin-preview.ts index ec4a7eb447..c5d48b8973 100644 --- a/packages/ui/src/tool-activity/builtin-preview.ts +++ b/packages/ui/src/tool-activity/builtin-preview.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Re-export the shared quiet-panel formatting from `@maka/core` (#1065). * diff --git a/packages/ui/src/tool-activity/computer-action-label.ts b/packages/ui/src/tool-activity/computer-action-label.ts index b007e3ec22..3ed5888a92 100644 --- a/packages/ui/src/tool-activity/computer-action-label.ts +++ b/packages/ui/src/tool-activity/computer-action-label.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * A readable row label for one `maka_computer` call, derived from the call's * own arguments. diff --git a/packages/ui/src/tool-activity/copy.ts b/packages/ui/src/tool-activity/copy.ts index eed693d855..7f436f3a6b 100644 --- a/packages/ui/src/tool-activity/copy.ts +++ b/packages/ui/src/tool-activity/copy.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiCatalog, UiLocale } from '@maka/core/ui-locale'; type BackgroundTerminalStatus = 'running' | 'completed' | 'failed' | 'timed_out' | 'cancelled' | 'orphaned'; diff --git a/packages/ui/src/tool-activity/diff-code-preview.tsx b/packages/ui/src/tool-activity/diff-code-preview.tsx index 010ef428c4..3f1abad646 100644 --- a/packages/ui/src/tool-activity/diff-code-preview.tsx +++ b/packages/ui/src/tool-activity/diff-code-preview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useInsertionEffect, useMemo, type ReactNode } from 'react'; import { parseUnifiedDiffRows } from '@maka/core/unified-diff'; import { ensureHighlightStyles, type TokenLine } from '@astryxdesign/core'; diff --git a/packages/ui/src/tool-activity/diff-syntax.ts b/packages/ui/src/tool-activity/diff-syntax.ts index 46e017d6d1..4afb3dd4dc 100644 --- a/packages/ui/src/tool-activity/diff-syntax.ts +++ b/packages/ui/src/tool-activity/diff-syntax.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Syntax colouring for the file-diff preview. * diff --git a/packages/ui/src/tool-activity/display-name.ts b/packages/ui/src/tool-activity/display-name.ts index e93711836f..1f5dcda511 100644 --- a/packages/ui/src/tool-activity/display-name.ts +++ b/packages/ui/src/tool-activity/display-name.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The name a tool row shows. A tool carries its own `displayName` when the * backend named it; the group-activation connector gets a localized label diff --git a/packages/ui/src/tool-activity/preview-utils.ts b/packages/ui/src/tool-activity/preview-utils.ts index 3a44d6cf84..ce43242173 100644 --- a/packages/ui/src/tool-activity/preview-utils.ts +++ b/packages/ui/src/tool-activity/preview-utils.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from '@maka/core/ui-locale'; import { getToolActivityCopy } from './copy.js'; diff --git a/packages/ui/src/tool-activity/result-projection.ts b/packages/ui/src/tool-activity/result-projection.ts index 8d228de62a..8f7a458f15 100644 --- a/packages/ui/src/tool-activity/result-projection.ts +++ b/packages/ui/src/tool-activity/result-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { isShellOutput } from '@maka/core/shell-run'; import { type UiLocale } from '@maka/core/ui-locale'; import type { ToolActivityItem } from '../materialize.js'; diff --git a/packages/ui/src/tool-activity/sandbox-denial.ts b/packages/ui/src/tool-activity/sandbox-denial.ts index a2581f90ef..c5391477eb 100644 --- a/packages/ui/src/tool-activity/sandbox-denial.ts +++ b/packages/ui/src/tool-activity/sandbox-denial.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultContent } from '@maka/core/events'; import type { ToolActivityItem } from '../materialize.js'; diff --git a/packages/ui/src/tool-activity/tool-code-block.tsx b/packages/ui/src/tool-activity/tool-code-block.tsx index aa12d90ef3..3ff31ffb4a 100644 --- a/packages/ui/src/tool-activity/tool-code-block.tsx +++ b/packages/ui/src/tool-activity/tool-code-block.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useMemo, type ReactNode } from 'react'; import { CodeBlock } from '@astryxdesign/core'; import { AstryxLocaleProvider } from '../astryx-i18n.js'; diff --git a/packages/ui/src/tool-activity/tool-result-preview.tsx b/packages/ui/src/tool-activity/tool-result-preview.tsx index 32eff0f8c3..b67e7ec25c 100644 --- a/packages/ui/src/tool-activity/tool-result-preview.tsx +++ b/packages/ui/src/tool-activity/tool-result-preview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, type ReactNode } from 'react'; import { isShellOutput, type ShellOutput } from '@maka/core/shell-run'; import { normalizeSearchUrl } from '@maka/core/search'; diff --git a/packages/ui/src/tool-format.ts b/packages/ui/src/tool-format.ts index f17b5d8718..8374c6a74e 100644 --- a/packages/ui/src/tool-format.ts +++ b/packages/ui/src/tool-format.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UiLocale } from './locale-helpers.js'; import { redactSecrets } from './redact.js'; import { getToolActivityCopy } from './tool-activity/copy.js'; diff --git a/packages/ui/src/tool-output-stream.ts b/packages/ui/src/tool-output-stream.ts index 3fa6091c06..062c52de3e 100644 --- a/packages/ui/src/tool-output-stream.ts +++ b/packages/ui/src/tool-output-stream.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-UI-12 review fixup #2 (@kenji A3 review msg 365ff8b9). * diff --git a/packages/ui/src/transcript-projection.ts b/packages/ui/src/transcript-projection.ts index f1df6673b3..1d93341d68 100644 --- a/packages/ui/src/transcript-projection.ts +++ b/packages/ui/src/transcript-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ShellRunUpdate } from '@maka/core/events'; import type { StoredMessage } from '@maka/core/session'; import type { LiveTurnProjection } from './live-turn-projection.js'; diff --git a/packages/ui/src/turn-height-index.ts b/packages/ui/src/turn-height-index.ts index e4e22aea35..6f6df8de2e 100644 --- a/packages/ui/src/turn-height-index.ts +++ b/packages/ui/src/turn-height-index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + interface SessionTurnHeights { layoutKey: string; heights: Map; diff --git a/packages/ui/src/turn-virtualizer.ts b/packages/ui/src/turn-virtualizer.ts index 4672507978..88489657e5 100644 --- a/packages/ui/src/turn-virtualizer.ts +++ b/packages/ui/src/turn-virtualizer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface TurnVirtualLayout { readonly turnIds: readonly string[]; readonly offsets: readonly number[]; diff --git a/packages/ui/src/ui.tsx b/packages/ui/src/ui.tsx index 39a24fd7a0..dd604c3f5c 100644 --- a/packages/ui/src/ui.tsx +++ b/packages/ui/src/ui.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export { cn } from './utils.js'; export { LayerProvider } from '@astryxdesign/core/Layer'; diff --git a/packages/ui/src/use-chat-scroll.ts b/packages/ui/src/use-chat-scroll.ts index 73e75daeae..dd2f200026 100644 --- a/packages/ui/src/use-chat-scroll.ts +++ b/packages/ui/src/use-chat-scroll.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, useState, type RefObject } from 'react'; import type { StoredMessage } from '@maka/core/session'; import { createArrivalBottomPin, type ArrivalBottomPin } from './arrival-bottom-pin.js'; diff --git a/packages/ui/src/use-composer-draft.ts b/packages/ui/src/use-composer-draft.ts index b42765c54c..c440cca296 100644 --- a/packages/ui/src/use-composer-draft.ts +++ b/packages/ui/src/use-composer-draft.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Composer draft-persistence hook (issue #1044). * diff --git a/packages/ui/src/use-composer-history.ts b/packages/ui/src/use-composer-history.ts index a72955029e..dd232b22f4 100644 --- a/packages/ui/src/use-composer-history.ts +++ b/packages/ui/src/use-composer-history.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Composer prompt-history navigation hook (issue #1044). * diff --git a/packages/ui/src/use-message-selection-quote.ts b/packages/ui/src/use-message-selection-quote.ts index 14d3dc4418..b36d4bb388 100644 --- a/packages/ui/src/use-message-selection-quote.ts +++ b/packages/ui/src/use-message-selection-quote.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, useState, type RefObject } from 'react'; import { flushSync } from 'react-dom'; import { diff --git a/packages/ui/src/use-mounted-ref.ts b/packages/ui/src/use-mounted-ref.ts index f5f03e8a38..e0f92775b6 100644 --- a/packages/ui/src/use-mounted-ref.ts +++ b/packages/ui/src/use-mounted-ref.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef } from 'react'; import type { RefObject } from 'react'; diff --git a/packages/ui/src/use-roving-row-focus.ts b/packages/ui/src/use-roving-row-focus.ts index 3afb7d1c81..867f8d9b12 100644 --- a/packages/ui/src/use-roving-row-focus.ts +++ b/packages/ui/src/use-roving-row-focus.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // packages/ui/src/use-roving-row-focus.ts // // Roving tabindex over a selectable list, so the whole list is ONE tab stop. diff --git a/packages/ui/src/use-transcript-projection.ts b/packages/ui/src/use-transcript-projection.ts index 97d3e1d698..e5de5b675a 100644 --- a/packages/ui/src/use-transcript-projection.ts +++ b/packages/ui/src/use-transcript-projection.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useRef } from 'react'; import type { TurnViewModel } from './materialize.js'; import { diff --git a/packages/ui/src/use-turn-virtualizer.ts b/packages/ui/src/use-turn-virtualizer.ts index d33c1b3115..16f8c95758 100644 --- a/packages/ui/src/use-turn-virtualizer.ts +++ b/packages/ui/src/use-turn-virtualizer.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useCallback, useEffect, diff --git a/packages/ui/src/user-question-prompt-state.ts b/packages/ui/src/user-question-prompt-state.ts index d172cc8d78..5624528d7b 100644 --- a/packages/ui/src/user-question-prompt-state.ts +++ b/packages/ui/src/user-question-prompt-state.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { UserQuestion, UserQuestionRequest, UserQuestionResponse } from '@maka/core/user-question'; export type QuestionAnswerDraft = diff --git a/packages/ui/src/user-question-prompt.tsx b/packages/ui/src/user-question-prompt.tsx index 6e1c6f30b2..a26c6b29c5 100644 --- a/packages/ui/src/user-question-prompt.tsx +++ b/packages/ui/src/user-question-prompt.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useId, useRef, useState } from 'react'; import type { UserQuestionRequestEvent } from '@maka/core/events'; import type { UserQuestionResponse } from '@maka/core/user-question'; diff --git a/packages/ui/src/utils.ts b/packages/ui/src/utils.ts index 76f6892d4b..9a1efae8c1 100644 --- a/packages/ui/src/utils.ts +++ b/packages/ui/src/utils.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { clsx, type ClassValue } from 'clsx'; export function cn(...inputs: ClassValue[]): string { diff --git a/packages/ui/src/workspace-picker.tsx b/packages/ui/src/workspace-picker.tsx index 3ce57d768d..43f8eda746 100644 --- a/packages/ui/src/workspace-picker.tsx +++ b/packages/ui/src/workspace-picker.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ProjectRecord } from '@maka/core/project'; import { DropdownMenu, DropdownMenuItem } from '@astryxdesign/core/DropdownMenu'; import { ICON_SIZE, AlertTriangle, Check, FolderOpen, Network, Plus, RefreshCcw, X } from './icons.js'; diff --git a/packages/ui/stories/accessibility-dialogs.stories.tsx b/packages/ui/stories/accessibility-dialogs.stories.tsx index 9aac384f7d..d4b1ce615c 100644 --- a/packages/ui/stories/accessibility-dialogs.stories.tsx +++ b/packages/ui/stories/accessibility-dialogs.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, fn, userEvent, waitFor, within } from 'storybook/test'; import { useState } from 'react'; diff --git a/packages/ui/stories/attachment.stories.tsx b/packages/ui/stories/attachment.stories.tsx index 19e0a1f4a6..07f585cdd7 100644 --- a/packages/ui/stories/attachment.stories.tsx +++ b/packages/ui/stories/attachment.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { ComponentProps } from 'react'; import type { AttachmentRef } from '@maka/core/events'; diff --git a/packages/ui/stories/capability-audit-strip.stories.tsx b/packages/ui/stories/capability-audit-strip.stories.tsx index 134911b7ca..d892c942ef 100644 --- a/packages/ui/stories/capability-audit-strip.stories.tsx +++ b/packages/ui/stories/capability-audit-strip.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { CapabilityAuditReport } from '@maka/core/capability-audit'; import { CapabilityAuditStrip } from '../src/capability-audit-strip.js'; diff --git a/packages/ui/stories/composite-row-states.stories.tsx b/packages/ui/stories/composite-row-states.stories.tsx index 94987b37a9..59ed8c2e56 100644 --- a/packages/ui/stories/composite-row-states.stories.tsx +++ b/packages/ui/stories/composite-row-states.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { SessionSummary } from '@maka/core/session'; import { userEvent } from 'storybook/test'; diff --git a/packages/ui/stories/functional-motion.stories.tsx b/packages/ui/stories/functional-motion.stories.tsx index 62971f284e..d41a6d2380 100644 --- a/packages/ui/stories/functional-motion.stories.tsx +++ b/packages/ui/stories/functional-motion.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { Spinner } from '@astryxdesign/core/Spinner'; diff --git a/packages/ui/stories/icons.stories.tsx b/packages/ui/stories/icons.stories.tsx index a157e6659c..19ee044323 100644 --- a/packages/ui/stories/icons.stories.tsx +++ b/packages/ui/stories/icons.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import type { ElementType } from 'react'; import * as Icons from '../src/icons.js'; diff --git a/packages/ui/stories/markdown.stories.tsx b/packages/ui/stories/markdown.stories.tsx index b192429f29..46b23b2cec 100644 --- a/packages/ui/stories/markdown.stories.tsx +++ b/packages/ui/stories/markdown.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { ChatMessageBubble } from '@astryxdesign/core'; import { Markdown } from '../src/markdown.js'; diff --git a/packages/ui/stories/model-picker.stories.tsx b/packages/ui/stories/model-picker.stories.tsx index b1ef2ae229..fe2418a19a 100644 --- a/packages/ui/stories/model-picker.stories.tsx +++ b/packages/ui/stories/model-picker.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, userEvent, within } from 'storybook/test'; diff --git a/packages/ui/stories/palette-matrix.stories.tsx b/packages/ui/stories/palette-matrix.stories.tsx index 23091347f7..52585d2c09 100644 --- a/packages/ui/stories/palette-matrix.stories.tsx +++ b/packages/ui/stories/palette-matrix.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * The one Design System story that survived the token-catalog cut, because the * test that removed the others does not apply to it. diff --git a/packages/ui/stories/sandbox-boundary-prompt.stories.tsx b/packages/ui/stories/sandbox-boundary-prompt.stories.tsx index f816db65aa..11ba592570 100644 --- a/packages/ui/stories/sandbox-boundary-prompt.stories.tsx +++ b/packages/ui/stories/sandbox-boundary-prompt.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { SandboxBoundaryRequestEvent } from '@maka/core/events'; import type { Meta, StoryObj } from '@storybook/react-vite'; diff --git a/packages/ui/stories/session-list-panel.stories.tsx b/packages/ui/stories/session-list-panel.stories.tsx index 5b8e96fb0f..e61f518956 100644 --- a/packages/ui/stories/session-list-panel.stories.tsx +++ b/packages/ui/stories/session-list-panel.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef, type ReactNode } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, waitFor, within } from 'storybook/test'; diff --git a/packages/ui/stories/stat-tile.stories.tsx b/packages/ui/stories/stat-tile.stories.tsx index d432d6c828..d2ee805163 100644 --- a/packages/ui/stories/stat-tile.stories.tsx +++ b/packages/ui/stories/stat-tile.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { Meta, StoryObj } from '@storybook/react-vite'; import { StatTile, type StatTileTone } from '../src/primitives/stat-tile.js'; diff --git a/packages/ui/stories/toast.stories.tsx b/packages/ui/stories/toast.stories.tsx index 0f9a374d8b..58ebeaa7f2 100644 --- a/packages/ui/stories/toast.stories.tsx +++ b/packages/ui/stories/toast.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { expect, userEvent, waitFor, within } from 'storybook/test'; diff --git a/packages/ui/stories/tool-activity.fixtures.ts b/packages/ui/stories/tool-activity.fixtures.ts index 9d971c89ba..3e862b160d 100644 --- a/packages/ui/stories/tool-activity.fixtures.ts +++ b/packages/ui/stories/tool-activity.fixtures.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { ToolResultContent } from '@maka/core/events'; import type { ToolActivityItem, ToolOutputChunk } from '../src/materialize.js'; diff --git a/packages/ui/stories/tool-activity.stories.tsx b/packages/ui/stories/tool-activity.stories.tsx index b4ec973217..1fc301ef9f 100644 --- a/packages/ui/stories/tool-activity.stories.tsx +++ b/packages/ui/stories/tool-activity.stories.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { useEffect, useRef } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { ToolCallDetail, ToolTrow } from '../src/tool-activity.js'; diff --git a/patches/README.md b/patches/README.md index 3fbea4918e..0382bbc82b 100644 --- a/patches/README.md +++ b/patches/README.md @@ -1,3 +1,22 @@ + + # patches Applied on root `postinstall` via `scripts/apply-dependency-patches.mjs` diff --git a/scripts/apply-dependency-patches.mjs b/scripts/apply-dependency-patches.mjs index 45c0d7f98a..8c419d78a4 100644 --- a/scripts/apply-dependency-patches.mjs +++ b/scripts/apply-dependency-patches.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Applies patches/ during the root postinstall. // // patch-package is a root devDependency, so `npm ci --workspace ` and diff --git a/scripts/asf-source-release.mjs b/scripts/asf-source-release.mjs index cdf48b0b69..f10258c48e 100644 --- a/scripts/asf-source-release.mjs +++ b/scripts/asf-source-release.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync, spawnSync } from 'node:child_process'; import { createHash } from 'node:crypto'; import { diff --git a/scripts/asf-source-release.test.mjs b/scripts/asf-source-release.test.mjs index f363bac846..813ef8466d 100644 --- a/scripts/asf-source-release.test.mjs +++ b/scripts/asf-source-release.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/scripts/asf-source-workflow-policy.test.mjs b/scripts/asf-source-workflow-policy.test.mjs index 131e4b8d76..01e043045a 100644 --- a/scripts/asf-source-workflow-policy.test.mjs +++ b/scripts/asf-source-workflow-policy.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { join } from 'node:path'; diff --git a/scripts/audit-alignment.mjs b/scripts/audit-alignment.mjs index 904f56ab9f..59fd71dde9 100644 --- a/scripts/audit-alignment.mjs +++ b/scripts/audit-alignment.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Systematic row-alignment auditor (design governance tool). // // For every e2e-fixture fixture, finds horizontal clusters of interactive diff --git a/scripts/audit-shipped-dependencies.mjs b/scripts/audit-shipped-dependencies.mjs index 84f8392d6d..e4bf08e81b 100644 --- a/scripts/audit-shipped-dependencies.mjs +++ b/scripts/audit-shipped-dependencies.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Audits what the desktop artifact ships, not what npm labels production. // // `npm audit --omit=dev` covers the Node production closure, but the renderer diff --git a/scripts/ax-tree-audit.mjs b/scripts/ax-tree-audit.mjs index ddb63bdca1..35ec47a37e 100644 --- a/scripts/ax-tree-audit.mjs +++ b/scripts/ax-tree-audit.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const ACTIONABLE_AX_ROLES = new Set([ 'button', 'checkbox', diff --git a/scripts/ax-tree-audit.test.mjs b/scripts/ax-tree-audit.test.mjs index f48cb72e05..bce5e310eb 100644 --- a/scripts/ax-tree-audit.test.mjs +++ b/scripts/ax-tree-audit.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/scripts/build-astryx-theme.mjs b/scripts/build-astryx-theme.mjs index 73b9a4eb55..12a069c1c0 100644 --- a/scripts/build-astryx-theme.mjs +++ b/scripts/build-astryx-theme.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Build the Maka Astryx theme and strip its element-typography block (#1565 PR 3). // // `astryx theme build` compiles apps/desktop/src/renderer/astryx-theme/makaTheme.ts diff --git a/scripts/build-cursor-overlay.mjs b/scripts/build-cursor-overlay.mjs index b2bcbc1faf..93ff22cab3 100644 --- a/scripts/build-cursor-overlay.mjs +++ b/scripts/build-cursor-overlay.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Build the cursor overlay renderer bundle + preload into apps/desktop/dist/overlay. // - cursor-overlay.js: the Canvas engine host (IIFE, browser). The `js→ts` resolve // shim lets us bundle the engine's NodeNext `./x.js` imports straight from source. diff --git a/scripts/check-astryx-surface-inventory.mjs b/scripts/check-astryx-surface-inventory.mjs index 41d5d201c7..924df12e9b 100644 --- a/scripts/check-astryx-surface-inventory.mjs +++ b/scripts/check-astryx-surface-inventory.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Coverage gate: committed inventory artifacts match a fresh generator run. * diff --git a/scripts/check-stale-dist.mjs b/scripts/check-stale-dist.mjs index 7fb29e7923..b1c32e1502 100644 --- a/scripts/check-stale-dist.mjs +++ b/scripts/check-stale-dist.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BUILD-HYGIENE-0: detect a stale `dist/` (source newer than its * compiled output) and exit non-zero so CI / pre-test hooks can diff --git a/scripts/check-third-party-notices.mjs b/scripts/check-third-party-notices.mjs index 8fdae8c88a..a4674469ee 100644 --- a/scripts/check-third-party-notices.mjs +++ b/scripts/check-third-party-notices.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile } from 'node:fs/promises'; import { resolve } from 'node:path'; diff --git a/scripts/ci-test-plan.mjs b/scripts/ci-test-plan.mjs index 083c783b81..845ff4546e 100644 --- a/scripts/ci-test-plan.mjs +++ b/scripts/ci-test-plan.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { execFileSync } from 'node:child_process'; import { readFileSync } from 'node:fs'; diff --git a/scripts/ci-test-plan.test.mjs b/scripts/ci-test-plan.test.mjs index f0e258cb58..b1e7fd0a53 100644 --- a/scripts/ci-test-plan.test.mjs +++ b/scripts/ci-test-plan.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { readdirSync, readFileSync } from 'node:fs'; import test from 'node:test'; diff --git a/scripts/clean-build.mjs b/scripts/clean-build.mjs index 6ef3ceecba..2363ccb362 100644 --- a/scripts/clean-build.mjs +++ b/scripts/clean-build.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-BUILD-HYGIENE-0: remove every workspace's `dist` and incremental * tsbuildinfo so the next `npm run build` is forced to recompile from diff --git a/scripts/clean-paths.mjs b/scripts/clean-paths.mjs index 9098724bd2..e8b5cdb08b 100644 --- a/scripts/clean-paths.mjs +++ b/scripts/clean-paths.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { rm } from 'node:fs/promises'; const targets = process.argv.slice(2); diff --git a/scripts/computer-use.mjs b/scripts/computer-use.mjs index 89071c8b4d..a48f28f82f 100644 --- a/scripts/computer-use.mjs +++ b/scripts/computer-use.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { fileURLToPath } from 'node:url'; diff --git a/scripts/computer-use/anthropic-model.mjs b/scripts/computer-use/anthropic-model.mjs index ebbe247e49..594e791f2e 100644 --- a/scripts/computer-use/anthropic-model.mjs +++ b/scripts/computer-use/anthropic-model.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createSyntheticComputerScenario, canonicalizeSyntheticComputerArgs, diff --git a/scripts/computer-use/ax-oracle.swift b/scripts/computer-use/ax-oracle.swift index 381d4be351..5d66d038b4 100644 --- a/scripts/computer-use/ax-oracle.swift +++ b/scripts/computer-use/ax-oracle.swift @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // An accessibility oracle that owes Computer Use nothing. // // Every real-machine check so far read the result back through the same path diff --git a/scripts/computer-use/cursor-accuracy-real.mjs b/scripts/computer-use/cursor-accuracy-real.mjs index 0e794137d8..337771d444 100644 --- a/scripts/computer-use/cursor-accuracy-real.mjs +++ b/scripts/computer-use/cursor-accuracy-real.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Where does the agent cursor actually end up? // // The overlay is a transparent, click-through window spanning every display, diff --git a/scripts/computer-use/direct-runtime-ledger.mjs b/scripts/computer-use/direct-runtime-ledger.mjs index a389088c48..3df2920524 100644 --- a/scripts/computer-use/direct-runtime-ledger.mjs +++ b/scripts/computer-use/direct-runtime-ledger.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createSessionEventMapMemory, mapSessionEventToRuntimeEvent, diff --git a/scripts/computer-use/e2e-fixture.d.mts b/scripts/computer-use/e2e-fixture.d.mts index e9b684df2d..1ba0afaeab 100644 --- a/scripts/computer-use/e2e-fixture.d.mts +++ b/scripts/computer-use/e2e-fixture.d.mts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import type { BrowserWindowConstructorOptions } from 'electron'; import type { CuE2eScenario } from './e2e-scenarios.mjs'; diff --git a/scripts/computer-use/e2e-fixture.mjs b/scripts/computer-use/e2e-fixture.mjs index c4aa2fe2d0..14f857ad10 100644 --- a/scripts/computer-use/e2e-fixture.mjs +++ b/scripts/computer-use/e2e-fixture.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { validateCuE2eScenario } from './e2e-scenarios.mjs'; function windowBody(spec) { diff --git a/scripts/computer-use/e2e-scenarios.d.mts b/scripts/computer-use/e2e-scenarios.d.mts index 4b5bc4816f..b7f3c7bcdb 100644 --- a/scripts/computer-use/e2e-scenarios.d.mts +++ b/scripts/computer-use/e2e-scenarios.d.mts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export interface CuE2eScenario { id: string; level: 'L0' | 'L1' | 'L2' | 'L3' | 'L4' | 'L5'; diff --git a/scripts/computer-use/e2e-scenarios.mjs b/scripts/computer-use/e2e-scenarios.mjs index 9b7f26a390..e3eca8bc50 100644 --- a/scripts/computer-use/e2e-scenarios.mjs +++ b/scripts/computer-use/e2e-scenarios.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const LEVELS = new Set(['L0', 'L1', 'L2', 'L3', 'L4', 'L5']); export const CU_E2E_ACTIONS = Object.freeze([ diff --git a/scripts/computer-use/function-model.mjs b/scripts/computer-use/function-model.mjs index 21f17e9058..21baf9cdf4 100644 --- a/scripts/computer-use/function-model.mjs +++ b/scripts/computer-use/function-model.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createOpenAIStrictObjectSchema, projectOpenAIStrictFunctionArgs, diff --git a/scripts/computer-use/physical-input-age.swift b/scripts/computer-use/physical-input-age.swift index 82ef67e4e3..f51b3cda6f 100644 --- a/scripts/computer-use/physical-input-age.swift +++ b/scripts/computer-use/physical-input-age.swift @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import Cocoa import CoreGraphics diff --git a/scripts/computer-use/prepare-provenance.mjs b/scripts/computer-use/prepare-provenance.mjs index 0d018f3287..b4697eeb75 100644 --- a/scripts/computer-use/prepare-provenance.mjs +++ b/scripts/computer-use/prepare-provenance.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export function resolveMakaCuSourceBranch({ currentBranch, remoteBranches = [], explicitBranch }) { const explicit = explicitBranch?.trim(); if (explicit) return explicit; diff --git a/scripts/computer-use/prepare.mjs b/scripts/computer-use/prepare.mjs index a235b20956..77a8bcba6b 100644 --- a/scripts/computer-use/prepare.mjs +++ b/scripts/computer-use/prepare.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Build the maka-cu executor from source and pin the result. // // cua-driver arrived as a signed upstream release, so preparing it meant diff --git a/scripts/computer-use/process-restart-harness.mjs b/scripts/computer-use/process-restart-harness.mjs index 4c72a2910f..e911cf7714 100644 --- a/scripts/computer-use/process-restart-harness.mjs +++ b/scripts/computer-use/process-restart-harness.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join, relative, resolve } from 'node:path'; diff --git a/scripts/computer-use/process-restart-launcher.mjs b/scripts/computer-use/process-restart-launcher.mjs index 308f2602af..349e4e6953 100644 --- a/scripts/computer-use/process-restart-launcher.mjs +++ b/scripts/computer-use/process-restart-launcher.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/scripts/computer-use/provider-matrix.mjs b/scripts/computer-use/provider-matrix.mjs index 0bfdb42982..3667b06b9b 100644 --- a/scripts/computer-use/provider-matrix.mjs +++ b/scripts/computer-use/provider-matrix.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { mkdir, readFile, writeFile } from 'node:fs/promises'; import { dirname, isAbsolute, resolve } from 'node:path'; import { pathToFileURL } from 'node:url'; diff --git a/scripts/computer-use/real-ax-harness.mjs b/scripts/computer-use/real-ax-harness.mjs index 36a1f9ecf9..643604d177 100644 --- a/scripts/computer-use/real-ax-harness.mjs +++ b/scripts/computer-use/real-ax-harness.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, execFileSync } from 'node:child_process'; import { randomUUID } from 'node:crypto'; import { readFile, writeFile } from 'node:fs/promises'; diff --git a/scripts/computer-use/real-ax-launcher.mjs b/scripts/computer-use/real-ax-launcher.mjs index 616bfe6d28..2c0987bd6b 100644 --- a/scripts/computer-use/real-ax-launcher.mjs +++ b/scripts/computer-use/real-ax-launcher.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { copyFile, mkdir, mkdtemp, readFile, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/scripts/computer-use/real-e2e-monitor.swift b/scripts/computer-use/real-e2e-monitor.swift index 26efb87ac1..3d78fbfba8 100644 --- a/scripts/computer-use/real-e2e-monitor.swift +++ b/scripts/computer-use/real-e2e-monitor.swift @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import Cocoa import CoreGraphics import Darwin diff --git a/scripts/computer-use/real-model-fixture.mjs b/scripts/computer-use/real-model-fixture.mjs index fd06d2391b..9d77f99b6f 100644 --- a/scripts/computer-use/real-model-fixture.mjs +++ b/scripts/computer-use/real-model-fixture.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { app, BrowserWindow, screen } from 'electron'; import { getCuE2eScenario } from './e2e-scenarios.mjs'; import { createCuE2eFixture } from './e2e-fixture.mjs'; diff --git a/scripts/computer-use/real-model.mjs b/scripts/computer-use/real-model.mjs index 2bd3ad6f8f..d8d1ec4068 100644 --- a/scripts/computer-use/real-model.mjs +++ b/scripts/computer-use/real-model.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { _electron as electron, chromium } from '@playwright/test'; import { execFile, spawn } from 'node:child_process'; import { randomUUID } from 'node:crypto'; diff --git a/scripts/computer-use/report-sanitize.mjs b/scripts/computer-use/report-sanitize.mjs index 91eaa91c43..82cb00637d 100644 --- a/scripts/computer-use/report-sanitize.mjs +++ b/scripts/computer-use/report-sanitize.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + const SAFE_TRACE_KEYS = new Set([ 'type', 'actionType', diff --git a/scripts/computer-use/runtime-model.mjs b/scripts/computer-use/runtime-model.mjs index be71a9084b..1a61999b5b 100644 --- a/scripts/computer-use/runtime-model.mjs +++ b/scripts/computer-use/runtime-model.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { AiSdkBackend } from '../../packages/runtime/dist/ai-sdk-backend.js'; import { buildComputerUseTools } from '../../packages/runtime/dist/computer-use-tools.js'; import { getAIModel } from '../../packages/runtime/dist/model-factory.js'; diff --git a/scripts/computer-use/synthetic-model-scenario.mjs b/scripts/computer-use/synthetic-model-scenario.mjs index 9df7bb4e07..d0ecf02979 100644 --- a/scripts/computer-use/synthetic-model-scenario.mjs +++ b/scripts/computer-use/synthetic-model-scenario.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export const SYNTHETIC_COMPUTER_TOOL_PROPERTIES = { action: { type: 'string', diff --git a/scripts/computer-use/trace-analyse.mjs b/scripts/computer-use/trace-analyse.mjs index 0967d2aa19..a9956489a7 100644 --- a/scripts/computer-use/trace-analyse.mjs +++ b/scripts/computer-use/trace-analyse.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // What confused the model. // // `MAKA_CU_DEBUG_LOG` is meant to record every Computer Use call a real run diff --git a/scripts/desktop-real-window-smoke.mjs b/scripts/desktop-real-window-smoke.mjs index c4ec140326..53c10a6b3b 100644 --- a/scripts/desktop-real-window-smoke.mjs +++ b/scripts/desktop-real-window-smoke.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * PR-DESKTOP-SMOKE-0: real Electron window smoke runner. * diff --git a/scripts/electron-lifecycle.mjs b/scripts/electron-lifecycle.mjs index cdc604b056..5c3028dc2c 100644 --- a/scripts/electron-lifecycle.mjs +++ b/scripts/electron-lifecycle.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Bounded teardown for a spawned Electron tree. // // `ElectronApplication.close()` waits for the app to quit and has no deadline: diff --git a/scripts/fixture-env.mjs b/scripts/fixture-env.mjs index 537d973de5..1e1876c0c2 100644 --- a/scripts/fixture-env.mjs +++ b/scripts/fixture-env.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The environment a Maka fixture window launches into. // // Extracted from apps/desktop/e2e/fixtures.ts, which worked it out first and diff --git a/scripts/fixture-window.mjs b/scripts/fixture-window.mjs index 0c8c637056..148289d29e 100644 --- a/scripts/fixture-window.mjs +++ b/scripts/fixture-window.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Boot an e2e-fixture window and evaluate in its renderer. // // This is the same launch the Playwright E2E suite performs, driven from a diff --git a/scripts/gen-bundled-skill-catalog.mjs b/scripts/gen-bundled-skill-catalog.mjs index 7adf505f07..788bca9d37 100644 --- a/scripts/gen-bundled-skill-catalog.mjs +++ b/scripts/gen-bundled-skill-catalog.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { createHash } from 'node:crypto'; import { readdirSync, readFileSync, writeFileSync } from 'node:fs'; diff --git a/scripts/generate-astryx-surface-inventory.mjs b/scripts/generate-astryx-surface-inventory.mjs index 15ea79921a..99e7ddf60b 100644 --- a/scripts/generate-astryx-surface-inventory.mjs +++ b/scripts/generate-astryx-surface-inventory.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Enumerates every product UI surface file and emits a file-level Astryx-fit * inventory (markdown + machine-readable path list). diff --git a/scripts/generate-third-party-notices.mjs b/scripts/generate-third-party-notices.mjs index 58f61a7b45..1b4d75d2eb 100644 --- a/scripts/generate-third-party-notices.mjs +++ b/scripts/generate-third-party-notices.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'; import { join, resolve } from 'node:path'; import { diff --git a/scripts/generate-third-party-notices.test.mjs b/scripts/generate-third-party-notices.test.mjs index c8537d65f4..a81af162bc 100644 --- a/scripts/generate-third-party-notices.test.mjs +++ b/scripts/generate-third-party-notices.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { readFileSync } from 'node:fs'; diff --git a/scripts/generate-windows-cargo-notices.mjs b/scripts/generate-windows-cargo-notices.mjs index c92e1c3c8b..d45a08df8b 100644 --- a/scripts/generate-windows-cargo-notices.mjs +++ b/scripts/generate-windows-cargo-notices.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync } from 'node:child_process'; import { createHash } from 'node:crypto'; import { readdirSync, readFileSync, writeFileSync } from 'node:fs'; diff --git a/scripts/install-electron-with-retry.mjs b/scripts/install-electron-with-retry.mjs index 61fed3d4cf..139b280e84 100644 --- a/scripts/install-electron-with-retry.mjs +++ b/scripts/install-electron-with-retry.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawnSync } from 'node:child_process'; import { createRequire } from 'node:module'; import { dirname } from 'node:path'; diff --git a/scripts/npm-spawn.mjs b/scripts/npm-spawn.mjs index 82f18e703c..15c2df56c8 100644 --- a/scripts/npm-spawn.mjs +++ b/scripts/npm-spawn.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Windows resolves `npm` to npm.cmd, and a bare `npm` never reaches it: libuv's // process launcher tries only .com and .exe and ignores PATHEXT, and Node // refuses to launch a .cmd without a shell at all. So every npm subprocess on diff --git a/scripts/package-macos-arm64-cli.mjs b/scripts/package-macos-arm64-cli.mjs index b248c2ab65..aec5b3bd6c 100644 --- a/scripts/package-macos-arm64-cli.mjs +++ b/scripts/package-macos-arm64-cli.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile, spawn } from 'node:child_process'; import { createHash, randomBytes } from 'node:crypto'; import { createReadStream } from 'node:fs'; diff --git a/scripts/package-macos-arm64.mjs b/scripts/package-macos-arm64.mjs index 5f08206447..d7854d14b2 100644 --- a/scripts/package-macos-arm64.mjs +++ b/scripts/package-macos-arm64.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { access, readFile, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/scripts/package-windows-autoupdate-next.mjs b/scripts/package-windows-autoupdate-next.mjs index eefc5058d0..e23461a557 100644 --- a/scripts/package-windows-autoupdate-next.mjs +++ b/scripts/package-windows-autoupdate-next.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { access, readFile, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/scripts/package-windows-x64.mjs b/scripts/package-windows-x64.mjs index 3856d354c0..c9f9e74716 100644 --- a/scripts/package-windows-x64.mjs +++ b/scripts/package-windows-x64.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { access, copyFile, mkdir, readFile, rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/scripts/pip-interaction-smoke.mjs b/scripts/pip-interaction-smoke.mjs index 78722b1b5c..e2970dc4b2 100644 --- a/scripts/pip-interaction-smoke.mjs +++ b/scripts/pip-interaction-smoke.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Real-window smoke for the picture-in-picture mirror's interaction. // // The unit tests drive a fake window, so they prove the physics and the state diff --git a/scripts/prepare-bundled-git-source.mjs b/scripts/prepare-bundled-git-source.mjs index a480999ecf..032b3b7a90 100644 --- a/scripts/prepare-bundled-git-source.mjs +++ b/scripts/prepare-bundled-git-source.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { lstat, mkdir, readFile, rename, rm, writeFile } from 'node:fs/promises'; import { dirname, isAbsolute, join, parse, resolve } from 'node:path'; diff --git a/scripts/prepare-bundled-git.mjs b/scripts/prepare-bundled-git.mjs index 0ed9660290..6108219fe5 100644 --- a/scripts/prepare-bundled-git.mjs +++ b/scripts/prepare-bundled-git.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { createHash } from 'node:crypto'; import { createReadStream } from 'node:fs'; diff --git a/scripts/prepare-deepseek-harness-toolchain.mjs b/scripts/prepare-deepseek-harness-toolchain.mjs index 426aa86127..6ebfb763e8 100644 --- a/scripts/prepare-deepseek-harness-toolchain.mjs +++ b/scripts/prepare-deepseek-harness-toolchain.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Build the DeepSeek Harness toolchain that the Eval external subject mounts // read-only at /opt/maka-deepseek-harness-toolchain. // diff --git a/scripts/prepare-windows-upgrade-baseline.mjs b/scripts/prepare-windows-upgrade-baseline.mjs index 14eedc7a3c..87c388c045 100644 --- a/scripts/prepare-windows-upgrade-baseline.mjs +++ b/scripts/prepare-windows-upgrade-baseline.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { mkdir, readFile, rm } from 'node:fs/promises'; import { basename, dirname, join, resolve } from 'node:path'; diff --git a/scripts/product-release-artifacts.mjs b/scripts/product-release-artifacts.mjs index d1085db9cb..e8e66d6967 100644 --- a/scripts/product-release-artifacts.mjs +++ b/scripts/product-release-artifacts.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { copyFile, mkdir, readdir } from 'node:fs/promises'; import { join } from 'node:path'; import { pathToFileURL } from 'node:url'; diff --git a/scripts/product-release-artifacts.test.mjs b/scripts/product-release-artifacts.test.mjs index 24813ce1dd..7a2f9877db 100644 --- a/scripts/product-release-artifacts.test.mjs +++ b/scripts/product-release-artifacts.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdtemp, mkdir, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/scripts/product-release-authority.mjs b/scripts/product-release-authority.mjs index 09e179c110..eff55e0687 100644 --- a/scripts/product-release-authority.mjs +++ b/scripts/product-release-authority.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { pathToFileURL } from 'node:url'; import { promisify } from 'node:util'; diff --git a/scripts/product-release-authority.test.mjs b/scripts/product-release-authority.test.mjs index 59e2f7fdd5..0fb14cf3c5 100644 --- a/scripts/product-release-authority.test.mjs +++ b/scripts/product-release-authority.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { diff --git a/scripts/product-release-identity.mjs b/scripts/product-release-identity.mjs index 98942ddabb..3ad0d0f647 100644 --- a/scripts/product-release-identity.mjs +++ b/scripts/product-release-identity.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { appendFile, readFile } from 'node:fs/promises'; import { dirname, join } from 'node:path'; diff --git a/scripts/product-release-tag.mjs b/scripts/product-release-tag.mjs index 71e074ed35..99fb4c7694 100644 --- a/scripts/product-release-tag.mjs +++ b/scripts/product-release-tag.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { pathToFileURL } from 'node:url'; import { promisify } from 'node:util'; diff --git a/scripts/product-release.test.mjs b/scripts/product-release.test.mjs index 95e01023f8..74bdd042b9 100644 --- a/scripts/product-release.test.mjs +++ b/scripts/product-release.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { access, chmod, mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; diff --git a/scripts/protocol-epoch-check.mjs b/scripts/protocol-epoch-check.mjs index 819f4adfa2..26d9ba26f4 100644 --- a/scripts/protocol-epoch-check.mjs +++ b/scripts/protocol-epoch-check.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ // Merge-result guard for the Runtime Host compatibility epoch (#3313). // diff --git a/scripts/protocol-epoch-check.test.mjs b/scripts/protocol-epoch-check.test.mjs index 0c0c21a8f8..fe40a0f2c1 100644 --- a/scripts/protocol-epoch-check.test.mjs +++ b/scripts/protocol-epoch-check.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; import { mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; diff --git a/scripts/release-cli-artifact-policy.mjs b/scripts/release-cli-artifact-policy.mjs index e0c9c15046..fd1b88115f 100644 --- a/scripts/release-cli-artifact-policy.mjs +++ b/scripts/release-cli-artifact-policy.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The first installable proof tarball was 15,005,877 compressed bytes, // 77,684,229 unpacked bytes, and 7,511 entries. These ceilings preserve // deliberate headroom while making an accidental dependency/content spike a diff --git a/scripts/release-cli-artifact-policy.test.mjs b/scripts/release-cli-artifact-policy.test.mjs index 7c92b92225..7b8db92d6d 100644 --- a/scripts/release-cli-artifact-policy.test.mjs +++ b/scripts/release-cli-artifact-policy.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { diff --git a/scripts/release-cli-eval-package.mjs b/scripts/release-cli-eval-package.mjs index 82d3f6b67c..b96b029e3f 100644 --- a/scripts/release-cli-eval-package.mjs +++ b/scripts/release-cli-eval-package.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; diff --git a/scripts/release-cli-eval-support.mjs b/scripts/release-cli-eval-support.mjs index 57e50a4f4d..c2ad4b8441 100644 --- a/scripts/release-cli-eval-support.mjs +++ b/scripts/release-cli-eval-support.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync } from 'node:child_process'; import { chmodSync, diff --git a/scripts/release-cli-eval-support.test.mjs b/scripts/release-cli-eval-support.test.mjs index bd3ebc71cc..6451ace3a7 100644 --- a/scripts/release-cli-eval-support.test.mjs +++ b/scripts/release-cli-eval-support.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; diff --git a/scripts/release-cli-file-policy.mjs b/scripts/release-cli-file-policy.mjs index 8321bad619..4a5a6cdd84 100644 --- a/scripts/release-cli-file-policy.mjs +++ b/scripts/release-cli-file-policy.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { isAbsolute, join, relative, resolve, sep } from 'node:path'; diff --git a/scripts/release-cli-file-policy.test.mjs b/scripts/release-cli-file-policy.test.mjs index 2787b563dd..83db592a3f 100644 --- a/scripts/release-cli-file-policy.test.mjs +++ b/scripts/release-cli-file-policy.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdirSync, mkdtempSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; diff --git a/scripts/release-cli-package.mjs b/scripts/release-cli-package.mjs index 74ae576996..7e2a8678ea 100644 --- a/scripts/release-cli-package.mjs +++ b/scripts/release-cli-package.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync, spawnSync } from 'node:child_process'; import { createHash } from 'node:crypto'; import { diff --git a/scripts/release-cli-publication.mjs b/scripts/release-cli-publication.mjs index c377c2bd53..d694d8ed0d 100644 --- a/scripts/release-cli-publication.mjs +++ b/scripts/release-cli-publication.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { appendFileSync, copyFileSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; import { basename, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; diff --git a/scripts/release-cli-publication.test.mjs b/scripts/release-cli-publication.test.mjs index 63685a66b3..8604ca098e 100644 --- a/scripts/release-cli-publication.test.mjs +++ b/scripts/release-cli-publication.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { createHash } from 'node:crypto'; diff --git a/scripts/release-cli-runtime-host-diagnostics.mjs b/scripts/release-cli-runtime-host-diagnostics.mjs index b529ef0da0..3457fceb23 100644 --- a/scripts/release-cli-runtime-host-diagnostics.mjs +++ b/scripts/release-cli-runtime-host-diagnostics.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync } from 'node:child_process'; import { statSync } from 'node:fs'; import { join } from 'node:path'; diff --git a/scripts/release-cli-runtime-host-diagnostics.test.mjs b/scripts/release-cli-runtime-host-diagnostics.test.mjs index 3ebead9747..a6325a5c11 100644 --- a/scripts/release-cli-runtime-host-diagnostics.test.mjs +++ b/scripts/release-cli-runtime-host-diagnostics.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { existsSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; diff --git a/scripts/release-cli-workflow-policy.test.mjs b/scripts/release-cli-workflow-policy.test.mjs index 421c14b9ab..9265e6240c 100644 --- a/scripts/release-cli-workflow-policy.test.mjs +++ b/scripts/release-cli-workflow-policy.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; diff --git a/scripts/release-eval-smoke-sitecustomize.py b/scripts/release-eval-smoke-sitecustomize.py index fb1f4fa2cc..cb57fc1dc5 100644 --- a/scripts/release-eval-smoke-sitecustomize.py +++ b/scripts/release-eval-smoke-sitecustomize.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Minimal offline Harbor API used by the extracted CLI release smoke.""" import asyncio diff --git a/scripts/release-version.mjs b/scripts/release-version.mjs index 9da80af7f1..997ecb7f91 100644 --- a/scripts/release-version.mjs +++ b/scripts/release-version.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { pathToFileURL } from 'node:url'; export function parseProductReleaseVersion(version) { diff --git a/scripts/run-electron-installer.cjs b/scripts/run-electron-installer.cjs index 50dcda60a6..29df6373dd 100644 --- a/scripts/run-electron-installer.cjs +++ b/scripts/run-electron-installer.cjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ const fs = require('node:fs'); diff --git a/scripts/run-workspace-tests-parallel.mjs b/scripts/run-workspace-tests-parallel.mjs index fd906d137e..c1c1a271c7 100644 --- a/scripts/run-workspace-tests-parallel.mjs +++ b/scripts/run-workspace-tests-parallel.mjs @@ -1,4 +1,23 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /** * Run each workspace's `test:dist` script. * diff --git a/scripts/smoke-release-cli-package.mjs b/scripts/smoke-release-cli-package.mjs index 84692e8d19..a05401fd9f 100644 --- a/scripts/smoke-release-cli-package.mjs +++ b/scripts/smoke-release-cli-package.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFileSync, spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; import { createServer } from 'node:http'; diff --git a/scripts/storybook-visual-smoke.mjs b/scripts/storybook-visual-smoke.mjs index b2d51592db..9069a06211 100644 --- a/scripts/storybook-visual-smoke.mjs +++ b/scripts/storybook-visual-smoke.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createReadStream } from 'node:fs'; import { readFile, stat } from 'node:fs/promises'; import { createServer } from 'node:http'; diff --git a/scripts/sync-model-metadata.mjs b/scripts/sync-model-metadata.mjs index fb24725048..abdebac8f0 100644 --- a/scripts/sync-model-metadata.mjs +++ b/scripts/sync-model-metadata.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { readFile, writeFile } from 'node:fs/promises'; import { pathToFileURL } from 'node:url'; diff --git a/scripts/third-party-closure.mjs b/scripts/third-party-closure.mjs index e4a94fa602..0db154c40a 100644 --- a/scripts/third-party-closure.mjs +++ b/scripts/third-party-closure.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // The dependency closure a packaged artifact actually ships: the Node // production closure that lands in `app.asar/node_modules`, plus everything // reachable from the workspace's declared renderer roots, which vite bundles diff --git a/scripts/third-party-closure.test.mjs b/scripts/third-party-closure.test.mjs index 8c262bd228..858eb64a31 100644 --- a/scripts/third-party-closure.test.mjs +++ b/scripts/third-party-closure.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { describe, test } from 'node:test'; import { bareCssImportSpecifiers } from './third-party-closure.mjs'; diff --git a/scripts/verify-macos-arm64-cli.mjs b/scripts/verify-macos-arm64-cli.mjs index f00354f997..eaaab87d52 100644 --- a/scripts/verify-macos-arm64-cli.mjs +++ b/scripts/verify-macos-arm64-cli.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { execFile } from 'node:child_process'; import { createHash } from 'node:crypto'; import { createReadStream } from 'node:fs'; diff --git a/scripts/verify-macos-arm64-dmg.mjs b/scripts/verify-macos-arm64-dmg.mjs index bb1f0df160..c407d254db 100644 --- a/scripts/verify-macos-arm64-dmg.mjs +++ b/scripts/verify-macos-arm64-dmg.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { access, mkdir, diff --git a/scripts/verify-packaged-app.mjs b/scripts/verify-packaged-app.mjs index ab4446efb7..a513f3e861 100644 --- a/scripts/verify-packaged-app.mjs +++ b/scripts/verify-packaged-app.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; import { createReadStream, readFileSync } from 'node:fs'; diff --git a/scripts/verify-packaged-app.test.mjs b/scripts/verify-packaged-app.test.mjs index 637b1c31ab..cd573db7dc 100644 --- a/scripts/verify-packaged-app.test.mjs +++ b/scripts/verify-packaged-app.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/scripts/verify-windows-autoupdate.mjs b/scripts/verify-windows-autoupdate.mjs index 6f250ec8c0..da558a154d 100644 --- a/scripts/verify-windows-autoupdate.mjs +++ b/scripts/verify-windows-autoupdate.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { spawn } from 'node:child_process'; import { existsSync } from 'node:fs'; import { access, mkdir, mkdtemp, readFile, rm, stat } from 'node:fs/promises'; diff --git a/scripts/verify-windows-harness.test.mjs b/scripts/verify-windows-harness.test.mjs index d21ffd82e7..cc0d7bb2aa 100644 --- a/scripts/verify-windows-harness.test.mjs +++ b/scripts/verify-windows-harness.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import { EventEmitter } from 'node:events'; import { access, mkdir, mkdtemp, rm, symlink, writeFile } from 'node:fs/promises'; diff --git a/scripts/verify-windows-installer-lifecycle.mjs b/scripts/verify-windows-installer-lifecycle.mjs index ad46b9bf6f..54b0f5b7d4 100644 --- a/scripts/verify-windows-installer-lifecycle.mjs +++ b/scripts/verify-windows-installer-lifecycle.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { access, mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { basename, join, resolve, sep } from 'node:path'; diff --git a/scripts/verify-windows-sandbox-e2e.mjs b/scripts/verify-windows-sandbox-e2e.mjs index 853aa00966..b7c021e5a9 100644 --- a/scripts/verify-windows-sandbox-e2e.mjs +++ b/scripts/verify-windows-sandbox-e2e.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { existsSync } from 'node:fs'; import { mkdir, mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises'; import { homedir, tmpdir } from 'node:os'; diff --git a/scripts/verify-windows-x64.mjs b/scripts/verify-windows-x64.mjs index 8bf7a0f280..15b34ab17d 100644 --- a/scripts/verify-windows-x64.mjs +++ b/scripts/verify-windows-x64.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { createHash } from 'node:crypto'; import { access, mkdtemp, open, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; diff --git a/scripts/windows-process-identity.ps1 b/scripts/windows-process-identity.ps1 index cd3fe68737..54eb0c6f59 100644 --- a/scripts/windows-process-identity.ps1 +++ b/scripts/windows-process-identity.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + function Get-WindowsProcessIdentityKey { param( [Parameter(Mandatory = $true)] diff --git a/scripts/windows-runtime-host-local-ipc-trust.ps1 b/scripts/windows-runtime-host-local-ipc-trust.ps1 index 399b759a9e..7572d25148 100644 --- a/scripts/windows-runtime-host-local-ipc-trust.ps1 +++ b/scripts/windows-runtime-host-local-ipc-trust.ps1 @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + $ErrorActionPreference = 'Stop' if ($env:OS -ne 'Windows_NT') { diff --git a/scripts/windows-smoke.mjs b/scripts/windows-smoke.mjs index 653fd614cf..9581182b0f 100644 --- a/scripts/windows-smoke.mjs +++ b/scripts/windows-smoke.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { spawnSync } from 'node:child_process'; import { existsSync, mkdtempSync, rmSync } from 'node:fs'; diff --git a/scripts/windows-test-inventory.mjs b/scripts/windows-test-inventory.mjs index ff1ce188d0..7374a07eed 100644 --- a/scripts/windows-test-inventory.mjs +++ b/scripts/windows-test-inventory.mjs @@ -1,4 +1,22 @@ #!/usr/bin/env node +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { existsSync } from 'node:fs'; import { readdir, readFile, writeFile } from 'node:fs/promises'; diff --git a/scripts/windows-test-inventory.test.mjs b/scripts/windows-test-inventory.test.mjs index ce274f99bf..72a8c92e8c 100644 --- a/scripts/windows-test-inventory.test.mjs +++ b/scripts/windows-test-inventory.test.mjs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import assert from 'node:assert/strict'; import test from 'node:test'; import { excludesWindows } from './windows-test-inventory.mjs'; diff --git a/skills/maka-architecture-docs/SKILL.md b/skills/maka-architecture-docs/SKILL.md index f03aa68bbf..83319677b6 100644 --- a/skills/maka-architecture-docs/SKILL.md +++ b/skills/maka-architecture-docs/SKILL.md @@ -2,6 +2,24 @@ name: maka-architecture-docs description: Draft, restructure, translate, or review bilingual Chinese-English architecture documentation for the Maka Agent backend. Use when Codex works on Maka technical narratives, component or mechanism explanations, architecture decisions, system flows, engineering guides, or documentation quality checks and needs blog-like clarity without losing architectural precision. Do not use it to impose a fixed topic list or information architecture unless the user asks for one. --- + # Maka Architecture Docs diff --git a/skills/maka-architecture-docs/agents/openai.yaml b/skills/maka-architecture-docs/agents/openai.yaml index 363f47565a..b50417aded 100644 --- a/skills/maka-architecture-docs/agents/openai.yaml +++ b/skills/maka-architecture-docs/agents/openai.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + interface: display_name: "Maka Architecture Docs" short_description: "Write clear, rigorous bilingual Maka architecture documents" diff --git a/skills/maka-architecture-docs/assets/article-template.md b/skills/maka-architecture-docs/assets/article-template.md index 92dfac6400..b98d487e52 100644 --- a/skills/maka-architecture-docs/assets/article-template.md +++ b/skills/maka-architecture-docs/assets/article-template.md @@ -11,6 +11,24 @@ last_verified: YYYY-MM-DD owners: - maka-backend --- + # diff --git a/skills/maka-architecture-docs/references/bilingual-standard.md b/skills/maka-architecture-docs/references/bilingual-standard.md index 02a0138e2f..9e92aa5b3a 100644 --- a/skills/maka-architecture-docs/references/bilingual-standard.md +++ b/skills/maka-architecture-docs/references/bilingual-standard.md @@ -1,3 +1,22 @@ + + # Maka Bilingual Documentation Standard ## Default publishing model diff --git a/skills/maka-architecture-docs/references/quality-gate.md b/skills/maka-architecture-docs/references/quality-gate.md index 6ab2a38173..c1bd19ea69 100644 --- a/skills/maka-architecture-docs/references/quality-gate.md +++ b/skills/maka-architecture-docs/references/quality-gate.md @@ -1,3 +1,22 @@ + + # Architecture Document Quality Gate Use this checklist before marking a draft or review complete. Treat items marked **Required** as release blockers when they apply. diff --git a/skills/maka-architecture-docs/references/writing-standard.md b/skills/maka-architecture-docs/references/writing-standard.md index 51fe3a782b..69925ef606 100644 --- a/skills/maka-architecture-docs/references/writing-standard.md +++ b/skills/maka-architecture-docs/references/writing-standard.md @@ -1,3 +1,22 @@ + + # Maka Architecture Writing Standard ## Purpose