aai-coding 0.1.4__tar.gz → 0.1.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aai-coding
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Shared configuration, hooks, prompts, and skills for Answer.AI coding sessions
5
5
  Author: aai-coding contributors
6
6
  License-Expression: Apache-2.0
@@ -0,0 +1 @@
1
+ __version__ = "0.1.5"
@@ -217,8 +217,10 @@ def synthetic_resume(path):
217
217
  return datetime.fromisoformat(bt.replace('Z', '+00:00')).timestamp() if bt else datetime.now().timestamp()
218
218
 
219
219
 
220
- COMPACT_MSG = '**Post-compaction: your context was rewritten — doc() output is gone and skill texts are stale snapshots — but the kernel process survived untouched: namespace, imports, and current-notebook defaults are all still live, so do not re-run startup or re-import.** Read doc(f) again before using any tooling function whose docs you no longer hold. Re-invoke `persistent-python` now — the live SKILL.md always wins over a replayed snapshot. Then run `list_pyskills()`: compaction drops the pyskill catalog from context, and without it you will not know which tools exist. The summary\'s "resume directly / pick up the last task" instruction applies only when it records work actually in flight: if the last user message was already answered and no task is open, do not re-answer or resume anything from before the compact — reply with one short line and wait for the next message.'
221
- SYNTH_MSG = '**Post-compaction resume: the conversation context was rewritten and the kernel restarted with a clean namespace.** Tool documentation and skill text shown in the reconstructed history may be truncated or stale: read doc(f) again before using any tooling function whose docs you no longer hold. Re-invoke `persistent-python` now, and rebuild variables, current-notebook defaults, and monkeypatches on demand. Then run `list_pyskills()`: compaction drops the pyskill catalog from context, and without it you will not know which tools exist. The summary\'s "resume directly / pick up the last task" instruction applies only when it records work actually in flight: if the last user message was already answered and no task is open, do not re-answer or resume anything from before the compact — reply with one short line and wait for the next message.'
220
+ _COMPACT_RELOAD = 're-read all task skills and pyskills (`doc()`) referenced before compaction, plus all referenced `README`/`DEV` files'
221
+ _CC_COMPACT_TAIL = f'Re-invoke `persistent-python` now (live `SKILL.md` wins over snapshots), run `list_pyskills()`, {_COMPACT_RELOAD}, and read `doc(f)` before using any tooling function not in full in context. The summary\'s "resume directly / pick up the last task" applies only when work is actually in flight: if the last user message was already answered and no task is open, do not re-answer or resume anything from before compaction — reply with one short line and wait.'
222
+ COMPACT_MSG = f'**Post-compaction: context was rewritten (`doc()` output gone, skill texts are stale snapshots), but the kernel process survived untouched — namespace, imports, and current-notebook defaults are live, so do not re-run startup or re-import.** {_CC_COMPACT_TAIL}'
223
+ SYNTH_MSG = f'**Post-compaction resume: context was rewritten (`doc()` and skill text in reconstructed history may be truncated or stale) and the kernel restarted with a clean namespace — rebuild variables, current-notebook defaults, and monkeypatches on demand.** {_CC_COMPACT_TAIL}'
222
224
  RESUME_MSG = '**Post-resume: your context is exactly as it was when the app closed — everything you can still see (doc() output) remains valid — but the kernel restarted with a clean namespace (kernel startup re-ran, so its imports are back).** Rebuild other session state on demand (variables, set_dlg, monkeypatches).'
223
225
  BOOTSTRAP_MSG = '**NEVER touch local files or run code before completing the bootstrap. "Touch" means any file read, edit, search, or listing (Read/Edit/Grep/Glob, Bash, `fd`/`rg`), any clikernel `py`, and any subagent that would do these on your behalf — however small it looks: one quick read counts, one search counts, "just checking one thing" counts. Bootstrap = invoke the `persistent-python` skill and follow its startup steps. Work that never reaches for the filesystem — pure discussion, web research, browser automation — never hits the trigger and needs no bootstrap. Why: this project runs on a persistent Python workbench with curated pyskills, and unbootstrapped sessions reliably regress to ad-hoc Bash and one-off scripts that cost more to review than the bootstrap costs to run.** After bootstrapping, map each task to a pyskill from the `list_pyskills()` catalog before writing ad hoc code, in Bash or the kernel, and read the project `README.md` and `DEV.md` before starting work.'
224
226
  NB_MSG = '**Notebook project ({loc}):** `# AUTOGENERATED!` `.py` files come from notebooks; never edit them. Before any read, review, or edit, MUST read `doc(fastship.notebooks)` if not in full in context (house style differs from priors; skipping it equals editing generated `.py`). Search by cell id (`nbrg()`), read and diff notebooks, edit via `exhash`.'
@@ -296,7 +298,7 @@ def claude_subagent_start(o):
296
298
 
297
299
  AIR_ROUNDS, AIR_RENUDGE, AIR_SUBSTANCE = 8, 5, 100
298
300
  AIR_QUOTE, AIR_SHORT = 400, 20
299
- AIR_MSG = 'You may have made {0} tool rounds without surfacing. Write real response text that re-points your attention (long runs collapse it onto recent results). What did the last few results show that you didn\'t expect? Which part of this request is your next step serving{1}? Name your most questionable recent tool call (nbdev => nb tooling, pyskills over Bash, exhash for edits, wrapping param in unneeded str() or Path().expanduser, unneeded final print()) and correct it if wrong (do not mention this in your final reply to the user). Write upcoming user-facing text as write_docs describes. Re-read any docstrings, docs, or comments you wrote since the last surfacing and fix them to the same standard. If this reads like your last surfacing, you haven\'t reconnected.'
301
+ AIR_MSG = '{0} tool rounds without surfacing (long runs collapse attention onto recent results). Surface with real text: what surprised you recently? Which part of the request does the next step serve{1}? Name your most questionable recent tool call (notebooks => nb tooling, pyskills over Bash, exhash for edits, unneeded str()/Path().expanduser(), unneeded final print()) and fix if wrong (omit from final reply). Upcoming user-facing text and any docstrings/docs/comments written since last surfacing: match write_docs. Reads like last surfacing => not reconnected.'
300
302
  _NOT_PROMPT = ('<task-notification>', '<system-reminder>', '<command-', '<local-command', 'Caveat:', '[Request interrupted')
301
303
 
302
304
 
@@ -437,7 +439,7 @@ def _boot_str():
437
439
  from clikernel.core import boot_calls
438
440
  return ', '.join(f'`{c}`' for c in boot_calls())
439
441
 
440
- CODEX_COMPACT_MSG = 'Context was compacted (a summary does not count as in full). Before any local read, search, edit, notebook work, or Python execution, run any of {boot} not in full in context in one parallel batch, follow their instructions, and read `doc()` for any matching task pyskill or `…`-truncated function before first use.'
442
+ CODEX_COMPACT_MSG = f'Post-compaction (a summary does not count as in full). Before any local read, search, edit, notebook work, or Python execution: run any of {{boot}} not in full in context in one parallel batch and follow them; {_COMPACT_RELOAD}; read `doc()` for any matching task pyskill or `…`-truncated function before first use.'
441
443
 
442
444
 
443
445
  def codex_orientation(o):
@@ -449,7 +451,7 @@ def codex_orientation(o):
449
451
  def _agy_inject(*msgs): print(json.dumps(dict(injectSteps=[dict(systemMessage=dict(systemMessage=m)) for m in msgs]) if msgs else {}))
450
452
 
451
453
 
452
- AGY_COMPACT_MSG = 'Post-compaction (a summary does not count as in full). Before replying, judging, or spawning any fork: read any active/required skills (`better_swarm`, user-required skills) and run any of {boot} not in full in context in one parallel clikernel batch (create `py` kernel first if none active).'
454
+ AGY_COMPACT_MSG = f'Post-compaction (a summary does not count as in full). Before replying, judging, or spawning any fork: read active/required skills (`better_swarm`, user-required skills); run any of {{boot}} not in full in context (create `py` kernel first if none active); {_COMPACT_RELOAD} — batching calls in parallel.'
453
455
 
454
456
 
455
457
  def _agy_last_steps(path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aai-coding
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Shared configuration, hooks, prompts, and skills for Answer.AI coding sessions
5
5
  Author: aai-coding contributors
6
6
  License-Expression: Apache-2.0
@@ -1 +0,0 @@
1
- __version__ = "0.1.4"
File without changes
File without changes
File without changes
File without changes