@savvy-web/silk-core 0.5.0 → 0.5.2

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/index.d.ts CHANGED
@@ -945,16 +945,19 @@ export declare const SavvyOkfSection: SectionId;
945
945
  * land it silently. `--staged` re-adds whatever it writes, so the hook needs no
946
946
  * `git add` of its own.
947
947
  *
948
- * The default `--staged` modes are `generated` and `index`, so the derived
949
- * `index.md` files are re-stamped in the same commit too — but only while the
950
- * bundle is clean apart from what is staged. Index mode reads concepts from
951
- * DISK, not from the git index, and `--staged` re-adds what it writes, so an
952
- * untracked or partially staged concept would otherwise let an unrelated
953
- * commit land an `index.md` entry linking a file that commit does not
954
- * contain. When `git status --porcelain -- okf` shows any unstaged or
955
- * untracked entry (second status column non-blank), the hook narrows to
956
- * `--only generated` for that commit and the index catches up on the next
957
- * clean one.
948
+ * The default `--staged` modes are `generated`, `index` and `log`: the
949
+ * `generated.at` stamps, the derived `index.md` files and the commit's own
950
+ * `log.md` entry (dated to the commit and derived from the git index) all land
951
+ * in the same commit. Index mode, however, reads concepts from DISK, not from
952
+ * the git index, and `--staged` re-adds what it writes, so an untracked or
953
+ * partially staged concept would otherwise let an unrelated commit land an
954
+ * `index.md` entry linking a file that commit does not contain. When
955
+ * `git status --porcelain -- okf` shows any unstaged or untracked entry (second
956
+ * status column non-blank), the hook narrows to `--only generated --only log`
957
+ * for that commit: it keeps `generated` and `log` and drops only `index`, which
958
+ * catches up on the next clean commit. Log mode is safe on a dirty bundle
959
+ * because it reads the git index, so it can only describe what the commit
960
+ * actually contains.
958
961
  *
959
962
  * @returns The sync shell, with no surrounding markers or trailing newline.
960
963
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/silk-core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "private": false,
5
5
  "description": "Platform-free domain core of the Silk Suite: schemas, tagged errors, and the PR-body contract",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-core",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@effected/templates": "^0.14.0",
36
- "@effected/workspaces": "^0.36.0",
36
+ "@effected/workspaces": "^0.39.0",
37
37
  "effect": "^4.0.0"
38
38
  }
39
39
  }
@@ -56,16 +56,19 @@ const SavvyOkfSection = SectionId.make({
56
56
  * land it silently. `--staged` re-adds whatever it writes, so the hook needs no
57
57
  * `git add` of its own.
58
58
  *
59
- * The default `--staged` modes are `generated` and `index`, so the derived
60
- * `index.md` files are re-stamped in the same commit too — but only while the
61
- * bundle is clean apart from what is staged. Index mode reads concepts from
62
- * DISK, not from the git index, and `--staged` re-adds what it writes, so an
63
- * untracked or partially staged concept would otherwise let an unrelated
64
- * commit land an `index.md` entry linking a file that commit does not
65
- * contain. When `git status --porcelain -- okf` shows any unstaged or
66
- * untracked entry (second status column non-blank), the hook narrows to
67
- * `--only generated` for that commit and the index catches up on the next
68
- * clean one.
59
+ * The default `--staged` modes are `generated`, `index` and `log`: the
60
+ * `generated.at` stamps, the derived `index.md` files and the commit's own
61
+ * `log.md` entry (dated to the commit and derived from the git index) all land
62
+ * in the same commit. Index mode, however, reads concepts from DISK, not from
63
+ * the git index, and `--staged` re-adds what it writes, so an untracked or
64
+ * partially staged concept would otherwise let an unrelated commit land an
65
+ * `index.md` entry linking a file that commit does not contain. When
66
+ * `git status --porcelain -- okf` shows any unstaged or untracked entry (second
67
+ * status column non-blank), the hook narrows to `--only generated --only log`
68
+ * for that commit: it keeps `generated` and `log` and drops only `index`, which
69
+ * catches up on the next clean commit. Log mode is safe on a dirty bundle
70
+ * because it reads the git index, so it can only describe what the commit
71
+ * actually contains.
69
72
  *
70
73
  * @returns The sync shell, with no surrounding markers or trailing newline.
71
74
  *
@@ -75,9 +78,10 @@ const SavvyOkfSection = SectionId.make({
75
78
  function savvyOkfSync() {
76
79
  return `if ! in_ci && [ -d "$ROOT/okf" ] && [ -x "$ROOT/node_modules/.bin/okfit" ]; then
77
80
  # Index mode reads concepts from disk, so skip it while okf/ carries untracked or
78
- # unstaged work: a commit must never link a concept it does not contain.
81
+ # unstaged work: a commit must never link a concept it does not contain. Log mode
82
+ # reads the git index, so it stays on.
79
83
  if git -C "$ROOT" status --porcelain --untracked-files=all -- okf | grep -q '^.[^ ]'; then
80
- (cd "$ROOT" && pm_exec okfit sync --staged --only generated) || exit 1
84
+ (cd "$ROOT" && pm_exec okfit sync --staged --only generated --only log) || exit 1
81
85
  else
82
86
  (cd "$ROOT" && pm_exec okfit sync --staged) || exit 1
83
87
  fi
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.1"
8
+ "packageVersion": "7.59.4"
9
9
  }
10
10
  ]
11
11
  }