Skip to content

Commit

Permalink
add dumb-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
inverted-capital committed Oct 24, 2024
1 parent f56ea86 commit 23a82b4
Show file tree
Hide file tree
Showing 16 changed files with 76 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ files:
openai:
- changed-files:
- any-glob-to-any-file: openai/**
dumb-bot:
- changed-files:
- any-glob-to-any-file: dumb-bot/**
reasoner:
- changed-files:
- any-glob-to-any-file: reasoner/**
4 changes: 3 additions & 1 deletion .github/workflows/title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ jobs:
revert
# This should be kept up-to-date with the current packages list
scopes: |
openai(/unstable)?
files(/unstable)?
openai(/unstable)?
dumb-bot(/unstable)?
reasoner(/unstable)?
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ 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) |
| 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) |

## Architecture

Expand Down
8 changes: 0 additions & 8 deletions _import-HAL/agents/dumb-bot.md

This file was deleted.

6 changes: 5 additions & 1 deletion _tools/check_circular_package_dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ type Dep = {
};
type Mod =
| "files"
| "openai";
| "openai"
| "dumb-bot"
| "reasoner";

const ENTRYPOINTS: Record<Mod, string[]> = {
files: ["mod.ts"],
openai: ["mod.ts"],
"dumb-bot": ["mod.ts"],
reasoner: ["mod.ts"],
};

const root = new URL("../", import.meta.url).href;
Expand Down
6 changes: 4 additions & 2 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ type DocNodeWithJsDoc<T = DocNodeBase> = T & {
};

const ENTRY_POINTS = [
"../files/files.ts",
"../openai/completions.ts",
"../files/mod.ts",
"../openai/mod.ts",
"../dumb-bot/mod.ts",
"../reasoner/mod.ts",
] as const;

const TS_SNIPPET = /```ts[\s\S]*?```/g;
Expand Down
4 changes: 3 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
}
},
"workspace": [
"./files",
"./openai",
"./files"
"./dumb-bot",
"./reasoner"
]
}
1 change: 1 addition & 0 deletions dumb-bot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is the readme for dumb bot.
5 changes: 5 additions & 0 deletions dumb-bot/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@artifact/dumb-bot",
"version": "0.0.1",
"exports": {}
}
1 change: 1 addition & 0 deletions dumb-bot/instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You are a helpful assistant.
5 changes: 5 additions & 0 deletions dumb-bot/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* @module
*
* This is module docs
*/
21 changes: 21 additions & 0 deletions dumb-bot/napp.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@artifact/dumb-bot",
"version": "0.0.1",
"napp-format": "v1",
"description": "The bot that will one day eat all the other bots",
"runtime": "deno",
"branding": "./avatar.jpg",
"agent": {
"napp": "@artifact/openai"
},
"tools": {
"read": {
"napp": "@artifact/files",
"tool": "read"
},
"write": {
"napp": "@artifact/files",
"tool": "write"
}
}
}
7 changes: 1 addition & 6 deletions import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
"@std/ulid": "jsr:@std/ulid@^1.0.0",
"@std/uuid": "jsr:@std/uuid@^1.0.4",
"@std/webgpu": "jsr:@std/webgpu@^0.224.7",
"@std/yaml": "jsr:@std/yaml@^1.0.5",

"@artifact/files": "jsr:@artifact/files@^0.0.1",
"@artifact/openai": "jsr:@artifact/openai@^0.0.1",

"zod": "npm:zod"
"@std/yaml": "jsr:@std/yaml@^1.0.5"
}
}
10 changes: 10 additions & 0 deletions napp-check.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Things to check before publishing:
* - name and version match (must be able to pull this over from the deno.json)
* - napp format must pass, and the schema must pass using zod checker
* - branding files must be present and resolvable to a hash
* - tools must all resolve
* - parameters of tools must minimally match the resolution
* - referenced napps must be resolved
* - referenced napps must be in the deno imports field
*/
5 changes: 5 additions & 0 deletions reasoner/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@artifact/reasoner",
"version": "0.0.1",
"exports": {}
}
File renamed without changes.

0 comments on commit 23a82b4

Please sign in to comment.