mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
The README now lists the tuned site shortcuts (Hacker News, Reddit, DuckDuckGo, Bing) next to the generic engine, and cites the live benchmark numbers from only-cli/benchmarks. llms.txt gives AI assistants a one-page summary to index. npm keywords added for search. The internal build spec moves out of the published repo.
45 lines
1016 B
JavaScript
45 lines
1016 B
JavaScript
/**
|
|
* Actions against a live session: do, fill, submit, read, find, back, next.
|
|
* All of this ships in v0.2 together with session state. The signatures
|
|
* exist now so cli.js wires up once and the command surface stays stable.
|
|
*/
|
|
|
|
export class NotImplemented extends Error {
|
|
constructor(command) {
|
|
super(`'oc ${command}' lands in v0.2. Until then use 'oc open' and 'oc raw'.`);
|
|
}
|
|
}
|
|
|
|
/** @param {number} n */
|
|
export function activate(n) {
|
|
throw new NotImplemented('do');
|
|
}
|
|
|
|
/** @param {number} n @param {string} text */
|
|
export function fill(n, text) {
|
|
throw new NotImplemented('fill');
|
|
}
|
|
|
|
/** @param {number} [n] */
|
|
export function submit(n) {
|
|
throw new NotImplemented('submit');
|
|
}
|
|
|
|
/** @param {number} [n] */
|
|
export function read(n) {
|
|
throw new NotImplemented('read');
|
|
}
|
|
|
|
/** @param {string} query */
|
|
export function find(query) {
|
|
throw new NotImplemented('find');
|
|
}
|
|
|
|
export function back() {
|
|
throw new NotImplemented('back');
|
|
}
|
|
|
|
export function next() {
|
|
throw new NotImplemented('next');
|
|
}
|