allye-opencode 1.6.0 → 1.6.2

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41,15 +41,16 @@ The conversation itself is the primary signal, and it overrides everything else
41
41
  All responses, questions, suggestions, and confirmations must be in the user's language. If the user switches language mid-conversation, follow them.
42
42
  `.trim();
43
43
  var ALLYE_INIT_PROTOCOL = `
44
- ## Allye Initialization (mandatory)
44
+ ## Allye Context (adaptive)
45
45
 
46
- At the START of every conversation, you MUST:
47
-
48
- 1. **Call \`initialize\`** (action: \`init\`) to load your user context, team info, and core documents. This is mandatory.
49
- 2. **Check active team** \u2014 If the response shows the user belongs to multiple teams and no team is active, ask which team they want to work with and call \`team_switch\`. Do not proceed until a team is selected.
46
+ When Allye MCP is available and the work benefits from durable context, call \`initialize\` (action: \`init\`) to load user context, team info, and core documents.
47
+ If initialization fails or is unavailable, state the limitation and continue locally unless Allye is required.
48
+ If multiple teams exist without an active selection, ask before team-scoped operations; non-team-scoped work may continue.
50
49
  `.trim();
51
50
  var MEMORY_SEARCH_PROTOCOL = `
52
- ## Memory Search (mandatory at start)
51
+ ## Memory Search (proportional)
52
+
53
+ For consequential, multi-step, resumed, or team-scoped work, search relevant memories before acting. For short, low-risk, local work, memory search may be skipped. Never claim a search was performed when Allye is unavailable.
53
54
 
54
55
  After initialization, search for relevant memories:
55
56
 
@@ -76,7 +77,9 @@ Relation types: \`similar | extends | caused_by | supersedes | contradicts | dep
76
77
  If graph traversal times out (408): reduce depth, add relation_types filter.
77
78
  `.trim();
78
79
  var MEMORY_SAVE_PROTOCOL = `
79
- ## Memory Save (mandatory at end)
80
+ ## Memory Save (when useful)
81
+
82
+ For consequential sessions or durable decisions, save session state before ending. Skip trivial local work. If persistence is unavailable, report that continuity was not saved.
80
83
 
81
84
  Before ending your work, save session state:
82
85
 
@@ -95,9 +98,9 @@ Also save memories mid-conversation when:
95
98
  - A blocker is identified
96
99
  `.trim();
97
100
  var DYNAMIC_SKILL_LOADING = `
98
- ## Dynamic Skill Loading (mandatory before main work)
101
+ ## Dynamic Skill Loading (when relevant)
99
102
 
100
- Before starting your main work, you MUST search for team-specific skills:
103
+ Before starting meaningful work, search for team-specific skills when Allye MCP is available and the task benefits from team standards:
101
104
 
102
105
  1. Call \`skill_list\` with queries matching your task domain (e.g., "planning", "code review", "development standards", "story template", "task template")
103
106
  2. For each relevant skill found, call \`skill_get\` to read its full content
@@ -118,12 +121,15 @@ This creates a virtuous cycle \u2014 the more the team uses Allye, the more stan
118
121
  Skills may be in any language. Adapt accordingly.
119
122
  `.trim();
120
123
  var WORKFLOW_GATES = `
121
- ## Non-Negotiable Rules
122
-
123
- 1. **No implementation without tasks.** Do not write code for a story that has no tasks. Run planning first.
124
- 2. **No skipping the discussion phase.** When planning tasks, identify gray areas and present options before creating tasks. Capture locked decisions as memories.
125
- 3. **No status changes without work.** Do not move an item to "done" unless the work is completed and verified.
126
- 4. **TDD when applicable.** If you can write \`expect(fn(input)).toBe(output)\` before writing \`fn\`, you MUST write the test first. If not (UI, infra), test after \u2014 but always test.
124
+ ## Adaptive Checkpoints and Guardrails
125
+
126
+ Choose the smallest useful loop: intent \u2192 context \u2192 research (optional) \u2192 consent \u2192 action \u2192 verification \u2192 persistence (optional).
127
+ - Recommend tasks for meaningful, multi-step, shared, delegated, or review-heavy work; create them only after approval.
128
+ - For an explicitly approved no-task path, keep scope visible and verify proportionally.
129
+ - Ask before consequential mutations, status changes, publication, deployment, or broad scope.
130
+ - Surface ambiguity that changes scope, risk, or architecture; use reversible defaults for minor details.
131
+ - Use TDD when deterministic behavior can be specified first; otherwise test after implementation, but do not skip verification.
132
+ - Claim completion only from actual verification evidence, distinguishing implementation from review or deployment.
127
133
  `.trim();
128
134
  var TOOLS_QUICKREF = `
129
135
  ## Allye MCP Tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allye-opencode",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Allye multi-agent plugin for OpenCode — planning, building, reviewing, and delivering with structured workflows",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",