arkaos 3.61.0 → 3.62.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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.61.0
1
+ 3.62.0
@@ -177,6 +177,54 @@ async function saveYamlEditor() {
177
177
  }
178
178
  }
179
179
 
180
+ // PR97d v3.62.0 — inline edit for name / role.
181
+ type InlineField = 'name' | 'role'
182
+ const inlineField = ref<InlineField | null>(null)
183
+ const inlineDraft = ref('')
184
+ const inlineSaving = ref(false)
185
+
186
+ function startInline(field: InlineField, current: string | undefined) {
187
+ inlineField.value = field
188
+ inlineDraft.value = current ?? ''
189
+ }
190
+ function cancelInline() {
191
+ inlineField.value = null
192
+ inlineDraft.value = ''
193
+ }
194
+ async function commitInline(field: InlineField) {
195
+ if (!agent.value || inlineField.value !== field) return
196
+ const next = inlineDraft.value.trim()
197
+ const current = (field === 'name' ? agent.value.name : agent.value.role) ?? ''
198
+ if (!next || next === current) {
199
+ cancelInline()
200
+ return
201
+ }
202
+ inlineSaving.value = true
203
+ try {
204
+ const res = await $fetch<{ updated?: boolean, error?: string }>(
205
+ `${apiBase}/api/agents/${agentId}`,
206
+ { method: 'PUT', body: { [field]: next } },
207
+ )
208
+ if (res.error) throw new Error(res.error)
209
+ toast.add({
210
+ title: field === 'name' ? 'Name updated' : 'Role updated',
211
+ description: next,
212
+ color: 'success',
213
+ icon: 'i-lucide-check',
214
+ })
215
+ await refresh()
216
+ } catch (err) {
217
+ toast.add({
218
+ title: 'Save failed',
219
+ description: err instanceof Error ? err.message : 'unknown error',
220
+ color: 'error',
221
+ })
222
+ } finally {
223
+ inlineSaving.value = false
224
+ inlineField.value = null
225
+ }
226
+ }
227
+
180
228
  // PR89d v3.30.0 — download YAML.
181
229
  const downloadingYaml = ref(false)
182
230
  async function downloadYaml() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "3.61.0",
3
+ "version": "3.62.0",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkaos-core"
3
- version = "3.61.0"
3
+ version = "3.62.0"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}