diff --git a/packages/cli/.eslintignore b/packages/cli/.eslintignore deleted file mode 100644 index 414206a..0000000 --- a/packages/cli/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -/dist -/tmp diff --git a/packages/cli/README.md b/packages/cli/README.md new file mode 100644 index 0000000..0dde97d --- /dev/null +++ b/packages/cli/README.md @@ -0,0 +1,4 @@ +# Codex CLI +This package is a stub for a codex CLI, demonstrating that interaction with +the protocol is possible without relying on any particular gateway. The only +thing necessary is contact with a ceramic node. diff --git a/packages/cli/test/commands/create.test.ts b/packages/cli/test/commands/create.test.ts deleted file mode 100644 index a80a416..0000000 --- a/packages/cli/test/commands/create.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {expect, test} from '@oclif/test' - -describe('create', () => { - test - .stdout() - .command(['create']) - .it('runs hello', (ctx) => { - expect(ctx.stdout).to.contain('hello world') - }) - - test - .stdout() - .command(['create', '--name', 'jeff']) - .it('runs hello --name jeff', (ctx) => { - expect(ctx.stdout).to.contain('hello jeff') - }) -}) diff --git a/packages/cli/test/commands/hello/index.test.ts b/packages/cli/test/commands/hello/index.test.ts deleted file mode 100644 index ee55d1b..0000000 --- a/packages/cli/test/commands/hello/index.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {expect, test} from '@oclif/test' - -describe('hello', () => { - test - .stdout() - .command(['hello', 'friend', '--from=oclif']) - .it('runs hello cmd', (ctx) => { - expect(ctx.stdout).to.contain('hello friend from oclif!') - }) -}) diff --git a/packages/cli/test/commands/hello/world.test.ts b/packages/cli/test/commands/hello/world.test.ts deleted file mode 100644 index 6d7a7be..0000000 --- a/packages/cli/test/commands/hello/world.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {expect, test} from '@oclif/test' - -describe('hello world', () => { - test - .stdout() - .command(['hello:world']) - .it('runs hello world cmd', (ctx) => { - expect(ctx.stdout).to.contain('hello world!') - }) -}) diff --git a/packages/cli/test/commands/update.test.ts b/packages/cli/test/commands/update.test.ts deleted file mode 100644 index f2a7bc6..0000000 --- a/packages/cli/test/commands/update.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {expect, test} from '@oclif/test' - -describe('update', () => { - test - .stdout() - .command(['update']) - .it('runs hello', (ctx) => { - expect(ctx.stdout).to.contain('hello world') - }) - - test - .stdout() - .command(['update', '--name', 'jeff']) - .it('runs hello --name jeff', (ctx) => { - expect(ctx.stdout).to.contain('hello jeff') - }) -}) diff --git a/packages/cli/test/tsconfig.json b/packages/cli/test/tsconfig.json deleted file mode 100644 index 95898fc..0000000 --- a/packages/cli/test/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../tsconfig", - "compilerOptions": { - "noEmit": true - }, - "references": [ - {"path": ".."} - ] -} diff --git a/packages/cli/tsconfig.build.json b/packages/cli/tsconfig.build.json new file mode 100644 index 0000000..bb48327 --- /dev/null +++ b/packages/cli/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "dist", + "test/**/*" + ] +} diff --git a/packages/lib/src/queries.ts b/packages/lib/src/queries.ts index ca43400..1a8b20b 100644 --- a/packages/lib/src/queries.ts +++ b/packages/lib/src/queries.ts @@ -29,6 +29,11 @@ import type { import type { ExecutionResult } from "graphql"; import * as gql from "gql-query-builder"; +export type PageInfo = { + endCursor: string; + hasNextPage: boolean; +}; + export const queryResearchObjects = async ( composeClient: ComposeClient, ): Promise => {