@factory/droid-sdk 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @factory-ai/droid-sdk
1
+ # @factory/droid-sdk
2
2
 
3
3
  TypeScript SDK for the [Factory](https://factory.ai) Droid CLI. Provides a high-level API for interacting with Droid as a subprocess, with streaming message support, multi-turn sessions, and tool permission handling.
4
4
 
@@ -10,7 +10,7 @@ TypeScript SDK for the [Factory](https://factory.ai) Droid CLI. Provides a high-
10
10
  ## Installation
11
11
 
12
12
  ```bash
13
- npm install @factory-ai/droid-sdk
13
+ npm install @factory/droid-sdk
14
14
  ```
15
15
 
16
16
  ## Quick Start
@@ -18,7 +18,7 @@ npm install @factory-ai/droid-sdk
18
18
  Send a one-shot prompt and stream the response:
19
19
 
20
20
  ```ts
21
- import { query } from "@factory-ai/droid-sdk";
21
+ import { query } from "@factory/droid-sdk";
22
22
 
23
23
  const stream = query({
24
24
  prompt: "What files are in the current directory?",
@@ -40,7 +40,7 @@ for await (const msg of stream) {
40
40
  Use `createSession()` for persistent conversations with multiple turns:
41
41
 
42
42
  ```ts
43
- import { createSession } from "@factory-ai/droid-sdk";
43
+ import { createSession } from "@factory/droid-sdk";
44
44
 
45
45
  const session = await createSession({ cwd: "/my/project" });
46
46
 
@@ -61,7 +61,7 @@ await session.close();
61
61
  Resume an existing session by ID:
62
62
 
63
63
  ```ts
64
- import { resumeSession } from "@factory-ai/droid-sdk";
64
+ import { resumeSession } from "@factory/droid-sdk";
65
65
 
66
66
  const session = await resumeSession("session-id-here");
67
67
  const result = await session.send("Continue where we left off");
@@ -74,7 +74,7 @@ await session.close();
74
74
  Handle tool confirmation requests with a custom permission handler:
75
75
 
76
76
  ```ts
77
- import { query, ToolConfirmationOutcome } from "@factory-ai/droid-sdk";
77
+ import { query, ToolConfirmationOutcome } from "@factory/droid-sdk";
78
78
 
79
79
  const stream = query({
80
80
  prompt: "Create a hello.txt file",