@ci-kit/roundtable 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.d.mts ADDED
@@ -0,0 +1 @@
1
+
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+
package/dist/cli.mjs ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ import process from 'node:process';
3
+ import { cac } from 'cac';
4
+
5
+ const version = "0.0.1";
6
+ const pkg = {
7
+ version: version};
8
+
9
+ const cli = cac("ci-kit-roundtable");
10
+ cli.command("check", "Validate table.md and seats without calling a model").option("--config <dir>", "Roundtable directory", { default: ".ci-kit/roundtable" }).action(async (options) => {
11
+ const { checkRoundtable } = await import('./index.mjs');
12
+ await checkRoundtable({ configDir: options.config ?? ".ci-kit/roundtable" });
13
+ });
14
+ cli.command("run", "Run one meeting").option("--config <dir>", "Roundtable directory", { default: ".ci-kit/roundtable" }).option("--out <dir>", "Directory for run folders", { default: "roundtable-out" }).option("--topic <text>", "Optional topic override; seats propose their own by default").action(async (options) => {
15
+ const { runRoundtable } = await import('./index.mjs');
16
+ const result = await runRoundtable({
17
+ configDir: options.config ?? ".ci-kit/roundtable",
18
+ outDir: options.out,
19
+ topic: options.topic
20
+ });
21
+ process.stdout.write(`roundtable: ${result.status} \xB7 ${result.recordPath}
22
+ `);
23
+ process.exitCode = result.status === "passed" ? 0 : 1;
24
+ });
25
+ cli.help();
26
+ cli.version(pkg.version);
27
+ cli.parse();
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @ci-kit/roundtable
3
+ *
4
+ * Placeholder package. The design is settled in `ai-docs/design-docs/roundtable/`;
5
+ * the implementation has not started yet, so this module exports only the
6
+ * names and types that downstream code may already reference.
7
+ *
8
+ * Do not add behaviour here before the design document is followed end to end:
9
+ * seat parsing, phase scheduling, programmatic adjudication and resumable runs
10
+ * are one unit, and half of them is worse than none.
11
+ */
12
+ declare const ROUNDTABLE_SCHEMA: 1;
13
+ type RoundtableStatus = 'passed' | 'rejected' | 'aborted' | 'failed';
14
+ interface RoundtableOptions {
15
+ /** Directory holding `table.md` and `seats/` */
16
+ configDir: string;
17
+ /** Material handed to the seats; the table never collects anything itself */
18
+ context?: string | string[];
19
+ /** Optional human override; seats normally propose their own agenda */
20
+ topic?: string;
21
+ /** Where run directories are written */
22
+ outDir?: string;
23
+ env?: NodeJS.ProcessEnv;
24
+ }
25
+ interface RoundtableResult {
26
+ status: RoundtableStatus;
27
+ recordPath: string;
28
+ }
29
+ /** Validate `table.md` and `seats/*.md` without calling a model. */
30
+ declare function loadRoundtable(_options: RoundtableOptions): Promise<never>;
31
+ /** Alias kept for the CLI `check` command: no paid calls, config errors only. */
32
+ declare function checkRoundtable(_options: RoundtableOptions): Promise<never>;
33
+ /** Run one meeting and return its verdict. Business failure is reported via `status`. */
34
+ declare function runRoundtable(_options: RoundtableOptions): Promise<RoundtableResult>;
35
+
36
+ export { ROUNDTABLE_SCHEMA, checkRoundtable, loadRoundtable, runRoundtable };
37
+ export type { RoundtableOptions, RoundtableResult, RoundtableStatus };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @ci-kit/roundtable
3
+ *
4
+ * Placeholder package. The design is settled in `ai-docs/design-docs/roundtable/`;
5
+ * the implementation has not started yet, so this module exports only the
6
+ * names and types that downstream code may already reference.
7
+ *
8
+ * Do not add behaviour here before the design document is followed end to end:
9
+ * seat parsing, phase scheduling, programmatic adjudication and resumable runs
10
+ * are one unit, and half of them is worse than none.
11
+ */
12
+ declare const ROUNDTABLE_SCHEMA: 1;
13
+ type RoundtableStatus = 'passed' | 'rejected' | 'aborted' | 'failed';
14
+ interface RoundtableOptions {
15
+ /** Directory holding `table.md` and `seats/` */
16
+ configDir: string;
17
+ /** Material handed to the seats; the table never collects anything itself */
18
+ context?: string | string[];
19
+ /** Optional human override; seats normally propose their own agenda */
20
+ topic?: string;
21
+ /** Where run directories are written */
22
+ outDir?: string;
23
+ env?: NodeJS.ProcessEnv;
24
+ }
25
+ interface RoundtableResult {
26
+ status: RoundtableStatus;
27
+ recordPath: string;
28
+ }
29
+ /** Validate `table.md` and `seats/*.md` without calling a model. */
30
+ declare function loadRoundtable(_options: RoundtableOptions): Promise<never>;
31
+ /** Alias kept for the CLI `check` command: no paid calls, config errors only. */
32
+ declare function checkRoundtable(_options: RoundtableOptions): Promise<never>;
33
+ /** Run one meeting and return its verdict. Business failure is reported via `status`. */
34
+ declare function runRoundtable(_options: RoundtableOptions): Promise<RoundtableResult>;
35
+
36
+ export { ROUNDTABLE_SCHEMA, checkRoundtable, loadRoundtable, runRoundtable };
37
+ export type { RoundtableOptions, RoundtableResult, RoundtableStatus };
package/dist/index.mjs ADDED
@@ -0,0 +1,15 @@
1
+ const ROUNDTABLE_SCHEMA = 1;
2
+ function notImplemented() {
3
+ throw new Error("@ci-kit/roundtable is not implemented yet; see ai-docs/design-docs/roundtable/");
4
+ }
5
+ async function loadRoundtable(_options) {
6
+ return notImplemented();
7
+ }
8
+ async function checkRoundtable(_options) {
9
+ return notImplemented();
10
+ }
11
+ async function runRoundtable(_options) {
12
+ return notImplemented();
13
+ }
14
+
15
+ export { ROUNDTABLE_SCHEMA, checkRoundtable, loadRoundtable, runRoundtable };
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "@ci-kit/roundtable",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "description": "Seat-based orchestration that lets multiple AI roles discuss, produce and converge without a human-supplied agenda",
6
+ "author": "imba97",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/cikit-js/ci-kit#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/cikit-js/ci-kit.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/cikit-js/ci-kit/issues"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.mts",
19
+ "import": "./dist/index.mjs"
20
+ }
21
+ },
22
+ "main": "./dist/index.mjs",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.mts",
25
+ "bin": {
26
+ "ci-kit-roundtable": "dist/cli.mjs"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "dependencies": {
32
+ "@ci-kit/ai": "0.0.1",
33
+ "@ci-kit/http": "0.0.1",
34
+ "cac": "^7.1.0"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "unbuild",
41
+ "typecheck": "tsc --noEmit",
42
+ "stub": "unbuild --stub"
43
+ }
6
44
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.