@christang/keel 5.95.0 → 5.95.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.
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.95.
|
|
3
|
+
"version": "5.95.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.95.
|
|
9
|
+
"version": "5.95.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fission-ai/openspec": "^1.4.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.95.
|
|
3
|
+
"version": "5.95.1",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.95.
|
|
3
|
+
"version": "5.95.1",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
|
|
|
47
47
|
"scripts/validate_plugin.py",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
|
-
PACKAGE_VERSION = "5.95.
|
|
51
|
-
PROTOCOL_VERSION = "5.95.
|
|
50
|
+
PACKAGE_VERSION = "5.95.1"
|
|
51
|
+
PROTOCOL_VERSION = "5.95.1"
|
|
52
52
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
53
53
|
OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
|
|
54
54
|
# Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
|
|
@@ -3810,7 +3810,7 @@ def validate_chat_slack_format_scenario() -> int:
|
|
|
3810
3810
|
chat_slack_config(rtl, {"soc": "CSOC"})
|
|
3811
3811
|
benv = chat_bridge_environment(env, base / "home", slack)
|
|
3812
3812
|
run_keel(rtl, "chat", "bridge", "add", env=benv)
|
|
3813
|
-
body = "# Plan\n**must** land *soon*\n- item\nsee [spec](https://example.com/s) and `a**b`\n```\n**raw**\n```\nx<y&z"
|
|
3813
|
+
body = "# Plan\n**must** land *soon*\n- item\nsee [spec](https://example.com/s) and `a**b`\n```\n**raw**\n```\nx<y&z\n这是**重点**内容"
|
|
3814
3814
|
record_id = chat_json(run_keel(rtl, "chat", "post", "soc", body, "--json", env=benv)).get("id", "")
|
|
3815
3815
|
once = run_keel(rtl, "chat", "bridge", "run", "--once", env=benv)
|
|
3816
3816
|
if once.returncode != 0:
|
|
@@ -3824,6 +3824,10 @@ def validate_chat_slack_format_scenario() -> int:
|
|
|
3824
3824
|
if needle not in sent:
|
|
3825
3825
|
report(f"{label} the posted text lacks {needle!r}: {sent!r}")
|
|
3826
3826
|
return 1
|
|
3827
|
+
# Slack needs a boundary beside a marker, and CJK text is not one.
|
|
3828
|
+
if "这是\u200b*重点*\u200b内容" not in sent:
|
|
3829
|
+
report(f"{label} bold beside CJK text carries no zero-width boundary: {sent!r}")
|
|
3830
|
+
return 1
|
|
3827
3831
|
if "**must**" in sent:
|
|
3828
3832
|
report(f"{label} Markdown bold reached Slack untranslated: {sent!r}")
|
|
3829
3833
|
return 1
|
package/src/core/chat/mrkdwn.js
CHANGED
|
@@ -11,6 +11,11 @@ const FENCE = /```[\s\S]*?```/g;
|
|
|
11
11
|
const SPAN = /`[^`\n]*`/g;
|
|
12
12
|
// A placeholder for a bold marker, so a later italic pass cannot read it.
|
|
13
13
|
const BOLD = "\u0001";
|
|
14
|
+
// Slack renders `*x*` only between word boundaries, and CJK text or
|
|
15
|
+
// full-width punctuation right beside a marker is not one: a zero-width space
|
|
16
|
+
// on each side of every marker pair supplies the boundary, checked against
|
|
17
|
+
// real Slack on 2026-10-05 (#187). Inbound text drops them again.
|
|
18
|
+
const ZWSP = "\u200b";
|
|
14
19
|
|
|
15
20
|
// Calls `prose` on the text outside code and `code` on the code itself.
|
|
16
21
|
function byCode(text, prose, code) {
|
|
@@ -47,13 +52,13 @@ function proseToSlack(text) {
|
|
|
47
52
|
.replace(/^#{1,6}[ \t]+(.+?)[ \t]*#*[ \t]*$/gm, `${BOLD}$1${BOLD}`)
|
|
48
53
|
.replace(/\*\*(?!\s)([^\n]+?)\*\*/g, `${BOLD}$1${BOLD}`)
|
|
49
54
|
.replace(/__(?!\s)([^\n]+?)__/g, `${BOLD}$1${BOLD}`)
|
|
50
|
-
.replace(/(^|[^\w*])\*(?![\s*])([^*\n]+?)\*(?![\w*])/g,
|
|
51
|
-
.replace(/~~(?!\s)([^\n]+?)~~/g,
|
|
52
|
-
.
|
|
55
|
+
.replace(/(^|[^\w*])\*(?![\s*])([^*\n]+?)\*(?![\w*])/g, `$1${ZWSP}_$2_${ZWSP}`)
|
|
56
|
+
.replace(/~~(?!\s)([^\n]+?)~~/g, `${ZWSP}~$1~${ZWSP}`)
|
|
57
|
+
.replace(new RegExp(`${BOLD}([^${BOLD}]+)${BOLD}`, "g"), `${ZWSP}*$1*${ZWSP}`);
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
function proseFromSlack(text) {
|
|
56
|
-
return unescape(text
|
|
61
|
+
return unescape(text.split(ZWSP).join("")
|
|
57
62
|
.replace(/<((?:https?:\/\/|mailto:)[^|>\s]+)\|([^>]+)>/g, "[$2]($1)")
|
|
58
63
|
.replace(/<((?:https?:\/\/|mailto:)[^|>\s]+)>/g, "$1")
|
|
59
64
|
.replace(/(^|[^\w*])\*(?![\s*])([^*\n]+?)\*(?![\w*])/g, `$1${BOLD}${BOLD}$2${BOLD}${BOLD}`)
|