@captain_z/zsk 1.8.5 → 1.8.7
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/dist/bin.js +128 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/add-flow.js +7 -1
- package/dist/commands/add-flow.js.map +1 -1
- package/dist/commands/add.js +22 -5
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/config.js +3 -2
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/dispatch.d.ts +4 -0
- package/dist/commands/dispatch.js +483 -7
- package/dist/commands/dispatch.js.map +1 -1
- package/dist/commands/doctor.js +21 -5
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/issue.d.ts +1 -0
- package/dist/commands/issue.js +2 -2
- package/dist/commands/issue.js.map +1 -1
- package/dist/commands/prepare.js +7 -0
- package/dist/commands/prepare.js.map +1 -1
- package/dist/commands/project-init.js +15 -8
- package/dist/commands/project-init.js.map +1 -1
- package/dist/commands/work.d.ts +34 -0
- package/dist/commands/work.js +1769 -0
- package/dist/commands/work.js.map +1 -0
- package/dist/commands/workflow.d.ts +32 -0
- package/dist/commands/workflow.js +270 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/core/config.d.ts +29 -0
- package/dist/core/config.js +173 -4
- package/dist/core/config.js.map +1 -1
- package/dist/core/prepare-lifecycle.d.ts +2 -0
- package/dist/core/prepare-lifecycle.js +49 -0
- package/dist/core/prepare-lifecycle.js.map +1 -1
- package/dist/core/skill-classification.d.ts +13 -0
- package/dist/core/skill-classification.js +50 -0
- package/dist/core/skill-classification.js.map +1 -0
- package/dist/core/stage-clarity-verification.js +58 -7
- package/dist/core/stage-clarity-verification.js.map +1 -1
- package/dist/core/template-registry.js +26 -7
- package/dist/core/template-registry.js.map +1 -1
- package/dist/core/work-ledger.d.ts +44 -0
- package/dist/core/work-ledger.js +88 -0
- package/dist/core/work-ledger.js.map +1 -0
- package/dist/core/work-provider-adapters.d.ts +110 -0
- package/dist/core/work-provider-adapters.js +484 -0
- package/dist/core/work-provider-adapters.js.map +1 -0
- package/dist/core/workflow-graph.d.ts +100 -0
- package/dist/core/workflow-graph.js +655 -0
- package/dist/core/workflow-graph.js.map +1 -0
- package/dist/core/workspace-conformance.js +55 -0
- package/dist/core/workspace-conformance.js.map +1 -1
- package/dist/core/workspace-layout.d.ts +3 -1
- package/dist/core/workspace-layout.js +4 -0
- package/dist/core/workspace-layout.js.map +1 -1
- package/package.json +2 -2
- package/schemas/zsk-config.schema.json +112 -1
- package/templates/module/frontend-module/CONTEXT.md +22 -0
- package/templates/module/frontend-module/design.md +1 -1
- package/templates/module/frontend-module/proposal.md +1 -1
- package/templates/module/frontend-module/spec.md +1 -1
- package/templates/module/frontend-module/tasks.md +14 -1
- package/templates/project-init/.zsk/CONTEXT.md +35 -0
- package/templates/project-init/.zsk/README.md +108 -15
- package/templates/project-init/.zsk/config.yaml +12 -6
- package/templates/project-init/.zsk/docs/CONFIG-SCHEMA.md +21 -5
- package/templates/project-init/.zsk/docs/PROJECT-CONFIG.md +48 -14
- package/templates/project-init/.zsk/docs/SYSTEM-SPEC.md +10 -4
- package/templates/project-init/.zsk/raws/README.md +7 -2
- package/templates/project-init/.zsk/team.yaml +218 -0
- package/templates/project-init/.zsk/templates/config.examples.yaml +29 -8
- package/templates/project-init/.zsk/work.yaml +75 -0
- package/templates/project-init/.zsk/evidence/README.md +0 -15
- package/templates/project-init/.zsk/issues/README.md +0 -10
- package/templates/project-init/.zsk/templates/module/README.md +0 -13
- package/templates/project-init/.zsk/templates/module/design.md +0 -22
- package/templates/project-init/.zsk/templates/module/module.yaml +0 -15
- package/templates/project-init/.zsk/templates/module/proposal.md +0 -20
- package/templates/project-init/.zsk/templates/module/spec.md +0 -22
- package/templates/project-init/.zsk/templates/module/tasks.md +0 -16
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
# Example provider/
|
|
2
|
-
#
|
|
1
|
+
# Example provider/entry-source/route shapes. Configure each platform once,
|
|
2
|
+
# then add only durable entry sources to .zsk/config.yaml. Let prepare produce
|
|
3
|
+
# .zsk/evidence/prepare/<run>/config-draft.yaml and
|
|
4
|
+
# source-promotion-suggestions.md for discovered child pages, nodes, issues, or
|
|
5
|
+
# files; promote selected candidates only after human review.
|
|
3
6
|
#
|
|
4
7
|
# Store secret values in the shell environment, not in config. If credentials
|
|
5
8
|
# live in ~/.zshrc, export them there, for example:
|
|
@@ -43,14 +46,14 @@ automation:
|
|
|
43
46
|
submit: button[type="submit"]
|
|
44
47
|
|
|
45
48
|
resources:
|
|
46
|
-
- id: core-api
|
|
49
|
+
- id: core-api-entry
|
|
47
50
|
type: repository
|
|
48
51
|
area: Backend Services
|
|
49
52
|
source:
|
|
50
53
|
kind: git-submodule
|
|
51
|
-
path: .zsk/raws/repositories/core-api/repository
|
|
54
|
+
path: .zsk/raws/repositories/core-api-entry/repository
|
|
52
55
|
|
|
53
|
-
- id:
|
|
56
|
+
- id: assigned-bugs-entry
|
|
54
57
|
type: issues
|
|
55
58
|
provider: jira
|
|
56
59
|
query:
|
|
@@ -58,15 +61,17 @@ resources:
|
|
|
58
61
|
classify:
|
|
59
62
|
by: [priority, component, status]
|
|
60
63
|
|
|
61
|
-
- id:
|
|
64
|
+
- id: product-requirements-entry
|
|
62
65
|
type: document
|
|
63
66
|
area: Confluence
|
|
64
67
|
provider: confluence
|
|
65
68
|
source:
|
|
66
69
|
kind: confluence
|
|
67
70
|
pageId: "12345"
|
|
71
|
+
metadata:
|
|
72
|
+
note: Child Confluence pages should be reviewed in config-draft.yaml before promotion.
|
|
68
73
|
|
|
69
|
-
- id: public-
|
|
74
|
+
- id: public-product-entry
|
|
70
75
|
type: document
|
|
71
76
|
area: Product
|
|
72
77
|
source:
|
|
@@ -76,8 +81,24 @@ resources:
|
|
|
76
81
|
acquisition: [playwright_cli]
|
|
77
82
|
observation: [computer_use]
|
|
78
83
|
|
|
84
|
+
# Compatibility prepare tree for projects that still use sources.* directly.
|
|
85
|
+
# Keep this entry-level too: one platform/domain entry here may fan out into
|
|
86
|
+
# many draft candidates under evidence before selected children are promoted.
|
|
87
|
+
sources:
|
|
88
|
+
prepare:
|
|
89
|
+
product:
|
|
90
|
+
product-requirements-entry:
|
|
91
|
+
type: prd
|
|
92
|
+
adapter: confluence
|
|
93
|
+
origin:
|
|
94
|
+
kind: confluence
|
|
95
|
+
url: https://confluence.example.com/pages/viewpage.action?pageId=12345
|
|
96
|
+
metadata:
|
|
97
|
+
provider: product_requirements_entry
|
|
98
|
+
promotionPolicy: review config-draft.yaml before adding child pages
|
|
99
|
+
|
|
79
100
|
routes:
|
|
80
|
-
- from:
|
|
101
|
+
- from: assigned-bugs-entry
|
|
81
102
|
to:
|
|
82
103
|
module: permission
|
|
83
104
|
artifact: issues
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# ZSK work management policy.
|
|
2
|
+
#
|
|
3
|
+
# This file maps provider-agnostic ZSK Work Events to external work systems.
|
|
4
|
+
# Multica is the default adapter reference, but .zsk/work.jsonl remains generic
|
|
5
|
+
# and can be translated to Jira, GitHub Issues, GitLab, Linear, or local Markdown.
|
|
6
|
+
|
|
7
|
+
version: 1
|
|
8
|
+
|
|
9
|
+
ledger:
|
|
10
|
+
path: .zsk/work.jsonl
|
|
11
|
+
format: jsonl
|
|
12
|
+
createWhen: first-work-event
|
|
13
|
+
providerAgnostic: true
|
|
14
|
+
|
|
15
|
+
defaultProvider: multica
|
|
16
|
+
|
|
17
|
+
providers:
|
|
18
|
+
multica:
|
|
19
|
+
adapter: multica
|
|
20
|
+
mode: dry-run-until-explicit-sync
|
|
21
|
+
workspace: "<workspace-slug>"
|
|
22
|
+
# Optional generic expert catalog exported or normalized from the provider.
|
|
23
|
+
# Dispatch also auto-discovers .zsk/providers/<provider>/experts.yaml when
|
|
24
|
+
# `zsk work import-experts` creates it.
|
|
25
|
+
# Prefer `.zsk/team.yaml providerCatalogs` when the catalog is part of the
|
|
26
|
+
# local talent-pool contract.
|
|
27
|
+
# expertCatalog:
|
|
28
|
+
# path: .zsk/providers/multica/experts.yaml
|
|
29
|
+
commandPlan:
|
|
30
|
+
executable: multica
|
|
31
|
+
mode: dry-run-template
|
|
32
|
+
projectMapping:
|
|
33
|
+
strategy: module-to-project
|
|
34
|
+
projects: {}
|
|
35
|
+
statusMapping:
|
|
36
|
+
draft: backlog
|
|
37
|
+
ready: todo
|
|
38
|
+
implementing: in_progress
|
|
39
|
+
review: in_review
|
|
40
|
+
verified: done
|
|
41
|
+
blocked: blocked
|
|
42
|
+
cancelled: cancelled
|
|
43
|
+
assignment:
|
|
44
|
+
taskCreatesIssuesOnly: true
|
|
45
|
+
dispatchAssignsAgentsOrSquads: true
|
|
46
|
+
verifyControlsDone: true
|
|
47
|
+
|
|
48
|
+
events:
|
|
49
|
+
accepted:
|
|
50
|
+
- work.item.upserted
|
|
51
|
+
- work.item.linked
|
|
52
|
+
- work.item.status_changed
|
|
53
|
+
- work.provider_status.imported
|
|
54
|
+
- work.assignment.requested
|
|
55
|
+
- work.assignment.accepted
|
|
56
|
+
- work.comment.added
|
|
57
|
+
- work.item.verified
|
|
58
|
+
- work.item.blocked
|
|
59
|
+
|
|
60
|
+
syncPolicy:
|
|
61
|
+
idempotency:
|
|
62
|
+
localKey: workItem.id
|
|
63
|
+
remoteRefPath: externalRefs
|
|
64
|
+
dryRunFirst: true
|
|
65
|
+
createRemoteWhen:
|
|
66
|
+
- provider is configured
|
|
67
|
+
- work item has project, module, stage, local id, title, status, and source artifacts
|
|
68
|
+
updateRemoteWhen:
|
|
69
|
+
- local work item has an existing remote reference
|
|
70
|
+
- status, source links, assignment, comments, or evidence changed
|
|
71
|
+
neverSync:
|
|
72
|
+
- secrets
|
|
73
|
+
- raw credential values
|
|
74
|
+
- provider cookies
|
|
75
|
+
- private auth state paths
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Shared Evidence
|
|
2
|
-
|
|
3
|
-
Use this directory for shared evidence and reports that are not owned by a single
|
|
4
|
-
module.
|
|
5
|
-
|
|
6
|
-
`zsk prepare sync` writes human-readable preparation reports here, such as:
|
|
7
|
-
|
|
8
|
-
```text
|
|
9
|
-
.zsk/evidence/prepare/sync-report.md
|
|
10
|
-
.zsk/evidence/prepare/blocked-resources.md
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Runtime state, temporary files, traces, videos, and raw provider payloads must
|
|
14
|
-
stay out of committed evidence unless a workflow explicitly promotes a redacted
|
|
15
|
-
artifact.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Global Issues
|
|
2
|
-
|
|
3
|
-
Use this directory for global or cross-module issues:
|
|
4
|
-
|
|
5
|
-
- missing provider credentials;
|
|
6
|
-
- blocked resource preparation;
|
|
7
|
-
- route conflicts across multiple modules;
|
|
8
|
-
- architecture or governance blockers that are not owned by one module.
|
|
9
|
-
|
|
10
|
-
Module-specific work belongs in `.zsk/modules/<module>/_issues/**`.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Module Template
|
|
2
|
-
|
|
3
|
-
Copy this template through `zsk module init`; do not create real module
|
|
4
|
-
directories by hand unless the same file contract is preserved.
|
|
5
|
-
|
|
6
|
-
Required files:
|
|
7
|
-
|
|
8
|
-
- `module.yaml`
|
|
9
|
-
- `README.md`
|
|
10
|
-
- `proposal.md`
|
|
11
|
-
- `spec.md`
|
|
12
|
-
- `design.md`
|
|
13
|
-
- `tasks.md`
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Design
|
|
2
|
-
|
|
3
|
-
## Output Quality Check
|
|
4
|
-
|
|
5
|
-
status: NEEDS_CLARIFICATION
|
|
6
|
-
owner: design
|
|
7
|
-
source_basis: []
|
|
8
|
-
blocking_items:
|
|
9
|
-
- Map approved behavior to implementation surfaces.
|
|
10
|
-
next_action: Resolve Interface, data flow, rollout, and verification gaps.
|
|
11
|
-
|
|
12
|
-
## Module
|
|
13
|
-
|
|
14
|
-
## Interfaces
|
|
15
|
-
|
|
16
|
-
## Implementation
|
|
17
|
-
|
|
18
|
-
## Data Flow
|
|
19
|
-
|
|
20
|
-
## Risks
|
|
21
|
-
|
|
22
|
-
## Verification
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# yaml-language-server: $schema=__ZSK_MODULE_SCHEMA_URL__
|
|
2
|
-
|
|
3
|
-
module:
|
|
4
|
-
id: "<module-id>"
|
|
5
|
-
name: "<Module Name>"
|
|
6
|
-
|
|
7
|
-
outputs:
|
|
8
|
-
docs: .zsk/modules/<module-id>
|
|
9
|
-
issues: .zsk/modules/<module-id>/_issues
|
|
10
|
-
|
|
11
|
-
tests:
|
|
12
|
-
raw_cases: []
|
|
13
|
-
derived_cases: []
|
|
14
|
-
automated:
|
|
15
|
-
e2e: []
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Proposal
|
|
2
|
-
|
|
3
|
-
## Output Quality Check
|
|
4
|
-
|
|
5
|
-
status: NEEDS_CLARIFICATION
|
|
6
|
-
owner: proposal
|
|
7
|
-
source_basis: []
|
|
8
|
-
blocking_items:
|
|
9
|
-
- Fill the proposal from reviewed sources.
|
|
10
|
-
next_action: Record scope, non-goals, success criteria, and open questions.
|
|
11
|
-
|
|
12
|
-
## Problem
|
|
13
|
-
|
|
14
|
-
## Scope
|
|
15
|
-
|
|
16
|
-
## Non-Goals
|
|
17
|
-
|
|
18
|
-
## Success Criteria
|
|
19
|
-
|
|
20
|
-
## Open Questions
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Spec
|
|
2
|
-
|
|
3
|
-
## Output Quality Check
|
|
4
|
-
|
|
5
|
-
status: NEEDS_CLARIFICATION
|
|
6
|
-
owner: spec
|
|
7
|
-
source_basis: []
|
|
8
|
-
blocking_items:
|
|
9
|
-
- Fill observable behavior and acceptance criteria from reviewed sources.
|
|
10
|
-
next_action: Resolve missing behavior questions before design.
|
|
11
|
-
|
|
12
|
-
## Functional Requirements
|
|
13
|
-
|
|
14
|
-
## Non-Functional Requirements
|
|
15
|
-
|
|
16
|
-
## Acceptance Criteria
|
|
17
|
-
|
|
18
|
-
## Scenarios
|
|
19
|
-
|
|
20
|
-
## Edge Cases
|
|
21
|
-
|
|
22
|
-
## Open Questions
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Tasks
|
|
2
|
-
|
|
3
|
-
## Output Quality Check
|
|
4
|
-
|
|
5
|
-
status: NEEDS_CLARIFICATION
|
|
6
|
-
owner: task
|
|
7
|
-
source_basis: []
|
|
8
|
-
blocking_items:
|
|
9
|
-
- Convert design into executable tasks.
|
|
10
|
-
next_action: Add ordered tasks with dependencies, owners, and evidence hooks.
|
|
11
|
-
|
|
12
|
-
## Task Queue
|
|
13
|
-
|
|
14
|
-
- [ ] Define the first implementation task.
|
|
15
|
-
|
|
16
|
-
## Evidence Hooks
|