commit - 87ea717c5557137118ca21936f51ba2a4335d9ce
commit + b518bb79cd7ac86b3bb2d85c246dc7285782c8db
blob - 31000a2744c827501c1e2e45879484eaca2cad17 (mode 644)
blob + /dev/null
--- .github/workflows/rust.yml
+++ /dev/null
-name: Rust
-
-on:
- push:
- branches: [ "main" ]
- pull_request:
- branches: [ "main" ]
-
-env:
- CARGO_TERM_COLOR: always
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- - name: Build
- run: cargo build --verbose
- - name: Run tests
- run: cargo test --verbose
blob - 49047ee3e7411913dd12cb077150b068a110877d
blob + 9ec5a861c19885a1035dd977fb4068e1c54fe37b
--- Cargo.toml
+++ Cargo.toml
[package]
name = "alpaca"
-authors = ["leoshimo"]
-version = "0.2.1"
+authors = ["leoshimo", "mtmn"]
+version = "0.3.0"
edition = "2024"
description = "Unix native interface for LLMs"
repository = "https://github.com/leoshimo/cogni"
license = "MIT OR Apache-2.0"
keywords = ["unix", "cli", "command-line", "ai", "llm"]
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
[dependencies]
anyhow = "1.0.100"
chrono = { version = "0.4.42", features = ["serde"] }
blob - 8693f97147b6c5b7ad4787f71bd11f3d90cd9471
blob + 9a3ef85f3f1730ce9865b96f95f73cdc6ffe01eb
--- LICENSE-MIT
+++ LICENSE-MIT
MIT License
Copyright (c) 2023 Leo Shimonaka
+Copyright (c) 2026 mtmn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
blob - c0959e18ee10a3297a3bbfba87961ff6ad3f7a7b
blob + da222aa40e7c1ebdaa6408273bbfe31622545cc4
--- README.md
+++ README.md
# alpaca
-[](https://github.com/leoshimo/cogni/actions/workflows/rust.yml)
-
Unix native interface for interacting with LLMs.
+`alpaca` is a fork of [`cogni`](https://github.com/leoshimo/cogni) by
+[leoshimo](https://github.com/leoshimo) that utilizes
+[Ollama Cloud](https://docs.ollama.com/cloud) rather than OpenAI.
+
## Focus
`alpaca` brings language model scripting (prompting) into familiar Unix
An gallery of examples to get the inspiration flowing
-> :warning: `alpaca` uses the [Ollama Cloud API](https://docs.ollama.com/cloud), thus *any data fed into program will be sent to Ollama* (unless you point `OLLAMA_API_ENDPOINT` at a local server).
+> :warning: `alpaca` uses the [Ollama Cloud API](https://docs.ollama.com/cloud), thus *any data fed into program will be sent to their servers* (unless you point `OLLAMA_API_ENDPOINT` at a local server).
### In the Shell
blob - 4b335579d5dc99821cf86a5083e5c54530f1dbbc
blob + 59e0a7d39bdce3d2be395b411d5bfd78e79b1368
--- src/main.rs
+++ src/main.rs
-use anyhow::Result;
use alpaca::cli;
+use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {