@graphit/cli 0.2.379 → 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.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/bin/graphit +1 -1
- package/bin/graphit.ps1 +1 -1
- package/dist/commands/ds/sql-history.d.ts +29 -0
- package/dist/commands/ds/sql-history.js +69 -0
- package/dist/commands/ds/sql-history.js.map +1 -0
- package/dist/commands/ds.js +3 -0
- package/dist/commands/ds.js.map +1 -1
- package/dist/commands/kb-batch.js +1 -1
- package/dist/commands/kb-batch.js.map +1 -1
- package/dist/commands/kb.js +2 -21
- package/dist/commands/kb.js.map +1 -1
- package/dist/skill-guard.js +0 -2
- package/dist/skill-guard.js.map +1 -1
- package/hooks/hooks.json +12 -1
- package/package.json +1 -1
- package/scripts/fixtures/kb-cutover-project293.json +13 -0
- package/scripts/plugin-status/claude-install.mjs +215 -0
- package/scripts/plugin-status/cloud-refresh.mjs +97 -0
- package/scripts/plugin-status/common.mjs +107 -0
- package/scripts/plugin-status/hook-io.mjs +200 -0
- package/scripts/plugin-status.mjs +68 -505
- package/scripts/show-query-result.mjs +23 -4
- package/scripts/sync-plugin-marketplace.sh +18 -0
- package/scripts/verb-policy-source.json +49 -30
- package/scripts/verify-kb-cutover.mjs +134 -0
- package/skills/graphit/SKILL.md +7 -7
- package/skills/graphit/VERSION.json +1 -1
- package/skills/graphit/references/governance.md +2 -2
- package/skills/graphit/references/kb-actions.md +5 -5
- package/skills/graphit/references/kb-discovery.md +1 -1
- package/skills/graphit/references/metric-families.md +1 -1
- package/skills/graphit/references/onboarding.md +1 -1
- package/skills/graphit/references/page-load.md +38 -0
- package/skills/graphit/references/runtime.md +5 -5
- package/skills/graphit/references/semantic-authoring.md +5 -5
- package/skills/graphit/references/share.md +4 -4
- package/skills/graphit-build/SKILL.md +1 -1
- package/skills/graphit-explore/SKILL.md +1 -1
- package/skills/graphit-share/SKILL.md +5 -5
|
@@ -20,9 +20,9 @@ Use the **draft door** for shared dashboards and the **share plan** for private
|
|
|
20
20
|
|
|
21
21
|
## Shared-scope checks
|
|
22
22
|
|
|
23
|
-
Read kb-scope.md for effective permissions and exact placement, kb-discovery.md for staged reuse discovery, and semantic-authoring.md plus kb-actions.md for supported definitions, equivalence and
|
|
23
|
+
Read kb-scope.md for effective permissions and exact placement, kb-discovery.md for staged reuse discovery, and semantic-authoring.md plus 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.
|
|
24
24
|
|
|
25
|
-
**KB-readiness gate:** before work goes live for others, confirm the required models, nested components, metrics, groups and rules exist and
|
|
25
|
+
**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.
|
|
26
26
|
|
|
27
27
|
Choose dashboard audience and folder through 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 kb-scope.md; keep dashboard audience separate.
|
|
28
28
|
|
|
@@ -37,9 +37,9 @@ Report 409 (another editor), 423 (locked) and 403 (view-only) with the returned
|
|
|
37
37
|
## Share plan: private to shared
|
|
38
38
|
|
|
39
39
|
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 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.
|
|
40
|
-
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,
|
|
40
|
+
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.
|
|
41
41
|
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.
|
|
42
|
-
4. Apply the approved dependency order
|
|
42
|
+
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.
|
|
43
43
|
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.
|
|
44
44
|
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.
|
|
45
45
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: graphit-build
|
|
3
3
|
description: >-
|
|
4
4
|
Author and verify Graphit dashboard content, private or shared, and build private reports, sources and saved metrics. Pair with graphit-share for shared dependencies, draft sessions and publication. Use graphit-explore for answers without artifacts.
|
|
5
|
-
skill_version: "0.2.
|
|
5
|
+
skill_version: "0.2.384"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Build: author and verify content
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: graphit-explore
|
|
3
3
|
description: >-
|
|
4
4
|
Answer, explain or diagnose business data using Graphit. Use after Graphit routing or for a direct Graphit question, including reads of shared dashboards. Does not authorize creating reusable definitions or sharing; use graphit-build to keep a private artifact and graphit-share for shared writes.
|
|
5
|
-
skill_version: "0.2.
|
|
5
|
+
skill_version: "0.2.384"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Explore: answer the question
|
|
@@ -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.
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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
|
|