jules-orchestrator-kit 0.35.0 → 0.35.1
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/README.md +1 -1
- package/package.json +1 -1
- package/src/web-templates.mjs +40 -0
package/README.md
CHANGED
|
@@ -389,7 +389,7 @@ Native stdio server exposing task dispatch, gate verification, and risk auditing
|
|
|
389
389
|
| :--- | :--- | :--- | :--- |
|
|
390
390
|
| `init` | `agentctl init [--interactive] [--tier pro]` | Interactive onboarding wizard & stack oracle inspector generating `.agent/config.yml`. | `0` (Created) |
|
|
391
391
|
| `task create` | `agentctl task create [--title <t>] [--prompt <p>] [--template <id>] [--role <name>] [--tier fast\|complex] [--depends-on <id,...>]` | Interactively authors & scopes falsifiable task envelopes with secret scrubbing, preflight gate checks, specialist role resolution, DAG dependency wiring, and an optional Cost Router tier override. | `0` (Queued), `1` (Unfalsifiable / Secret leak) |
|
|
392
|
-
| `task template` | `agentctl task template [<id>] [--list] [--json]` | Lists and synthesizes specialized web task envelopes (`web-cwv`, `web-wcag`, `web-seo`, `web-playwright`, `web-flaky-heal`). | `0` (Synthesized/Listed) |
|
|
392
|
+
| `task template` | `agentctl task template [<id>] [--list] [--json]` | Lists and synthesizes specialized web task envelopes (`web-cwv`, `web-wcag`, `web-seo`, `web-playwright`, `web-flaky-heal`, `web-i18n`). | `0` (Synthesized/Listed) |
|
|
393
393
|
| `task optimize` | `agentctl task optimize "<prompt>" [--fix] [--web] [--json]` | Linter & optimizer injecting Google Labs 3-phase exploration budgets, critic steering, and web oracles. | `0` (Scored/Fixed) |
|
|
394
394
|
| `test-gen` | `agentctl test-gen --title <t> --spec <s> [--run]` | Scaffolds falsifiable unit tests, verifies **RED** failure state, and locks test in `scope.deny`. | `0` (Scaffolded/Red) |
|
|
395
395
|
| `rollback` | `agentctl rollback [sessionId \| --latest]` | Restores exact commit, uncommitted files, and cleans orphan task worktrees from pre-flight checkpoints. | `0` (Restored), `1` (Error) |
|
package/package.json
CHANGED
package/src/web-templates.mjs
CHANGED
|
@@ -193,6 +193,46 @@ export const WEB_TEMPLATES = {
|
|
|
193
193
|
5. **Stability Verification**:
|
|
194
194
|
- Test suite must pass cleanly across ${reps} consecutive runs without a single failure.`;
|
|
195
195
|
}
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
"web-i18n": {
|
|
199
|
+
id: "web-i18n",
|
|
200
|
+
name: "Internationalization (i18n), Locale Routing & Hreflang Integrity",
|
|
201
|
+
description: "Verify multi-language routing, symmetric hreflang alternate links, html lang attributes, and translation fallback safety.",
|
|
202
|
+
defaultVerifyCmd: "npm test",
|
|
203
|
+
category: "Internationalization & SEO",
|
|
204
|
+
criticFocus: [
|
|
205
|
+
"Confirm that hreflang alternate tags are fully bidirectional and symmetric across all locale variants.",
|
|
206
|
+
"Check that the <html> tag dynamically renders the correct ISO 639-1 / BCP 47 lang attribute for the active route.",
|
|
207
|
+
"Verify that localized URL slugs and route parameters handle non-ASCII unicode characters cleanly without encoding errors.",
|
|
208
|
+
"Ensure missing translation keys resolve to configured fallback locales rather than displaying raw placeholder strings or throwing runtime exceptions."
|
|
209
|
+
],
|
|
210
|
+
defaultParams: {
|
|
211
|
+
targetLocales: "en, sv, de, fr",
|
|
212
|
+
defaultLocale: "en",
|
|
213
|
+
targetRoutes: "all public routes"
|
|
214
|
+
},
|
|
215
|
+
generatePrompt: (params = {}) => {
|
|
216
|
+
const locales = params.targetLocales || "en, sv, de, fr";
|
|
217
|
+
const defaultLoc = params.defaultLocale || "en";
|
|
218
|
+
const routes = params.targetRoutes || "all public routes";
|
|
219
|
+
const customGoal = params.goal ? `\n- **Target Focus**: ${params.goal}` : "";
|
|
220
|
+
|
|
221
|
+
return `Implement and verify comprehensive Internationalization (i18n) and locale routing integrity for ${routes}.${customGoal}
|
|
222
|
+
|
|
223
|
+
### i18n & Hreflang Acceptance Criteria:
|
|
224
|
+
1. **Symmetric Hreflang Alternate Links**:
|
|
225
|
+
- Every page across target locales (${locales}) must render bidirectional \`<link rel="alternate" hreflang="..." href="...">\` tags pointing to all counterparts, including self and \`hreflang="x-default"\` (pointing to ${defaultLoc}).
|
|
226
|
+
2. **HTML Root & Metadata Localization**:
|
|
227
|
+
- The root \`<html lang="...">\` attribute must accurately match the active page locale.
|
|
228
|
+
- Page \`<title>\`, \`<meta name="description">\`, and OpenGraph (\`og:locale\` / \`og:locale:alternate\`) tags must be fully localized.
|
|
229
|
+
3. **Locale Routing & Missing Translation Fallback**:
|
|
230
|
+
- Clean URL routing for all supported locales with zero redirect loops or 404 dead-ends.
|
|
231
|
+
- Missing translation keys must gracefully fall back to default locale (\`${defaultLoc}\`) without runtime panics or raw string delimiters.
|
|
232
|
+
4. **Encoding & Number/Date Formats**:
|
|
233
|
+
- UTF-8 clean encoding with zero unescaped unicode artefacts.
|
|
234
|
+
- Localized formatting for dates, currencies, and numbers using standard Intl APIs.`;
|
|
235
|
+
}
|
|
196
236
|
}
|
|
197
237
|
};
|
|
198
238
|
|