@captain_z/zsk 1.8.3 → 1.8.5
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 +13 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/add-flow.d.ts +3 -7
- package/dist/commands/add-flow.js +7 -59
- package/dist/commands/add-flow.js.map +1 -1
- package/dist/commands/add.js +25 -104
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/check.js +14 -575
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/demo.d.ts +5 -0
- package/dist/commands/demo.js +70 -297
- package/dist/commands/demo.js.map +1 -1
- package/dist/commands/doctor.js +9 -4
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/gate.d.ts +1 -0
- package/dist/commands/gate.js +8 -2
- package/dist/commands/gate.js.map +1 -1
- package/dist/commands/prepare.js +7 -1
- package/dist/commands/prepare.js.map +1 -1
- package/dist/commands/project-init.js +30 -8
- package/dist/commands/project-init.js.map +1 -1
- package/dist/core/config.d.ts +68 -0
- package/dist/core/config.js +198 -15
- package/dist/core/config.js.map +1 -1
- package/dist/core/demo-auth.d.ts +30 -0
- package/dist/core/demo-auth.js +213 -0
- package/dist/core/demo-auth.js.map +1 -0
- package/dist/core/demo-scenarios.d.ts +62 -0
- package/dist/core/demo-scenarios.js +276 -0
- package/dist/core/demo-scenarios.js.map +1 -0
- package/dist/core/demo-sources.d.ts +37 -0
- package/dist/core/demo-sources.js +198 -0
- package/dist/core/demo-sources.js.map +1 -0
- package/dist/core/mcp-registry-discovery.d.ts +16 -0
- package/dist/core/mcp-registry-discovery.js +187 -0
- package/dist/core/mcp-registry-discovery.js.map +1 -0
- package/dist/core/origin-detection.js +1 -1
- package/dist/core/origin-detection.js.map +1 -1
- package/dist/core/prepare-artifacts.d.ts +16 -0
- package/dist/core/prepare-artifacts.js +25 -0
- package/dist/core/prepare-artifacts.js.map +1 -0
- package/dist/core/prepare-auth-helper.d.ts +8 -0
- package/dist/core/prepare-auth-helper.js +32 -0
- package/dist/core/prepare-auth-helper.js.map +1 -0
- package/dist/core/prepare-materialization.d.ts +8 -0
- package/dist/core/prepare-materialization.js +26 -0
- package/dist/core/prepare-materialization.js.map +1 -0
- package/dist/core/prepare-migration.d.ts +6 -0
- package/dist/core/prepare-migration.js +57 -0
- package/dist/core/prepare-migration.js.map +1 -0
- package/dist/core/prepare-reporting.d.ts +5 -0
- package/dist/core/prepare-reporting.js +106 -0
- package/dist/core/prepare-reporting.js.map +1 -0
- package/dist/core/prepare-routing.d.ts +12 -0
- package/dist/core/prepare-routing.js +182 -0
- package/dist/core/prepare-routing.js.map +1 -0
- package/dist/core/prepare-sync.d.ts +13 -53
- package/dist/core/prepare-sync.js +878 -359
- package/dist/core/prepare-sync.js.map +1 -1
- package/dist/core/prepare-utils.d.ts +6 -0
- package/dist/core/prepare-utils.js +35 -0
- package/dist/core/prepare-utils.js.map +1 -0
- package/dist/core/profile-bundle-installation.d.ts +55 -0
- package/dist/core/profile-bundle-installation.js +170 -0
- package/dist/core/profile-bundle-installation.js.map +1 -0
- package/dist/core/provider-policy.d.ts +26 -0
- package/dist/core/provider-policy.js +180 -0
- package/dist/core/provider-policy.js.map +1 -0
- package/dist/core/provider-readiness.d.ts +39 -0
- package/dist/core/provider-readiness.js +78 -0
- package/dist/core/provider-readiness.js.map +1 -0
- package/dist/core/source-adapter-normalization.d.ts +31 -0
- package/dist/core/source-adapter-normalization.js +235 -0
- package/dist/core/source-adapter-normalization.js.map +1 -0
- package/dist/core/source-snapshot-adapters.d.ts +59 -0
- package/dist/core/source-snapshot-adapters.js +60 -0
- package/dist/core/source-snapshot-adapters.js.map +1 -0
- package/dist/core/staffing-plan.d.ts +1 -0
- package/dist/core/staffing-plan.js +113 -21
- package/dist/core/staffing-plan.js.map +1 -1
- package/dist/core/stage-clarity-verification.d.ts +31 -0
- package/dist/core/stage-clarity-verification.js +316 -0
- package/dist/core/stage-clarity-verification.js.map +1 -0
- package/dist/core/stage-output-quality.d.ts +3 -0
- package/dist/core/stage-output-quality.js +122 -0
- package/dist/core/stage-output-quality.js.map +1 -0
- package/dist/core/stage-quality-artifacts.d.ts +15 -0
- package/dist/core/stage-quality-artifacts.js +421 -0
- package/dist/core/stage-quality-artifacts.js.map +1 -0
- package/dist/core/stage-quality-contracts.d.ts +105 -0
- package/dist/core/stage-quality-contracts.js +2 -0
- package/dist/core/stage-quality-contracts.js.map +1 -0
- package/dist/core/stage-quality-criteria.d.ts +9 -0
- package/dist/core/stage-quality-criteria.js +286 -0
- package/dist/core/stage-quality-criteria.js.map +1 -0
- package/dist/core/stage-quality-rendering.d.ts +15 -0
- package/dist/core/stage-quality-rendering.js +240 -0
- package/dist/core/stage-quality-rendering.js.map +1 -0
- package/dist/core/stage-quality.d.ts +4 -59
- package/dist/core/stage-quality.js +54 -795
- package/dist/core/stage-quality.js.map +1 -1
- package/dist/core/template-registry.js +12 -15
- package/dist/core/template-registry.js.map +1 -1
- package/dist/core/workspace-conformance.d.ts +39 -0
- package/dist/core/workspace-conformance.js +603 -0
- package/dist/core/workspace-conformance.js.map +1 -0
- package/package.json +2 -2
- package/schemas/providers.schema.json +74 -0
- package/schemas/zsk-config.schema.json +417 -1
- package/templates/module/frontend-module/design.md +10 -0
- package/templates/module/frontend-module/proposal.md +8 -0
- package/templates/module/frontend-module/spec.md +7 -0
- package/templates/project-init/.zsk/README.md +48 -0
- package/templates/project-init/.zsk/config.yaml +37 -0
- package/templates/project-init/.zsk/docs/CONFIG-SCHEMA.md +127 -0
- package/templates/project-init/.zsk/docs/PROJECT-CONFIG.md +53 -5
- package/templates/project-init/.zsk/docs/README.md +10 -0
- package/templates/project-init/.zsk/docs/SECURITY.md +34 -0
- package/templates/project-init/.zsk/docs/SYSTEM-SPEC.md +39 -7
- package/templates/project-init/.zsk/evidence/README.md +15 -0
- package/templates/project-init/.zsk/issues/README.md +10 -0
- package/templates/project-init/.zsk/modules/README.md +19 -0
- package/templates/project-init/.zsk/modules/index.md +9 -5
- package/templates/project-init/.zsk/raws/README.md +34 -0
- package/templates/project-init/.zsk/roles.yaml +36 -105
- package/templates/project-init/.zsk/templates/config.examples.yaml +83 -0
- package/templates/project-init/.zsk/templates/issue-card.md +23 -0
- package/templates/project-init/.zsk/templates/module/README.md +13 -0
- package/templates/project-init/.zsk/templates/module/design.md +22 -0
- package/templates/project-init/.zsk/templates/module/module.yaml +15 -0
- package/templates/project-init/.zsk/templates/module/proposal.md +20 -0
- package/templates/project-init/.zsk/templates/module/spec.md +22 -0
- package/templates/project-init/.zsk/templates/module/tasks.md +16 -0
- package/templates/project-init/.zsk/raws/index.md +0 -18
- package/templates/project-init/.zsk/raws/manifest.json +0 -4
- package/templates/project-init/.zsk/raws/prepare/backend/index.md +0 -4
- package/templates/project-init/.zsk/raws/prepare/design/index.md +0 -3
- package/templates/project-init/.zsk/raws/prepare/index.md +0 -4
- package/templates/project-init/.zsk/raws/prepare/product/index.md +0 -4
- package/templates/project-init/.zsk/raws/prepare/qa/index.md +0 -4
- package/templates/project-init/.zsk/raws/prepare/ux/index.md +0 -3
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Example provider/resource/route shapes. Copy only the entries this project
|
|
2
|
+
# actually needs into .zsk/config.yaml.
|
|
3
|
+
#
|
|
4
|
+
# Store secret values in the shell environment, not in config. If credentials
|
|
5
|
+
# live in ~/.zshrc, export them there, for example:
|
|
6
|
+
# export ACCESS_TOKEN=...
|
|
7
|
+
# export CONFLUENCE_USER=...
|
|
8
|
+
# export CONFLUENCE_PASSWORD=...
|
|
9
|
+
# ZSK reads process.env after the shell starts; it does not parse ~/.zshrc.
|
|
10
|
+
|
|
11
|
+
providers:
|
|
12
|
+
jira:
|
|
13
|
+
type: issues
|
|
14
|
+
adapter: jira
|
|
15
|
+
baseUrl: https://jira.example.com
|
|
16
|
+
auth:
|
|
17
|
+
env: ACCESS_TOKEN
|
|
18
|
+
defaults:
|
|
19
|
+
project: ZSK
|
|
20
|
+
assignee: me
|
|
21
|
+
confluence:
|
|
22
|
+
type: document
|
|
23
|
+
adapter: confluence
|
|
24
|
+
baseUrl: https://confluence.example.com
|
|
25
|
+
auth:
|
|
26
|
+
usernameEnv: CONFLUENCE_USER
|
|
27
|
+
passwordEnv: CONFLUENCE_PASSWORD
|
|
28
|
+
|
|
29
|
+
automation:
|
|
30
|
+
demo:
|
|
31
|
+
auth:
|
|
32
|
+
required: true
|
|
33
|
+
loginUrl: http://localhost:3000/login
|
|
34
|
+
storageState: .zsk/modules/{module}/_playwright/.auth/user.json
|
|
35
|
+
envFiles:
|
|
36
|
+
- ~/.zshrc
|
|
37
|
+
env:
|
|
38
|
+
username: DEMO_USERNAME
|
|
39
|
+
password: DEMO_PASSWORD
|
|
40
|
+
selectors:
|
|
41
|
+
username: input[name="username"]
|
|
42
|
+
password: input[type="password"]
|
|
43
|
+
submit: button[type="submit"]
|
|
44
|
+
|
|
45
|
+
resources:
|
|
46
|
+
- id: core-api
|
|
47
|
+
type: repository
|
|
48
|
+
area: Backend Services
|
|
49
|
+
source:
|
|
50
|
+
kind: git-submodule
|
|
51
|
+
path: .zsk/raws/repositories/core-api/repository
|
|
52
|
+
|
|
53
|
+
- id: my-bugs
|
|
54
|
+
type: issues
|
|
55
|
+
provider: jira
|
|
56
|
+
query:
|
|
57
|
+
jql: assignee = currentUser() AND issuetype = Bug ORDER BY updated DESC
|
|
58
|
+
classify:
|
|
59
|
+
by: [priority, component, status]
|
|
60
|
+
|
|
61
|
+
- id: role-prd
|
|
62
|
+
type: document
|
|
63
|
+
area: Confluence
|
|
64
|
+
provider: confluence
|
|
65
|
+
source:
|
|
66
|
+
kind: confluence
|
|
67
|
+
pageId: "12345"
|
|
68
|
+
|
|
69
|
+
- id: public-prd
|
|
70
|
+
type: document
|
|
71
|
+
area: Product
|
|
72
|
+
source:
|
|
73
|
+
kind: url
|
|
74
|
+
url: https://example.com/prd
|
|
75
|
+
fallback:
|
|
76
|
+
acquisition: [playwright_cli]
|
|
77
|
+
observation: [computer_use]
|
|
78
|
+
|
|
79
|
+
routes:
|
|
80
|
+
- from: my-bugs
|
|
81
|
+
to:
|
|
82
|
+
module: permission
|
|
83
|
+
artifact: issues
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "<issue-id>"
|
|
3
|
+
title: "<issue-title>"
|
|
4
|
+
status: open
|
|
5
|
+
priority: medium
|
|
6
|
+
module: "<module-id>"
|
|
7
|
+
source:
|
|
8
|
+
resource: "<resource-id>"
|
|
9
|
+
provider: "<provider-id>"
|
|
10
|
+
key: "<provider-issue-key>"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# <issue-title>
|
|
14
|
+
|
|
15
|
+
<!-- zsk:source:start -->
|
|
16
|
+
Provider source summary will be updated by `zsk prepare sync`.
|
|
17
|
+
<!-- zsk:source:end -->
|
|
18
|
+
|
|
19
|
+
## Local Notes
|
|
20
|
+
|
|
21
|
+
## Decision
|
|
22
|
+
|
|
23
|
+
## Next Action
|
|
@@ -0,0 +1,13 @@
|
|
|
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`
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,15 @@
|
|
|
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: []
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Raw Source Index
|
|
2
|
-
|
|
3
|
-
Immutable fact sources for this project. Generated and refreshed by `zsk prep`.
|
|
4
|
-
|
|
5
|
-
Active source snapshots should be organized by prepare responsibility lane:
|
|
6
|
-
|
|
7
|
-
- `prepare/product/` for SRS, PRD, business process, acceptance semantics, and work items.
|
|
8
|
-
- `prepare/product/{topic}/product-brief.md` and `roadmap.md` for preproposal-generated product direction and MVP/phase decomposition after checkpoint review.
|
|
9
|
-
- `prepare/backend/` for backend repositories, API contracts, data model, and service-boundary evidence.
|
|
10
|
-
- `prepare/design/` for design/prototype sources, screen maps, and visual assets.
|
|
11
|
-
- `prepare/design/{topic}/design-source-needs.md` for preproposal design-source readiness gaps after checkpoint review.
|
|
12
|
-
- `prepare/ux/` for user flows, interaction notes, IA, and usability evidence.
|
|
13
|
-
- `prepare/ux/{topic}/ux-readiness.md` for preproposal journey/flow/IA/readiness seeds after checkpoint review.
|
|
14
|
-
- `prepare/qa/` for test cases, acceptance scenarios, regression matrices, and QA evidence.
|
|
15
|
-
|
|
16
|
-
| Provider | Type | Status | Snapshot / Origin |
|
|
17
|
-
| --- | --- | --- | --- |
|
|
18
|
-
| | | | |
|