@event4u/agent-config 1.12.0 → 1.14.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/.agent-src/commands/agent-handoff.md +3 -0
- package/.agent-src/commands/agent-status.md +3 -0
- package/.agent-src/commands/agents-audit.md +4 -0
- package/.agent-src/commands/agents-cleanup.md +6 -1
- package/.agent-src/commands/agents-prepare.md +3 -0
- package/.agent-src/commands/analyze-reference-repo.md +4 -0
- package/.agent-src/commands/bug-fix.md +5 -1
- package/.agent-src/commands/bug-investigate.md +4 -0
- package/.agent-src/commands/chat-history-checkpoint.md +126 -0
- package/.agent-src/commands/chat-history-clear.md +5 -0
- package/.agent-src/commands/chat-history-resume.md +5 -0
- package/.agent-src/commands/chat-history.md +5 -0
- package/.agent-src/commands/check-current-md.md +126 -0
- package/.agent-src/commands/commit-in-chunks.md +98 -0
- package/.agent-src/commands/commit.md +4 -0
- package/.agent-src/commands/compress.md +3 -0
- package/.agent-src/commands/context-create.md +4 -0
- package/.agent-src/commands/context-refactor.md +4 -0
- package/.agent-src/commands/copilot-agents-init.md +3 -0
- package/.agent-src/commands/copilot-agents-optimize.md +3 -0
- package/.agent-src/commands/create-pr-description.md +4 -0
- package/.agent-src/commands/create-pr.md +4 -0
- package/.agent-src/commands/do-and-judge.md +4 -1
- package/.agent-src/commands/do-in-steps.md +3 -0
- package/.agent-src/commands/e2e-heal.md +4 -0
- package/.agent-src/commands/e2e-plan.md +4 -0
- package/.agent-src/commands/estimate-ticket.md +4 -1
- package/.agent-src/commands/feature-dev.md +4 -0
- package/.agent-src/commands/feature-explore.md +4 -0
- package/.agent-src/commands/feature-plan.md +4 -0
- package/.agent-src/commands/feature-refactor.md +4 -0
- package/.agent-src/commands/feature-roadmap.md +6 -0
- package/.agent-src/commands/fix-ci.md +4 -0
- package/.agent-src/commands/fix-portability.md +3 -0
- package/.agent-src/commands/fix-pr-bot-comments.md +4 -0
- package/.agent-src/commands/fix-pr-comments.md +4 -0
- package/.agent-src/commands/fix-pr-developer-comments.md +4 -0
- package/.agent-src/commands/fix-references.md +3 -0
- package/.agent-src/commands/fix-seeder.md +4 -0
- package/.agent-src/commands/implement-ticket.md +39 -13
- package/.agent-src/commands/jira-ticket.md +4 -0
- package/.agent-src/commands/judge.md +3 -0
- package/.agent-src/commands/memory-add.md +5 -3
- package/.agent-src/commands/memory-full.md +5 -2
- package/.agent-src/commands/memory-promote.md +7 -6
- package/.agent-src/commands/mode.md +3 -0
- package/.agent-src/commands/module-create.md +4 -0
- package/.agent-src/commands/module-explore.md +4 -0
- package/.agent-src/commands/onboard.md +24 -0
- package/.agent-src/commands/optimize-agents.md +4 -0
- package/.agent-src/commands/optimize-augmentignore.md +3 -0
- package/.agent-src/commands/optimize-rtk-filters.md +3 -0
- package/.agent-src/commands/optimize-skills.md +4 -0
- package/.agent-src/commands/override-create.md +4 -0
- package/.agent-src/commands/override-manage.md +4 -0
- package/.agent-src/commands/package-reset.md +3 -0
- package/.agent-src/commands/package-test.md +3 -0
- package/.agent-src/commands/prepare-for-review.md +4 -0
- package/.agent-src/commands/project-analyze.md +4 -0
- package/.agent-src/commands/project-health.md +4 -0
- package/.agent-src/commands/propose-memory.md +6 -8
- package/.agent-src/commands/quality-fix.md +4 -0
- package/.agent-src/commands/refine-ticket.md +4 -1
- package/.agent-src/commands/review-changes.md +4 -0
- package/.agent-src/commands/review-routing.md +4 -0
- package/.agent-src/commands/roadmap-create.md +7 -0
- package/.agent-src/commands/roadmap-execute.md +12 -1
- package/.agent-src/commands/rule-compliance-audit.md +4 -0
- package/.agent-src/commands/set-cost-profile.md +3 -0
- package/.agent-src/commands/sync-agent-settings.md +3 -0
- package/.agent-src/commands/sync-gitignore.md +3 -0
- package/.agent-src/commands/tests-create.md +4 -0
- package/.agent-src/commands/tests-execute.md +4 -0
- package/.agent-src/commands/threat-model.md +4 -0
- package/.agent-src/commands/update-form-request-messages.md +4 -0
- package/.agent-src/commands/upstream-contribute.md +4 -0
- package/.agent-src/commands/work.md +161 -0
- package/.agent-src/guidelines/agent-infra/engineering-memory-data-format.md +2 -6
- package/.agent-src/guidelines/agent-infra/layered-settings.md +0 -1
- package/.agent-src/guidelines/agent-infra/memory-access.md +0 -7
- package/.agent-src/guidelines/agent-infra/role-contracts.md +2 -4
- package/.agent-src/guidelines/agent-infra/self-improvement-pipeline.md +0 -1
- package/.agent-src/guidelines/php/patterns/strategy.md +180 -2
- package/.agent-src/personas/README.md +0 -1
- package/.agent-src/rules/artifact-drafting-protocol.md +7 -2
- package/.agent-src/rules/artifact-engagement-recording.md +133 -0
- package/.agent-src/rules/ask-when-uncertain.md +18 -13
- package/.agent-src/rules/augment-portability.md +8 -0
- package/.agent-src/rules/autonomous-execution.md +158 -0
- package/.agent-src/rules/chat-history.md +147 -118
- package/.agent-src/rules/cli-output-handling.md +26 -3
- package/.agent-src/rules/command-suggestion.md +133 -0
- package/.agent-src/rules/commit-policy.md +99 -0
- package/.agent-src/rules/direct-answers.md +114 -0
- package/.agent-src/rules/docs-sync.md +36 -0
- package/.agent-src/rules/downstream-changes.md +10 -9
- package/.agent-src/rules/improve-before-implement.md +9 -6
- package/.agent-src/rules/language-and-tone.md +81 -6
- package/.agent-src/rules/non-destructive-by-default.md +117 -0
- package/.agent-src/rules/package-ci-checks.md +4 -0
- package/.agent-src/rules/preservation-guard.md +20 -0
- package/.agent-src/rules/roadmap-progress-sync.md +103 -30
- package/.agent-src/rules/scope-control.md +42 -1
- package/.agent-src/rules/size-enforcement.md +1 -3
- package/.agent-src/rules/skill-quality.md +3 -8
- package/.agent-src/rules/ui-audit-before-build.md +106 -0
- package/.agent-src/rules/user-interaction.md +81 -3
- package/.agent-src/scripts/update_roadmap_progress.py +48 -6
- package/.agent-src/skills/blade-ui/SKILL.md +30 -5
- package/.agent-src/skills/command-routing/SKILL.md +32 -0
- package/.agent-src/skills/command-writing/SKILL.md +41 -2
- package/.agent-src/skills/description-assist/SKILL.md +21 -0
- package/.agent-src/skills/estimate-ticket/SKILL.md +0 -1
- package/.agent-src/skills/existing-ui-audit/SKILL.md +187 -0
- package/.agent-src/skills/fe-design/SKILL.md +72 -60
- package/.agent-src/skills/finishing-a-development-branch/SKILL.md +4 -0
- package/.agent-src/skills/flux/SKILL.md +31 -4
- package/.agent-src/skills/guideline-writing/SKILL.md +24 -2
- package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +51 -9
- package/.agent-src/skills/livewire/SKILL.md +30 -4
- package/.agent-src/skills/md-language-check/SKILL.md +103 -0
- package/.agent-src/skills/php-coder/SKILL.md +24 -0
- package/.agent-src/skills/react-shadcn-ui/SKILL.md +121 -0
- package/.agent-src/skills/refine-prompt/SKILL.md +220 -0
- package/.agent-src/skills/refine-ticket/SKILL.md +2 -4
- package/.agent-src/skills/roadmap-management/SKILL.md +10 -3
- package/.agent-src/skills/rule-writing/SKILL.md +23 -1
- package/.agent-src/skills/skill-writing/SKILL.md +1 -3
- package/.agent-src/skills/upstream-contribute/SKILL.md +1 -1
- package/.agent-src/skills/using-git-worktrees/SKILL.md +3 -1
- package/.agent-src/templates/AGENTS.md +24 -6
- package/.agent-src/templates/agent-settings.md +149 -0
- package/.agent-src/templates/github-workflows/roadmap-progress-check.yml +63 -0
- package/.agent-src/templates/hooks/pre-commit-roadmap-progress +60 -0
- package/.agent-src/templates/roadmaps.md +8 -2
- package/.agent-src/templates/scripts/implement_ticket/__init__.py +63 -26
- package/.agent-src/templates/scripts/implement_ticket/__main__.py +8 -2
- package/.agent-src/templates/scripts/memory_lookup.py +382 -21
- package/.agent-src/templates/scripts/memory_status.py +110 -9
- package/.agent-src/templates/scripts/telemetry/__init__.py +42 -0
- package/.agent-src/templates/scripts/telemetry/aggregator.py +154 -0
- package/.agent-src/templates/scripts/telemetry/boundary.py +171 -0
- package/.agent-src/templates/scripts/telemetry/engagement.py +238 -0
- package/.agent-src/templates/scripts/telemetry/report_renderer.py +170 -0
- package/.agent-src/templates/scripts/telemetry/settings.py +112 -0
- package/.agent-src/templates/scripts/telemetry_record.py +166 -0
- package/.agent-src/templates/scripts/telemetry_report.py +161 -0
- package/.agent-src/templates/scripts/telemetry_status.py +142 -0
- package/.agent-src/templates/scripts/work_engine/__init__.py +58 -0
- package/.agent-src/templates/scripts/work_engine/__main__.py +9 -0
- package/.agent-src/templates/scripts/work_engine/cli.py +592 -0
- package/.agent-src/templates/scripts/{implement_ticket → work_engine}/delivery_state.py +7 -0
- package/.agent-src/templates/scripts/work_engine/directives/__init__.py +33 -0
- package/.agent-src/templates/scripts/work_engine/directives/backend/__init__.py +98 -0
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/analyze.py +1 -1
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/implement.py +2 -2
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/memory.py +1 -1
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/plan.py +1 -1
- package/.agent-src/templates/scripts/work_engine/directives/backend/refine.py +396 -0
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/report.py +36 -4
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/test.py +2 -2
- package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/verify.py +2 -2
- package/.agent-src/templates/scripts/work_engine/directives/mixed/__init__.py +116 -0
- package/.agent-src/templates/scripts/work_engine/directives/mixed/contract.py +254 -0
- package/.agent-src/templates/scripts/work_engine/directives/mixed/stitch.py +229 -0
- package/.agent-src/templates/scripts/work_engine/directives/mixed/ui.py +231 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/__init__.py +113 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/_passthrough.py +44 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/apply.py +241 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/audit.py +414 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/design.py +335 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/polish.py +510 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui/review.py +468 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/__init__.py +119 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/_skipped.py +37 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/apply.py +165 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/refine.py +66 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/report.py +62 -0
- package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/test.py +115 -0
- package/.agent-src/templates/scripts/work_engine/dispatcher.py +331 -0
- package/.agent-src/templates/scripts/work_engine/hooks/__init__.py +54 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/__init__.py +32 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/_chat_history_base.py +103 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_append.py +44 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_halt_append.py +42 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_heartbeat.py +50 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_turn_check.py +49 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/directive_set_guard.py +53 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/halt_surface_audit.py +50 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/state_shape_validation.py +52 -0
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/trace.py +84 -0
- package/.agent-src/templates/scripts/work_engine/hooks/context.py +66 -0
- package/.agent-src/templates/scripts/work_engine/hooks/events.py +44 -0
- package/.agent-src/templates/scripts/work_engine/hooks/exceptions.py +79 -0
- package/.agent-src/templates/scripts/work_engine/hooks/registry.py +60 -0
- package/.agent-src/templates/scripts/work_engine/hooks/runner.py +73 -0
- package/.agent-src/templates/scripts/work_engine/hooks/settings.py +141 -0
- package/.agent-src/templates/scripts/work_engine/intent/__init__.py +47 -0
- package/.agent-src/templates/scripts/work_engine/intent/classify.py +280 -0
- package/.agent-src/templates/scripts/work_engine/migration/__init__.py +8 -0
- package/.agent-src/templates/scripts/work_engine/migration/v0_to_v1.py +199 -0
- package/.agent-src/templates/scripts/work_engine/resolvers/__init__.py +22 -0
- package/.agent-src/templates/scripts/work_engine/resolvers/diff.py +106 -0
- package/.agent-src/templates/scripts/work_engine/resolvers/file.py +113 -0
- package/.agent-src/templates/scripts/work_engine/resolvers/prompt.py +90 -0
- package/.agent-src/templates/scripts/work_engine/scoring/__init__.py +14 -0
- package/.agent-src/templates/scripts/work_engine/scoring/confidence.py +300 -0
- package/.agent-src/templates/scripts/work_engine/stack/__init__.py +31 -0
- package/.agent-src/templates/scripts/work_engine/stack/detect.py +187 -0
- package/.agent-src/templates/scripts/work_engine/state.py +641 -0
- package/.claude-plugin/marketplace.json +105 -2
- package/AGENTS.md +36 -8
- package/CHANGELOG.md +558 -0
- package/README.md +146 -4
- package/composer.json +3 -0
- package/config/agent-settings.template.yml +45 -0
- package/config/gitignore-block.txt +4 -0
- package/docs/architecture.md +28 -1
- package/docs/development.md +1 -1
- package/docs/getting-started.md +3 -2
- package/docs/installation.md +86 -0
- package/docs/showcase.md +204 -0
- package/package.json +9 -1
- package/scripts/agent-config +274 -0
- package/scripts/audit_cloud_compatibility.py +288 -0
- package/scripts/build_cloud_bundle.py +458 -0
- package/scripts/build_linear_digest.py +263 -0
- package/scripts/chat_history.py +796 -7
- package/scripts/check_compression.py +139 -0
- package/scripts/check_iron_law_prominence.py +143 -0
- package/scripts/check_md_language.py +159 -0
- package/scripts/check_portability.py +36 -0
- package/scripts/check_reply_consistency.py +140 -0
- package/scripts/command_suggester/__init__.py +51 -0
- package/scripts/command_suggester/cooldown.py +132 -0
- package/scripts/command_suggester/loader.py +70 -0
- package/scripts/command_suggester/match.py +180 -0
- package/scripts/command_suggester/rank.py +120 -0
- package/scripts/command_suggester/render.py +86 -0
- package/scripts/command_suggester/sanitize.py +113 -0
- package/scripts/command_suggester/settings.py +125 -0
- package/scripts/command_suggester/types.py +78 -0
- package/scripts/hooks/augment-chat-history.sh +56 -0
- package/scripts/install-hooks.sh +67 -0
- package/scripts/install.py +150 -33
- package/scripts/lint_marketplace.py +27 -0
- package/scripts/memory_lookup.py +143 -7
- package/scripts/memory_status.py +76 -14
- package/scripts/migrate_command_suggestions.py +151 -0
- package/scripts/postinstall.sh +16 -0
- package/scripts/schemas/command.schema.json +41 -0
- package/scripts/skill_linter.py +67 -0
- package/scripts/sync_agent_settings.py +42 -12
- package/templates/consumer-settings/augment-cli-hooks.json +54 -0
- package/templates/consumer-settings/claude-settings.json +55 -1
- package/.agent-src/templates/scripts/implement_ticket/cli.py +0 -171
- package/.agent-src/templates/scripts/implement_ticket/dispatcher.py +0 -134
- package/.agent-src/templates/scripts/implement_ticket/steps/__init__.py +0 -49
- package/.agent-src/templates/scripts/implement_ticket/steps/refine.py +0 -140
- /package/.agent-src/templates/scripts/{implement_ticket → work_engine}/persona_policy.py +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Pre-commit hook: roadmap progress dashboard sync (event4u/agent-config)
|
|
3
|
+
#
|
|
4
|
+
# Installed by `./agent-config hooks:install`. Aborts the commit if
|
|
5
|
+
# `agents/roadmaps-progress.md` is out of date relative to staged
|
|
6
|
+
# changes under `agents/roadmaps/`. Exits silently when no roadmap
|
|
7
|
+
# files are staged — zero overhead on unrelated commits.
|
|
8
|
+
#
|
|
9
|
+
# To run manually:
|
|
10
|
+
# ./agent-config roadmap:progress-check
|
|
11
|
+
#
|
|
12
|
+
# To uninstall:
|
|
13
|
+
# rm .git/hooks/pre-commit
|
|
14
|
+
set -e
|
|
15
|
+
|
|
16
|
+
# Only act on commits that touch roadmap content.
|
|
17
|
+
staged="$(git diff --cached --name-only --diff-filter=ACMR 2>/dev/null || true)"
|
|
18
|
+
case "$staged" in
|
|
19
|
+
*agents/roadmaps/*.md*|*agents/roadmaps-progress.md*|*.augment/scripts/update_roadmap_progress.py*)
|
|
20
|
+
: ;;
|
|
21
|
+
*)
|
|
22
|
+
exit 0 ;;
|
|
23
|
+
esac
|
|
24
|
+
|
|
25
|
+
# Resolve the script — prefer the consumer-shipped path, fall back to
|
|
26
|
+
# the source-of-truth copy when run from inside the package itself.
|
|
27
|
+
script=""
|
|
28
|
+
for cand in \
|
|
29
|
+
".augment/scripts/update_roadmap_progress.py" \
|
|
30
|
+
".agent-src/scripts/update_roadmap_progress.py" \
|
|
31
|
+
".agent-src.uncompressed/scripts/update_roadmap_progress.py"; do
|
|
32
|
+
if [ -f "$cand" ]; then
|
|
33
|
+
script="$cand"
|
|
34
|
+
break
|
|
35
|
+
fi
|
|
36
|
+
done
|
|
37
|
+
|
|
38
|
+
if [ -z "$script" ]; then
|
|
39
|
+
echo "⚠️ pre-commit-roadmap-progress: update_roadmap_progress.py not found." >&2
|
|
40
|
+
echo " Run \`task install\` (or \`./agent-config install\`) and retry." >&2
|
|
41
|
+
echo " Skipping check — letting commit through." >&2
|
|
42
|
+
exit 0
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
if ! python3 "$script" --check >/dev/null 2>&1; then
|
|
46
|
+
echo "❌ agents/roadmaps-progress.md is stale relative to your staged changes." >&2
|
|
47
|
+
echo "" >&2
|
|
48
|
+
echo " Regenerate the dashboard with one of:" >&2
|
|
49
|
+
echo " ./agent-config roadmap:progress" >&2
|
|
50
|
+
echo " task roadmap-progress" >&2
|
|
51
|
+
echo " python3 $script" >&2
|
|
52
|
+
echo "" >&2
|
|
53
|
+
echo " Then \`git add agents/roadmaps-progress.md\` and retry the commit." >&2
|
|
54
|
+
echo "" >&2
|
|
55
|
+
echo " To bypass once (NOT recommended):" >&2
|
|
56
|
+
echo " git commit --no-verify" >&2
|
|
57
|
+
exit 1
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
exit 0
|
|
@@ -27,8 +27,14 @@ Templates for roadmap files stored in `agents/roadmaps/` or `app/Modules/{Module
|
|
|
27
27
|
|
|
28
28
|
13. **No tags, releases, or version numbers.** Roadmaps describe work, not shipping.
|
|
29
29
|
Never assign version suffixes to phases (`Phase 1 — v1.8.0`), never write
|
|
30
|
-
"Target release: X.Y.Z", never plan git tags
|
|
31
|
-
belong to the user
|
|
30
|
+
"Target release: X.Y.Z", never plan git tags or deprecation dates. Release
|
|
31
|
+
and tag decisions belong to the user, taken outside the roadmap. Enforced by
|
|
32
|
+
[`scope-control`](../rules/scope-control.md#git-operations--permission-gated).
|
|
33
|
+
14. **No automatic branch switches mid-roadmap.** Roadmap work runs on the
|
|
34
|
+
current branch. If a separate branch (spike, hotfix, experiment) would
|
|
35
|
+
be useful, agent may propose it **once** during creation — not during
|
|
36
|
+
execution. Default: stay on current branch. If user declines, topic is
|
|
37
|
+
closed for this roadmap. See [`scope-control`](../rules/scope-control.md#decline--silence--no-re-asking-on-the-same-task).
|
|
32
38
|
|
|
33
39
|
---
|
|
34
40
|
|
|
@@ -1,40 +1,77 @@
|
|
|
1
|
-
"""
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
``agents/contexts/implement-ticket-flow.md``):
|
|
12
|
-
|
|
13
|
-
- Runtime is Python 3.10+.
|
|
14
|
-
- The dispatcher is linear, not a DAG. Eight fixed steps, fixed order.
|
|
15
|
-
- ``DeliveryState`` is the only object shared between steps — no
|
|
16
|
-
hidden state, no side channels.
|
|
17
|
-
- Every step terminates in ``success | blocked | partial``. ``blocked``
|
|
18
|
-
and ``partial`` halt the flow and surface numbered questions.
|
|
19
|
-
- The dispatcher never calls git, writes commits, or opens PRs.
|
|
1
|
+
"""``implement_ticket`` — deprecated shim, retained for one release.
|
|
2
|
+
|
|
3
|
+
The engine moved to :mod:`work_engine` in R1 Phase 3. This module
|
|
4
|
+
re-exports the public surface so existing imports keep working, but
|
|
5
|
+
emits :class:`DeprecationWarning` on import. The Golden-Transcript
|
|
6
|
+
freeze-guard pins ``./agent-config implement-ticket`` against the
|
|
7
|
+
locked baseline; the shim keeps that path byte-stable while internal
|
|
8
|
+
callers migrate to ``work_engine``.
|
|
9
|
+
|
|
10
|
+
Remove after the next public release of this package.
|
|
20
11
|
"""
|
|
21
12
|
from __future__ import annotations
|
|
22
13
|
|
|
23
|
-
|
|
14
|
+
import sys as _sys
|
|
15
|
+
import warnings as _warnings
|
|
16
|
+
|
|
17
|
+
_warnings.warn(
|
|
18
|
+
"implement_ticket has moved to work_engine; importing implement_ticket "
|
|
19
|
+
"is deprecated and will be removed in a future release. Update imports "
|
|
20
|
+
"to `from work_engine import …`.",
|
|
21
|
+
DeprecationWarning,
|
|
22
|
+
stacklevel=2,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
# Register submodule aliases so `from implement_ticket.steps.plan import …`
|
|
26
|
+
# and friends keep resolving to the work_engine implementation. The legacy
|
|
27
|
+
# package no longer ships these submodules on disk; sys.modules entries
|
|
28
|
+
# keep dotted-path imports working until the shim is removed.
|
|
29
|
+
import work_engine as _we_pkg # noqa: E402
|
|
30
|
+
import work_engine.cli as _we_cli # noqa: E402
|
|
31
|
+
import work_engine.delivery_state as _we_delivery_state # noqa: E402
|
|
32
|
+
import work_engine.dispatcher as _we_dispatcher # noqa: E402
|
|
33
|
+
import work_engine.persona_policy as _we_persona_policy # noqa: E402
|
|
34
|
+
import work_engine.directives.backend as _we_steps # noqa: E402
|
|
35
|
+
from work_engine.directives.backend import ( # noqa: E402
|
|
36
|
+
analyze as _we_step_analyze,
|
|
37
|
+
implement as _we_step_implement,
|
|
38
|
+
memory as _we_step_memory,
|
|
39
|
+
plan as _we_step_plan,
|
|
40
|
+
refine as _we_step_refine,
|
|
41
|
+
report as _we_step_report,
|
|
42
|
+
test as _we_step_test,
|
|
43
|
+
verify as _we_step_verify,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
_sys.modules.setdefault("implement_ticket.cli", _we_cli)
|
|
47
|
+
_sys.modules.setdefault("implement_ticket.delivery_state", _we_delivery_state)
|
|
48
|
+
_sys.modules.setdefault("implement_ticket.dispatcher", _we_dispatcher)
|
|
49
|
+
_sys.modules.setdefault("implement_ticket.persona_policy", _we_persona_policy)
|
|
50
|
+
_sys.modules.setdefault("implement_ticket.steps", _we_steps)
|
|
51
|
+
_sys.modules.setdefault("implement_ticket.steps.analyze", _we_step_analyze)
|
|
52
|
+
_sys.modules.setdefault("implement_ticket.steps.implement", _we_step_implement)
|
|
53
|
+
_sys.modules.setdefault("implement_ticket.steps.memory", _we_step_memory)
|
|
54
|
+
_sys.modules.setdefault("implement_ticket.steps.plan", _we_step_plan)
|
|
55
|
+
_sys.modules.setdefault("implement_ticket.steps.refine", _we_step_refine)
|
|
56
|
+
_sys.modules.setdefault("implement_ticket.steps.report", _we_step_report)
|
|
57
|
+
_sys.modules.setdefault("implement_ticket.steps.test", _we_step_test)
|
|
58
|
+
_sys.modules.setdefault("implement_ticket.steps.verify", _we_step_verify)
|
|
59
|
+
|
|
60
|
+
from work_engine import ( # noqa: E402,F401 — re-export for backwards compat
|
|
24
61
|
AGENT_DIRECTIVE_PREFIX,
|
|
62
|
+
DEFAULT_PERSONA,
|
|
63
|
+
DEFAULT_STATE_FILE,
|
|
25
64
|
DeliveryState,
|
|
26
65
|
Outcome,
|
|
66
|
+
PersonaPolicy,
|
|
67
|
+
STEP_ORDER,
|
|
27
68
|
Step,
|
|
28
69
|
StepResult,
|
|
29
70
|
agent_directive,
|
|
71
|
+
dispatch,
|
|
30
72
|
is_agent_directive,
|
|
31
|
-
)
|
|
32
|
-
from .cli import DEFAULT_STATE_FILE, main
|
|
33
|
-
from .dispatcher import STEP_ORDER, dispatch
|
|
34
|
-
from .persona_policy import (
|
|
35
|
-
DEFAULT_PERSONA,
|
|
36
|
-
PersonaPolicy,
|
|
37
73
|
known_personas,
|
|
74
|
+
main,
|
|
38
75
|
resolve_policy,
|
|
39
76
|
)
|
|
40
77
|
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Deprecated CLI entry point — delegates to :mod:`work_engine`.
|
|
2
|
+
|
|
3
|
+
``python3 -m implement_ticket`` still works because the Golden-Transcript
|
|
4
|
+
freeze-guard pins that invocation. Internally it forwards to
|
|
5
|
+
``work_engine.cli.main`` after emitting a ``DeprecationWarning`` from
|
|
6
|
+
the package ``__init__``.
|
|
7
|
+
"""
|
|
2
8
|
from __future__ import annotations
|
|
3
9
|
|
|
4
10
|
import sys
|
|
5
11
|
|
|
6
|
-
from .cli import main
|
|
12
|
+
from work_engine.cli import main
|
|
7
13
|
|
|
8
14
|
if __name__ == "__main__":
|
|
9
15
|
sys.exit(main())
|