nikos 0.0.0-stage → 0.0.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/cli.js +60 -0
  4. package/dist/commands/bet.js +97 -0
  5. package/dist/commands/clear.js +100 -0
  6. package/dist/commands/decide.js +60 -0
  7. package/dist/commands/decisions.js +71 -0
  8. package/dist/commands/init.js +72 -0
  9. package/dist/commands/next.js +35 -0
  10. package/dist/commands/plan.js +64 -0
  11. package/dist/commands/show.js +82 -0
  12. package/dist/commands/state.js +104 -0
  13. package/dist/commands/validate.js +206 -0
  14. package/dist/commands/verify.js +95 -0
  15. package/dist/lib/project.js +42 -0
  16. package/dist/lint/constitution.js +40 -0
  17. package/dist/lint/gherkin.js +99 -0
  18. package/dist/lint/portable.js +66 -0
  19. package/dist/verify/detect.js +21 -0
  20. package/docs/format.md +296 -0
  21. package/docs/gherkin.md +81 -0
  22. package/docs/install.md +72 -0
  23. package/docs/intentdocs-mapping.md +117 -0
  24. package/package.json +44 -4
  25. package/schemas/bet.schema.json +23 -0
  26. package/schemas/state.schema.json +34 -0
  27. package/schemas/storymap.schema.json +43 -0
  28. package/skills/clear/SKILL.md +55 -0
  29. package/skills/clear-review/SKILL.md +45 -0
  30. package/skills/decisions/SKILL.md +45 -0
  31. package/skills/intent/SKILL.md +39 -0
  32. package/skills/nikos-mode/SKILL.md +61 -0
  33. package/skills/nikos-mode/playbooks/answer.md +9 -0
  34. package/skills/nikos-mode/playbooks/bet.md +14 -0
  35. package/skills/nikos-mode/playbooks/build-a-story.md +14 -0
  36. package/skills/nikos-mode/playbooks/change.md +12 -0
  37. package/skills/nikos-mode/playbooks/idea-to-blueprint.md +16 -0
  38. package/skills/nikos-mode/playbooks/index.md +13 -0
  39. package/skills/nikos-mode/playbooks/validate.md +17 -0
  40. package/skills/nikos-mode/principles/index.md +14 -0
  41. package/skills/verify/SKILL.md +49 -0
  42. package/templates/intent/constitution.md +19 -0
  43. package/templates/intent/decisions.md +12 -0
  44. package/templates/intent/features/getting-started/first-story.feature +12 -0
  45. package/templates/intent/plans/.gitkeep +0 -0
  46. package/templates/intent/state.yaml +4 -0
  47. package/templates/intent/storymap.yaml +10 -0
  48. package/templates/plan.md +13 -0
  49. package/templates/verify/js/cucumber.mjs +6 -0
  50. package/templates/verify/js/test/steps/first-story.steps.mjs +16 -0
  51. package/templates/verify/python/behave.ini +4 -0
  52. package/templates/verify/python/steps/first_story_steps.py +19 -0
  53. package/templates/verify/ts/cucumber.mjs +6 -0
  54. package/templates/verify/ts/test/steps/first-story.steps.ts +16 -0
@@ -0,0 +1,13 @@
1
+ ---
2
+ story: {{story}}
3
+ version: {{version}}
4
+ created: {{date}}
5
+ {{supersedes}}summary: {{summary}}
6
+ ---
7
+
8
+ ## 1. {{first_step}}
9
+ **Why:** what changes for the user.
10
+ **Criteria:** AC1
11
+ **Files:**
12
+
13
+ Notes for the agent.
@@ -0,0 +1,6 @@
1
+ // Created by `nikos verify setup`. Runs the stories in intent/ as tests.
2
+ export default {
3
+ paths: ["intent/features/**/*.feature"],
4
+ import: ["test/steps/**/*.steps.mjs"],
5
+ format: ["progress"],
6
+ };
@@ -0,0 +1,16 @@
1
+ // Step definitions for intent/features/getting-started/first-story.feature.
2
+ // Replace each "pending" with a real check against your app. Never edit the
3
+ // feature to make a step pass.
4
+ import { Given, When, Then } from "@cucumber/cucumber";
5
+
6
+ Given("I am a new user", function () {
7
+ return "pending";
8
+ });
9
+
10
+ When("I do the one thing this product is for", function () {
11
+ return "pending";
12
+ });
13
+
14
+ Then("I see the result I came for", function () {
15
+ return "pending";
16
+ });
@@ -0,0 +1,4 @@
1
+ # Created by `nikos verify setup`. Runs the stories in intent/ as tests.
2
+ # Step definitions live in steps/ at the repo root.
3
+ [behave]
4
+ paths = intent/features
@@ -0,0 +1,19 @@
1
+ # Step definitions for intent/features/getting-started/first-story.feature.
2
+ # Replace each NotImplementedError with a real check against your app. Never
3
+ # edit the feature to make a step pass.
4
+ from behave import given, when, then
5
+
6
+
7
+ @given("I am a new user")
8
+ def step_new_user(context):
9
+ raise NotImplementedError("STEP: Given I am a new user")
10
+
11
+
12
+ @when("I do the one thing this product is for")
13
+ def step_core_action(context):
14
+ raise NotImplementedError("STEP: When I do the one thing this product is for")
15
+
16
+
17
+ @then("I see the result I came for")
18
+ def step_result(context):
19
+ raise NotImplementedError("STEP: Then I see the result I came for")
@@ -0,0 +1,6 @@
1
+ // Created by `nikos verify setup`. Runs the stories in intent/ as tests.
2
+ export default {
3
+ paths: ["intent/features/**/*.feature"],
4
+ import: ["test/steps/**/*.steps.ts"],
5
+ format: ["progress"],
6
+ };
@@ -0,0 +1,16 @@
1
+ // Step definitions for intent/features/getting-started/first-story.feature.
2
+ // Replace each "pending" with a real check against your app. Never edit the
3
+ // feature to make a step pass.
4
+ import { Given, When, Then } from "@cucumber/cucumber";
5
+
6
+ Given("I am a new user", function (): string {
7
+ return "pending";
8
+ });
9
+
10
+ When("I do the one thing this product is for", function (): string {
11
+ return "pending";
12
+ });
13
+
14
+ Then("I see the result I came for", function (): string {
15
+ return "pending";
16
+ });