@makefinks/daemon 0.1.0 → 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
|
@@ -8,6 +8,28 @@ but can also interact with and **control** your system through the terminal with
|
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# npm (might throw warnings)
|
|
15
|
+
npm i -g @makefinks/daemon
|
|
16
|
+
|
|
17
|
+
# bun (recommended)
|
|
18
|
+
bun add -g @makefinks/daemon
|
|
19
|
+
|
|
20
|
+
# additional installs (macOS)
|
|
21
|
+
brew install sox # For Audio Input / Output
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then run with:
|
|
25
|
+
```bash
|
|
26
|
+
daemon
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
> **Note:** DAEMON requires [Bun](https://bun.sh) at runtime. Install Bun first: `curl -fsSL https://bun.com/install | bash`
|
|
30
|
+
|
|
31
|
+
See full installation details below for configuration and system dependencies.
|
|
32
|
+
|
|
11
33
|
## Highlights
|
|
12
34
|
|
|
13
35
|
### 👤 Interactive Avatar
|
|
@@ -111,10 +133,6 @@ DAEMON defaults to Exa-based `fetchUrls` for retrieving web page text. For JavaS
|
|
|
111
133
|
|
|
112
134
|
This feature is **optional** and intentionally not installed by default (browser downloads are large). The render tool is not available to DAEMON without the installation below.
|
|
113
135
|
|
|
114
|
-
### For global installs (`npm i -g` / `bun add -g`)
|
|
115
|
-
|
|
116
|
-
Playwright must also be installed globally:
|
|
117
|
-
|
|
118
136
|
```bash
|
|
119
137
|
# 1) Install Playwright globally
|
|
120
138
|
npm i -g playwright
|
package/package.json
CHANGED
|
@@ -28,14 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"module": "src/index.tsx",
|
|
30
30
|
"type": "module",
|
|
31
|
-
"version": "0.1.
|
|
31
|
+
"version": "0.1.2",
|
|
32
32
|
"bin": {
|
|
33
33
|
"daemon": "dist/cli.js"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"files": [
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"src",
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"README.md",
|
|
43
|
+
"package.json"
|
|
44
|
+
],
|
|
39
45
|
"scripts": {
|
|
40
46
|
"build:cli": "bun build src/cli.ts --outdir dist --target node",
|
|
41
47
|
"dev": "bun run --watch src/index.tsx",
|
package/src/ai/model-config.ts
CHANGED
|
@@ -20,7 +20,7 @@ export const AVAILABLE_MODELS: ModelOption[] = [
|
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
// Default model ID
|
|
23
|
-
export const DEFAULT_MODEL_ID = "
|
|
23
|
+
export const DEFAULT_MODEL_ID = "google/gemini-3-flash-preview";
|
|
24
24
|
|
|
25
25
|
// Current selected model (mutable)
|
|
26
26
|
let currentModelId = DEFAULT_MODEL_ID;
|
|
@@ -14,8 +14,10 @@ const groundingSourceSchema = z.object({
|
|
|
14
14
|
textFragment: z
|
|
15
15
|
.string()
|
|
16
16
|
.min(1)
|
|
17
|
-
.max(
|
|
18
|
-
.describe(
|
|
17
|
+
.max(150)
|
|
18
|
+
.describe(
|
|
19
|
+
"A short phrase or subphrase (MUST BE COPIED VERBATIM) from the source text for deep-linking. Max 150 characters."
|
|
20
|
+
),
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
const groundedStatementSchema = z.object({
|
|
@@ -39,6 +39,8 @@ function extractGroundingInput(input: unknown): GroundingInput | null {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function GroundingBody({ call }: ToolLayoutRenderProps) {
|
|
42
|
+
if (call.status === "failed") return null;
|
|
43
|
+
|
|
42
44
|
const input = extractGroundingInput(call.input);
|
|
43
45
|
if (!input || input.items.length === 0) return null;
|
|
44
46
|
|