Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit e7584f7

Browse files
Initial Spike (#1)
1 parent eafb12f commit e7584f7

26 files changed

+2672
-0
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CODEOWNERS info: https://help.github.com/en/articles/about-code-owners
2+
# Owners are automatically requested for review for PRs that changes code
3+
# that they own.
4+
* @hypermodeAI/runtime

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/src"
5+
schedule:
6+
interval: "weekly"
7+
day: "wednesday"
8+
time: "16:00"
9+
groups:
10+
minor-and-patch:
11+
applies-to: version-updates
12+
update-types:
13+
- "minor"
14+
- "patch"
15+
16+
- package-ecosystem: "github-actions"
17+
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
18+
directory: "/"
19+
schedule:
20+
interval: "weekly"
21+
day: "wednesday"
22+
time: "16:00"

.github/workflows/ci-as-lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ci-as-lint
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- ready_for_review
9+
jobs:
10+
as-lint:
11+
if: github.event_name == 'pull_request'
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: 'src/'
17+
steps:
18+
- name: Checkout Source
19+
uses: actions/checkout@v4
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ">=20"
24+
- name: Install dependencies
25+
run: npm install
26+
- name: Validate code is formatted
27+
run: npm run pretty:check
28+
- name: Valid code is linted
29+
run: npm run lint

.github/workflows/ci-as-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ci-as-tests
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- ready_for_review
9+
jobs:
10+
as-tests:
11+
if: github.event_name == 'pull_request'
12+
name: Unit Tests
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: "src"
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ">=20"
23+
- name: Install dependencies
24+
run: npm install
25+
- name: Run Unit Tests
26+
run: npm run test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
build/
3+
4+
.DS_Store

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"streetsidesoftware.code-spell-checker"
6+
]
7+
}

.vscode/settings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"files.insertFinalNewline": true,
4+
"files.trimFinalNewlines": true,
5+
"files.associations": {
6+
"hypermode.json": "jsonc"
7+
},
8+
"[typescript]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"[jsonc]": {
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
19+
}
20+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## UNRELEASED
4+
5+
- Initial Release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Hypermode, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- This readme will display with the repository on GitHub. -->
2+
3+
![NPM Version](https://img.shields.io/npm/v/%40hypermode%2Fmodels-as)
4+
![NPM Downloads](https://img.shields.io/npm/dw/%40hypermode%2Fmodels-as)
5+
6+
# Hypermode Model Interface Library for AssemblyScript
7+
8+
This repository contains model class definitions for use with [Hypermode](https://hypermode.com)
9+
Functions written in [AssemblyScript](https://www.assemblyscript.org/).
10+
11+
## Documentation
12+
13+
Please visit [docs.hypermode.com](https://docs.hypermode.com/) for detailed docs
14+
covering the Hypermode platform, including this library.

0 commit comments

Comments
 (0)