@agentworkforce/workload-router 0.1.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/README.md +22 -0
- package/package.json +29 -0
- package/routing-profiles/default.json +51 -0
- package/routing-profiles/schema.json +43 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @agentworkforce/workload-router
|
|
2
|
+
|
|
3
|
+
Routing and profile utilities for AgentWorkforce workload orchestration.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @agentworkforce/workload-router
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { /* ... */ } from '@agentworkforce/workload-router';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Development
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm --filter @agentworkforce/workload-router build
|
|
21
|
+
pnpm --filter @agentworkforce/workload-router test
|
|
22
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentworkforce/workload-router",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"routing-profiles",
|
|
17
|
+
"README.md",
|
|
18
|
+
"package.json"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc -p tsconfig.json",
|
|
25
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
26
|
+
"test": "tsc -p tsconfig.json && node --test dist/index.test.js",
|
|
27
|
+
"lint": "tsc -p tsconfig.json --noEmit"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schema.json",
|
|
3
|
+
"id": "balanced-default",
|
|
4
|
+
"description": "Default routing policy balancing depth/latency and cost while keeping a fixed quality bar.",
|
|
5
|
+
"intents": {
|
|
6
|
+
"implement-frontend": {
|
|
7
|
+
"tier": "best-value",
|
|
8
|
+
"rationale": "Most frontend tasks are iterative and benefit from strong quality-per-dollar defaults."
|
|
9
|
+
},
|
|
10
|
+
"review": {
|
|
11
|
+
"tier": "best-value",
|
|
12
|
+
"rationale": "Code review usually needs careful reasoning without always requiring max-cost models."
|
|
13
|
+
},
|
|
14
|
+
"architecture-plan": {
|
|
15
|
+
"tier": "best",
|
|
16
|
+
"rationale": "Architecture decisions are high leverage; prioritize depth and stronger reasoning."
|
|
17
|
+
},
|
|
18
|
+
"requirements-analysis": {
|
|
19
|
+
"tier": "best-value",
|
|
20
|
+
"rationale": "Most scope clarification work benefits from careful synthesis without needing the slowest tier by default."
|
|
21
|
+
},
|
|
22
|
+
"debugging": {
|
|
23
|
+
"tier": "best",
|
|
24
|
+
"rationale": "Root-cause debugging is expensive when wrong; default to deeper reasoning and stronger verification."
|
|
25
|
+
},
|
|
26
|
+
"security-review": {
|
|
27
|
+
"tier": "best",
|
|
28
|
+
"rationale": "Security review has asymmetric downside; favor deeper analysis on default policy."
|
|
29
|
+
},
|
|
30
|
+
"documentation": {
|
|
31
|
+
"tier": "best-value",
|
|
32
|
+
"rationale": "Most docs work benefits from solid code-grounded synthesis without always needing the top tier."
|
|
33
|
+
},
|
|
34
|
+
"verification": {
|
|
35
|
+
"tier": "best-value",
|
|
36
|
+
"rationale": "Completion checks need disciplined evidence review, but usually not the most expensive model."
|
|
37
|
+
},
|
|
38
|
+
"test-strategy": {
|
|
39
|
+
"tier": "best-value",
|
|
40
|
+
"rationale": "Test planning benefits from strong reasoning, but usually does not require the slowest or most expensive tier."
|
|
41
|
+
},
|
|
42
|
+
"tdd-enforcement": {
|
|
43
|
+
"tier": "best-value",
|
|
44
|
+
"rationale": "TDD coaching needs reliable process enforcement and concise feedback more than maximum-depth output."
|
|
45
|
+
},
|
|
46
|
+
"flake-investigation": {
|
|
47
|
+
"tier": "best",
|
|
48
|
+
"rationale": "Intermittent failures are expensive and subtle; prioritize deeper reasoning for reproduction and root-cause analysis."
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Workforce routing profile",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["id", "description", "intents"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": { "type": "string", "minLength": 1 },
|
|
9
|
+
"description": { "type": "string", "minLength": 1 },
|
|
10
|
+
"intents": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["implement-frontend", "review", "architecture-plan", "requirements-analysis", "debugging", "security-review", "documentation", "verification", "test-strategy", "tdd-enforcement", "flake-investigation"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"implement-frontend": { "$ref": "#/definitions/rule" },
|
|
16
|
+
"review": { "$ref": "#/definitions/rule" },
|
|
17
|
+
"architecture-plan": { "$ref": "#/definitions/rule" },
|
|
18
|
+
"requirements-analysis": { "$ref": "#/definitions/rule" },
|
|
19
|
+
"debugging": { "$ref": "#/definitions/rule" },
|
|
20
|
+
"security-review": { "$ref": "#/definitions/rule" },
|
|
21
|
+
"documentation": { "$ref": "#/definitions/rule" },
|
|
22
|
+
"verification": { "$ref": "#/definitions/rule" },
|
|
23
|
+
"test-strategy": { "$ref": "#/definitions/rule" },
|
|
24
|
+
"tdd-enforcement": { "$ref": "#/definitions/rule" },
|
|
25
|
+
"flake-investigation": { "$ref": "#/definitions/rule" }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"definitions": {
|
|
30
|
+
"rule": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["tier", "rationale"],
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"tier": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["best", "best-value", "minimum"]
|
|
38
|
+
},
|
|
39
|
+
"rationale": { "type": "string", "minLength": 1 }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|