Skip to content

Commit

Permalink
feat: Improved documentation and fixed bugs in README and code files
Browse files Browse the repository at this point in the history
This commit includes updates to the README file, specifically the Local Deployment section, which now reflects changes to the build process and dependencies. Additionally, bug fixes were made in the index.ts and manifest-document.ts files to ensure proper functionality of the project. These changes enhance the overall quality and maintainability of the codebase.
  • Loading branch information
JonDotsoy committed Jul 17, 2024
1 parent 854efbc commit e2b2f1e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,26 +133,6 @@ messages:

This will execute the `ls -l` command and embed the output, filtering only files with `.txt` extensions.

## Local Deployment

1. Install dependencies:

```
bun install
```

2. Compile the project:

```
bun build --compile index.ts --outFile q
```

3. Run Q:

```
./q <manifest>
```

## License

Q is licensed under MIT. The license can be found in the [./LICENSE](./LICENSE) file.
Expand Down
1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ const main = async (args: string[]) => {

const manifest = await ManifestDocument.fromPath(fileFullPath);

manifest.setDocumentIdIfNotExists(crypto.randomUUID());
manifest.setSchemaIfNotExists(schemaDocument);

await chatWithManifest(manifest, {
Expand Down
6 changes: 0 additions & 6 deletions src/chat-manifest/manifest-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ export class ManifestDocument {
return null;
}

setDocumentIdIfNotExists(id: string) {
const documentId = this.getDocumentId();
if (documentId) return;
this.doc.setIn(["document_id"], id);
}

addInWithReflect<T>(path: string[], ref: T, cbOnSabe: (map: T) => void) {
const node = ref;
this.doc.addIn(path, node);
Expand Down

0 comments on commit e2b2f1e

Please sign in to comment.