jig-ui 0.15.0 → 0.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Fixed
6
+
7
+ - **A question anywhere in the message is a question.** 0.15.0 let an owner
8
+ pause through only when the message's last line ended in `?`. `decide` asks
9
+ its round, then shows an example answer, then says "answer for your own
10
+ project", so the message ends on a full stop, and the gate refused the first
11
+ live `/jig decide` three times. Any sentence ending in `?` now counts; a `?`
12
+ in a URL or a code span does not.
13
+
3
14
  ## 0.15.0
4
15
 
5
16
  The gate holds an agent on warnings, waits while it asks the owner a question,
package/dist/index.js CHANGED
@@ -6117,8 +6117,8 @@ function lastAssistantText(transcriptPath) {
6117
6117
  }
6118
6118
  function asksOwner(text) {
6119
6119
  if (!text) return false;
6120
- const last = text.trim().split("\n").filter((l) => l.trim()).pop() ?? "";
6121
- return /\?\s*$/.test(last.replace(/[*_`"')\]\s]+$/, ""));
6120
+ const prose = text.replace(/```[\s\S]*?```/g, "").replace(/`[^`\n]*`/g, "");
6121
+ return /\?(?=[\s)\]"'*_]|$)/.test(prose);
6122
6122
  }
6123
6123
  var ASKS_THE_OWNER = /* @__PURE__ */ new Set(["decide", "spec", "mockup"]);
6124
6124
  function commandProblems(root, command) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jig-ui",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "A design system for coding agents. 130 numbered UI rules, brand x mode design tokens, and an installer for Claude Code, Codex, Cursor and opencode.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",