@pragma-sh/junie-plugin 0.1.0-alpha.0 → 1.0.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/dist/pragma-plugin.mjs +3 -3
- package/hooks/report.sh +1 -1
- package/package.json +8 -3
- package/pragma-plugin.json +5 -1
- package/src/acp.ts +1 -1
- package/src/pragma-plugin.ts +2 -2
- package/src/usage-limits.ts +1 -1
package/dist/pragma-plugin.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// ../plugin/dist/shared/chunk-
|
|
2
|
-
var PLUGIN_API_VERSION = "
|
|
1
|
+
// ../plugin/dist/shared/chunk-e222xk1w.js
|
|
2
|
+
var PLUGIN_API_VERSION = "1.0.1";
|
|
3
3
|
|
|
4
|
-
// ../plugin/dist/shared/chunk-
|
|
4
|
+
// ../plugin/dist/shared/chunk-6qx2xj9p.js
|
|
5
5
|
function defineAgent(input) {
|
|
6
6
|
return input;
|
|
7
7
|
}
|
package/hooks/report.sh
CHANGED
|
@@ -89,7 +89,7 @@ report() {
|
|
|
89
89
|
"$pragma_cli" agent report --agent "$agent" "$@" >/dev/null 2>&1 || true
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
# AgentMessage.ts is milliseconds since Unix epoch (see @pragma/constants).
|
|
92
|
+
# AgentMessage.ts is milliseconds since Unix epoch (see @pragma-sh/constants).
|
|
93
93
|
# `date +%s` is seconds -- multiply so chat clients that stamp local input with
|
|
94
94
|
# Date.now() don't sort every agent bubble above the user's messages.
|
|
95
95
|
message_ts_ms() {
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pragma-sh/junie-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "JetBrains Junie CLI plugin that reports agent status to Pragma via native hooks.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/pragma-sh/pragma.git",
|
|
9
|
+
"directory": "packages/junie-plugin"
|
|
10
|
+
},
|
|
6
11
|
"files": [
|
|
7
12
|
".junie-plugin",
|
|
8
13
|
"assets",
|
|
@@ -28,8 +33,8 @@
|
|
|
28
33
|
"lint": "oxlint ."
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
|
-
"@pragma/plugin": "workspace:*",
|
|
32
|
-
"@pragma/watcher-kit": "workspace:*",
|
|
36
|
+
"@pragma-sh/plugin": "workspace:*",
|
|
37
|
+
"@pragma-sh/watcher-kit": "workspace:*",
|
|
33
38
|
"@types/node": "^24.12.3",
|
|
34
39
|
"bunup": "^0.16.32",
|
|
35
40
|
"typescript": "^6.0.3",
|
package/pragma-plugin.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/pragma-sh/pragma/main/packages/plugin-registry/pragma-plugin.schema.json",
|
|
3
3
|
"name": "Junie CLI",
|
|
4
4
|
"description": "Launch JetBrains Junie CLI in Pragma with live status, approvals, questions, usage limits, and session naming.",
|
|
5
|
+
"longDescription": "Launch JetBrains Junie CLI from the Pragma launcher with live status, approvals, questions, usage limits, and session naming. The integration reports into Pragma's tab and sidebar, so Junie work in one worktree never hides progress in another.",
|
|
5
6
|
"categories": ["agent-plugin"],
|
|
6
7
|
"images": [
|
|
7
8
|
{
|
|
@@ -9,6 +10,9 @@
|
|
|
9
10
|
"alt": "Junie logo"
|
|
10
11
|
}
|
|
11
12
|
],
|
|
12
|
-
"install": {
|
|
13
|
+
"install": {
|
|
14
|
+
"command": "node",
|
|
15
|
+
"args": ["dist/install.mjs"]
|
|
16
|
+
},
|
|
13
17
|
"agentBinary": "junie"
|
|
14
18
|
}
|
package/src/acp.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// `--cache-dir` points Junie's caches at a throwaway directory so these probe
|
|
19
19
|
// sessions leave nothing behind but an empty session folder (they never reach
|
|
20
20
|
// `sessions/index.jsonl`, so they do not show up in `junie --resume`).
|
|
21
|
-
import type { PluginContext } from "@pragma/plugin/catalog";
|
|
21
|
+
import type { PluginContext } from "@pragma-sh/plugin/catalog";
|
|
22
22
|
|
|
23
23
|
/** Exit status the wrapper uses to say `junie` is not installed. */
|
|
24
24
|
const MISSING_STATUS = 20;
|
package/src/pragma-plugin.ts
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
type AgentModelEntry,
|
|
6
6
|
type PluginContext,
|
|
7
7
|
type PluginDefinition,
|
|
8
|
-
} from "@pragma/plugin/catalog";
|
|
9
|
-
import { createTuiWatcher } from "@pragma/watcher-kit";
|
|
8
|
+
} from "@pragma-sh/plugin/catalog";
|
|
9
|
+
import { createTuiWatcher } from "@pragma-sh/watcher-kit";
|
|
10
10
|
|
|
11
11
|
import { asRecord, asText, readJunieAcp } from "./acp";
|
|
12
12
|
import { loadJunieUsageLimits, PRIMARY_LIMIT_ID } from "./usage-limits";
|
package/src/usage-limits.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// loads inside the production desktop webview (blob-URL import), where Node
|
|
15
15
|
// built-ins make the whole plugin fail to load, and a direct local read would
|
|
16
16
|
// also target the wrong machine for a remote project.
|
|
17
|
-
import type { PluginContext, UsageLimit, UsageLimitsResult } from "@pragma/plugin/catalog";
|
|
17
|
+
import type { PluginContext, UsageLimit, UsageLimitsResult } from "@pragma-sh/plugin/catalog";
|
|
18
18
|
|
|
19
19
|
import { readJunieAcp, shellQuote } from "./acp";
|
|
20
20
|
|