@webship.co/workspace-drupal-modules 1.0.0-alpha1 → 1.0.0-beta1

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/README.md CHANGED
@@ -25,9 +25,6 @@ The settings file and the docs are placed once and never overwritten: they hold
25
25
  | `cmd-tool-git-clone-all-modules.sh` |
26
26
  | `cmd-tools-checks.sh` |
27
27
  | `cmd-tools-gitlab-ci-local.sh` |
28
- | `cmd-tools-graphify.sh` |
29
- | `cmd-tools-obsidian.sh` |
30
- | `cmd-tools-ragify.sh` |
31
28
  | `cmd-tools-reclaim.sh` |
32
29
 
33
30
  The bash functions these commands call live in the dashboard's `core/scripts/functions`.
@@ -4,7 +4,8 @@ Feature: The Drupal modules workspace plugin
4
4
 
5
5
  Scenario: The workspace page is there
6
6
  Given I am on "/modules"
7
- Then I should see "Drupal modules"
7
+ Then the element "h1" should be displayed
8
+ And the element "#webship-workspace-projects, .items-list, .workspace-page" should be attached
8
9
 
9
10
  Scenario: The plugin is listed on the Plugins page
10
11
  Given I am on "/settings/plugins"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webship.co/workspace-drupal-modules",
3
- "version": "1.0.0-alpha1",
4
- "description": "The Drupal modules workspace for Webship Workspace: the `modules/` folder (type code), its settings file, its 9 commands and its docs, activated as a plugin.",
3
+ "version": "1.0.0-beta1",
4
+ "description": "The Drupal modules workspace for Webship Workspace: the `modules/` folder (type code), its settings file, its 6 commands and its docs, activated as a plugin.",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "license": "ISC",
@@ -35,9 +35,6 @@
35
35
  "commands/cmd-tool-git-clone-all-modules.sh",
36
36
  "commands/cmd-tools-checks.sh",
37
37
  "commands/cmd-tools-gitlab-ci-local.sh",
38
- "commands/cmd-tools-graphify.sh",
39
- "commands/cmd-tools-obsidian.sh",
40
- "commands/cmd-tools-ragify.sh",
41
38
  "commands/cmd-tools-reclaim.sh"
42
39
  ],
43
40
  "docs": [
@@ -52,7 +49,7 @@
52
49
  },
53
50
  "devDependencies": {
54
51
  "@types/node": "^24.0.0",
55
- "@webship.co/workspace-plugin-api": "^1.0.0-alpha1",
52
+ "@webship.co/workspace-plugin-api": "^1.0.0-beta1",
56
53
  "typescript": "^5.9.0"
57
54
  },
58
55
  "publishConfig": {
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Map a project in this workspace into a queryable knowledge graph with
4
- # graphify (https://github.com/Graphify-Labs/graphify), or ask an existing
5
- # graph a question.
6
-
7
- # Bootstrap.
8
- # Find the workspace tooling from this script, so a fresh clone needs no setup.
9
- WORKSPACE_SCRIPTS="${WORKSPACE_SCRIPTS:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../core/scripts" && pwd)}";
10
- source ${WORKSPACE_SCRIPTS}/bootstrap.sh || exit 1 ;
11
-
12
- # Load workspace settings and extra lists.
13
- eval $(parse_yaml ${WORKSPACE_CONFIG}/workspace.modules.settings.yml);
14
-
15
- ARGPARSE_DESCRIPTION="Build or query the knowledge graph of a project in the modules workspace"
16
- source ${WORKSPACE_SCRIPTS}/args/arg-graphify.sh || exit 1 ;
17
-
18
- shift $#;
19
-
20
- if [ ! "${STORE}" == '_none_' ] ; then
21
- ensure_graphify || exit 1 ;
22
- graphify_store_url "${WORKSPACE_ROOT}/${doc_name}/${PROJECT_NAME}" "${STORE}" ;
23
- elif [ -n "${QUERY}" ] ; then
24
- graphify_query_project ;
25
- else
26
- graphify_project ;
27
- fi
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Turn a project's knowledge graph into an Obsidian vault — one note per entity,
4
- # a [[wikilink]] per relation, and a JSON Canvas of the map. Written next to the
5
- # graph in graphs/modules/<project>/obsidian/.
6
- #
7
- # Build the graph first with cmd-tools-graphify.sh: this reads what that wrote
8
- # rather than parsing the project a second time.
9
-
10
- # Bootstrap.
11
- # Find the workspace tooling from this script, so a fresh clone needs no setup.
12
- WORKSPACE_SCRIPTS="${WORKSPACE_SCRIPTS:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../core/scripts" && pwd)}";
13
- source ${WORKSPACE_SCRIPTS}/bootstrap.sh || exit 1 ;
14
-
15
- # Load workspace settings and extra lists.
16
- eval $(parse_yaml ${WORKSPACE_CONFIG}/workspace.modules.settings.yml);
17
-
18
- ARGPARSE_DESCRIPTION="Build an Obsidian vault from the knowledge graph of a project in the modules workspace"
19
- source ${WORKSPACE_SCRIPTS}/args/arg-obsidian.sh || exit 1 ;
20
-
21
- shift $#;
22
-
23
- export MAX_CANVAS_NODES="${MAX_CANVAS_NODES}";
24
-
25
- if [ "${REMOVE}" == 'yes' ] ; then
26
- obsidian_remove ;
27
- elif [ "${STATUS}" == 'yes' ] ; then
28
- obsidian_status ;
29
- else
30
- obsidian_project ;
31
- fi
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Index a project in this workspace into the Milvus vector database
4
- # (https://github.com/milvus-io/milvus) held in ~/workspace/rag, or ask an
5
- # existing index a question.
6
- #
7
- # The RAG counterpart of cmd-tools-graphify.sh: graphify parses the CODE into a
8
- # graph and reads no Markdown, Twig, *.module hooks or Drupal wiring YAML — this
9
- # indexes the text of exactly those and retrieves passages from them.
10
-
11
- # Bootstrap.
12
- # Find the workspace tooling from this script, so a fresh clone needs no setup.
13
- WORKSPACE_SCRIPTS="${WORKSPACE_SCRIPTS:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../core/scripts" && pwd)}";
14
- source ${WORKSPACE_SCRIPTS}/bootstrap.sh || exit 1 ;
15
-
16
- # Load workspace settings and extra lists.
17
- eval $(parse_yaml ${WORKSPACE_CONFIG}/workspace.modules.settings.yml);
18
-
19
- ARGPARSE_DESCRIPTION="Build or query the Milvus RAG index of a project in the modules workspace"
20
- source ${WORKSPACE_SCRIPTS}/args/arg-ragify.sh || exit 1 ;
21
-
22
- shift $#;
23
-
24
- if [ -n "${QUERY}" ] ; then
25
- ragify_query_project ;
26
- else
27
- ragify_project ;
28
- fi