@bastani/atomic 0.6.4-0 → 0.6.5-0
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/.agents/skills/create-spec/SKILL.md +6 -3
- package/.agents/skills/tdd/SKILL.md +107 -0
- package/.agents/skills/tdd/deep-modules.md +33 -0
- package/.agents/skills/tdd/interface-design.md +31 -0
- package/.agents/skills/tdd/mocking.md +59 -0
- package/.agents/skills/tdd/refactoring.md +10 -0
- package/.agents/skills/tdd/tests.md +61 -0
- package/.agents/skills/workflow-creator/SKILL.md +550 -0
- package/.agents/skills/workflow-creator/references/agent-sessions.md +891 -0
- package/.agents/skills/workflow-creator/references/agent-setup-recipe.md +266 -0
- package/.agents/skills/workflow-creator/references/computation-and-validation.md +201 -0
- package/.agents/skills/workflow-creator/references/control-flow.md +470 -0
- package/.agents/skills/workflow-creator/references/failure-modes.md +1014 -0
- package/.agents/skills/workflow-creator/references/getting-started.md +392 -0
- package/.agents/skills/workflow-creator/references/registry-and-validation.md +141 -0
- package/.agents/skills/workflow-creator/references/running-workflows.md +418 -0
- package/.agents/skills/workflow-creator/references/session-config.md +384 -0
- package/.agents/skills/workflow-creator/references/state-and-data-flow.md +356 -0
- package/.agents/skills/workflow-creator/references/user-input.md +234 -0
- package/.agents/skills/workflow-creator/references/workflow-inputs.md +392 -0
- package/.claude/agents/debugger.md +2 -2
- package/.claude/agents/reviewer.md +1 -1
- package/.claude/agents/worker.md +2 -2
- package/.github/agents/debugger.md +1 -1
- package/.github/agents/worker.md +1 -1
- package/.mcp.json +5 -1
- package/.opencode/agents/debugger.md +1 -1
- package/.opencode/agents/worker.md +1 -1
- package/README.md +236 -201
- package/dist/sdk/define-workflow.d.ts +11 -6
- package/dist/sdk/define-workflow.d.ts.map +1 -1
- package/dist/sdk/errors.d.ts +10 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +21 -9
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/primitives/inputs.d.ts +36 -0
- package/dist/sdk/primitives/inputs.d.ts.map +1 -0
- package/dist/sdk/primitives/metadata.d.ts +40 -0
- package/dist/sdk/primitives/metadata.d.ts.map +1 -0
- package/dist/sdk/primitives/run.d.ts +57 -0
- package/dist/sdk/primitives/run.d.ts.map +1 -0
- package/dist/sdk/primitives/sessions.d.ts +128 -0
- package/dist/sdk/primitives/sessions.d.ts.map +1 -0
- package/dist/sdk/runtime/executor.d.ts +24 -56
- package/dist/sdk/runtime/executor.d.ts.map +1 -1
- package/dist/sdk/runtime/orchestrator-entry.d.ts +26 -0
- package/dist/sdk/runtime/orchestrator-entry.d.ts.map +1 -0
- package/dist/sdk/runtime/tmux.d.ts +20 -0
- package/dist/sdk/runtime/tmux.d.ts.map +1 -1
- package/dist/sdk/types.d.ts +26 -86
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/claude/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/copilot/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/opencode/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/open-claude-design/claude/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/open-claude-design/copilot/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/open-claude-design/opencode/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/ralph/claude/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/ralph/copilot/index.d.ts.map +1 -1
- package/dist/sdk/workflows/builtin/ralph/opencode/index.d.ts.map +1 -1
- package/dist/sdk/workflows/index.d.ts +20 -12
- package/dist/sdk/workflows/index.d.ts.map +1 -1
- package/dist/services/config/additional-instructions.d.ts +1 -1
- package/dist/services/config/additional-instructions.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/cli.ts +39 -56
- package/src/commands/builtin-registry.ts +37 -0
- package/src/commands/cli/chat/index.ts +1 -3
- package/src/{sdk → commands/cli}/management-commands.ts +15 -55
- package/src/commands/cli/session.ts +1 -1
- package/src/commands/cli/workflow-command.test.ts +250 -16
- package/src/commands/cli/workflow-inputs.test.ts +1 -0
- package/src/commands/cli/workflow-inputs.ts +13 -3
- package/src/commands/cli/workflow-list.test.ts +1 -0
- package/src/commands/cli/workflow-list.ts +0 -0
- package/src/commands/cli/workflow-status.ts +1 -1
- package/src/commands/cli/workflow.ts +191 -11
- package/src/sdk/define-workflow.test.ts +47 -16
- package/src/sdk/define-workflow.ts +24 -6
- package/src/sdk/errors.test.ts +11 -0
- package/src/sdk/errors.ts +13 -0
- package/src/sdk/index.test.ts +92 -0
- package/src/sdk/index.ts +71 -15
- package/src/sdk/primitives/inputs.ts +48 -0
- package/src/sdk/primitives/metadata.ts +63 -0
- package/src/sdk/primitives/run.ts +81 -0
- package/src/sdk/primitives/sessions.test.ts +594 -0
- package/src/sdk/primitives/sessions.ts +328 -0
- package/src/sdk/runtime/executor.ts +36 -115
- package/src/sdk/runtime/orchestrator-entry.ts +110 -0
- package/src/sdk/runtime/tmux.ts +33 -0
- package/src/sdk/types.ts +26 -91
- package/src/sdk/workflows/builtin/deep-research-codebase/claude/index.ts +1 -0
- package/src/sdk/workflows/builtin/deep-research-codebase/copilot/index.ts +1 -0
- package/src/sdk/workflows/builtin/deep-research-codebase/opencode/index.ts +1 -0
- package/src/sdk/workflows/builtin/open-claude-design/claude/index.ts +1 -0
- package/src/sdk/workflows/builtin/open-claude-design/copilot/index.ts +1 -0
- package/src/sdk/workflows/builtin/open-claude-design/opencode/index.ts +1 -0
- package/src/sdk/workflows/builtin/ralph/claude/index.ts +1 -0
- package/src/sdk/workflows/builtin/ralph/copilot/index.ts +1 -0
- package/src/sdk/workflows/builtin/ralph/opencode/index.ts +1 -0
- package/src/sdk/workflows/index.ts +68 -51
- package/src/services/config/additional-instructions.ts +1 -1
- package/.agents/skills/test-driven-development/SKILL.md +0 -371
- package/.agents/skills/test-driven-development/testing-anti-patterns.md +0 -299
- package/dist/commands/cli/session.d.ts +0 -67
- package/dist/commands/cli/session.d.ts.map +0 -1
- package/dist/commands/cli/workflow-status.d.ts +0 -63
- package/dist/commands/cli/workflow-status.d.ts.map +0 -1
- package/dist/sdk/commander.d.ts +0 -74
- package/dist/sdk/commander.d.ts.map +0 -1
- package/dist/sdk/management-commands.d.ts +0 -42
- package/dist/sdk/management-commands.d.ts.map +0 -1
- package/dist/sdk/workflow-cli.d.ts +0 -103
- package/dist/sdk/workflow-cli.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin-registry.d.ts +0 -113
- package/dist/sdk/workflows/builtin-registry.d.ts.map +0 -1
- package/src/sdk/commander.ts +0 -161
- package/src/sdk/workflow-cli.ts +0 -409
- package/src/sdk/workflows/builtin-registry.ts +0 -23
package/dist/sdk/types.d.ts
CHANGED
|
@@ -304,6 +304,22 @@ export interface WorkflowOptions<I extends readonly WorkflowInput[] = readonly W
|
|
|
304
304
|
name: string;
|
|
305
305
|
/** Human-readable description */
|
|
306
306
|
description?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Absolute path of the workflow source file. Pass `import.meta.path` —
|
|
309
|
+
* the SDK uses this to import the workflow module inside the
|
|
310
|
+
* orchestrator child process. Required: a workflow without `source`
|
|
311
|
+
* cannot be re-imported by the orchestrator and `defineWorkflow`
|
|
312
|
+
* throws at compile time.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* ```typescript
|
|
316
|
+
* defineWorkflow({
|
|
317
|
+
* name: "hello",
|
|
318
|
+
* source: import.meta.path, // ← required
|
|
319
|
+
* }).for("claude").run(...).compile();
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
source: string;
|
|
307
323
|
/**
|
|
308
324
|
* Optional declared inputs. When provided, the CLI materialises one
|
|
309
325
|
* `--<name>` flag per entry and the interactive picker renders one form
|
|
@@ -350,6 +366,7 @@ export type RegistrableWorkflow = {
|
|
|
350
366
|
readonly description: string;
|
|
351
367
|
readonly inputs: readonly WorkflowInput[];
|
|
352
368
|
readonly minSDKVersion: string | null;
|
|
369
|
+
readonly source: string;
|
|
353
370
|
readonly run: (...args: never[]) => Promise<void>;
|
|
354
371
|
};
|
|
355
372
|
/**
|
|
@@ -381,92 +398,6 @@ export type Registry<T extends Record<string, WorkflowDefinition> = Record<strin
|
|
|
381
398
|
*/
|
|
382
399
|
resolve(name: string, agent: AgentType): WorkflowDefinition | undefined;
|
|
383
400
|
};
|
|
384
|
-
/**
|
|
385
|
-
* Argv control for `WorkflowCli.run`.
|
|
386
|
-
*
|
|
387
|
-
* - `undefined` — parse `process.argv` (default).
|
|
388
|
-
* - `string[]` — parse this explicit argv list (tests, embedding).
|
|
389
|
-
* - `false` — skip parsing; use `inputs` / `name` / `agent` as provided.
|
|
390
|
-
*/
|
|
391
|
-
export type ArgvMode = string[] | false;
|
|
392
|
-
/** Options for constructing a WorkflowCli via `createWorkflowCli()`. */
|
|
393
|
-
export interface CreateWorkflowCliOptions {
|
|
394
|
-
/** Programmatic inputs. CLI flags override these. */
|
|
395
|
-
inputs?: Record<string, string>;
|
|
396
|
-
/**
|
|
397
|
-
* Absolute path to the composition root file. The executor re-executes
|
|
398
|
-
* this path with `ATOMIC_ORCHESTRATOR_MODE=1` when detach is requested,
|
|
399
|
-
* so re-entry lands on the module that wired the dispatcher. Defaults
|
|
400
|
-
* to `process.argv[1]` — override when your composition root isn't
|
|
401
|
-
* argv[1] (test harnesses, bundled CLIs, embedded programs).
|
|
402
|
-
*/
|
|
403
|
-
entry?: string;
|
|
404
|
-
/**
|
|
405
|
-
* Hook to attach sibling commands to the standalone `run()` CLI. The
|
|
406
|
-
* callback runs once against the Commander program `run()` built
|
|
407
|
-
* internally. Not used by the `toCommand` adapter — if you're embedding,
|
|
408
|
-
* add your siblings to the parent directly.
|
|
409
|
-
*/
|
|
410
|
-
extend?: (program: import("@commander-js/extra-typings").Command) => void;
|
|
411
|
-
/**
|
|
412
|
-
* When `true` (the default), the generated CLI auto-registers the
|
|
413
|
-
* session + status management subcommands — `session list`,
|
|
414
|
-
* `session connect`, `session kill`, and `status` — so SDK users get
|
|
415
|
-
* the same monitoring UX as `atomic workflow …` without needing the
|
|
416
|
-
* global `atomic` binary.
|
|
417
|
-
*
|
|
418
|
-
* Every session spawned by the SDK lives on the shared `atomic` tmux
|
|
419
|
-
* socket, so these commands are pure pass-throughs to the same
|
|
420
|
-
* implementations the global CLI uses; there's no divergence. Set to
|
|
421
|
-
* `false` only when you want a minimal CLI (e.g. programmatic invocation
|
|
422
|
-
* or embedding under a parent Commander program where the parent owns
|
|
423
|
-
* session management).
|
|
424
|
-
*
|
|
425
|
-
* The `session` and `status` names are reserved — workflow inputs
|
|
426
|
-
* declared with those names will throw at `defineWorkflow` time to
|
|
427
|
-
* avoid flag collisions.
|
|
428
|
-
*/
|
|
429
|
-
includeManagementCommands?: boolean;
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* A CLI program that resolves `--name` + `--agent` from argv and runs the
|
|
433
|
-
* matching workflow from a registry. Used by multi-workflow CLIs (e.g.
|
|
434
|
-
* the internal `atomic workflow` command) and single-workflow entry points.
|
|
435
|
-
*
|
|
436
|
-
* Framework-agnostic by design. To embed under a parent CLI, use the
|
|
437
|
-
* `toCommand` adapter in `@bastani/atomic/workflows/commander`.
|
|
438
|
-
*/
|
|
439
|
-
export interface WorkflowCli<T extends Record<string, WorkflowDefinition> = Record<string, WorkflowDefinition>> {
|
|
440
|
-
/** Registry the CLI was constructed with. */
|
|
441
|
-
readonly registry: Registry<T>;
|
|
442
|
-
/**
|
|
443
|
-
* Absolute path the executor re-execs on `--detach`. Defaults to
|
|
444
|
-
* `process.argv[1]`; override via `createWorkflowCli(reg, { entry })`.
|
|
445
|
-
*/
|
|
446
|
-
readonly entry: string;
|
|
447
|
-
/**
|
|
448
|
-
* Input defaults supplied at construction. The adapter reads these so
|
|
449
|
-
* CLI-built Commands merge them identically to `run()`.
|
|
450
|
-
*/
|
|
451
|
-
readonly defaults: Record<string, string> | undefined;
|
|
452
|
-
/**
|
|
453
|
-
* Run the workflow CLI.
|
|
454
|
-
*
|
|
455
|
-
* - Default (`argv` unset): parses `process.argv` with `-n/--name`,
|
|
456
|
-
* `-a/--agent`, and the per-input union across the registry;
|
|
457
|
-
* `inputs`/`name`/`agent` layer in as defaults.
|
|
458
|
-
* - `argv: [...]`: parses the given argv list the same way.
|
|
459
|
-
* - `argv: false`: skip parsing; `name` and `agent` are required and
|
|
460
|
-
* `inputs` are used as-is.
|
|
461
|
-
*/
|
|
462
|
-
run(options?: {
|
|
463
|
-
name?: string;
|
|
464
|
-
agent?: AgentType;
|
|
465
|
-
inputs?: Record<string, string>;
|
|
466
|
-
argv?: ArgvMode;
|
|
467
|
-
detach?: boolean;
|
|
468
|
-
}): Promise<void>;
|
|
469
|
-
}
|
|
470
401
|
/**
|
|
471
402
|
* A compiled workflow definition — the sealed output of defineWorkflow().compile().
|
|
472
403
|
*/
|
|
@@ -476,6 +407,15 @@ export interface WorkflowDefinition<A extends AgentType = AgentType, I extends r
|
|
|
476
407
|
/** The agent this workflow targets. Set via `.for(agent)` in the builder. */
|
|
477
408
|
readonly agent: A;
|
|
478
409
|
readonly description: string;
|
|
410
|
+
/**
|
|
411
|
+
* Absolute path of the workflow source file (the value of
|
|
412
|
+
* `import.meta.path` at the `defineWorkflow()` call site).
|
|
413
|
+
*
|
|
414
|
+
* The SDK's orchestrator entry script `import()`s this path inside
|
|
415
|
+
* the child process to recover the compiled definition without any
|
|
416
|
+
* reliance on environment variables or the parent CLI's argv.
|
|
417
|
+
*/
|
|
418
|
+
readonly source: string;
|
|
479
419
|
/**
|
|
480
420
|
* Declared input schema — empty tuple for free-form workflows.
|
|
481
421
|
* Typed as the builder-supplied `I` so consumers (e.g.
|
package/dist/sdk/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sdk/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;;;;;;;AAuFH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/deep-research-codebase/claude/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;;;;;;;AAuFH,wBAyZa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/deep-research-codebase/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;AAiFH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/deep-research-codebase/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;AAiFH,wBAmXa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/deep-research-codebase/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;AAwEH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/deep-research-codebase/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;AAwEH,wBA2Za"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/claude/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/claude/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,wBA2Za"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,wBAkaa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/open-claude-design/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,wBAsea"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/claude/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;;;;;;;AA8CH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/claude/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;;;;;;;AA8CH,wBA8Ka"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;AA+DH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;AA+DH,wBAsMa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAwDH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/workflows/builtin/ralph/opencode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAwDH,wBA0Ka"}
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* atomic/workflows
|
|
2
|
+
* @bastani/atomic/workflows — workflow SDK barrel.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Mirrors the root barrel for the historical `/workflows` import path.
|
|
5
|
+
* Provider-specific helpers (validators, native SDK type re-exports) and
|
|
6
|
+
* the validation warning type live here so consumers don't have to drill
|
|
7
|
+
* into provider modules directly.
|
|
8
|
+
*
|
|
9
|
+
* Tmux helpers and other runtime utilities are intentionally NOT
|
|
10
|
+
* re-exported — they are private to the SDK and the atomic CLI.
|
|
7
11
|
*/
|
|
8
12
|
export { defineWorkflow, WorkflowBuilder } from "../define-workflow.ts";
|
|
9
13
|
export { createRegistry } from "../registry.ts";
|
|
10
14
|
export type { Registry } from "../registry.ts";
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
13
|
-
export type { ArgvMode } from "../types.ts";
|
|
14
|
-
export type { AgentType, ValidationWarning, Transcript, SavedMessage, SaveTranscript, SessionContext, SessionRef, SessionHandle, SessionRunOptions, WorkflowContext, WorkflowOptions, WorkflowDefinition, WorkflowInput, WorkflowInputType, StageClientOptions, StageSessionOptions, ProviderClient, ProviderSession, CopilotClient, CopilotClientOptions, CopilotSession, CopilotSessionConfig, OpencodeClient, OpencodeSession, ClaudeClientWrapper, ClaudeSessionWrapper, } from "../types.ts";
|
|
15
|
+
export { MissingDependencyError, WorkflowNotCompiledError, InvalidWorkflowError, SessionNotFoundError, } from "../errors.ts";
|
|
16
|
+
export type { AgentType, Transcript, SavedMessage, SaveTranscript, SessionContext, SessionRef, SessionHandle, SessionRunOptions, ValidationWarning, WorkflowContext, WorkflowOptions, WorkflowDefinition, WorkflowInput, WorkflowInputType, StageClientOptions, StageSessionOptions, ProviderClient, ProviderSession, CopilotClient, CopilotClientOptions, CopilotSession, CopilotSessionConfig, OpencodeClient, OpencodeSession, ClaudeClientWrapper, ClaudeSessionWrapper, } from "../types.ts";
|
|
15
17
|
export type { SessionEvent as CopilotSessionEvent } from "@github/copilot-sdk";
|
|
16
18
|
export type { SessionPromptResponse as OpenCodePromptResponse } from "@opencode-ai/sdk/v2";
|
|
17
19
|
export type { SessionMessage as ClaudeSessionMessage } from "@anthropic-ai/claude-agent-sdk";
|
|
18
|
-
export { createClaudeSession, claudeQuery, clearClaudeSession, extractAssistantText, validateClaudeWorkflow } from "../providers/claude.ts";
|
|
19
|
-
export type { ClaudeSessionOptions, ClaudeQueryOptions } from "../providers/claude.ts";
|
|
20
|
+
export { createClaudeSession, claudeQuery, clearClaudeSession, extractAssistantText, validateClaudeWorkflow, } from "../providers/claude.ts";
|
|
21
|
+
export type { ClaudeSessionOptions, ClaudeQueryOptions, } from "../providers/claude.ts";
|
|
20
22
|
export { validateCopilotWorkflow } from "../providers/copilot.ts";
|
|
21
23
|
export { validateOpenCodeWorkflow } from "../providers/opencode.ts";
|
|
22
|
-
export
|
|
23
|
-
export {
|
|
24
|
+
export { getName, getDescription, getAgent, getInputSchema, getSource, getMinSDKVersion, } from "../primitives/metadata.ts";
|
|
25
|
+
export { listWorkflows, getWorkflow } from "../index.ts";
|
|
26
|
+
export { validateInputs } from "../primitives/inputs.ts";
|
|
27
|
+
export type { ResolvedInputs } from "../primitives/inputs.ts";
|
|
28
|
+
export { runWorkflow } from "../primitives/run.ts";
|
|
29
|
+
export type { RunWorkflowOptions, RunWorkflowResult, } from "../primitives/run.ts";
|
|
30
|
+
export { listSessions, getSession, stopSession, attachSession, getSessionStatus, getSessionTranscript, } from "../primitives/sessions.ts";
|
|
31
|
+
export type { SessionInfo, SessionScope, StatusSnapshot, ListSessionsOptions, SessionPrimitiveDeps, } from "../primitives/sessions.ts";
|
|
24
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/workflows/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/workflows/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oB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ClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `--append-system-prompt-file` accepts arbitrary text and is happy with
|
|
5
5
|
* Markdown too.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ADDITIONAL_INSTRUCTIONS = "This section provides you with **CRITICAL** instructions that will help you to maintain coherency in long-horizon context-heavy tasks and better support users:\n\n<user_experience>\n- Always ask clarifying questions if the user's request is ambiguous or lacks necessary details. NEVER make assumptions about what the user wants.\n- If you find yourself circling in thought and asking what the user \"really\" wants, stop and ask the user for clarification. It's better to ask than to guess.\n</user_experience>\n\n<tool_policies>\nFollow these tool selection and usage rules in order of priority:\n\n1. **Browser search and automation**:\n\nUse playwright-cli (refer to playwright-cli skill) for ALL browser automation tasks, including web research, form filling, and UI interaction:\n - ALWAYS load the playwright-cli skill before usage with the Skill tool.\n - ALWAYS ASSUME playwright-cli is installed. If the `playwright-cli` command fails, fall back to `bunx playwright-cli`.\n\n2. **Structural code search**:\n\nYou are operating in an environment where ast-grep is installed. For any code search that requires understanding of syntax or code structure, you should default to using `ast-grep --lang [language] -p '<pattern>'`. Rely on your ast-grep skill for best practices. Adjust the --lang flag as needed for the specific programming language. Avoid using text-only search tools unless a plain-text search is explicitly requested.\n\n3. **Testing**: ALWAYS invoke your
|
|
7
|
+
export declare const ADDITIONAL_INSTRUCTIONS = "This section provides you with **CRITICAL** instructions that will help you to maintain coherency in long-horizon context-heavy tasks and better support users:\n\n<user_experience>\n- Always ask clarifying questions if the user's request is ambiguous or lacks necessary details. NEVER make assumptions about what the user wants.\n- If you find yourself circling in thought and asking what the user \"really\" wants, stop and ask the user for clarification. It's better to ask than to guess.\n</user_experience>\n\n<tool_policies>\nFollow these tool selection and usage rules in order of priority:\n\n1. **Browser search and automation**:\n\nUse playwright-cli (refer to playwright-cli skill) for ALL browser automation tasks, including web research, form filling, and UI interaction:\n - ALWAYS load the playwright-cli skill before usage with the Skill tool.\n - ALWAYS ASSUME playwright-cli is installed. If the `playwright-cli` command fails, fall back to `bunx playwright-cli`.\n\n2. **Structural code search**:\n\nYou are operating in an environment where ast-grep is installed. For any code search that requires understanding of syntax or code structure, you should default to using `ast-grep --lang [language] -p '<pattern>'`. Rely on your ast-grep skill for best practices. Adjust the --lang flag as needed for the specific programming language. Avoid using text-only search tools unless a plain-text search is explicitly requested.\n\n3. **Testing**: ALWAYS invoke your tdd skill BEFORE creating or modifying any tests.\n\n4. **Sub-agent Orchestration**: You have a large number of tools available to you. The most important one is the one that allows you to dispatch sub-agents: either `Agent` or `Task`.\n\nAll non-trivial operations should be delegated to sub-agents. You should delegate research and codebase understanding tasks to codebase-analyzer, codebase-locator and codebase-pattern-locator sub-agents.\n\nYou should delegate running bash commands (particularly ones that are likely to produce lots of output) such as investigating with the `aws` CLI, using the `gh` CLI, digging through logs to `Bash` sub-agents.\n\nYou should use separate sub-agents for separate tasks, and you may launch them in parallel - but do not delegate multiple tasks that are likely to have significant overlap to separate sub-agents.\n\nIMPORTANT: if the user has already given you a task, you should proceed with that task using this approach.\nIMPORTANT: sometimes sub-agents will take a long time. DO NOT attempt to do the job yourself while waiting for the sub-agent to respond. Instead, use the time to plan out your next steps, or ask the user follow-up questions to clarify the task requirements.\n\nIf you have not already been explicitly given a task, you should ask the user what task they would like for you to work on - do not assume or begin working on a ticket automatically.\n\n5. **Debugging**: When a user asks about debugging, ALWAYS spawn a debugger sub-agent first.\n - Do not attempt to debug or analyze code yourself without first consulting the debugger sub-agent.\n - Explain the debugger's insights to the user clearly and concisely.\n - Once the user confirms, implement the necessary code changes based on those insights.\n - If the user has follow-up questions, spawn additional debugger and research sub-agents as needed.\n</tool_policies>\n\n<engineering_principles>\nSoftware engineering is fundamentally about **managing complexity** to prevent technical debt. When implementing features, prioritize maintainability and testability over cleverness.\n\n**Core Principles:**\n- **Single Responsibility (SRP):** Every class and module must have exactly one reason to change. If a unit does more than one job, split it.\n- **Dependency Inversion (DIP):** Depend on abstractions (interfaces), never on concrete implementations. Inject dependencies; do not instantiate them internally.\n- **KISS:** Keep solutions as simple as possible. Reject unnecessary abstraction layers.\n- **YAGNI:** Do not build generic frameworks or add configurability for hypothetical future requirements. Solve the problem at hand.\n\n**Design Patterns** \u2014 Use Gang of Four patterns as a shared vocabulary for recurring problems:\n- **Creational:** Use _Factory_ or _Builder_ to abstract complex object creation and isolate construction logic.\n- **Structural:** Use _Adapter_ or _Facade_ to decouple core logic from external APIs or legacy code.\n- **Behavioral:** Use _Strategy_ to make algorithms interchangeable. Use _Observer_ for event-driven communication between decoupled components.\n\n**Architectural Hygiene:**\n- **Separation of Concerns:** Isolate business logic (Domain) from infrastructure (Database, UI, networking). Never let infrastructure details leak into domain code.\n- **Anti-Pattern Detection:** Watch for **God Objects** (classes with too many responsibilities) and **Spaghetti Code** (tightly coupled, hard-to-follow control flow). Refactor them using polymorphism and clear interfaces.\n\nCreate **seams** in your software using interfaces and abstractions. This ensures code remains flexible, testable, and capable of evolving independently.\n</engineering_principles>\n";
|
|
8
8
|
/** Path to the global seed: `~/.atomic/AGENTS.md`. */
|
|
9
9
|
export declare function getGlobalAdditionalInstructionsPath(): string;
|
|
10
10
|
/** Path to the per-project override: `<projectRoot>/.atomic/AGENTS.md`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additional-instructions.d.ts","sourceRoot":"","sources":["../../../src/services/config/additional-instructions.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"additional-instructions.d.ts","sourceRoot":"","sources":["../../../src/services/config/additional-instructions.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,umKA8DnC,CAAC;AAUF,sDAAsD;AACtD,wBAAgB,mCAAmC,IAAI,MAAM,CAE5D;AAED,2EAA2E;AAC3E,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,MAAM,GAClB,MAAM,CAER;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAMpB;AAED;;;;GAIG;AACH,wBAAsB,oCAAoC,CACxD,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAS7B;AAED;;;;;GAKG;AACH,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC,CAKtE;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,6BAA6B,CACjD,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAwCf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5-0",
|
|
4
4
|
"description": "Configuration management CLI and SDK for coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"bun": "./src/sdk/workflows/index.ts",
|
|
35
35
|
"types": "./dist/sdk/workflows/index.d.ts"
|
|
36
36
|
},
|
|
37
|
-
"./workflows/
|
|
38
|
-
"bun": "./src/sdk/
|
|
39
|
-
"types": "./dist/sdk/
|
|
37
|
+
"./workflows/components": {
|
|
38
|
+
"bun": "./src/sdk/components/workflow-picker-panel.tsx",
|
|
39
|
+
"types": "./dist/sdk/components/workflow-picker-panel.d.ts"
|
|
40
40
|
},
|
|
41
41
|
"./*": {
|
|
42
42
|
"bun": "./src/sdk/*",
|
package/src/cli.ts
CHANGED
|
@@ -27,16 +27,13 @@ import { COLORS } from "./theme/colors.ts";
|
|
|
27
27
|
import { AGENT_CONFIG, type AgentKey } from "./services/config/index.ts";
|
|
28
28
|
import { SUPPORTED_SHELLS, type Shell } from "./completions/index.ts";
|
|
29
29
|
import { workflowCommand } from "./commands/cli/workflow.ts";
|
|
30
|
-
import { addSessionSubcommand } from "./
|
|
30
|
+
import { addSessionSubcommand } from "./commands/cli/management-commands.ts";
|
|
31
31
|
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// exact same `session list | connect | kill` surface is shipped by every
|
|
38
|
-
// `createWorkflowCli()` user CLI — sessions live on the shared atomic tmux
|
|
39
|
-
// socket, so there's one implementation.
|
|
32
|
+
// The SDK ships its own orchestrator entry script; the dev's CLI never
|
|
33
|
+
// has to opt in to re-entry handling. Session subcommand builders live
|
|
34
|
+
// in `./commands/cli/management-commands.ts` so `atomic chat session`,
|
|
35
|
+
// `atomic workflow session`, and `atomic session` share one
|
|
36
|
+
// implementation.
|
|
40
37
|
|
|
41
38
|
// ─── Program ────────────────────────────────────────────────────────────────
|
|
42
39
|
|
|
@@ -153,8 +150,6 @@ Examples:
|
|
|
153
150
|
$ atomic workflow list -a claude List Claude workflows only
|
|
154
151
|
$ atomic workflow -a claude Open the interactive picker
|
|
155
152
|
$ atomic workflow -n ralph -a claude "fix bug" Run a free-form workflow
|
|
156
|
-
$ atomic workflow -n gen-spec -a claude --research_doc=notes.md --focus=standard
|
|
157
|
-
Run a structured-input workflow
|
|
158
153
|
$ atomic workflow -n ralph -a claude -d "fix bug" Run detached in the background
|
|
159
154
|
$ atomic workflow inputs <name> -a claude Print a workflow's input schema (JSON)
|
|
160
155
|
$ atomic workflow status List status for all running workflows
|
|
@@ -350,57 +345,45 @@ export const program = createProgram();
|
|
|
350
345
|
/**
|
|
351
346
|
* Main entry point for the CLI.
|
|
352
347
|
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* and drives it via `runOrchestrator`, skipping bootstrap + argv parsing.
|
|
357
|
-
* Otherwise, it runs the provided CLI callback (bootstrap + parseAsync).
|
|
348
|
+
* The SDK owns orchestrator re-entry now (see
|
|
349
|
+
* `src/sdk/runtime/orchestrator-entry.ts`), so the atomic CLI just
|
|
350
|
+
* runs its bootstrap, parses argv, and exits.
|
|
358
351
|
*/
|
|
359
352
|
async function main(): Promise<void> {
|
|
360
353
|
try {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
354
|
+
// Bootstrap `~/.atomic/settings.json` on every invocation if absent,
|
|
355
|
+
// so users always have a file to edit with JSON Schema intellisense
|
|
356
|
+
// wired up. Idempotent; swallows FS errors internally.
|
|
357
|
+
const { ensureGlobalAtomicSettings } = await import(
|
|
358
|
+
"./services/config/settings.ts"
|
|
365
359
|
);
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
360
|
+
await ensureGlobalAtomicSettings();
|
|
361
|
+
|
|
362
|
+
// Sync tooling deps and global skills on first launch after install
|
|
363
|
+
// or upgrade. Runs at most once per version bump (gated on a marker
|
|
364
|
+
// file under ~/.atomic). Skipped for `--version` / `--help` so info
|
|
365
|
+
// paths stay instant.
|
|
366
|
+
const argv = process.argv.slice(2);
|
|
367
|
+
const isInfoCommand =
|
|
368
|
+
argv.includes("--version") ||
|
|
369
|
+
argv.includes("-v") ||
|
|
370
|
+
argv.includes("--help") ||
|
|
371
|
+
argv.includes("-h") ||
|
|
372
|
+
argv[0] === "completions" ||
|
|
373
|
+
argv[0] === "_footer" ||
|
|
374
|
+
argv[0] === "_claude-stop-hook" ||
|
|
375
|
+
argv[0] === "_claude-ask-hook" ||
|
|
376
|
+
argv[0] === "_claude-session-start-hook" ||
|
|
377
|
+
argv[0] === "_claude-inflight-hook";
|
|
378
|
+
|
|
379
|
+
if (!isInfoCommand) {
|
|
380
|
+
const { autoSyncIfStale } = await import(
|
|
381
|
+
"./services/system/auto-sync.ts"
|
|
375
382
|
);
|
|
376
|
-
await
|
|
377
|
-
|
|
378
|
-
// Sync tooling deps and global skills on first launch after install
|
|
379
|
-
// or upgrade. Runs at most once per version bump (gated on a marker
|
|
380
|
-
// file under ~/.atomic). Skipped for `--version` / `--help` so info
|
|
381
|
-
// paths stay instant.
|
|
382
|
-
const argv = process.argv.slice(2);
|
|
383
|
-
const isInfoCommand =
|
|
384
|
-
argv.includes("--version") ||
|
|
385
|
-
argv.includes("-v") ||
|
|
386
|
-
argv.includes("--help") ||
|
|
387
|
-
argv.includes("-h") ||
|
|
388
|
-
argv[0] === "completions" ||
|
|
389
|
-
argv[0] === "_footer" ||
|
|
390
|
-
argv[0] === "_claude-stop-hook" ||
|
|
391
|
-
argv[0] === "_claude-ask-hook" ||
|
|
392
|
-
argv[0] === "_claude-session-start-hook" ||
|
|
393
|
-
argv[0] === "_claude-inflight-hook";
|
|
394
|
-
|
|
395
|
-
if (!isInfoCommand) {
|
|
396
|
-
const { autoSyncIfStale } = await import(
|
|
397
|
-
"./services/system/auto-sync.ts"
|
|
398
|
-
);
|
|
399
|
-
await autoSyncIfStale();
|
|
400
|
-
}
|
|
383
|
+
await autoSyncIfStale();
|
|
384
|
+
}
|
|
401
385
|
|
|
402
|
-
|
|
403
|
-
});
|
|
386
|
+
await program.parseAsync();
|
|
404
387
|
} catch (error) {
|
|
405
388
|
const message = error instanceof Error ? error.message : String(error);
|
|
406
389
|
console.error(`${COLORS.red}Error: ${message}${COLORS.reset}`);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Atomic-CLI-specific registry of builtin workflows.
|
|
3
|
+
*
|
|
4
|
+
* Lives outside the SDK because the set of builtins is an atomic CLI
|
|
5
|
+
* concern: third-party CLIs build their own registries with their own
|
|
6
|
+
* workflows.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { createRegistry } from "../sdk/registry.ts";
|
|
10
|
+
|
|
11
|
+
// ralph
|
|
12
|
+
import ralphClaude from "../sdk/workflows/builtin/ralph/claude/index.ts";
|
|
13
|
+
import ralphCopilot from "../sdk/workflows/builtin/ralph/copilot/index.ts";
|
|
14
|
+
import ralphOpencode from "../sdk/workflows/builtin/ralph/opencode/index.ts";
|
|
15
|
+
|
|
16
|
+
// deep-research-codebase
|
|
17
|
+
import drcClaude from "../sdk/workflows/builtin/deep-research-codebase/claude/index.ts";
|
|
18
|
+
import drcCopilot from "../sdk/workflows/builtin/deep-research-codebase/copilot/index.ts";
|
|
19
|
+
import drcOpencode from "../sdk/workflows/builtin/deep-research-codebase/opencode/index.ts";
|
|
20
|
+
|
|
21
|
+
// open-claude-design
|
|
22
|
+
import ocdClaude from "../sdk/workflows/builtin/open-claude-design/claude/index.ts";
|
|
23
|
+
import ocdCopilot from "../sdk/workflows/builtin/open-claude-design/copilot/index.ts";
|
|
24
|
+
import ocdOpencode from "../sdk/workflows/builtin/open-claude-design/opencode/index.ts";
|
|
25
|
+
|
|
26
|
+
export function createBuiltinRegistry() {
|
|
27
|
+
return createRegistry()
|
|
28
|
+
.register(ralphClaude)
|
|
29
|
+
.register(ralphCopilot)
|
|
30
|
+
.register(ralphOpencode)
|
|
31
|
+
.register(drcClaude)
|
|
32
|
+
.register(drcCopilot)
|
|
33
|
+
.register(drcOpencode)
|
|
34
|
+
.register(ocdClaude)
|
|
35
|
+
.register(ocdCopilot)
|
|
36
|
+
.register(ocdOpencode);
|
|
37
|
+
}
|
|
@@ -33,15 +33,13 @@ import {
|
|
|
33
33
|
isInsideTmux,
|
|
34
34
|
isTmuxInstalled,
|
|
35
35
|
resetMuxBinaryCache,
|
|
36
|
-
} from "../../../sdk/workflows/index.ts";
|
|
37
|
-
import {
|
|
38
36
|
createSession,
|
|
39
37
|
detachAndAttachAtomic,
|
|
40
38
|
killSessionOnPaneExit,
|
|
41
39
|
killSession,
|
|
42
40
|
spawnMuxAttach,
|
|
43
41
|
switchClient,
|
|
44
|
-
} from "../../../sdk/
|
|
42
|
+
} from "../../../sdk/runtime/tmux.ts";
|
|
45
43
|
import { spawnAttachedFooter } from "../../../sdk/runtime/attached-footer.ts";
|
|
46
44
|
import { ensureTmuxInstalled } from "../../../lib/spawn.ts";
|
|
47
45
|
|