arkaos 3.1.0 → 3.2.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.1.0
1
+ 3.2.0
@@ -27,6 +27,8 @@ _VALID_FIELDS: tuple[str, ...] = (
27
27
  "mental_models",
28
28
  "frameworks",
29
29
  "expertise_domains",
30
+ "communication_avoid",
31
+ "key_quotes",
30
32
  )
31
33
  _MAX_COUNT = 12
32
34
  _DEFAULT_COUNT = 5
@@ -40,6 +42,23 @@ _FIELD_LABELS: dict[str, str] = {
40
42
  "mental_models": "mental models",
41
43
  "frameworks": "frameworks",
42
44
  "expertise_domains": "expertise domains",
45
+ "communication_avoid": "phrases this profile should AVOID using",
46
+ "key_quotes": "verbatim or paraphrased key quotes",
47
+ }
48
+
49
+ # Field-specific length hints — different fields want different item shapes.
50
+ _FIELD_LENGTH_HINT: dict[str, str] = {
51
+ "mental_models": "Return a JSON array of short strings (2-5 words each).",
52
+ "frameworks": "Return a JSON array of short strings (2-5 words each).",
53
+ "expertise_domains": "Return a JSON array of short strings (2-5 words each).",
54
+ "communication_avoid": (
55
+ "Return a JSON array of short phrases (2-6 words each) that the "
56
+ "profile would never say or write."
57
+ ),
58
+ "key_quotes": (
59
+ "Return a JSON array of full sentences (8-25 words each), each "
60
+ "phrased as if the person said it. No attribution prefixes."
61
+ ),
43
62
  }
44
63
 
45
64
 
@@ -94,10 +113,8 @@ def _build_prompt(field: str, context: dict, count: int) -> str:
94
113
  + ", ".join(current)
95
114
  + "."
96
115
  )
97
- lines.append(
98
- "Return a JSON array of short strings (2-5 words each). "
99
- "No explanations, no numbering, no surrounding object."
100
- )
116
+ lines.append(_FIELD_LENGTH_HINT[field])
117
+ lines.append("No explanations, no numbering, no surrounding object.")
101
118
  return "\n".join(lines)
102
119
 
103
120
 
@@ -111,7 +111,8 @@ function csvToList(value: string): string[] {
111
111
  }
112
112
 
113
113
  // PR81 v2.99.0 — AI list-field suggester.
114
- type SuggestField = 'mental_models_primary' | 'frameworks' | 'expertise_domains'
114
+ // PR82c v3.2.0 extended with 'communication_avoid'.
115
+ type SuggestField = 'mental_models_primary' | 'frameworks' | 'expertise_domains' | 'communication_avoid'
115
116
  const suggestingField = ref<SuggestField | null>(null)
116
117
 
117
118
  async function suggest(field: SuggestField) {
@@ -122,7 +123,9 @@ async function suggest(field: SuggestField) {
122
123
  ? draft.value.mental_models.primary
123
124
  : field === 'frameworks'
124
125
  ? draft.value.frameworks
125
- : draft.value.expertise_domains
126
+ : field === 'expertise_domains'
127
+ ? draft.value.expertise_domains
128
+ : draft.value.communication.avoid
126
129
  suggestingField.value = field
127
130
  try {
128
131
  const res = await $fetch<{
@@ -159,8 +162,10 @@ async function suggest(field: SuggestField) {
159
162
  draft.value.mental_models.primary = merged
160
163
  } else if (field === 'frameworks') {
161
164
  draft.value.frameworks = merged
162
- } else {
165
+ } else if (field === 'expertise_domains') {
163
166
  draft.value.expertise_domains = merged
167
+ } else {
168
+ draft.value.communication.avoid = merged
164
169
  }
165
170
  markDirty()
166
171
  toast.add({
@@ -437,6 +442,18 @@ const vocabOptions = [
437
442
  </UFormField>
438
443
  </div>
439
444
  <UFormField label="Avoid (phrases)" help="comma-separated">
445
+ <template #hint>
446
+ <UButton
447
+ label="Suggest with AI"
448
+ icon="i-lucide-sparkles"
449
+ size="xs"
450
+ color="primary"
451
+ variant="soft"
452
+ :loading="suggestingField === 'communication_avoid'"
453
+ :disabled="suggestingField !== null"
454
+ @click="suggest('communication_avoid')"
455
+ />
456
+ </template>
440
457
  <UInput
441
458
  :model-value="listToCsv(draft.communication.avoid)"
442
459
  @update:model-value="(v: string) => { if (draft) { draft.communication.avoid = csvToList(v); markDirty() } }"
@@ -202,7 +202,8 @@ function csvToList(value: string): string[] {
202
202
  }
203
203
 
204
204
  // PR81 suggest wiring — three list fields.
205
- type SuggestField = 'mental_models' | 'frameworks' | 'expertise_domains'
205
+ // PR82c v3.2.0 extended with 'communication_avoid'.
206
+ type SuggestField = 'mental_models' | 'frameworks' | 'expertise_domains' | 'communication_avoid'
206
207
  const suggestingField = ref<SuggestField | null>(null)
207
208
 
208
209
  async function suggest(field: SuggestField) {
@@ -211,7 +212,9 @@ async function suggest(field: SuggestField) {
211
212
  ? draft.value.mental_models_primary
212
213
  : field === 'frameworks'
213
214
  ? draft.value.frameworks
214
- : draft.value.expertise_domains
215
+ : field === 'expertise_domains'
216
+ ? draft.value.expertise_domains
217
+ : draft.value.comm_avoid
215
218
  if (!draft.value.name.trim() || !draft.value.role.trim()) {
216
219
  toast.add({
217
220
  title: 'Add a name and role first',
@@ -250,7 +253,8 @@ async function suggest(field: SuggestField) {
250
253
  const merged = [...current, ...additions]
251
254
  if (field === 'mental_models') draft.value.mental_models_primary = merged
252
255
  else if (field === 'frameworks') draft.value.frameworks = merged
253
- else draft.value.expertise_domains = merged
256
+ else if (field === 'expertise_domains') draft.value.expertise_domains = merged
257
+ else draft.value.comm_avoid = merged
254
258
  toast.add({
255
259
  title: `Added ${additions.length} suggestion${additions.length === 1 ? '' : 's'}`,
256
260
  description: `via ${res.provider_name}`,
@@ -553,6 +557,18 @@ const bigFiveKeys = ['openness', 'conscientiousness', 'extraversion', 'agreeable
553
557
  </UFormField>
554
558
  </div>
555
559
  <UFormField label="Avoid (phrases)" help="comma-separated">
560
+ <template #hint>
561
+ <UButton
562
+ label="Suggest with AI"
563
+ icon="i-lucide-sparkles"
564
+ size="xs"
565
+ color="primary"
566
+ variant="soft"
567
+ :loading="suggestingField === 'communication_avoid'"
568
+ :disabled="suggestingField !== null"
569
+ @click="suggest('communication_avoid')"
570
+ />
571
+ </template>
556
572
  <UInput
557
573
  :model-value="listToCsv(draft.comm_avoid)"
558
574
  @update:model-value="(v: string) => { draft.comm_avoid = csvToList(v) }"
@@ -222,12 +222,16 @@ function csvToList(value: string): string[] {
222
222
  }
223
223
 
224
224
  // PR81 v2.99.0 — AI list-field suggester for personas.
225
- type SuggestField = 'mental_models' | 'frameworks' | 'expertise_domains'
225
+ // PR82c v3.2.0 extended with 'communication_avoid' and 'key_quotes'.
226
+ type SuggestField = 'mental_models' | 'frameworks' | 'expertise_domains' | 'communication_avoid' | 'key_quotes'
226
227
  const suggestingField = ref<SuggestField | null>(null)
227
228
 
228
229
  async function suggest(field: SuggestField) {
229
230
  if (!draft.value || !detail.value) return
230
- const current = (draft.value as any)[field] as string[]
231
+ const current
232
+ = field === 'communication_avoid'
233
+ ? (draft.value.communication.avoid ?? [])
234
+ : ((draft.value as any)[field] as string[] ?? [])
231
235
  suggestingField.value = field
232
236
  try {
233
237
  const res = await $fetch<{
@@ -258,7 +262,12 @@ async function suggest(field: SuggestField) {
258
262
  })
259
263
  return
260
264
  }
261
- ;(draft.value as any)[field] = [...current, ...additions]
265
+ const merged = [...current, ...additions]
266
+ if (field === 'communication_avoid') {
267
+ draft.value.communication.avoid = merged
268
+ } else {
269
+ ;(draft.value as any)[field] = merged
270
+ }
262
271
  markDirty()
263
272
  toast.add({
264
273
  title: `Added ${additions.length} suggestion${additions.length === 1 ? '' : 's'}`,
@@ -751,6 +760,52 @@ const vocabOptions = [
751
760
  <USelect v-model="draft.communication.vocabulary_level" :items="vocabOptions" class="w-full" @update:model-value="markDirty" />
752
761
  </UFormField>
753
762
  </div>
763
+ <UFormField label="Avoid (phrases)" help="comma-separated">
764
+ <template #hint>
765
+ <UButton
766
+ label="Suggest with AI"
767
+ icon="i-lucide-sparkles"
768
+ size="xs"
769
+ color="primary"
770
+ variant="soft"
771
+ :loading="suggestingField === 'communication_avoid'"
772
+ :disabled="suggestingField !== null"
773
+ @click="suggest('communication_avoid')"
774
+ />
775
+ </template>
776
+ <UInput
777
+ :model-value="listToCsv(draft.communication.avoid)"
778
+ @update:model-value="(v: string) => { if (draft) { draft.communication.avoid = csvToList(v); markDirty() } }"
779
+ class="w-full"
780
+ />
781
+ </UFormField>
782
+ </section>
783
+
784
+ <section class="space-y-3">
785
+ <div class="flex items-center justify-between">
786
+ <h3 class="text-xs font-semibold uppercase tracking-wider text-muted">Key quotes</h3>
787
+ <UButton
788
+ label="Suggest with AI"
789
+ icon="i-lucide-sparkles"
790
+ size="xs"
791
+ color="primary"
792
+ variant="soft"
793
+ :loading="suggestingField === 'key_quotes'"
794
+ :disabled="suggestingField !== null"
795
+ @click="suggest('key_quotes')"
796
+ />
797
+ </div>
798
+ <UTextarea
799
+ :model-value="(draft.key_quotes ?? []).join('\n')"
800
+ :rows="4"
801
+ placeholder="One quote per line. Verbatim or paraphrased."
802
+ @update:model-value="(v: string) => { if (draft) { draft.key_quotes = v.split('\n').map((q) => q.trim()).filter(Boolean); markDirty() } }"
803
+ class="w-full"
804
+ />
805
+ <p class="text-xs text-muted">
806
+ {{ (draft.key_quotes ?? []).length }} quote{{ (draft.key_quotes ?? []).length === 1 ? '' : 's' }}.
807
+ One per line.
808
+ </p>
754
809
  </section>
755
810
  </div>
756
811
 
@@ -209,9 +209,11 @@ export interface Persona {
209
209
  mental_models: string[]
210
210
  expertise_domains: string[]
211
211
  frameworks: string[]
212
+ key_quotes?: string[]
212
213
  communication: {
213
214
  tone: string
214
215
  vocabulary_level: string
216
+ avoid?: string[]
215
217
  }
216
218
  cloned_to_agents: string[]
217
219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "3.1.0",
3
+ "version": "3.2.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.1.0"
3
+ version = "3.2.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"}