-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathworkspaced.cue
More file actions
649 lines (620 loc) · 15.2 KB
/
Copy pathworkspaced.cue
File metadata and controls
649 lines (620 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
package workspaced
import "strings"
workspaced: {
desktop: wallpaper: {
dir: "\(workspaced.runtime.dotfiles_root)/assets/wallpapers"
default: "wall.jpg"
}
hosts: {
riverwood: {
ips: ["100.82.35.120", "192.168.69.2"]
port: 22
}
whiterun: {
ips: ["100.85.38.19", "192.168.69.1"]
mac: "a8:a1:59:9c:ab:32"
port: 22
}
ravenrock: {
ips: ["100.122.87.59"]
port: 22
}
phone: {
ips: ["100.76.88.29", "192.168.69.4"]
port: 22
}
}
drivers: {
"github.com/lucasew/workspaced/pkg/driver/terminal.Driver": {
"terminal_kitty": 70
}
}
lazy_tools: {
codex: {
ref: "github:openai/codex"
bins: ["codex"]
global: true
}
bun: {
ref: "github:oven-sh/bun"
bins: ["bun"]
}
docker_compose: {
ref: "github:docker/compose"
global: true
bins: ["docker-compose"]
}
fd: {
ref: "github:sharkdp/fd"
global: true
bins: ["fd"]
}
difftastic: {
ref: "github:Wilfred/difftastic"
global: true
bins: ["difft"]
}
opencode: {
ref: "github:anomalyco/opencode"
global: true
bins: ["opencode"]
}
rclone: {
ref: "github:rclone/rclone"
global: true
bins: ["rclone"]
}
ripgrep: {
ref: "github:burntsushi/ripgrep"
global: true
bins: ["rg"]
}
fzf: {
ref: "github:junegunn/fzf"
global: true
bins: ["fzf", "fzf-tmux"]
}
ruff: {
ref: "github:astral-sh/ruff"
bins: ["ruff"]
}
shfmt: {
ref: "github:patrickvane/shfmt"
bins: ["shfmt"]
}
shellcheck: {
ref: "github:koalaman/shellcheck"
bins: ["shellcheck"]
}
sops: {
ref: "github:getsops/sops"
bins: ["sops"]
}
uv: {
ref: "github:astral-sh/uv"
global: true
bins: ["uv", "uvx"]
}
ffmpeg: {
ref: "github:ffbinaries/ffbinaries-prebuilt"
bins: ["ffmpeg", "ffprobe"]
global: true
}
helix: {
ref: "github:helix-editor/helix"
global: true
bins: ["hx"]
}
refactree: {
ref: "github:lucasew/refactree"
global: true
bins: ["rft"]
}
contapila: {
ref: "github:lewtec/contapila"
global: true
bins: ["contapila"]
}
jless: {
ref: "github:PaulJuliusMartinez/jless"
global: true
bins: ["jless"]
}
gh: {
ref: "github:cli/cli"
global: true
bins: ["gh"]
}
scc: {
ref: "github:boyter/scc"
global: true
bins: ["scc"]
}
tirith: {
ref: "tirith"
global: true
bins: ["tirith"]
}
lazygit: {
ref: "github:jesseduffield/lazygit"
global: true
bins: ["lazygit"]
}
herdr: {
ref: "github:ogulcancelik/herdr"
global: true
bins: ["herdr"]
}
grok: {
ref: "grok-build"
global: true
bins: ["grok"]
}
beans: {
ref: "github:hmans/beans"
global: true
bins: ["beans"]
}
nh: {
ref: "github:nix-community/nh"
global: true
bins: ["nh"]
}
asciinema: {
ref: "github:gvcgo/asciinema"
global: true
bins: ["acast"]
}
anydoc: {
ref: "github:firecrawl/anydoc"
global: true
bins: ["anydoc"]
}
pixi: {
ref: "github:prefix-dev/pixi"
global: true
bins: ["pixi"]
}
}
modules: {
fontconfig: {
input: "self:modules/fontconfig"
enable: true
config: {
serif: "Fira Code"
sans_serif: "Fira Code"
monospace: "Fira Code"
emoji: "Noto Color Emoji"
}
}
"script-directory": {input: "self:modules/script-directory", enable: true}
mise: {input: "self:modules/mise", enable: true}
hermes: {input: "self:modules/hermes", enable: true}
nix: {input: "self:modules/nix", enable: true}
gammastep: {input: "self:modules/gammastep", enable: true}
herdr: {input: "self:modules/herdr", enable: true}
helix: {input: "self:modules/helix", enable: true}
grok: {input: "self:modules/grok", enable: true}
codex: {input: "self:modules/codex", enable: true}
opencode: {input: "self:modules/opencode", enable: true}
}
}
// ========== Base 16
workspaced: {
inputs: {
papirus: {
from: "github:PapirusDevelopmentTeam/papirus-icon-theme"
version: "HEAD"
}
}
modules: {
icons: {
input: "core:base16-icons-linux"
enable: workspaced.runtime.hostname == "whiterun" || workspaced.runtime.hostname == "riverwood"
config: {
input_dir: "papirus:Papirus"
}
}
base16: {
input: "self:modules/base16"
enable: true
config: {
// From: workspaced utils palette generate assets/wallpapers/bliss.jpg --driver materialyou --polarity dark
base00: "131313"
base01: "131313"
base02: "1f1f1f"
base03: "2a2a2a"
base04: "474747"
base05: "e2e2e2"
base06: "c6c6c6"
base07: "e2e2e2"
base08: "ffb4ab"
base09: "c0cbac"
base0A: "a0d0cb"
base0B: "a9d472"
base0C: "304f00"
base0D: "404a33"
base0E: "1f4e4b"
base0F: "93000a"
}
}
"base16-shell": {input: "self:modules/base16-shell", enable: true}
"base16-helix": {input: "self:modules/base16-helix", enable: true}
"base16-alacritty": {input: "self:modules/base16-alacritty", enable: true}
"base16-vscode": {input: "self:modules/base16-vscode", enable: true}
"base16-sway": {input: "self:modules/base16-sway", enable: true}
"base16-gtk": {input: "self:modules/base16-gtk", enable: true}
"base16-rofi": {input: "self:modules/base16-rofi", enable: true}
"base16-dunst": {input: "self:modules/base16-dunst", enable: true}
"base16-tmux": {input: "self:modules/base16-tmux", enable: true}
"base16-opencode": {input: "self:modules/base16-opencode", enable: true}
"base16-swaylock": {input: "self:modules/base16-swaylock", enable: true}
}
}
// Webapps
#default_borderless_browser: "helium"
workspaced: {
browser: {
default: "zen"
webapp: "helium"
}
lazy_tools: {
helium_browser: {
ref: "helium-browser"
global: true
bins: ["helium"]
}
rod_mcp: {
ref: "github:lewtec/rod-mcp"
global: true
bins: ["rod-mcp"]
}
}
modules: {
webapp: {
input: "self:modules/webapp"
enable: true
config: {
apps: {
main: {
browser: #default_borderless_browser
desktop_name: "Navegador"
url: ""
}
workx: {
browser: #default_borderless_browser
profile: "XAI"
desktop_name: "Trabson"
url: ""
extra_flags: [
"--proxy-server",
"socks5h://job-xai.stargazer-shark.ts.net:1080"
]
}
"castable-iframe": {
browser: #default_borderless_browser
url: "https://castable-iframe.vercel.app/"
profile: "castable-iframe"
}
gemini: {
browser: #default_borderless_browser
url: "https://gemini.google.com"
}
element: {
browser: #default_borderless_browser
url: "https://app.element.io"
profile: "element"
desktop_name: "Element Matrix"
}
reemo: {
browser: #default_borderless_browser
url: "https://reemo.io"
desktop_name: "Remote control"
}
clickup: {
browser: #default_borderless_browser
url: "https://clickup.com"
desktop_name: "ClickUp"
}
facebook: {
browser: #default_borderless_browser
url: "https://facebook.com"
profile: "facebook"
desktop_name: "Facebook"
}
pocketcasts: {
browser: #default_borderless_browser
url: "https://pocketcasts.com"
desktop_name: "PocketCasts"
icon: "sound"
}
twitter: {
browser: #default_borderless_browser
url: "https://twitter.com"
profile: "twitter"
desktop_name: "Twitter"
}
"discord-pessoal": {
browser: #default_borderless_browser
url: "https://discord.com/channels/me"
profile: "discord-pessoal"
desktop_name: "Discord (pessoal)"
}
"discord-profissional": {
browser: #default_borderless_browser
url: "https://discord.com/channels/me"
profile: "discord-profissional"
desktop_name: "Discord (profissional)"
}
"youtube-tv": {
browser: #default_borderless_browser
url: "https://youtube.com/tv"
profile: "youtube-tv"
desktop_name: "YouTube (UI para TV)"
}
whatsapp: {
browser: #default_borderless_browser
url: "web.whatsapp.com"
profile: "zap"
desktop_name: "WhatsApp"
}
notion: {
browser: #default_borderless_browser
url: "notion.so"
profile: "notion"
desktop_name: "Notion"
}
duolingo: {
browser: #default_borderless_browser
url: "duolingo.com"
desktop_name: "Duolingo"
}
"youtube-music": {
browser: #default_borderless_browser
url: "music.youtube.com"
profile: "youtubemusic"
desktop_name: "Youtube Music"
}
planttext: {
browser: #default_borderless_browser
url: "https://www.planttext.com/"
desktop_name: "PlantText"
}
rainmode: {
browser: #default_borderless_browser
url: "https://youtu.be/mPZkdNFkNps"
desktop_name: "Tocar som de chuva"
icon: "weather-showers"
}
gmail: {
browser: #default_borderless_browser
url: "gmail.com"
desktop_name: "GMail"
}
keymash: {
browser: #default_borderless_browser
url: "https://keyma.sh/learn"
desktop_name: "keyma.sh: Keyboard typing train"
}
calendar: {
browser: #default_borderless_browser
url: "https://calendar.google.com/calendar/u/0/r/customday"
desktop_name: "Calendário"
icon: "x-office-calendar"
}
"twitch-dashboard": {
browser: #default_borderless_browser
url: "https://dashboard.twitch.tv/stream-manager"
}
"geforce-now": {
browser: #default_borderless_browser
url: "play.geforcenow.com"
}
}
}
}
}
}
// =========== Backup
#rsyncnet_user: "de3163@de3163.rsync.net"
#is_whiterun: workspaced.runtime.hostname == "whiterun"
#is_riverwood: workspaced.runtime.hostname == "riverwood"
#is_massan: workspaced.runtime.hostname == "MacBook-Air-de-Lucas.local"
#is_computer: #is_whiterun || #is_riverwood || #is_massan
#is_phone: workspaced.runtime.is_phone
#remote_path: "backup/lucasew"
workspaced: {
backup: {
actions: [
for repo_name in [
"personal-zettel-obsidian",
"personal-beancount",
"personal-keepass",
"personal-bookmarks",
"personal-decsync",
"personal-zettel-org",
] if (#is_computer || #is_phone) {
name: "git repo \(repo_name)"
kind: "git_repo_sync"
src: "\(workspaced.runtime.home)/.personal/\(repo_name)"
dst: "\(#rsyncnet_user):git-personal/\(repo_name)"
},
if (#is_whiterun || #is_riverwood) {
name: "cantgit"
kind: "rsync"
skip_permissions: true
src: "\(workspaced.runtime.home)/WORKSPACE/CANTGIT/"
dst: "\(#rsyncnet_user):\(#remote_path)/CANTGIT"
},
if #is_phone {
name: "camera"
kind: "rsync"
skip_permissions: true
src: "/sdcard/DCIM/Camera/"
dst: "\(#rsyncnet_user):\(#remote_path)/camera"
excludes: [".thumbnails"]
},
if #is_phone {
name: "pictures"
kind: "rsync"
skip_permissions: true
src: "/sdcard/Pictures/"
dst: "\(#rsyncnet_user):\(#remote_path)/pictures"
excludes: [".thumbnails"]
},
if #is_phone {
name: "whatsapp media"
kind: "rsync"
skip_permissions: true
src: "/sdcard/Android/media/com.whatsapp/WhatsApp/Media/"
dst: "\(#rsyncnet_user):\(#remote_path)/WhatsApp"
excludes: [".Links", ".Statuses"]
},
if #is_phone {
name: "whatsapp backups"
kind: "rsync"
skip_permissions: true
src: "/sdcard/Android/media/com.whatsapp/WhatsApp/Backups/"
dst: "\(#rsyncnet_user):\(#remote_path)/WhatsApp"
},
// if workspaced.runtime.is_phone {
// name: "termux packages list"
// kind: "termux_packages_snapshot"
// output: "\(workspaced.runtime.home)/.cache/backup/termux/packages.txt"
// },
// Producer above is off; ~/.cache/backup/termux does not exist.
// if #is_phone {
// name: "termux sync home"
// kind: "rsync"
// skip_permissions: true
// src: "\(workspaced.runtime.home)/.cache/backup/termux/"
// dst: "\(#rsyncnet_user):\(#remote_path)/termux/"
// },
// if #is_phone {
// name: "termux archive"
// kind: "archive"
// input_dir: "\(workspaced.runtime.home)/.cache/backup/termux"
// output: "\(workspaced.runtime.home)/.cache/backup/termux.tar"
// format: "tar"
// },
// if #is_phone {
// name: "termux archive upload"
// kind: "rsync"
// skip_permissions: true
// src: "\(workspaced.runtime.home)/.cache/backup/termux.tar"
// dst: "\(#rsyncnet_user):\(#remote_path)/termux.tar"
// },
]
}
}
// ========== Agent skills
#skills: {
if !#is_phone {
lewtec: {
from: "github:lewtec/skills"
version: "91e75117533fce41a8dbdc32e0c0ff848944deab"
}
}
workspaced: {
from: "github:lucasew/workspaced"
}
// Local skills come straight from the workspace tree.
// We reference the built-in "self" input directly below instead of
// creating a pointless named alias like "skills_local_skills".
local_skills: {
from: "self:skills"
}
}
#skills: [string]: {
from: string
version: string | *"HEAD"
origin: string | *"skills"
destination: string | *""
}
// Remote (github etc.) skills need named inputs for locking/version pins.
// Local self-based ones do not — we reference "self:..." directly.
// core:place TargetBase is $HOME, so destinations are under ~/.agents/skills.
workspaced: {
inputs: {
for name, src in #skills if !strings.HasPrefix(src.from, "self") {
"skills_\(name)": {
from: src.from
version: src.version
}
}
}
// Generate place modules for all skills.
// For self sources we use the direct "self:..." ref (no named input needed).
modules: {
for name, value in #skills if !strings.HasPrefix(value.from, "self") {
"skills_\(name)": {
from: "core:place"
config: {
items: {
".agents/skills/\(value.destination)": "skills_\(name):\(value.origin)"
}
}
}
}
for name, value in #skills if strings.HasPrefix(value.from, "self") {
"skills_\(name)": {
from: "core:place"
config: {
items: {
".agents/skills/\(value.destination)": "self:\(value.origin)"
}
}
}
}
}
}
// ========== Agent definitions
// Same shape as #skills. Origin defaults to "agents/". Destination is
// ~/.grok/agents (Grok user agents) so spawn_subagent can see the type.
#agents: {
if !#is_phone {
lewtec: {
from: #skills.lewtec.from
version: #skills.lewtec.version
origin: "agents"
}
}
}
#agents: [string]: {
from: string
version: string | *"HEAD"
origin: string | *"agents"
destination: string | *""
}
workspaced: {
inputs: {
for name, src in #agents if !strings.HasPrefix(src.from, "self") {
"agents_\(name)": {
from: src.from
version: src.version
}
}
}
modules: {
for name, value in #agents if !strings.HasPrefix(value.from, "self") {
"agents_\(name)": {
from: "core:place"
config: {
items: {
".grok/agents/\(value.destination)": "agents_\(name):\(value.origin)"
}
}
}
}
for name, value in #agents if strings.HasPrefix(value.from, "self") {
"agents_\(name)": {
from: "core:place"
config: {
items: {
".grok/agents/\(value.destination)": "self:\(value.origin)"
}
}
}
}
}
}