pi-eda 0.2.1 → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Shivam V Verma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -197,6 +197,10 @@ export default function (pi: ExtensionAPI) {
197
197
  }
198
198
  case "status": {
199
199
  result = handleStatus(graph, current, graphPath);
200
+ if (!graph && current) {
201
+ result.error =
202
+ "graph not loaded -- current state was reconstructed but the graph file is unavailable; call init to reload";
203
+ }
200
204
  break;
201
205
  }
202
206
  case "clear": {
@@ -95,7 +95,7 @@ export default function (pi: ExtensionAPI) {
95
95
  }
96
96
  return new Image(details.base64, details.mediaType, theme, {
97
97
  maxWidthCells: 80,
98
- maxHeightCells: 24,
98
+ maxHeightCells: 36,
99
99
  });
100
100
  },
101
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-eda",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Pi tooling for interactive exploratory data analysis.",
5
5
  "license": "MIT",
6
6
  "author": "Shivam V Verma",
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "files": [
18
18
  "README.md",
19
+ "LICENSE",
19
20
  "agents",
20
21
  "eda.mplstyle.example",
21
22
  "extensions",
@@ -9,8 +9,7 @@
9
9
  "Reread and run script": ["Build script/plot", "Summarize the answer"],
10
10
  "Dispatch script-checker": ["Build script/plot", "Dispatch job-runner"],
11
11
  "Dispatch job-runner": ["Summarize the answer"],
12
- "Summarize the answer": ["Continue analysis or lock in?"],
13
- "Continue analysis or lock in?": [
12
+ "Summarize the answer": [
14
13
  "Propose/ask a question",
15
14
  "/skill:finishing-exploratory-data-analysis"
16
15
  ]
@@ -146,14 +146,10 @@ Heavy path continuation: launch the `job-runner` only once the
146
146
  - `show` the figure(s) to the user, then summarize briefly with bullets.
147
147
  - Core principle: the user decides the interpretation. Continue interrogating
148
148
  the user until it makes sense to you and is consistent with the dataset.
149
- - `advance` condition: you understand the user's interpretation of the figure.
150
-
151
- ### `Continue analysis or lock in?`
152
-
153
- - Ask the user whether to continue with another question or lock in the
154
- analysis; keep interrogating until they pick one. "Next question" loops back
155
- to `Propose/ask a question`, "finish analysis" exits to the finishing skill.
156
- - `advance` condition: the user has decided to continue the session or finish it.
149
+ - Once the user makes a clear interpretation, ask whether to continue with another
150
+ question or lock in the analysis. Keep interrogating until they pick one.
151
+ - `advance` condition: you understand the user's interpretation of the
152
+ figure, and the user has decided to continue the session or finish it.
157
153
 
158
154
  ### `/skill:finishing-exploratory-data-analysis`
159
155