@graphit/cli 0.2.380 → 0.2.384

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 (41) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/bin/graphit +1 -1
  5. package/bin/graphit.ps1 +1 -1
  6. package/dist/commands/ds/sql-history.d.ts +29 -0
  7. package/dist/commands/ds/sql-history.js +69 -0
  8. package/dist/commands/ds/sql-history.js.map +1 -0
  9. package/dist/commands/ds.js +3 -0
  10. package/dist/commands/ds.js.map +1 -1
  11. package/dist/commands/kb-batch.js +1 -1
  12. package/dist/commands/kb-batch.js.map +1 -1
  13. package/dist/commands/kb.js +2 -21
  14. package/dist/commands/kb.js.map +1 -1
  15. package/dist/skill-guard.js +0 -2
  16. package/dist/skill-guard.js.map +1 -1
  17. package/hooks/hooks.json +12 -1
  18. package/package.json +1 -1
  19. package/scripts/fixtures/kb-cutover-project293.json +13 -0
  20. package/scripts/plugin-status/claude-install.mjs +215 -0
  21. package/scripts/plugin-status/cloud-refresh.mjs +97 -0
  22. package/scripts/plugin-status/common.mjs +107 -0
  23. package/scripts/plugin-status/hook-io.mjs +200 -0
  24. package/scripts/plugin-status.mjs +68 -505
  25. package/scripts/sync-plugin-marketplace.sh +18 -0
  26. package/scripts/verb-policy-source.json +49 -30
  27. package/scripts/verify-kb-cutover.mjs +134 -0
  28. package/skills/graphit/SKILL.md +7 -7
  29. package/skills/graphit/VERSION.json +1 -1
  30. package/skills/graphit/references/governance.md +2 -2
  31. package/skills/graphit/references/kb-actions.md +5 -5
  32. package/skills/graphit/references/kb-discovery.md +1 -1
  33. package/skills/graphit/references/metric-families.md +1 -1
  34. package/skills/graphit/references/onboarding.md +1 -1
  35. package/skills/graphit/references/page-load.md +38 -0
  36. package/skills/graphit/references/runtime.md +5 -5
  37. package/skills/graphit/references/semantic-authoring.md +5 -5
  38. package/skills/graphit/references/share.md +4 -4
  39. package/skills/graphit-build/SKILL.md +1 -1
  40. package/skills/graphit-explore/SKILL.md +1 -1
  41. package/skills/graphit-share/SKILL.md +5 -5
@@ -2,7 +2,7 @@
2
2
  name: graphit-share
3
3
  description: >-
4
4
  Share or publish Graphit work, edit shared Graphit dashboards, or author into a shared group. Use after Graphit routing or a direct Graphit shared-scope request. Pair with graphit-build for dashboard authoring. Read-only questions belong to graphit-explore.
5
- skill_version: "0.2.380"
5
+ skill_version: "0.2.384"
6
6
  ---
7
7
 
8
8
  # Share: checks at the shared write
@@ -47,9 +47,9 @@ Use the **draft door** for shared dashboards and the **share plan** for private
47
47
 
48
48
  ## Shared-scope checks
49
49
 
50
- Read ../graphit/references/kb-scope.md for effective permissions and exact placement, ../graphit/references/kb-discovery.md for staged reuse discovery, and ../graphit/references/semantic-authoring.md plus ../graphit/references/kb-actions.md for supported definitions, equivalence and verification. Resolve the audience, lowercase group and uppercase policy key from current `status` and returned `domain_keys`; carry forward choices already made. Read access is the ceiling for writes, and a status result is advisory, never a grant.
50
+ Read ../graphit/references/kb-scope.md for effective permissions and exact placement, ../graphit/references/kb-discovery.md for staged reuse discovery, and ../graphit/references/semantic-authoring.md plus ../graphit/references/kb-actions.md for supported definitions, equivalence and validation. Resolve the audience, lowercase group and uppercase policy key from current `status` and returned `domain_keys`; carry forward choices already made. Read access is the ceiling for writes, and a status result is advisory, never a grant.
51
51
 
52
- **KB-readiness gate:** before work goes live for others, confirm the required models, nested components, metrics, groups and rules exist and have the needed verification. If a business measure is missing, present its gap and proposed governed definition for approval, then author and verify the approved prerequisites. An ad-hoc business measure can be unavailable to governed-only viewers; do not silently publish it as a reusable governed answer. Compare actual binding, grain, time dimension, aggregation, filters, units and policy, not just names or SQL. A same-named conflicting asset is not equivalent: explain the difference and resolve the consequential choice. A truly equivalent accessible asset should be reused.
52
+ **KB-readiness gate:** before work goes live for others, confirm the required models, nested components, metrics, groups and rules exist, are valid and are readable in the intended scope. If a business measure is missing, present its gap and proposed governed definition for approval, then save and read back the approved prerequisites. An ad-hoc business measure can be unavailable to governed-only viewers; do not silently publish it as a reusable governed answer. Compare actual binding, grain, time dimension, aggregation, filters, units and policy, not just names or SQL. A same-named conflicting asset is not equivalent: explain the difference and resolve the consequential choice. A truly equivalent accessible asset should be reused.
53
53
 
54
54
  Choose dashboard audience and folder through ../graphit/references/dashboard-create.md when sharing. Owners share their own; org admins/owners also any they can see. Org needs admin/owner; Team needs membership. When needed, explain Private/ORG/named scopes via ../graphit/references/kb-scope.md; keep dashboard audience separate.
55
55
 
@@ -64,9 +64,9 @@ Report 409 (another editor), 423 (locked) and 403 (view-only) with the returned
64
64
  ## Share plan: private to shared
65
65
 
66
66
  1. With the requested audience and placement established and the content checked, attempt `dashboard share` on the same ID. A success needs audience and placement readback; a private-dependency refusal supplies `blockers` and `remediation_options`. Read ../graphit/references/sharing-recovery.md. Respect `blockers_truncated` and uncertainty; the visible list is not proof of a complete closure when eligibility could not be verified. For shapes b/c without a dashboard, inspect the selected assets and their visible dependencies directly; do not invent a share-preview endpoint.
67
- 2. For each returned private dependency, choose **reuse**, **move**, or **create**. Reuse an accessible shared equivalent only after inspecting its full definition. Move an approved model or metric with `kb update semantic-model` or `kb update metric` and the target `group`; the bound source's home follows its model, there is no independent source-move command. Create only a genuinely missing, supported definition through `kb create`, never a copy to evade ownership or a refusal. Include naming collisions and the impact of changing visibility.
67
+ 2. For each returned private dependency, choose **reuse**, **move**, or **create**. Reuse an accessible shared equivalent only after inspecting its full definition. Move an approved model or metric with `kb update semantic-model` or `kb update metric` and the target `group`, several in one ordered `kb batch`; the bound source's home follows its model, no command moves a source alone. Create only a genuinely missing, supported definition through `kb create`, never a copy to evade ownership or a refusal. Include naming collisions and visibility impact.
68
68
  3. Present the whole plan as **one structured ask**: exact assets, reuse comparisons, moves/new definitions, affected audience, group, rules and destination. Carry forward existing authorization; ask for the additional effects or consequential choices not yet approved. An authorization to share a dashboard alone does not silently authorize broadening every source's audience.
69
- 4. Apply the approved dependency order one item at a time. Read each terminal receipt and re-read the resulting definition/binding before the next step. When reusing a shared asset, rewrite each `data-graphit-*` attribute naming the replaced asset through `dashboard update-html`, preserving unrelated content. Run the readiness checks on the resulting references and pre-flight the canvas. `dashboard check` is not proof of sharing eligibility.
69
+ 4. Apply the approved dependency order. Read each item's terminal receipt and re-read the resulting definition/binding before the next step. When reusing a shared asset, rewrite each `data-graphit-*` attribute naming the replaced asset through `dashboard update-html`, preserving unrelated content. Run the readiness checks on the resulting references and pre-flight the canvas. `dashboard check` is not proof of sharing eligibility.
70
70
  5. Retry the original `dashboard share` with the agreed space/team and `--folder-path`. Verify the same ID's audience through `dashboard list` and placement through the destination folder listing. For definitions/source-only work, read back the exact group, binding and requested configuration instead of claiming a dashboard was shared.
71
71
  6. On intermediate failure, report what applied, what remains and the returned next step. Preserve successful work. Reconcile uncertain writes by reading state before retrying; do not repeat a non-retryable operation unchanged, silently fall back to another folder, or create a replacement dashboard/source.
72
72