@webship.co/workspace-sandboxes 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
|
@@ -37,10 +37,7 @@ The settings file and the docs are placed once and never overwritten: they hold
|
|
|
37
37
|
| `cmd-tools-cancel-users.sh` |
|
|
38
38
|
| `cmd-tools-checks.sh` |
|
|
39
39
|
| `cmd-tools-clone.sh` |
|
|
40
|
-
| `cmd-tools-graphify.sh` |
|
|
41
40
|
| `cmd-tools-hostnames.sh` |
|
|
42
|
-
| `cmd-tools-obsidian.sh` |
|
|
43
|
-
| `cmd-tools-ragify.sh` |
|
|
44
41
|
| `cmd-tools-reclaim.sh` |
|
|
45
42
|
| `cmd-tools-remove.sh` |
|
|
46
43
|
| `cmd-tools-screen.sh` |
|
|
@@ -4,7 +4,8 @@ Feature: The Sandboxes workspace plugin
|
|
|
4
4
|
|
|
5
5
|
Scenario: The workspace page is there
|
|
6
6
|
Given I am on "/sandboxes"
|
|
7
|
-
Then
|
|
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-sandboxes",
|
|
3
|
-
"version": "1.0.0-
|
|
4
|
-
"description": "The Sandboxes workspace for Webship Workspace: the `sandboxes/` folder (type sites), its settings file, its
|
|
3
|
+
"version": "1.0.0-beta1",
|
|
4
|
+
"description": "The Sandboxes workspace for Webship Workspace: the `sandboxes/` folder (type sites), its settings file, its 30 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",
|
|
@@ -47,10 +47,7 @@
|
|
|
47
47
|
"commands/cmd-tools-cancel-users.sh",
|
|
48
48
|
"commands/cmd-tools-checks.sh",
|
|
49
49
|
"commands/cmd-tools-clone.sh",
|
|
50
|
-
"commands/cmd-tools-graphify.sh",
|
|
51
50
|
"commands/cmd-tools-hostnames.sh",
|
|
52
|
-
"commands/cmd-tools-obsidian.sh",
|
|
53
|
-
"commands/cmd-tools-ragify.sh",
|
|
54
51
|
"commands/cmd-tools-reclaim.sh",
|
|
55
52
|
"commands/cmd-tools-remove.sh",
|
|
56
53
|
"commands/cmd-tools-screen.sh",
|
|
@@ -76,7 +73,7 @@
|
|
|
76
73
|
},
|
|
77
74
|
"devDependencies": {
|
|
78
75
|
"@types/node": "^24.0.0",
|
|
79
|
-
"@webship.co/workspace-plugin-api": "^1.0.0-
|
|
76
|
+
"@webship.co/workspace-plugin-api": "^1.0.0-beta1",
|
|
80
77
|
"typescript": "^5.9.0"
|
|
81
78
|
},
|
|
82
79
|
"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.sandboxes.settings.yml);
|
|
14
|
-
|
|
15
|
-
ARGPARSE_DESCRIPTION="Build or query the knowledge graph of a project in the sandboxes 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/sandboxes/<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.sandboxes.settings.yml);
|
|
17
|
-
|
|
18
|
-
ARGPARSE_DESCRIPTION="Build an Obsidian vault from the knowledge graph of a project in the sandboxes 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.sandboxes.settings.yml);
|
|
18
|
-
|
|
19
|
-
ARGPARSE_DESCRIPTION="Build or query the Milvus RAG index of a project in the sandboxes 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
|