nika 0.35.4

Semantic YAML workflow engine for AI tasks - DAG execution, MCP integration, multi-provider LLM support
Documentation
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
//! Tier 1: Zero Dependencies
//!
//! These workflows work immediately without any API keys or external services.

use super::WorkflowTemplate;

pub fn get_tier1_workflows() -> Vec<WorkflowTemplate> {
    vec![
        WorkflowTemplate {
            filename: "01-exec-basics.nika.yaml",
            tier_dir: "tier-1-no-deps",
            content: WORKFLOW_01_EXEC_BASICS,
        },
        WorkflowTemplate {
            filename: "02-fetch-http.nika.yaml",
            tier_dir: "tier-1-no-deps",
            content: WORKFLOW_02_FETCH_HTTP,
        },
        WorkflowTemplate {
            filename: "03-builtins-core.nika.yaml",
            tier_dir: "tier-1-no-deps",
            content: WORKFLOW_03_BUILTINS_CORE,
        },
    ]
}

/// 01: Shell command execution basics
pub const WORKFLOW_01_EXEC_BASICS: &str = r##"# ══════════════════════════════════════════════════════════════════════════════
# 🖥️  01 - EXEC BASICS
# ══════════════════════════════════════════════════════════════════════════════
#
# Learn shell command execution with Nika - no API keys needed!
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │                            WORKFLOW FLOW                                    │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │                                                                             │
# │   ┌──────────────┐     ┌──────────────┐     ┌──────────────┐               │
# │   │  get_date    │     │  get_user    │     │  list_files  │               │
# │   │   exec:      │     │   exec:      │     │   exec:      │               │
# │   │  "date"      │     │  "whoami"    │     │  "ls -la"    │               │
# │   └──────┬───────┘     └──────┬───────┘     └──────┬───────┘               │
# │          │                    │                    │                        │
# │          └────────────────────┼────────────────────┘                        │
# │                               │                                             │
# │                               ▼                                             │
# │                    ┌──────────────────────┐                                 │
# │                    │    show_system_info   │                                │
# │                    │        exec:          │                                │
# │                    │  "echo System Info"   │                                │
# │                    └──────────┬────────────┘                                │
# │                               │                                             │
# │                               ▼                                             │
# │                    ┌──────────────────────┐                                 │
# │                    │      with_cwd        │                                 │
# │                    │       exec:          │                                 │
# │                    │    cwd: "/tmp"       │                                 │
# │                    └──────────────────────┘                                 │
# │                                                                             │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# FEATURES DEMONSTRATED:
# ├── exec: shorthand syntax (just a string)
# ├── exec: full form with options
# ├── shell: true vs false (security)
# ├── cwd: working directory
# ├── timeout: command timeout (seconds)
# ├── env: environment variables
# ├── with: bindings between tasks
# └── depends_on: task dependencies
#
# PREREQUISITES: None! Works out of the box.
#
# RUN: nika run workflows/tier-1-no-deps/01-exec-basics.nika.yaml
#
# ══════════════════════════════════════════════════════════════════════════════

schema: "nika/workflow@0.12"
workflow: exec-basics
description: "Learn shell command execution - no API keys needed!"

tasks:
  # ─────────────────────────────────────────────────────────────────────────────
  # SHORTHAND SYNTAX: Just pass a command string
  # ─────────────────────────────────────────────────────────────────────────────
  - id: get_date
    # Shorthand: exec: "command" (simplest form)
    exec: "date '+%Y-%m-%d %H:%M:%S'"

  - id: get_user
    # Another shorthand example
    exec: "whoami"

  - id: list_files
    # List files in current directory (pipe requires shell: true)
    exec:
      command: "ls -la | head -10"
      shell: true

  # ─────────────────────────────────────────────────────────────────────────────
  # FULL FORM: With all options
  # ─────────────────────────────────────────────────────────────────────────────
  - id: show_system_info
    depends_on: [get_date, get_user, list_files]
    # Bind outputs from previous tasks
    with:
      date_result: $get_date      # Output of get_date task
      user_result: $get_user      # Output of get_user task
      files_result: $list_files   # Output of list_files task
    # Full form with explicit options
    exec:
      # The command to run
      command: |
        echo "═══════════════════════════════════════"
        echo "        SYSTEM INFORMATION"
        echo "═══════════════════════════════════════"
        echo ""
        echo "📅 Date: {{with.date_result}}"
        echo "👤 User: {{with.user_result}}"
        echo ""
        echo "📁 Files:"
        echo "{{with.files_result}}"
      # shell: true allows pipes, redirects, and variables
      # WARNING: Only use shell: true when you need shell features!
      # shell: false (default) is more secure
      shell: true
      # Timeout in seconds
      timeout: 30

  # ─────────────────────────────────────────────────────────────────────────────
  # WORKING DIRECTORY: Run commands in specific directory
  # ─────────────────────────────────────────────────────────────────────────────
  - id: with_cwd
    depends_on: [show_system_info]
    exec:
      command: "pwd && ls -la"
      shell: true
      # Optional: run in specific directory
      cwd: "/tmp"

  # ─────────────────────────────────────────────────────────────────────────────
  # ENVIRONMENT VARIABLES: Set custom env vars for the command
  # ─────────────────────────────────────────────────────────────────────────────
  - id: with_env_vars
    depends_on: [with_cwd]
    exec:
      command: 'echo "App: $APP_NAME v$APP_VERSION (env: $NODE_ENV)"'
      shell: true
      # Environment variables for this command
      env:
        APP_NAME: "Nika"
        APP_VERSION: "0.30.5"
        NODE_ENV: "production"
        DEBUG: "false"

  # ─────────────────────────────────────────────────────────────────────────────
  # SHELL-FREE MODE (Default & Secure)
  # ─────────────────────────────────────────────────────────────────────────────
  - id: secure_command
    depends_on: [with_env_vars]
    exec:
      # shell: false (default) - command is parsed with shlex, no shell injection
      command: "echo 'This runs without shell - more secure!'"
      shell: false
      # Working directory (optional)
      # working_dir: /tmp

  # ─────────────────────────────────────────────────────────────────────────────
  # FINAL SUMMARY
  # ─────────────────────────────────────────────────────────────────────────────
  - id: summary
    depends_on: [secure_command]
    with:
      sys_info: $show_system_info
      cwd_demo: $with_cwd
      env_demo: $with_env_vars
      secure: $secure_command
    exec:
      command: |
        echo ""
        echo "✅ All exec: examples completed successfully!"
        echo ""
        echo "💡 Key takeaways:"
        echo "   • Use shorthand 'exec: \"command\"' for simple commands"
        echo "   • Use full form for cwd, timeouts, shell mode"
        echo "   • shell: false (default) is more secure"
        echo "   • shell: true needed for pipes, redirects, variables"
        echo "   • env: { KEY: value } sets environment variables"
      shell: true
"##;

/// 02: HTTP fetch operations
pub const WORKFLOW_02_FETCH_HTTP: &str = r##"# ══════════════════════════════════════════════════════════════════════════════
# 🌐 02 - FETCH HTTP
# ══════════════════════════════════════════════════════════════════════════════
#
# Learn HTTP requests with Nika - GET, POST, headers, and JSON parsing!
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │                            WORKFLOW FLOW                                    │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │                                                                             │
# │   ┌───────────────┐    ┌───────────────┐    ┌───────────────┐              │
# │   │  simple_get   │    │   get_json    │    │  get_headers  │              │
# │   │   fetch:      │    │    fetch:     │    │    fetch:     │              │
# │   │   GET /ip     │    │   GET /json   │    │  GET /headers │              │
# │   └───────┬───────┘    └───────┬───────┘    └───────┬───────┘              │
# │           │                    │                    │                       │
# │           └────────────────────┼────────────────────┘                       │
# │                                │                                            │
# │                                ▼                                            │
# │                    ┌───────────────────────┐                                │
# │                    │      post_data        │                                │
# │                    │       fetch:          │                                │
# │                    │    POST /post         │                                │
# │                    │    body: "{ ... }"    │                                │
# │                    └───────────┬───────────┘                                │
# │                                │                                            │
# │                                ▼                                            │
# │                    ┌───────────────────────┐                                │
# │                    │    with_auth_header   │                                │
# │                    │       fetch:          │                                │
# │                    │   Authorization: ...  │                                │
# │                    └───────────┬───────────┘                                │
# │                                │                                            │
# │                                ▼                                            │
# │                    ┌───────────────────────┐                                │
# │                    │    display_results    │                                │
# │                    │        exec:          │                                │
# │                    │   "echo All done!"    │                                │
# │                    └───────────────────────┘                                │
# │                                                                             │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# FEATURES DEMONSTRATED:
# ├── fetch: with GET method
# ├── fetch: with POST and body (string)
# ├── fetch: with POST and json (auto-serialized)
# ├── headers: custom HTTP headers
# ├── timeout: request timeout (seconds)
# └── with: parsing JSON responses
#
# PREREQUISITES: None! Uses httpbin.org (free public API)
#
# RUN: nika run workflows/tier-1-no-deps/02-fetch-http.nika.yaml
#
# ══════════════════════════════════════════════════════════════════════════════

schema: "nika/workflow@0.12"
workflow: fetch-http
description: "Learn HTTP requests - GET, POST, headers, JSON parsing"

tasks:
  # ─────────────────────────────────────────────────────────────────────────────
  # SIMPLE GET REQUEST
  # ─────────────────────────────────────────────────────────────────────────────
  - id: simple_get
    fetch:
      # URL to fetch
      url: "https://httpbin.org/ip"
      # HTTP method (GET is default, but explicit is clearer)
      method: GET
      # Timeout in seconds
      timeout: 10

  # ─────────────────────────────────────────────────────────────────────────────
  # GET JSON DATA
  # ─────────────────────────────────────────────────────────────────────────────
  - id: get_json
    fetch:
      url: "https://httpbin.org/json"
      method: GET
      # Response is automatically parsed if Content-Type is application/json

  # ─────────────────────────────────────────────────────────────────────────────
  # GET WITH CUSTOM HEADERS
  # ─────────────────────────────────────────────────────────────────────────────
  - id: get_headers
    fetch:
      url: "https://httpbin.org/headers"
      method: GET
      # Custom headers to send
      headers:
        Accept: "application/json"
        X-Custom-Header: "Nika-Workflow"
        User-Agent: "Nika/0.30.5"

  # ─────────────────────────────────────────────────────────────────────────────
  # POST WITH JSON BODY (String Method)
  # ─────────────────────────────────────────────────────────────────────────────
  - id: post_data
    depends_on: [simple_get, get_json]
    with:
      # Reference results from previous tasks
      my_ip: $simple_get
      json_data: $get_json
    fetch:
      url: "https://httpbin.org/post"
      method: POST
      # Headers for JSON content
      headers:
        Content-Type: "application/json"
        Accept: "application/json"
      # Body as JSON string (old method - still works)
      body: '{"message": "Hello from Nika!", "ip": "{{with.my_ip}}", "nested": {"key": "value", "number": 42}}'

  # ─────────────────────────────────────────────────────────────────────────────
  # POST WITH JSON (Auto-serialized)
  # ─────────────────────────────────────────────────────────────────────────────
  - id: post_json_auto
    depends_on: [post_data]
    fetch:
      url: "https://httpbin.org/post"
      method: POST
      # json: auto-serializes and sets Content-Type header
      # No need to manually stringify or set Content-Type!
      json:
        message: "Hello from Nika!"
        features:
          - "auto-serialization"
          - "automatic Content-Type header"
          - "cleaner YAML syntax"
        nested:
          key: "value"
          number: 42
          enabled: true

  # ─────────────────────────────────────────────────────────────────────────────
  # AUTHENTICATED REQUEST
  # ─────────────────────────────────────────────────────────────────────────────
  - id: with_auth_header
    depends_on: [post_json_auto]
    fetch:
      url: "https://httpbin.org/bearer"
      method: GET
      headers:
        # Bearer token authentication (this is a test endpoint)
        Authorization: "Bearer test-token-12345"
        Accept: "application/json"
      # Request timeout
      timeout: 10

  # ─────────────────────────────────────────────────────────────────────────────
  # DISPLAY ALL RESULTS
  # ─────────────────────────────────────────────────────────────────────────────
  - id: display_results
    depends_on: [with_auth_header]
    with:
      ip_result: $simple_get
      json_result: $get_json
      headers_result: $get_headers
      post_result: $post_data
      post_json_result: $post_json_auto
      auth_result: $with_auth_header
    exec:
      command: |
        echo "══════════════════════════════════════════════════════════════"
        echo "                    🌐 HTTP FETCH RESULTS"
        echo "══════════════════════════════════════════════════════════════"
        echo ""
        echo "📡 GET /ip:"
        echo "{{with.ip_result}}"
        echo ""
        echo "📦 GET /json:"
        echo "{{with.json_result}}" | head -5
        echo ""
        echo "📋 GET /headers (with custom headers):"
        echo "{{with.headers_result}}" | head -5
        echo ""
        echo "📤 POST /post (with body: string):"
        echo "{{with.post_result}}" | head -8
        echo ""
        echo "🆕 POST /post (with json: auto-serialized):"
        echo "{{with.post_json_result}}" | head -8
        echo ""
        echo "🔐 GET /bearer (with auth):"
        echo "{{with.auth_result}}"
        echo ""
        echo "══════════════════════════════════════════════════════════════"
        echo "✅ All fetch examples completed successfully!"
        echo ""
        echo "💡 Key takeaways:"
        echo "   • Use method: GET, POST, PUT, DELETE, PATCH"
        echo "   • Add custom headers: for auth, content-type, etc."
        echo "   • Use body: for request body (string)"
        echo "   • Use json: for auto-serialized JSON body"
        echo "   • timeout: prevents hanging on slow endpoints (seconds)"
      shell: true
"##;

/// 03: Core builtin tools
pub const WORKFLOW_03_BUILTINS_CORE: &str = r##"# ══════════════════════════════════════════════════════════════════════════════
# 🔧 03 - BUILTIN CORE TOOLS
# ══════════════════════════════════════════════════════════════════════════════
#
# Learn Nika's core builtin tools - logging, sleeping, events, and assertions!
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │                            WORKFLOW FLOW                                    │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │                                                                             │
# │   ┌───────────────┐                                                         │
# │   │    start      │                                                         │
# │   │  nika:log     │◄── "Workflow starting..."                               │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │   validate    │                                                         │
# │   │ nika:assert   │◄── condition: true (passes!)                            │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │  emit_event   │                                                         │
# │   │  nika:emit    │◄── custom event with payload                            │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │   pause_1s    │                                                         │
# │   │  nika:sleep   │◄── duration: "1s"                                       │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │   progress    │                                                         │
# │   │  nika:emit    │◄── progress: 50%                                        │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │  pause_500ms  │                                                         │
# │   │  nika:sleep   │◄── duration: "500ms"                                    │
# │   └───────┬───────┘                                                         │
# │           │                                                                 │
# │           ▼                                                                 │
# │   ┌───────────────┐                                                         │
# │   │   complete    │                                                         │
# │   │  nika:log     │◄── level: info "Done!"                                  │
# │   └───────────────┘                                                         │
# │                                                                             │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# BUILTIN TOOLS DEMONSTRATED:
# ├── nika:log     → Emit log events (trace/debug/info/warn/error)
# ├── nika:sleep   → Pause execution (humantime: "1s", "500ms", "2m30s")
# ├── nika:emit    → Emit custom events with JSON payload
# └── nika:assert  → Validate conditions (fails workflow if false)
#
# OTHER BUILTINS (not in this demo):
# ├── nika:prompt  → Ask user for input (HITL)
# ├── nika:run     → Execute sub-workflow
# └── nika:complete → Signal agent completion (agent-only)
#
# PREREQUISITES: None! Works out of the box.
#
# RUN: nika run workflows/tier-1-no-deps/03-builtins-core.nika.yaml
#
# ══════════════════════════════════════════════════════════════════════════════

schema: "nika/workflow@0.12"
workflow: builtins-core
description: "Learn Nika's core builtin tools - log, sleep, emit, assert"

tasks:
  # ─────────────────────────────────────────────────────────────────────────────
  # nika:log - Emit log events at different levels
  # ─────────────────────────────────────────────────────────────────────────────
  - id: start_log
    invoke:
      # For builtin tools, we don't need an MCP server
      # Just specify the tool directly
      tool: nika:log
      params:
        # Log levels: trace, debug, info, warn, error
        level: info
        message: "🚀 Workflow starting! This is nika:log in action."

  # ─────────────────────────────────────────────────────────────────────────────
  # nika:assert - Validate conditions
  # ─────────────────────────────────────────────────────────────────────────────
  - id: validate_condition
    depends_on: [start_log]
    invoke:
      tool: nika:assert
      params:
        # Condition must be true, otherwise workflow fails with NIKA-213
        condition: true
        # Custom message shown if assertion fails
        message: "This assertion should pass!"

  - id: validate_expression
    depends_on: [validate_condition]
    invoke:
      tool: nika:assert
      params:
        # You can use more complex boolean conditions
        condition: true  # In real workflows, this could check bindings
        message: "Validating that setup completed correctly"

  # ─────────────────────────────────────────────────────────────────────────────
  # nika:emit - Emit custom events with payload
  # ─────────────────────────────────────────────────────────────────────────────
  - id: emit_start_event
    depends_on: [validate_expression]
    invoke:
      tool: nika:emit
      params:
        # Event name (appears in trace)
        name: "workflow_started"
        # JSON payload (any structure)
        payload:
          workflow: "builtins-core"
          version: "1.0.0"
          timestamp: "now"
          metadata:
            source: "nika-init-example"
            tier: 1

  # ─────────────────────────────────────────────────────────────────────────────
  # nika:sleep - Pause execution
  # ─────────────────────────────────────────────────────────────────────────────
  - id: pause_1_second
    depends_on: [emit_start_event]
    invoke:
      tool: nika:sleep
      params:
        # Humantime format: "1s", "500ms", "2m30s", "1h", etc.
        duration: "1s"

  - id: log_after_sleep
    depends_on: [pause_1_second]
    invoke:
      tool: nika:log
      params:
        level: debug
        message: "⏰ Slept for 1 second. Continuing..."

  # ─────────────────────────────────────────────────────────────────────────────
  # PROGRESS TRACKING with nika:emit
  # ─────────────────────────────────────────────────────────────────────────────
  - id: emit_progress_50
    depends_on: [log_after_sleep]
    invoke:
      tool: nika:emit
      params:
        name: "progress"
        payload:
          percent: 50
          stage: "midpoint"
          message: "Halfway there!"

  - id: pause_500ms
    depends_on: [emit_progress_50]
    invoke:
      tool: nika:sleep
      params:
        duration: "500ms"

  - id: emit_progress_100
    depends_on: [pause_500ms]
    invoke:
      tool: nika:emit
      params:
        name: "progress"
        payload:
          percent: 100
          stage: "complete"
          message: "All done!"

  # ─────────────────────────────────────────────────────────────────────────────
  # FINAL LOG
  # ─────────────────────────────────────────────────────────────────────────────
  - id: final_log
    depends_on: [emit_progress_100]
    invoke:
      tool: nika:log
      params:
        level: info
        message: |
          ✅ Builtins demo complete!

          Tools demonstrated:
          • nika:log   - Log messages at different levels
          • nika:assert - Validate conditions
          • nika:emit  - Emit custom events
          • nika:sleep - Pause execution

          Check your trace file to see all events!

  # ─────────────────────────────────────────────────────────────────────────────
  # SUMMARY (using exec to show results)
  # ─────────────────────────────────────────────────────────────────────────────
  - id: summary
    depends_on: [final_log]
    exec:
      command: |
        echo ""
        echo "══════════════════════════════════════════════════════════════"
        echo "              🔧 BUILTIN TOOLS SUMMARY"
        echo "══════════════════════════════════════════════════════════════"
        echo ""
        echo "Core Builtins (6):"
        echo "  nika:log     Log messages (trace/debug/info/warn/error)"
        echo "  nika:sleep   Pause execution (humantime format)"
        echo "  nika:emit    Emit custom events with JSON payload"
        echo "  nika:assert  Validate conditions (fail if false)"
        echo "  nika:prompt  Ask user for input (HITL)"
        echo "  nika:run     Execute sub-workflow"
        echo ""
        echo "File Builtins (5) - Agent-only:"
        echo "  nika:read    Read file content"
        echo "  nika:write   Create/overwrite file"
        echo "  nika:edit    Find & replace in file"
        echo "  nika:glob    Find files by pattern"
        echo "  nika:grep    Search content with regex"
        echo ""
        echo "Agent Completion:"
        echo "  nika:complete  Signal agent task completion"
        echo ""
        echo "══════════════════════════════════════════════════════════════"
      shell: true
"##;