Skip to content

Commit 66edd02

Browse files
committed
Fixes .gitignore
1 parent 2c1e57c commit 66edd02

File tree

11 files changed

+157
-6492
lines changed

11 files changed

+157
-6492
lines changed

packages/ethernaut-ai/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
**/src/internal/assistants/docs/kb-files
1+
**/src/internal/assistants/docs/kb-files/output/optimism/community-hub/chapters
2+
**/src/internal/assistants/docs/kb-files/output/optimism/docs/chapters
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

packages/ethernaut-ai/src/internal/assistants/utils/build-docs-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs')
22
const path = require('path')
33
const openai = require('../../openai')
4-
const VECTOR_STORE_ID = 'OP_DOCS_6'
4+
const VECTOR_STORE_ID = 'OP_DOCS_7'
55

66
const documentKeywords = require('../docs/kb-files/output/optimism/docs/keywords.json')
77

packages/ethernaut-ai/src/internal/assistants/utils/build-hub-docs.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const fs = require('fs')
22
const path = require('path')
33
const openai = require('../../openai')
44
const USE_VECTOR_STORE = true // my flag to test both solutions
5-
const VECTOR_STORE_ID = 'OP_6'
5+
const VECTOR_STORE_ID = 'OP_HUB_7'
66

77
function extractKeywords(query) {
88
// TBD DEPRECATED
@@ -98,7 +98,11 @@ async function buildHubDocsWithVector(query) {
9898
} catch (error) {
9999
console.log('No knowledge base found, please wait while building...')
100100

101-
const docsDir = path.join(__dirname, '../docs/kb-files/output/chapters')
101+
const docsDir = path.join(
102+
__dirname,
103+
'../docs/kb-files/output/optimism/docs/chapters',
104+
)
105+
102106
const files = Object.keys(documentKeywords)
103107
const batchSize = 5 // Upload files in batches to avoid rate limits
104108
const allFileIds = []

packages/ethernaut-ai/src/tasks/dev-docs.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,6 @@ const EthernautCliError = require('ethernaut-common/src/error/error')
99

1010
const TIMEOUT = 600000
1111

12-
// OP Delegates -> https://vote.optimism.io/delegates
13-
// OP Proposals -> https://vote.optimism.io/
14-
// OP Forum -> https://gov.optimism.io/
15-
// OP RPGF -> https://retrofunding.optimism.io/
16-
17-
// Constitution -> https://gov.optimism.io/t/working-constitution-of-the-optimism-collective/55
18-
// Code of Conduct -> https://gov.optimism.io/t/code-of-conduct/5751
19-
// OPerating Manual -> https://github.com/ethereum-optimism/OPerating-manual/blob/main/manual.md
20-
21-
// OP Stack Docs -> https://docs.optimism.io/stack/getting-started
22-
// App Developer guide -> https://docs.optimism.io/builders/app-developers/overview
23-
// Chain Operators guide -> https://docs.optimsssism.io/builders/chain-operators/self-hosted
24-
// Node Operators guide -> https://docs.optimism.io/builders/node-operators/rollup-node
25-
// Developer Tools -> https://docs.optimism.io/builders/tools/overview
26-
27-
// Governance Docs -> https://community.optimism.io/
28-
// Citizen House -> https://community.optimism.io/citizens-house/citizen-house-overview
29-
// Token House -> https://community.optimism.io/token-house/token-house-overview
30-
// Grants -> https://community.optimism.io/grant/grant-overview
31-
// OP token -> https://community.optimism.io/op-token/op-token-overview
32-
33-
// Governance Docs
34-
// Citizen House
35-
// Token House
36-
// Grants
37-
// OP token
38-
39-
// OP Stack Docs
40-
// App Developer guide
41-
// Chain Operators guide
42-
// Node Operators guide
43-
// Developer Tools
44-
4512
require('../scopes/ai')
4613
.task('dev-docs', '🔴 Chat with the Optimism developer documentation')
4714
.addPositionalParam(

packages/ethernaut-ai/src/tasks/hubs.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@ const EthernautCliError = require('ethernaut-common/src/error/error')
99

1010
const TIMEOUT = 600000
1111

12-
// OP Delegates -> https://vote.optimism.io/delegates
13-
// OP Proposals -> https://vote.optimism.io/
14-
// OP Forum -> https://gov.optimism.io/
15-
// OP RPGF -> https://retrofunding.optimism.io/
16-
17-
// Constitution -> https://gov.optimism.io/t/working-constitution-of-the-optimism-collective/55
18-
// Code of Conduct -> https://gov.optimism.io/t/code-of-conduct/5751
19-
// OPerating Manual -> https://github.com/ethereum-optimism/OPerating-manual/blob/main/manual.md
20-
21-
// OP Stack Docs -> https://docs.optimism.io/stack/getting-started
22-
// App Developer guide -> https://docs.optimism.io/builders/app-developers/overview
23-
// Chain Operators guide -> https://docs.optimsssism.io/builders/chain-operators/self-hosted
24-
// Node Operators guide -> https://docs.optimism.io/builders/node-operators/rollup-node
25-
// Developer Tools -> https://docs.optimism.io/builders/tools/overview
26-
27-
// Governance Docs -> https://community.optimism.io/
28-
// Citizen House -> https://community.optimism.io/citizens-house/citizen-house-overview
29-
// Token House -> https://community.optimism.io/token-house/token-house-overview
30-
// Grants -> https://community.optimism.io/grant/grant-overview
31-
// OP token -> https://community.optimism.io/op-token/op-token-overview
32-
33-
// Governance Docs
34-
// Citizen House
35-
// Token House
36-
// Grants
37-
// OP token
38-
3912
require('../scopes/ai')
4013
.task('hubs', '🔴 Chat with the Optimism documentation')
4114
.addPositionalParam(

0 commit comments

Comments
 (0)