@opencode-linear-agent/plugin 0.1.3-master.13 → 0.1.3-master.14
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43583,7 +43583,7 @@ ${c}`:_,v=await A.tryPromise({try:async()=>this.client.createAgentActivity({agen
|
|
|
43583
43583
|
**Stack trace:**
|
|
43584
43584
|
\`\`\`
|
|
43585
43585
|
${g}
|
|
43586
|
-
\`\`\``:`**Error:** ${c}`,o=await A.tryPromise({try:async()=>this.client.createAgentActivity({agentSessionId:$,content:{type:"error",body:v},ephemeral:!1}),catch:V$});if(A.isError(o))return this.log.error("Failed to report error to Linear",{sessionId:$,originalError:c,reportError:o.error.message,errorType:o.error._tag}),A.err(o.error);return A.ok(void 0)}async postElicitation($,n,c,_){let g=await A.tryPromise({try:async()=>this.client.createAgentActivity({agentSessionId:$,content:{type:"elicitation",body:n},signal:Tf(c),signalMetadata:_,ephemeral:!1}),catch:V$});if(A.isError(g))return this.log.error("Failed to send elicitation",{sessionId:$,signal:c,error:g.error.message,errorType:g.error._tag}),A.err(g.error);return A.ok(void 0)}async setExternalLink($,n){let c=await A.tryPromise({try:async()=>{await(await this.client.agentSession($)).update({externalLink:n})},catch:V$});if(A.isError(c))return this.log.error("Failed to set external link",{sessionId:$,url:n,error:c.error.message,errorType:c.error._tag}),c;return A.ok(void 0)}async updatePlan($,n){let c=await A.tryPromise({try:async()=>{await(await this.client.agentSession($)).update({plan:n})},catch:V$});if(A.isError(c))return this.log.error("Failed to update plan",{sessionId:$,planItemCount:n.length,error:c.error.message,errorType:c.error._tag}),c;return A.ok(void 0)}async getIssue($){let n=await A.tryPromise({try:async()=>{let c=await this.client.issue($);return{id:c.id,identifier:c.identifier,title:c.title,description:c.description??void 0,url:c.url}},catch:V$});if(A.isError(n))this.log.error("Failed to get issue",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueLabels($){let n=await A.tryPromise({try:async()=>{return(await(await this.client.issue($)).labels()).nodes.map((g)=>({id:g.id,name:g.name}))},catch:V$});if(A.isError(n))this.log.error("Failed to get issue labels",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueAttachments($){let n=await A.tryPromise({try:async()=>{return(await(await this.client.issue($)).attachments()).nodes.map((g)=>({id:g.id,url:g.url??void 0,title:g.title}))},catch:V$});if(A.isError(n))this.log.error("Failed to get issue attachments",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueRepositorySuggestions($,n,c){let _=await A.tryPromise({try:async()=>{let g=await this.client.client.rawRequest(`query IssueRepositorySuggestions($issueId: String!, $agentSessionId: String!, $candidateRepositories: [RepositoryInput!]!) {
|
|
43586
|
+
\`\`\``:`**Error:** ${c}`,o=await A.tryPromise({try:async()=>this.client.createAgentActivity({agentSessionId:$,content:{type:"error",body:v},ephemeral:!1}),catch:V$});if(A.isError(o))return this.log.error("Failed to report error to Linear",{sessionId:$,originalError:c,reportError:o.error.message,errorType:o.error._tag}),A.err(o.error);return A.ok(void 0)}async postElicitation($,n,c,_){let g=await A.tryPromise({try:async()=>this.client.createAgentActivity({agentSessionId:$,content:{type:"elicitation",body:n},signal:Tf(c),signalMetadata:_,ephemeral:!1}),catch:V$});if(A.isError(g))return this.log.error("Failed to send elicitation",{sessionId:$,signal:c,error:g.error.message,errorType:g.error._tag}),A.err(g.error);return A.ok(void 0)}async setExternalLink($,n){let c=await A.tryPromise({try:async()=>{await(await this.client.agentSession($)).update({externalLink:n})},catch:V$});if(A.isError(c))return this.log.error("Failed to set external link",{sessionId:$,url:n,error:c.error.message,errorType:c.error._tag}),c;return A.ok(void 0)}async updatePlan($,n){let c=await A.tryPromise({try:async()=>{await(await this.client.agentSession($)).update({plan:n})},catch:V$});if(A.isError(c))return this.log.error("Failed to update plan",{sessionId:$,planItemCount:n.length,error:c.error.message,errorType:c.error._tag}),c;return A.ok(void 0)}async getIssue($){let n=await A.tryPromise({try:async()=>{let c=await this.client.issue($);return{id:c.id,identifier:c.identifier,branchName:c.branchName??void 0,title:c.title,description:c.description??void 0,url:c.url}},catch:V$});if(A.isError(n))this.log.error("Failed to get issue",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueLabels($){let n=await A.tryPromise({try:async()=>{return(await(await this.client.issue($)).labels()).nodes.map((g)=>({id:g.id,name:g.name}))},catch:V$});if(A.isError(n))this.log.error("Failed to get issue labels",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueAttachments($){let n=await A.tryPromise({try:async()=>{return(await(await this.client.issue($)).attachments()).nodes.map((g)=>({id:g.id,url:g.url??void 0,title:g.title}))},catch:V$});if(A.isError(n))this.log.error("Failed to get issue attachments",{issueId:$,error:n.error.message,errorType:n.error._tag});return n}async getIssueRepositorySuggestions($,n,c){let _=await A.tryPromise({try:async()=>{let g=await this.client.client.rawRequest(`query IssueRepositorySuggestions($issueId: String!, $agentSessionId: String!, $candidateRepositories: [RepositoryInput!]!) {
|
|
43587
43587
|
issueRepositorySuggestions(
|
|
43588
43588
|
issueId: $issueId
|
|
43589
43589
|
agentSessionId: $agentSessionId
|