clavarium 0.2.34-next.1 → 0.2.35-next.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.
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.34-next.1",
3
+ "version": "0.2.35-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.34-next.1",
9
+ "version": "0.2.35-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
13
13
  "@xterm/xterm": "^6.0.0",
14
- "clavarium-binder": "0.1.4-next.1",
14
+ "clavarium-binder": "0.1.5-next.2",
15
15
  "clavarium-docket": "0.1.1",
16
16
  "clavarium-parley": "0.17.3-next.1",
17
17
  "mermaid": "11.17.2",
@@ -688,9 +688,9 @@
688
688
  }
689
689
  },
690
690
  "node_modules/clavarium-binder": {
691
- "version": "0.1.4-next.1",
692
- "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.4-next.1.tgz",
693
- "integrity": "sha512-eTqU5q3Jf184N5Ve4R5SzDjCOyl0x3hDx79mJouO6IYFV68BF5w0AzZWJHF/691crT06zL2lhe+sMEcyoZqg9w==",
691
+ "version": "0.1.5-next.2",
692
+ "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.5-next.2.tgz",
693
+ "integrity": "sha512-KfVcxnkVufYL29KqxljhrBC616wDMYUwh3xKcM9inaoOATYAje3Uo+1vTrDhtFqjtmlPFlvzwlwyu6ZO7vtuEA==",
694
694
  "license": "MIT",
695
695
  "bin": {
696
696
  "binder": "bin/binder.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.34-next.1",
3
+ "version": "0.2.35-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@xterm/addon-fit": "^0.11.0",
46
46
  "@xterm/xterm": "^6.0.0",
47
- "clavarium-binder": "0.1.4-next.1",
47
+ "clavarium-binder": "0.1.5-next.2",
48
48
  "clavarium-docket": "0.1.1",
49
49
  "clavarium-parley": "0.17.3-next.1",
50
50
  "mermaid": "11.17.2",
package/web/app.js CHANGED
@@ -4283,6 +4283,7 @@
4283
4283
  if (a.kind === 'asset') void openAssetsPlace(a.ref);
4284
4284
  else if (a.kind === 'message') void openCardMessage(whose(), a.ref);
4285
4285
  else if (a.kind === 'file') void openCardFile(whose(), a.ref);
4286
+ else if (a.kind === 'commit' || a.kind === 'branch') void openCardGit(whose(), a.ref, a.kind);
4286
4287
  else if (a.kind === 'link' && /^https?:\/\//i.test(a.ref)) window.open(a.ref, '_blank', 'noopener');
4287
4288
  },
4288
4289
  /* Where it is: a step of this page's Back (below). */
@@ -4314,6 +4315,14 @@
4314
4315
  const tab = m[1] === 'work' ? 'work' : m[1].slice('resources/'.length);
4315
4316
  void preview(tab, m[2], m[2].split('/').pop(), 0);
4316
4317
  }
4318
+ /* A commit or a branch of a repository of its conversation (ref "repository:sha" / "repository:branch"): the git review, at it. */
4319
+ function openCardGit(name, ref, kind) {
4320
+ const raw = String(ref ?? '').trim(); const at = raw.indexOf(':');
4321
+ if (at < 1 || DEVICE || !toConversation(name)) return;
4322
+ const repo = raw.slice(0, at); const rest = raw.slice(at + 1).trim();
4323
+ if (!repo || !rest) return;
4324
+ void openGit(repo, kind === 'commit' ? { commit: rest } : { branch: rest });
4325
+ }
4317
4326
  function watchBinders() {
4318
4327
  if (binderTimer) return;
4319
4328
  binderTimer = setInterval(async () => {