Skip to content

Commit

Permalink
prepare for monorepo (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverted-capital authored Dec 19, 2024
2 parents 0b4f647 + eefad39 commit fee9e1f
Show file tree
Hide file tree
Showing 262 changed files with 29,778 additions and 5,111 deletions.
2 changes: 2 additions & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.old.*
_*/**
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ hamr:
info:
- changed-files:
- any-glob-to-any-file: info/**
test-file-runner:
evals:
- changed-files:
- any-glob-to-any-file: test-file-runner/**
- any-glob-to-any-file: evals/**
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,35 @@ jobs:
run: deno task test

- name: Generate lcov
if: matrix.os == 'ubuntu-latest'
run: deno task cov:gen

- name: Upload coverage
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: ${{ matrix.os }}

- name: Run benchmark
if: matrix.os == 'ubuntu-latest'
run: deno task bench | tee output.txt

- name: Store benchmark result
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
uses: benchmark-action/github-action-benchmark@v1
with:
name: Artifact Benchmarks
tool: 'benchmarkjs'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true

lint:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Lint PR title"
name: 'Lint PR title'

on:
pull_request_target:
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
fixture(/unstable)?
hamr(/unstable)?
info(/unstable)?
test-file-runner(/unstable)?
evals(/unstable)?
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ http/testdata/file#2.txt
http/testdata/test file.txt
coverage/
docs/
.env
.env
concat.txt
43 changes: 43 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Circular",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "~/.deno/bin/deno",
"runtimeArgs": ["task", "lint:circular"],

"attachSimplePort": 9229,
"internalConsoleOptions": "neverOpen",
"console": "integratedTerminal"
},
{
"request": "launch",
"name": "Run Current",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "~/.deno/bin/deno",
"runtimeArgs": ["test", "--inspect-wait", "--watch", "-A", "${file}"],

"attachSimplePort": 9229,
"internalConsoleOptions": "neverOpen",
"console": "integratedTerminal"
},
{
"request": "launch",
"name": "Execute Current File",
"type": "node",
"cwd": "${fileDirname}",
"runtimeExecutable": "~/.deno/bin/deno",
"runtimeArgs": ["run", "-A", "--inspect-wait", "--watch", "${file}"],
"attachSimplePort": 9229,
"internalConsoleOptions": "neverOpen",
"console": "integratedTerminal"
}
]
}
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"deno.enable": true,
"deno.unstable": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
"editor.defaultFormatter": "denoland.vscode-deno",
"[markdown]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ for Artifact, the infrastructure of the
The following list contains links to the Artifact Standard Library's packages
and documentation:

| Package | Latest version |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [files](https://jsr.io/@artifact/files) | [![JSR](https://jsr.io/badges/@artifact/files)](https://jsr.io/@artifact/files) |
| [openai](https://jsr.io/@artifact/openai) | [![JSR](https://jsr.io/badges/@artifact/openai)](https://jsr.io/@artifact/openai) |
| [dumb-bot](https://jsr.io/@artifact/dumb-bot) | [![JSR](https://jsr.io/badges/@artifact/dumb-bot)](https://jsr.io/@artifact/dumb-bot) |
| [reasoner](https://jsr.io/@artifact/reasoner) | [![JSR](https://jsr.io/badges/@artifact/reasoner)](https://jsr.io/@artifact/reasoner) |
| [fixture](https://jsr.io/@artifact/fixture) | [![JSR](https://jsr.io/badges/@artifact/fixture)](https://jsr.io/@artifact/fixture) |
| [hamr](https://jsr.io/@artifact/hamr) | [![JSR](https://jsr.io/badges/@artifact/hamr)](https://jsr.io/@artifact/hamr) |
| [info](https://jsr.io/@artifact/info) | [![JSR](https://jsr.io/badges/@artifact/info)](https://jsr.io/@artifact/info) |
| [test-file-runner](https://jsr.io/@artifact/test-file-runner) | [![JSR](https://jsr.io/badges/@artifact/test-file-runner)](https://jsr.io/@artifact/test-file-runner) |
| Package | Latest version |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [files](https://jsr.io/@artifact/files) | [![JSR](https://jsr.io/badges/@artifact/files)](https://jsr.io/@artifact/files) |
| [openai](https://jsr.io/@artifact/openai) | [![JSR](https://jsr.io/badges/@artifact/openai)](https://jsr.io/@artifact/openai) |
| [dumb-bot](https://jsr.io/@artifact/dumb-bot) | [![JSR](https://jsr.io/badges/@artifact/dumb-bot)](https://jsr.io/@artifact/dumb-bot) |
| [reasoner](https://jsr.io/@artifact/reasoner) | [![JSR](https://jsr.io/badges/@artifact/reasoner)](https://jsr.io/@artifact/reasoner) |
| [fixture](https://jsr.io/@artifact/fixture) | [![JSR](https://jsr.io/badges/@artifact/fixture)](https://jsr.io/@artifact/fixture) |
| [hamr](https://jsr.io/@artifact/hamr) | [![JSR](https://jsr.io/badges/@artifact/hamr)](https://jsr.io/@artifact/hamr) |
| [info](https://jsr.io/@artifact/info) | [![JSR](https://jsr.io/badges/@artifact/info)](https://jsr.io/@artifact/info) |
| [evals](https://jsr.io/@artifact/evals) | [![JSR](https://jsr.io/badges/@artifact/evals)](https://jsr.io/@artifact/evals) |
| [napp-tools](https://jsr.io/@artifact/napp-tools) | [![JSR](https://jsr.io/badges/@artifact/napp-tools)](https://jsr.io/@artifact/napp-tools) |

## Architecture

Expand Down
2 changes: 0 additions & 2 deletions _import-artifact/.gitattributes

This file was deleted.

11 changes: 0 additions & 11 deletions _import-artifact/.github/codecov.yml

This file was deleted.

7 changes: 0 additions & 7 deletions _import-artifact/.github/dependabot.yml

This file was deleted.

2 changes: 0 additions & 2 deletions _import-artifact/.github/typos.toml

This file was deleted.

94 changes: 0 additions & 94 deletions _import-artifact/.github/workflows/ci.yml

This file was deleted.

11 changes: 0 additions & 11 deletions _import-artifact/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions _import-artifact/.vscode/extensions.json

This file was deleted.

90 changes: 0 additions & 90 deletions _import-artifact/.vscode/launch.json

This file was deleted.

Loading

0 comments on commit fee9e1f

Please sign in to comment.