Skip to content

feat(ai-assistant): add ai-assistant library#21

Merged
yeshamavani merged 1 commit intomasterfrom
RPMS-37315
Mar 13, 2025
Merged

feat(ai-assistant): add ai-assistant library#21
yeshamavani merged 1 commit intomasterfrom
RPMS-37315

Conversation

@abhinavverma-sf
Copy link
Contributor

@abhinavverma-sf abhinavverma-sf commented Oct 10, 2024

Description

add ai-assistant-library

merge #22 after this

RPMS-37315

screen-capture.3.1.webm

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • Performed a self-review of my own code

@yeshamavani
Copy link
Contributor

@Deepika516 please you also review this PR

Copy link
Contributor

@yeshamavani yeshamavani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to make changes in both readme

## Intsallation

```bash
npm install @sourceloop/ai-assistant
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm install @sourceloop/ai-assistant-client

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 55 to 81
### Pre-Install

#### Building the Library

- To build the library, run:

```bash
npm run build-library
```

- Upon successful completion, the build output will be available at:

```bash
projects/ai-assistant-lib/dist
```
#### Packaging the Library

- To package the library as a .tgz file, execute:

```bash
npm run pack-lib
```

- Once completed, the packaged file will be generated at:

```bash
projects/ai-assistant-lib/dist/sourceloop-ai-assistant-0.0.1.tgz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to add the tar process here
this is not how we intent the users to use it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 226 to 191
from root of project reach to `demo-sandbox` and then `npm run start`. <br/> By default `http://localhost:4200` will be active
## How to use targz in completely new project/repo?
In your `package.json` do,
```
"dependencies": {
...exisitng dependencies,
"ai-assistant": "file:sourceloop-ai-assistant-client-0.0.1.tgz"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reference of tar anywhere
the sandbox will also be updated to use the published libarary

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

add ai-assistant-library

RPMS-37315
@yeshamavani yeshamavani merged commit 26597b3 into master Mar 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments