8000 build(deps): bump actions/setup-node from 4 to 7 by dependabot[bot] · Pull Request #1 · inkspect-code-review/inkspect-core · GitHub
[go: up one dir, main page]

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto eol=lf
*.tgz binary
*.tar.gz binary
*.png binary
*.jpg binary
*.jpeg binary
*.webp binary
*.woff2 binary
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Bug report
description: Report a reproducible problem.
title: "[Bug]: "
labels: [bug]
body:
- type: markdown
attributes:
value: "Use synthetic examples. Never include keys or private source. Report security issues using SECURITY.md."
- type: textarea
id: problem
attributes:
label: What happened?
description: Include expected behavior and the actual result.
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce
description: Provide a minimal example with credentials removed.
validations:
required: true
- type: input
id: version
attributes:
label: Version or commit
validations:
required: true
- type: input
id: environment
attributes:
label: OS, architecture and runtime
placeholder: "Linux x86_64, Node 22 / Docker Compose v2"
- type: textarea
id: logs
attributes:
label: Redacted error output
render: text
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Security report
url: https://github.com/inkspect-code-review/inkspect-core/blob/main/SECURITY.md
about: Report vulnerabilities privately, not in an issue.
- name: Setup and support
url: https://github.com/inkspect-code-review/inkspect-core/blob/main/SUPPORT.md
about: Find setup help and reporting guidance.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature request
description: Suggest an improvement.
title: "[Feature]: "
labels: [enhancement]
body:
- type: textarea
id: problem
attributes:
label: What problem would this solve?
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed behavior and alternatives
validations:
required: true
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What changes and why?

<!-- Explain the problem and resulting behavior. Link an issue if relevant. -->

## Validation

<!-- List checks actually run, their results, and anything not verified. -->

- [ ] Relevant automated tests pass.
- [ ] Behavior changes have regression tests.
- [ ] User-facing changes are documented.
- [ ] Every change in this PR is recorded in `CHANGELOG.md`, including docs/configuration/maintenance.
- [ ] No credentials, private source or customer data are included.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/community.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Community standards
on:
pull_request:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
jobs:
title:
name: Pull request title
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Check conventional title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
python3 - <<'PYTITLE'
import os, re
title = os.environ['PR_TITLE']
pattern = r'(feat|fix|docs|test|refactor|perf|build|ci|chore|revert)\([a-z0-9-]+\)!?: [a-z].+'
if not re.fullmatch(pattern, title) or len(title) > 72 or title.endswith('.'):
raise SystemExit('Use type(scope): short imperative description (max 72 characters).')
PYTITLE
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ Edit package source in its owning repository, not `vendor/` or `node_modules`. R
- Never deploy, change repository visibility, or publish a package merely because a commit/push was requested.
- Manual UI/computer-use QA requires an explicit QA request. Otherwise finish with appropriate automated checks and state their limits.
- Never stage credentials, real .env files, production/customer data, private keys, logs, installed dependencies or build output. Inspect dependency/release archives recursively too.

## Contribution standard

Read CONTRIBUTING.md before changing this repository. Match the review engine:
commit and PR titles use `type(scope): short imperative description`, at most
72 characters, without a trailing period. Every change requires a dated entry
under Unreleased in CHANGELOG.md, including documentation and maintenance.
Keep LICENSE in packaged source artifacts. Do not change repository visibility
or publish packages merely because licensing or contribution docs changed.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

Record every code, fix, documentation, configuration, test and maintenance change
under `Unreleased` with its actual date. Use Added/Changed/Fixed/Removed sections
as appropriate. The package's `0.1.0` version is not a claim of a tagged release.

## Unreleased

### 2026-11-04

#### Added

- Initial shared authentication, database and domain library source snapshot with independent setup and automated checks.
- MIT license, contribution and community guidelines, security/support policies,
issue forms, a pull-request checklist and dependency-update configuration.
- Pull-request title validation matching the review engine's commit notation.

#### Changed

- Standardized the initial commit subject and future commit/PR titles as
`type(scope): short imperative description` (maximum 72 characters).
- Included the approved MIT license and contribution documentation in packaged
source artifacts; removed the provisional license marker.
13 changes: 13 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Community expectations

Be respectful, constructive and welcoming. Critique ideas and code rather than
people. Help newcomers and assume good intent when asking for clarification.

Harassment, discrimination, threats, doxxing, sexualized content, and deliberate
sharing of private information or credentials are not acceptable. These rules
apply to this project's issues, pull requests and other project-managed spaces.

Report concerns privately to privacy@inkspect.si, with links and enough context
for maintainers to investigate. Do not disclose another person's private details
in an issue. Maintainers may remove content, close discussions or restrict access
when needed, and will consider context and repeated behavior.
98 changes: 98 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Contributing to inkspect-core

Bug reports, documentation improvements, tests and focused changes are welcome.
For a large change, open an issue first to discuss scope. This repository owns the
shared authentication, database and domain library; submit changes to the repository that owns the source.
Read [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) before participating.

## Set up and verify

Requires Node >=22.13. Follow the README, then run:

```sh
npm ci
npm run audit
npm test
npm run build
```

The source audit checks package boundaries; it is not an npm vulnerability audit.
Database/process integration tests are opt-in: use the documented test scripts
with disposable PostgreSQL data. They must not run against production. Distinguish
skipped checks from passes. UI changes should include relevant automated checks;
attach screenshots when available and describe any manual verification separately.

## Make a change

1. Fork this repository if you do not have write access, then clone your fork.
2. Create a descriptive branch from current `main` for one focused change.
3. Follow the existing style and add regression tests for behavior changes,
including failure cases. Keep shared contracts generic.
4. Update relevant docs and add an entry to `CHANGELOG.md` under `Unreleased`
using the actual date. Code, fixes, docs, configuration, tests and maintenance
all require an entry; use Added/Changed/Fixed/Removed as appropriate.
5. Run the relevant checks, inspect your diff and commit only intended files.
6. Push your branch and open a pull request targeting this repository's `main`.
Use the PR template, explain the problem and resulting behavior, link an issue
when relevant, and list checks actually run plus their results/limitations.

Never commit .env files, provider keys, private source, internal operational docs,
customer data, logs, installed dependencies or build output. Use synthetic test
fixtures. Inspect generated dependency/release archives recursively as well.
Do not make external paid requests or GitHub writes part of ordinary tests.

## Commit and pull-request titles

Use `type(scope): short imperative description`, without a trailing period.
Keep the subject at most 72 characters and begin the description with a lowercase
verb. Types: `feat`, `fix`, `docs`, `test`, `refactor`, `perf`, `build`, `ci`,
`chore`, and `revert`. Choose a specific lowercase scope such as `api`, `ui`,
`auth`, `index`, `install`, `docs`, `ci`, or `security`.

Examples:

- `feat(install): add self-hosted setup checks`
- `fix(index): handle repositories without commits`
- `docs(setup): explain instance configuration`

Use the same format for PR titles; the title becomes the squash commit subject.
Describe the final change, not the conversation that produced it. Preserve other
contributors' authorship. Do not rewrite a shared branch's history as a routine
contribution step.

For a personal contribution, use your own verified GitHub noreply address from
[GitHub email settings](https://github.com/settings/emails). Set it locally for
this checkout and inspect the effective author AND committer before committing:

```sh
git config --local user.email "YOUR_GITHUB_NOREPLY_EMAIL"
git var GIT_AUTHOR_IDENT
git var GIT_COMMITTER_IDENT
git diff --check
git add path/to/intended-file
git diff --cached
git commit -m "fix(index): handle repositories without commits"
git push -u origin YOUR_BRANCH
```

Replace the placeholders. Environment variables such as `GIT_AUTHOR_EMAIL` and
`GIT_COMMITTER_EMAIL` override configuration: remove unintended overrides or set
them to your own verified address. Never copy another contributor's identity.

## Source packages and release archives

Edit the owning source checkout, not `node_modules`, `vendor` archives or compiled
output. Internal packages are currently versioned local tarballs with integrity
in package lockfiles. The main `inkspect` repository documents how to regenerate
compatible self-hosted dependencies and releases. Include updated artifacts and
lockfiles when changing a consumed package; verify both source and archives.
No private hosted-service implementation belongs in these self-hosted packages.

## Review and licensing

Maintainers may request a smaller change, a regression test or clarification
before merging. Resolve review discussions and rerun checks after changes.
Contributions are under this repository's [MIT license](LICENSE). By submitting,
you confirm you have the right to contribute the material under that license.
Third-party dependencies retain their own licenses; do not remove their notices.
For vulnerabilities, follow [SECURITY.md](SECURITY.md) instead of a public issue.
File renamed without changes.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ Internal dependencies: none.

Use the main `inkspect` repository to assemble compatible self-hosted releases. Repository privacy and package publication are controlled separately; all new repositories currently remain private. No production deployment is performed by local build/test commands.

Licensing is pending owner approval. `LICENSE.proposed` is a draft; this snapshot is not yet a public open-source release.
Source code is licensed under [MIT](LICENSE). Third-party dependencies retain their own licenses.

## Contributing and community

Read [CONTRIBUTING.md](CONTRIBUTING.md) for setup, checks, commit notation and
opening a pull request. All changes need an entry in [CHANGELOG.md](CHANGELOG.md).
Follow our [Code of Conduct](CODE_OF_CONDUCT.md), use [SUPPORT.md](SUPPORT.md)
for help, and report vulnerabilities privately using [SECURITY.md](SECURITY.md).
27 changes: 27 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Security policy

## Report a vulnerability privately

Do not put exploit details, credentials, private source or customer data in public
issues. Contact **privacy@inkspect.si** with the subject “inkspect-core security report”.
Include the affected version/commit, a minimal reproduction using synthetic data,
expected impact and a way to contact you. Do not send live API keys. If a key was
exposed, revoke it through its provider.

Maintainers investigate and coordinate disclosure. There is no guaranteed response
time or bug bounty. Fixes target current main/the latest release; older versions
have no guaranteed backport support. The package version does not imply that a
corresponding tagged release exists.

## Security boundaries

This repository owns the shared authentication, database and domain library. Authentication,
workspace isolation, repository permissions and secret handling are security
boundaries. UI visibility is not authorization; enforce access on the server.
Treat repository contents, webhook bodies and model output as untrusted input.

Self-hosting does not make external model inference local. Configure your own
provider accounts and scoped GitHub credentials. Keep instance secrets and source
captures out of Git, logs and public issue attachments. Use disposable data for
tests; never make live provider calls or publish GitHub changes as a test default.
Dependency and release archives need the same review as ordinary source files.
11 changes: 11 additions & 0 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Getting help

Start with [README.md](README.md) for setup and supported commands. Open a bug
report for a reproducible problem or a feature request to discuss a proposed
change. Use the issue forms and identify the component, commit/version, OS and
redacted error output. Include a minimal synthetic reproduction where possible.

Do not attach credentials, real .env files, private repositories, database dumps
or full prompt captures. Use [SECURITY.md](SECURITY.md) for vulnerabilities and
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for conduct concerns. Issue tracking is
community support, with no guaranteed response time.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,14 @@
"tsx": "^4.20.0",
"typescript": "~5.9.3",
"esbuild": "^0.28.2"
}
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/inkspect-code-review/inkspect-core.git"
},
"bugs": {
"url": "https://github.com/inkspect-code-review/inkspect-core/issues"
},
"homepage": "https://github.com/inkspect-code-review/inkspect-core#readme"
}
2 changes: 1 addition & 1 deletion scripts/pack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ try {
for(const name of Object.keys(pkg.dependencies))if(name.startsWith('@inkspect/'))pkg.dependencies[name]='0.1.0';
pkg.scripts={}; delete pkg.devDependencies;
await writeFile(stage+'/package.json',JSON.stringify(pkg,null,2));
for(const name of ['src','migrations','README.md','LICENSE.proposed'])await cp(root+'/'+name,stage+'/'+name,{recursive:true}).catch(e=>{if(e.code!=='ENOENT')throw e;});
for(const name of ['src','migrations','README.md','LICENSE','CHANGELOG.md','CONTRIBUTING.md','CODE_OF_CONDUCT.md','SECURITY.md','SUPPORT.md'])await cp(root+'/'+name,stage+'/'+name,{recursive:true}).catch(e=>{if(e.code!=='ENOENT'||name==='LICENSE')throw e;});
await mkdir(root+'/.artifacts',{recursive:true});
execFileSync('npm',['pack','--ignore-scripts','--pack-destination',root+'/.artifacts'],{cwd:stage,stdio:'inherit'});
}finally{await rm(stage,{recursive:true,force:true});}
Loading
0