codsh-cli 0.1.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.
@@ -0,0 +1,165 @@
1
+ # The codsh bundle patch: the interactive terminal surface over
2
+ # dsh-base. It mounts no Host, HTTP server, Web runtime, or browser plugin —
3
+ # the surface shares the process with the Agent, so it reads `ctx.agents`
4
+ # directly instead of through the API gateway, which exists to carry
5
+ # out-of-process clients.
6
+ #
7
+ # An ordinary provider plugin injects `cmdlineArgs`, parses this app's flags,
8
+ # then the runner creates an Agent through the core registry, mounts the
9
+ # preset the roster resolves, renders the session log to the TTY, and answers
10
+ # approvals and questions from the keyboard.
11
+
12
+ - id: system-prompt
13
+ config:
14
+ persona: >-
15
+ You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
16
+
17
+ # The shared module-reload HMR row stays off; the launcher's watch-only
18
+ # fallback still keeps the user patch layers live until the run exits.
19
+ - id: hmr
20
+ disabled: true
21
+
22
+ - id: tools
23
+ config:
24
+ # Keep the same temporary process-wide Code Mode opt-in as the Web surface.
25
+ mode: !!js process.env.DSH_TOOLS_MODE
26
+
27
+ # ── per-agent rows move behind the preset ───────────────────────────────────
28
+ #
29
+ # Every model-facing row below is composed by the mounted preset instead, so
30
+ # the tool registry's global layer stays empty and an agent sees exactly what
31
+ # its preset grants. Disabling rather than deleting is deliberate: the base is
32
+ # shared, and a row absent from a surface overlay would silently reappear the
33
+ # day someone reorders the composition.
34
+ #
35
+ # `shell-env` STAYS in the host plane: a host row that injects a service is the
36
+ # criterion for host-plane ownership — injection resolves before any session
37
+ # exists, so there is no agent to key by.
38
+
39
+ - id: tool-bash
40
+ disabled: true
41
+
42
+ - id: tool-pwsh
43
+ disabled: true
44
+
45
+ # The background-job REGISTRY stays on the host plane; only the model-facing
46
+ # `job_*` controls move. Its producers are preset rows that resolve it with
47
+ # `ctx.get`, and an entry-local realm around the registry is invisible to every
48
+ # sibling row outside that realm. The registry is keyed by owning agent, so one
49
+ # host instance serves every session.
50
+
51
+ - id: tool-jobs
52
+ disabled: true
53
+
54
+ - id: tool-fs
55
+ disabled: true
56
+
57
+ - id: tool-fs-search
58
+ disabled: true
59
+
60
+ - id: tool-str-replace-editor
61
+ disabled: true
62
+
63
+ # The `skill` REGISTRY stays in the host plane, host+per-scope layered:
64
+ # deployment-level providers register into its global layer while a preset's
65
+ # `skill-filesystem` registers into that preset's layer, and each agent reads
66
+ # the merged catalog its scope chain selects.
67
+
68
+ - id: skill-filesystem
69
+ disabled: true
70
+
71
+ - id: tool-skill
72
+ disabled: true
73
+
74
+ # The goal SERVICE and its session driver STAY on the host plane; only the
75
+ # model-facing tool moves. The registry is keyed by session, so one host
76
+ # instance serves every session.
77
+
78
+ - id: tool-goal
79
+ disabled: true
80
+
81
+ - id: plan-mode
82
+ disabled: true
83
+
84
+ # The token METER stays on the host plane; only the compaction backend that
85
+ # reads it moves. It owns the context-meter projection units the terminal
86
+ # status line reads, and that table is process-wide, so preset ownership would
87
+ # make the meter a function of which presets happen to be mounted.
88
+
89
+ - id: compaction-basic
90
+ disabled: true
91
+
92
+ - id: command-compact
93
+ disabled: true
94
+
95
+ - id: tool-result-pruner
96
+ disabled: true
97
+
98
+ # The subagent registry and its backends STAY in the host plane. `subagents` is
99
+ # a process singleton, and a provider registers under a globally unique name,
100
+ # so a per-session copy would both starve that host row and collide on the
101
+ # second session. What a preset chooses is which delegation TOOLS its agent
102
+ # sees.
103
+
104
+ - id: tool-subagent-control
105
+ disabled: true
106
+
107
+ - id: tool-subagent-list-agents
108
+ disabled: true
109
+
110
+ - id: tool-subagent
111
+ disabled: true
112
+
113
+ - id: tool-subagent-fork
114
+ disabled: true
115
+
116
+ - id: workflow-worker-thread
117
+ disabled: true
118
+
119
+ - id: tool-workflow
120
+ disabled: true
121
+
122
+ - id: tool-ralph
123
+ disabled: true
124
+
125
+ - id: agent-instructions
126
+ disabled: true
127
+
128
+ - id: tool-todo
129
+ disabled: true
130
+
131
+ - id: tool-web
132
+ disabled: true
133
+
134
+ - insert:
135
+ # Code Mode is a core execution capability, not a Web component.
136
+ - id: code-runtime
137
+ name: '@deepseek-ai/dsh-code-runtime-worker-thread'
138
+
139
+ # The preset roster. `config/agent-presets/` ships with the deployment and
140
+ # is read-only (its entries carry `system` trust); `$DSH_HOME/.agent-presets`
141
+ # is where a person — or an agent — authors their own, and carries the same
142
+ # trust as shell access because a preset IS a composition.
143
+ #
144
+ # Only the SHIPPED root is an assembly fact: it sits beside the installed
145
+ # app's own config, so `apps/cli`'s `composeProfile` resolves and patches it
146
+ # in. The writable root is `dsh-agent-presets`' own default
147
+ # (`includeUserRoot`), so a composition that never reaches that patch still
148
+ # finds a person's presets.
149
+ - id: agent-presets
150
+ name: '@deepseek-ai/dsh-agent-presets'
151
+ config:
152
+ default: code-cli
153
+
154
+ - id: coding-cli-startup
155
+ name: 'codsh-cli/startup'
156
+
157
+ # Reads its invocation from the ordinary codingCliStartup provider.
158
+ - id: coding-cli-runner
159
+ name: 'codsh-cli'
160
+ inject: [codingCliStartup]
161
+ config:
162
+ task: !!js ctx.codingCliStartup.task
163
+ resume: !!js ctx.codingCliStartup.resume
164
+ preset: !!js ctx.codingCliStartup.preset
165
+ print: !!js ctx.codingCliStartup.print