@alasano/pi-linear 0.4.0 → 0.4.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/extensions/client.ts +1 -1
- package/extensions/index.ts +1 -1
- package/extensions/params.ts +1 -1
- package/extensions/renderers/comments.ts +2 -2
- package/extensions/renderers/common.ts +2 -2
- package/extensions/renderers/documents.ts +2 -2
- package/extensions/renderers/initiatives.ts +2 -2
- package/extensions/renderers/issue-labels.ts +2 -2
- package/extensions/renderers/issue-relations.ts +2 -2
- package/extensions/renderers/issue-statuses.ts +2 -2
- package/extensions/renderers/issues.ts +2 -2
- package/extensions/renderers/milestones.ts +2 -2
- package/extensions/renderers/project-labels.ts +2 -2
- package/extensions/renderers/project-relations.ts +2 -2
- package/extensions/renderers/projects.ts +2 -2
- package/extensions/renderers/teams.ts +2 -2
- package/extensions/renderers/users.ts +2 -2
- package/extensions/renderers/workspaces.ts +2 -2
- package/extensions/settings.ts +3 -3
- package/extensions/tools/comments.ts +2 -2
- package/extensions/tools/documents.ts +2 -2
- package/extensions/tools/initiatives.ts +2 -2
- package/extensions/tools/issue-labels.ts +2 -2
- package/extensions/tools/issue-relations.ts +2 -2
- package/extensions/tools/issue-statuses.ts +2 -2
- package/extensions/tools/issues.ts +2 -2
- package/extensions/tools/milestones.ts +2 -2
- package/extensions/tools/project-labels.ts +2 -2
- package/extensions/tools/project-relations.ts +2 -2
- package/extensions/tools/projects.ts +2 -2
- package/extensions/tools/teams.ts +2 -2
- package/extensions/tools/users.ts +2 -2
- package/extensions/tools/workspaces.ts +2 -2
- package/extensions/util.ts +1 -1
- package/package.json +7 -6
package/extensions/client.ts
CHANGED
package/extensions/index.ts
CHANGED
package/extensions/params.ts
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
accentStyle,
|
|
9
9
|
asString,
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
type AgentToolResult,
|
|
4
4
|
type Theme,
|
|
5
5
|
type ToolRenderResultOptions,
|
|
6
|
-
} from '@
|
|
7
|
-
import { Text, truncateToWidth, visibleWidth } from '@
|
|
6
|
+
} from '@earendil-works/pi-coding-agent';
|
|
7
|
+
import { Text, truncateToWidth, visibleWidth } from '@earendil-works/pi-tui';
|
|
8
8
|
import {
|
|
9
9
|
getDefaultJsonView,
|
|
10
10
|
registerLinearResultRenderer,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
accentStyle,
|
|
9
9
|
asString,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
accentStyle,
|
|
9
9
|
asString,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import type { LinearIssue } from '../types';
|
|
8
8
|
import {
|
|
9
9
|
accentStyle,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
accentStyle,
|
|
9
9
|
asString,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
accentStyle,
|
|
9
9
|
asString,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
cleanOneLine,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
type AgentToolResult,
|
|
3
3
|
type Theme,
|
|
4
4
|
type ToolRenderResultOptions,
|
|
5
|
-
} from '@
|
|
6
|
-
import { Text } from '@
|
|
5
|
+
} from '@earendil-works/pi-coding-agent';
|
|
6
|
+
import { Text } from '@earendil-works/pi-tui';
|
|
7
7
|
import {
|
|
8
8
|
asString,
|
|
9
9
|
expandedJson,
|
package/extensions/settings.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { promises as fs } from 'node:fs';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
|
-
import type { ExtensionAPI, ExtensionContext } from '@
|
|
4
|
-
import { getAgentDir, getSettingsListTheme } from '@
|
|
5
|
-
import { type SettingItem, SettingsList } from '@
|
|
3
|
+
import type { ExtensionAPI, ExtensionContext } from '@earendil-works/pi-coding-agent';
|
|
4
|
+
import { getAgentDir, getSettingsListTheme } from '@earendil-works/pi-coding-agent';
|
|
5
|
+
import { type SettingItem, SettingsList } from '@earendil-works/pi-tui';
|
|
6
6
|
import { invalidateLinearResultRenderers, setDefaultJsonView } from './renderers/state';
|
|
7
7
|
|
|
8
8
|
const SETTINGS_PATH = join(getAgentDir(), 'state', 'extensions', 'linear', 'tool-settings.json');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam, RawInputParam } from '../params';
|
|
5
5
|
import { COMMENT_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL, resolveTeamId } from '../client';
|
|
4
4
|
import {
|
|
5
5
|
PaginationParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import {
|
|
5
5
|
PaginationParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL, resolveTeamId } from '../client';
|
|
4
4
|
import {
|
|
5
5
|
PaginationParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL, resolveIssueId } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables } from '../params';
|
|
5
5
|
import { ISSUE_RELATION_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam } from '../params';
|
|
5
5
|
import { WORKFLOW_STATE_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam, RawInputParam } from '../params';
|
|
5
5
|
import { MILESTONE_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam, RawInputParam } from '../params';
|
|
5
5
|
import { PROJECT_LABEL_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables } from '../params';
|
|
5
5
|
import { PROJECT_RELATION_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import {
|
|
5
5
|
PaginationParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam } from '../params';
|
|
5
5
|
import { TEAM_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { withLinearAuth, linearGraphQL } from '../client';
|
|
4
4
|
import { PaginationParams, paginationVariables, FilterParam, SortParam } from '../params';
|
|
5
5
|
import { USER_SELECTION } from '../selections';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from '@
|
|
2
|
-
import { Type } from '
|
|
1
|
+
import { defineTool } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { Type } from 'typebox';
|
|
3
3
|
import { switchWorkspace, type WorkspaceCredentials } from '../client';
|
|
4
4
|
import {
|
|
5
5
|
renderLinearSwitchWorkspaceCall,
|
package/extensions/util.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alasano/pi-linear",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Linear integration for pi with 55+ tools, multi-workspace auth, and per-tool settings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"@sinclair/typebox": "*"
|
|
31
|
+
"@earendil-works/pi-coding-agent": ">=0.79.9",
|
|
32
|
+
"@earendil-works/pi-tui": ">=0.79.9",
|
|
33
|
+
"typebox": ">=1.1.38"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"@
|
|
36
|
+
"@earendil-works/pi-coding-agent": "^0.79.9",
|
|
37
|
+
"@earendil-works/pi-tui": "^0.79.9",
|
|
38
|
+
"typebox": "^1.1.38"
|
|
38
39
|
}
|
|
39
40
|
}
|