Ensure package can be built and tested with Python 3.11

Python 3.11 was released recently, and myhoard aims to support it.

Codecov Report
Base: 76.22% // Head: 76.81% // Increases project coverage by +0.58% :tada:

Coverage data is based on head (b6ff78f) compared to base (a73efd4).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
+ Coverage   76.22%   76.81%   +0.58%
==========================================
  Files          16       16
  Lines        3903     3903
  Branches      896      931      +35
==========================================
+ Hits         2975     2998      +23
+ Misses        714      688      -26
- Partials      214      217       +3

Impacted Files
Coverage Δ

myhoard/controller.py
79.07% <100.00%> (ø)

myhoard/basebackup_operation.py
92.68% <0.00%> (-1.96%)
:arrow_down:

myhoard/backup_stream.py
76.94% <0.00%> (+0.31%)
:arrow_up:

myhoard/restore_coordinator.py
78.54% <0.00%> (+3.13%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Can we remove support for older python versions too? At least allowing us to use python3.8 syntax would be nice.
Versions of python prior to 3.10 are only receiving security updates; it would be reasonable for us to do likewise.
https://devguide.python.org/versions/

Can we remove support for older python versions too? At least allowing us to use python3.8 syntax would be nice. Versions of python prior to 3.10 are only receiving security updates; it would be reasonable for us to do likewise.
https://devguide.python.org/versions/

Removing 3.8 and older sounds reasonable.
I wouldn't remove 3.9 since it's still the current version in the latest stable debian (bullseye) and latest RHEL (9).


Add GraphicsMagick support

We should support GraphicsMagick in addition to ImageMagick. GraphicsMagick has a much lighter footprint, uses less resource, and likely cover all features we want (resizing images). It also has mostly compatible API with ImageMagick. We should only need to prefix existing ImageMagick invocation with gm.

Quick question: is it an addition or a replacement?

Addition, but will be a new default.


Updates and minor improvements

rebase of #9

Thanks to @rizzatti for the initial contribution.

@mburns :+1:


Error logging has been broken by changes to Axios error types

Previously, error statuses were contained in error.status and error.message
Due to dependency upgrades, these now must be obtained from error.response.status and error.response.data.detail.

This might be useful https://github.com/axios/axios/issues/3612

Thanks.

:tada: This issue has been resolved in version 8.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Verbose modes

Any idea how to stop the program from being verbose? If there is no solution maybe add this in a future update? 😄

Any idea how to stop the program from being verbose? If there is no solution maybe add this in a future update? 😄

Hi there, I was looking for the same option and I found workaround, using contextlib you can disable the print function.
for example:
`import contextlib
with contextlib.redirect_stdout(None):
await device.set_color(red, green, blue)
await device.set_brightness(brightness)`
This way the verbose wont be printed. Hope this helps you too. 😉


analyzer: lookUpInheritedConcreteMethod methods do not walk mixin super constraints

ClassElement method lookUpInheritedConcreteMethod does not reach into mixin constraints. E.g. given this code:
class A {
  void a() {}
}
mixin C on A {
  @override
  void a() {}
}

Given the ClassElement for C, classElement.lookUpInheritedConcreteMethod(name, classElement.library), I would expect a non-null result. But lookUpInheritedConcreteMethod calls getImplementationsOfMethod, which seems to only walk up mixins and supertypes.

Oh, interesting. I think I misunderstood the issue before, so I'm really glad you added the example.
That's an interesting case. I'm not sure whether it makes sense to say that a mixin inherits from its superclass constraints. Consider the following:
main() {
  print(new C().a());
}
class A {
  String a() => 'a';
}
class B extends A {
  String a() => 'b';
}
mixin M on A {
  String a() => 'm${super.a()}';
}
class C extends B with M {}

This will print "mb". When the implementation of a in M invokes super.a(), it invokes the one in B. So in one sense, the method that the method a in M overrides depends on how the mixin M is applied, not on the declaration of M.
Given that, does it make sense, in general, to say that the method in M overrides the method in A?

Oof yeah; I'm not sure what the general use case of that method is. The documentation claims to follow behavior from the spec. "The behavior of this method is defined by the Dart Language Specification in section 16.15.1". So I guess it depends on whether the spec was updated there to include mixin constraints.
No biggie to me; I ended up using a few short lines in place of calling this method.

The superinvocation super.a() in M.a should be checked according to the combined interface of the on clause of the mixin (here, that's just the interface of A), and it does not matter whether or not there is an implementation of a in the classes from which that combined interface was obtained, cf. this location in the spec.
In that sense, a superinvocation in a mixin is treated like an invocation on an interface (a regular instance method invocation), and the mixin cannot on its own provide any guarantees that it will be applied on a class where the superinvocation will actually have an inherited implementation of the target method to invoke.
Of course, I don't know the details, but it sounds to me like lookUpInheritedConcreteMethod should not be used during static checks on a superinvocation in a mixin, because there is no requirement that said method should be concrete.


[Feature Request]: add content for home, about and contact page for more information

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I want to add engaging and informative content to the About page, providing a comprehensive overview of our organization, its mission, and its values. Additionally, I intend to create a dedicated contact page to facilitate easy access for individuals seeking assistance, information, or offering valuable suggestions. This will enable seamless communication and collaboration with our audience, further enhancing our ability to address their needs and concerns.
Use Case
By creating a dedicated "About" page and "Contact" section, users can gain insight into the app's use cases and features. Additionally, it provides a convenient way for users to initiate further discussions.Adding a specific about page and contact section helps the user to learn about the use cases of the app, its features, and to easily reach you for conversation.
Benefits
Including these elements in the project would greatly assist users in understanding its purpose, unique features, and the individuals responsible for its creation.
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[ ] I'm a SSOC'24 contributor
[X] I want to work on this issue

@Vijayaa21 Sorry but we don't want any new page in this application.


Adding 2 unit tests to device-groups

Description
Replace PR: https://github.com/RedHatInsights/edge-api/pull/726
Fixes THEEDGE-1766
Type of change
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[x] Tests update
[ ] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] I run go fmt ./... to check that my code is properly formatted
[x] I run go vet ./... to check that my code is free of common Go style mistakes

@mergifyio rebase

Codecov Report

Merging #733 (37cfcde) into main (4ae05fb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #733   +/-   ##
=======================================
  Coverage   31.27%   31.27%
=======================================
  Files          44       44
  Lines        4704     4704
=======================================
  Hits         1471     1471
  Misses       3030     3030
  Partials      203      203

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ae05fb...37cfcde. Read the comment docs.


Can not import com.google.cloud.speech.v1p1beta1.SpeechClient

I am trying Google Speech v1p1beta1, but encountered the following issue.
com.google.cloud.speech.v1p1beta1.SpeechClient can not be imported. The rest of classes such as ReconizeConfig, RecognizeResponse are all fine.
Here is the version that I am using.

com.google.api.grpc
proto-google-cloud-speech-v1p1beta1
0.25.0

Are you using maven or gradle?
<dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-speech</artifactId>
    <version>0.62.0-beta</version>
</dependency>


Could not select scenario in Protractor

Hi,
I'm trying to use ng-apimock with Protractor in an Ionic project. After a few false starts, I think I'm almost there, but I'm getting the error Could not select scenario [get-single-case] thrown when trying to use my mocks.
Here's my protractor.conf.js:
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');

exports.config = {
  allScriptsTimeout: 11000,
  specs: [
    './src/**/*.e2e-spec.ts'
  ],
  capabilities: {
    'browserName': 'chrome'
  },
  directConnect: true,
  baseUrl: 'http://localhost:4200/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    print: function() {}
  },
  onPrepare() {
    require('ts-node').register({
      project: 'e2e/tsconfig.e2e.json'
    });

    var ngApimock = require('ng-apimock')();

    ngApimock.run({
      "src": "e2e/mocks",
    });

    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
    browser.ngApimock = require('../.tmp/mocks/protractor.mock.js');
  },
  ngApimockOpts: {
    angularVersion: 6,
    hybrid: false
  }
};

And here's a mock:
{
  "expression": "/cases/fdaacd04-7125-117a-ac6d-45a68b1d5de1",
  "method": "GET",
  "name": "case",
  "responses": {
    "get-single-case": {
      "default": true,
      "status": 200,
      "data": {
      ...
      }
    }
  }
}

(I've left the actual data out for brevity)
And here's my tests:
import { CasePage } from './case.po';
import { browser, ExpectedConditions, $ } from 'protractor';

describe('Case information', () => {
  let page: CasePage;

  beforeEach(() => {
    browser['ngApimock'].selectScenario('case', 'get-single-case');
    page = new CasePage();
    page.get();
  });

  describe('Listing cases', () => {
    it('should list cases', () => {
      var cases = page.getListofCases();
      expect(cases.count()).toEqual(20);
    });
  });

  describe('Show case detail', () => {
    it('should show case information', () => {
      page.clickFirstCase().then(function() {
        expect(page.getHeaderText()).toMatch(/Visit details/);
      });
    })
  });
});

Any help would be appreciated!

@pezholio could you try and chain your selectScenario promise.
It is an async call so it could be that the scenario has not been set yet befor you doe a page.get()

Here's some more detailed output:
Jasmine started

  Case information

    Show case detail
      ✓ should show case information

Executed 1 of 1 spec SUCCESS in 0.014 sec.
[11:47:58] E/launcher - Could not select scenario [get-single-case]
[11:47:58] E/launcher - Error: Could not select scenario [get-single-case]
    at process.on (/Users/stuart/Documents/FamilyStoryUI/fsIonic/node_modules/protractor/built/launcher.js:177:52)
    at process.emit (events.js:180:13)
    at process.emit (/Users/stuart/Documents/FamilyStoryUI/fsIonic/node_modules/protractor/node_modules/source-map-support/source-map-support.js:439:21)
    at process.emit (/Users/stuart/Documents/FamilyStoryUI/fsIonic/node_modules/source-map-support/source-map-support.js:461:21)
    at process._fatalException (internal/bootstrap/node.js:391:27)
[11:47:58] E/launcher - Process exited with error code 199

Weirdly, the test seems to pass, but I don't see any output in Chrome

@pezholio can you please share the setup for running ng-apimock on your Ionic 3 project? Like the dependencies you installed, the setup for tslint, protractor and jasmine.. as well as a simple test case in which you managed to select the scenario properly? I'm trying it for a couple hours now with no success yet.
Thanks in advance!

Thanks, but I ended up going down a different route for this, using a live test API, and creating/deleting everything I needed as part of the setup/teardown routine.

Hi @marcioferlan @mdasberg  I am also receiving this error using Protractor
Could not select scenario [success] thrown

Here is my setup:
My Protractor Config
const { SpecReporter } = require('jasmine-spec-reporter');

exports.config = {
	allScriptsTimeout: 30000,
	specs: [
		'./source/client/test/ui-tests/spec-files/*/*.ui-spec.ts'
	],
	capabilities: {
		browserName: 'chrome',
		chromeOptions: {
			// args: ["--headless", "--disable-gpsu"]
		}
	},
	directConnect: true,
	jasmineNodeOpts: {
		showColors: true,
		defaultTimeoutInterval: 60000,
		print: function () { }
	},
	onPrepare() {

		require('ts-node').register({
			project: './source/client/test/ui-tests/tsconfig.e2e.json'
		});

		jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));

		var ngApimock = require('ng-apimock')();
		ngApimock.run({
			"src": "./source/client/test/ui-tests/mock-api-responses",
		  });
		browser.ngApimock = require('./.tmp/mocks/protractor.mock.js');

	},
	ngApimockOpts: {
		angularVersion: 7,
		hybrid: false
	},
	specReporter: {
		maxLogLines: 5,  // limit number of lines logged per test
		suppressErrorSummary: false,  // do not print error summary
		suppressFailed: false,  // do not print information about failed tests
		suppressPassed: false,  // do not print information about passed tests
		suppressSkipped: true,  // do not print information about skipped tests
		showSpecTiming: false // print the time elapsed for each spec
	}
};

My mock
{
	"expression": "/billing/customers/search",
	"method": "POST",
	"body": {"LastName":"kop"},
	"name": "partialNameMatch",
	"responses": {
	  "success": {
		"default": true,
		"status": 200,
		"headers": {},
		"data": {"Customers": [--omitted for brevity --]},
		"delay": 2000
	  }
	}
  }

Where I am selecting the scenario [ Page Object ]
navigateToSubscriberSearch(){
		return browser['ngApimock'].selectScenario('partial name match', 'success').then(()=>{
			browser.get('/subscribers/search');
		});
	}

Any thoughts?


fix: revert changes on number min

:tada: This PR is included in version 1.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Any way to use or enable encryption?

Or is that only available for 6LoWPAN?

Hi @tslater,
I don't think so, there are no notes on encryption in the wiki: http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide


Create PDF version of Opto 22 case study

Description
Create a PDF document of the case study so that it can be available to download via a form
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

@Hasmin-AC this one is ready too.
It's in here
I can't find an issue requesting a pdf version of the PIDD story, but I'm assuming we'll need that one too, right?

By the way, would we be interested in password-protecting these PDFs to restrict edit capabilities?


CobsSerialization null exception

Describe the bug
In certain situations, deserialization of messages can fail. Currently exceptions are being raised but not caught and that's causing silent crashes.
Expected behavior
Exceptions should be handled gracefully.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Version: [e.g 10 x64]

Additional context
Add any other context about the problem here.

There is a new pre-release version (1.0.3) compiled here with the fixes:
Let me know if it fixes the application crashing:
https://github.com/t3knomanzer/maxmix-software/releases/tag/1.0.3

Just tried with 1.0.3 still crashing...

Ok. The good news is that now we have automatic crash reporting so I can see the crash :D yey!
I found the issue, an oversight on my side. I think it should be fixed now. I'll push a new version in a few and let you know.

1.0.4 pre-release is out. Let me know if it fixes it this time.
https://github.com/t3knomanzer/maxmix-software/releases/tag/1.0.4

Tested again.. but somehow now my device seems to reconnect and disconnect every 2-3 seconds while using it ... and crashed again after some time.

Yeah that’s going to be your arduino or your cable for sure at this point.
I can see the crash and it’s low level communication stuff. There are other users utilizing the usb-c version without issues.
Going to close the bug and I would suggest that you ask in our subreddit if that’s ok.

It's no problem I already suspected this this to be faulty. I just use the other arduino with mini usb.. little more soldering to do. Thanks for your time and patience!


Have interface-over-type-literal replace trailing comma delimiters with semicolons

Feature request
Is your feature request related to a problem? Please describe.
The interface-over-type-literal rule essentially turns a type alias into an interface. As semicolons are the preferred delimiter for marking the end of a line, it's better to handle the case where the type alias to be fixed used comma as separators.
It would add clarity to the shape of the object, e.g.,
interface User {
  someData: {
    firstName: string,
    lastName: string,
    registered: boolean,
  };
  location: string;
  quantity: number;
}

instead of
interface User {
  someData: {
    firstName: string,
    lastName: string,
    registered: boolean,
  },
  location: string,
  quantity: number,
}

Describe the solution you'd like
Add an additional step to the fixer so that it checks if the type alias uses comma as its separator for member property. If so, replace them with semicolons.
Describe alternatives you've considered
Be less aggressive and add a warning instead, but I think it complicates the process. Automatically changing the separators makes more sense.

👋 @ychen10, thanks for filing this issue!

As semicolons are the preferred delimiter for marking the end of a line

Although I personally agree with you on this from a style perspective, it's not the responsibility of the interface-over-type-literal rule to fix interfaces to use semicolons over commas. type-literal-delimiter does that instead. TSLint rules intentionally don't care about stylistic preferences from other rules to keep themselves simple and single-purpose.
Given that TSLint is being deprecated (#4534) and there are existing structural issues with rule fixes overlapping (#2556), I'm going to mark this issue as declined.

Hi @JoshuaKGoldberg  -
type-literal-delimiter does not actually handles the case of an interface, as interfaces don't really have a typeLiteralNode in their AST. Is there an equivalent rule that applies the delimiter check to interfaces?

No, but if you'd like to file an issue for a new interface-literal-delimeter rule that seems reasonable.

Actually, I think the [semicolon](https://palantir.github.io/tslint/rules/semicolon/) rule already does that.


[Improvement] Files missing headers and license

What would you like to be improved?
These files don't have a header so people don't know hoe they are licensed or if they are 3rd party code:
./integration-test/src/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/service/MysqlService.java
./integration-test/src/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/postgresql/service/PostgreSqlService.java
I though the rat plugin would catch this?
How should we improve?
Add correct headers to files

May I take over this issue ? Many Thanks !

May I take over this issue ? Many Thanks !

Sure， please go ahead.

May I take over this issue ? Many Thanks !

Assigned. Thanks @brandboat


Fix #164 under Python 3; prevent line-folding at beginning of content-id header

Closes #164
Closes #536
Also ensures that things don't break if a user supplies a request_id with a "+" in it.

@tseaver I figured out how to test it and added a test, could you re-review?


daemon-kubelite failed to (re)start

Summary
On a 4cpu-8gb instance running COS Lite load test (on GCP),
juju status was erroring out and it turned out that snap.microk8s.daemon-kubelite is not running.
$ juju status
ERROR cannot connect to k8s api server; try running 'juju update-k8s --client <k8s cloud name>'

$ juju update-k8s --client microk8s
ERROR registering credentials for provider: resolving microk8s credentials: ensuring cluster role "juju-credential-microk8s" in namespace "kube-system": Get "https://<IP_ADDRESS>:16443/apis/rbac.authorization.k8s.io/v1/clusterroles/juju-credential-microk8s": dial tcp <IP_ADDRESS>:16443: connect: connection refused

$ uptime
 17:46:52 up 5 days, 10 min,  1 user,  load average: 0.11, 0.11, 0.04

Uptime is 5 days and cluster crashed two days ago.
Certs didn't rotate:
$ sudo microk8s refresh-certs --check
The CA certificate will expire in 3644 days.
The server certificate will expire in 362 days.
The front proxy client certificate will expire in 362 days.

$ sudo microk8s refresh-certs --undo
No previous backup found

Manually restarting (2 days later) sudo snap restart microk8s.daemon-kubelite worked.
What Should Happen Instead?
daemon-kubelite to autorestart successfully. Or not crash in the first place :)
Reproduction Steps

Deploy the cos-lite load test
Let it run for a while

Introspection Report
$ microk8s status
microk8s is not running. Use microk8s inspect for a deeper inspection.

Everything was running, except:
 FAIL:  Service snap.microk8s.daemon-kubelite is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-kubelite

$ sudo journalctl -u snap.microk8s.daemon-kubelite

microk8s.daemon-kubelite[2677549]: Starting kubelite
microk8s.daemon-kubelite[2677549]: I1210 09:25:29.839018 2677549 daemon.go:73] Waiting for the API server
microk8s.daemon-kubelite[2677549]: I1210 09:25:29.840165 2677549 daemon.go:65] Starting API Server
microk8s.daemon-kubelite[2677549]: I1210 09:25:29.841461 2677549 server.go:561] external host was not specified, using <IP_ADDRESS>
microk8s.daemon-kubelite[2677549]: W1210 09:25:29.841497 2677549 authentication.go:526] AnonymousAuth is not allowed with the AlwaysAllow authorizer. Resetting AnonymousAuth to false. You should use a different authorizer
microk8s.daemon-kubelite[2677549]: I1210 09:25:29.841801 2677549 server.go:161] Version: v1.24.8-2+1dda18a15eea38
microk8s.daemon-kubelite[2677549]: I1210 09:25:29.841832 2677549 server.go:163] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
microk8s.daemon-kubelite[2677549]: Error: missing content for serving cert "serving-cert::/var/snap/microk8s/4175/certs/server.crt::/var/snap/microk8s/4175/certs/server.key"
microk8s.daemon-kubelite[2677549]: F1210 09:25:29.842299 2677549 daemon.go:67] API Server exited missing content for serving cert "serving-cert::/var/snap/microk8s/4175/certs/server.crt::/var/snap/microk8s/4175/certs/server.key"

systemd[1]: snap.microk8s.daemon-kubelite.service: Main process exited, code=exited, status=255/EXCEPTION
systemd[1]: snap.microk8s.daemon-kubelite.service: Failed with result 'exit-code'.
systemd[1]: snap.microk8s.daemon-kubelite.service: Scheduled restart job, restart counter is at 5.
systemd[1]: Stopped Service for snap application microk8s.daemon-kubelite.
systemd[1]: snap.microk8s.daemon-kubelite.service: Start request repeated too quickly.
systemd[1]: snap.microk8s.daemon-kubelite.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Service for snap application microk8s.daemon-kubelite.
systemd[1]: snap.microk8s.daemon-kubelite.service: Start request repeated too quickly.
systemd[1]: snap.microk8s.daemon-kubelite.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Service for snap application microk8s.daemon-kubelite.

inspection-report-20221212_182639.tar.gz

Hi @sed-i sorry for the late response. I believe the node run out of disk. Here is the du output:
/dev/root        97G   97G  150M 100% /
/dev/sda15      105M  5.3M  100M   5% /boot/efi

Thanks @ktsakalozos, yeah that makes sense. I'll try to remember to check for that in the future.
I wonder:

150M of free space is not sufficient for a more graceful exit error message?
With no disk space left (or e.g. read-only for some reason), could we have a more informative error?

Feel free to close if it's not in the scope of microk8s itself.

What you could do is to set the eviction limits so that Kubernetes will not schedule pods to nodes under disk pressure and even evict pods from those nodes, see [1]. On MicroK8s these limits are set in /var/snap/microk8s/current/args/kubelet.
[1] https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/


Add ENU to Msg: TextConst

[Enter feedback here]
This is an English text, so need to add ENU
.
❌ Msg: TextConst = 'Hello from my method';
⭕ Msg: TextConst ENU = 'Hello from my method';
Thank you.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e34c994f-9471-dfed-05be-e4893f63fd79
Version Independent ID: cf609474-4520-ded4-fae2-fd4dd8235d07
Content: Table Object - Business Central
Content Source: dev-itpro/developer/devenv-table-object.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

In my opinion adding ENU is obsolete nowadays because you work with XLF Files for translations.

No, that is not my point.
Compilation is failed without ENU.
❌ Msg: TextConst = 'Hello from my method';
⭕ Msg: TextConst ENU = 'Hello from my method';

Sorry, you are right! The example should be changed to used Label instead of TextConst.

Thank you, dNsl9r😁

Thanks for catching this - the topic will be fixed with the next doc refresh.

Appreciate it.


Grid Sorting issues

Its possible to keyboard focus AG-Grid Headers in our grid model with the keyboard.  However --

The rendering is not quite right -- border touches/occludes the text.
Hitting return will cause sorting to be done that does not respect the columns Hoist sorting preference and is not rendered correctly by the custom hoist header.

Provided PR will at least prevent the sorting from getting out of sync.  Think the focus rectangle can probably be ignored.

Provided PR will at least prevent the sorting from getting out of sync.  Think the focus rectangle can probably be ignored.


:sparkles: Initial Steps :sparkles:

GitHub Project:

[x] Create a new organization.
[x] Give the Organization a name, description and Avatar.
[x]  Create a Kanban Board for the Tasks.

Deliverable:

Organization: https://github.com/callback-demons
Kanban Board: https://github.com/orgs/callback-demons/projects/1


optimize away SortNode in case it is covered by an arangosearch view

this implementation is a stub with hard-coded attribute names
WIP - no need to review right now

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/4054/


feat: read model succeeds even if model had 0 types

We haven’t fully dropped multi-row models in OpenFGA yet, and so that leaves this functionality a bit challenging since we can’t clearly distinguish between a model that exists but has 0 typedefs vs a model that does not physically exist.
With a single row model we can distinguish this, because if the row does not exist then the model does not exist, but with multi-row models it’s more nuanced.
We should finish the work to converge to single row models in OpenFGA before we go this route don’t you think?


Corrected several typos so that EL 8.x patch will run

To make syslog plugin work on CentOS 8, it looks like we need to have this in /etc/audit/plugins.d/syslog.conf:
type = always
path = /sbin/audisp-syslog

#68 open with syslog patch


Add Property Testing for the TinyLang.Field.TypeChecker

we could either reuse the generator in TinyLang.Field.Generators, or
write a new generator using leancheck.

leancheck and other enumerative libraries tend to generate values skewed towards "zero" (whatever "zero" is). The entire point of property-based testing is that you generate lots of diverse, interesting, invariants-fulfilling values that are distributed uniformly inside particular patterns (e.g. when generating an integer we want to generate values around some particular bounds uniformly and also between those bounds uniformly). When you combine several different generators of interesting (representative) values together, you get another interesting generator.
And when you get a test failure, shrinking allows to reduce the test sample in a way that is completely unrelated to how the sample was generated. Rich generators make it likely to reveal a bug if there's one, and good shrinking allows to boil the problem down to a minimal test case. Generation and shrinking are two separate concepts that shouldn't be "entangled".
This is particularly evident in our case. Naive enumeration results in boring terms being generated. Most of the time we want to generate typed terms, enumerating those doesn't sound particularly fun. We also want both a type-preserving and non-type-preserving shrinkers, because those two reveal different kinds of bugs (e.g. the latter better reveals scope bugs than the former, because you're allowed to prune more subterms than if you were to preserve well-typedness).
So we need flexibility rather than convenience of generating instances via deriveListable, because the latter is pretty useless in our case anyway.


Can't mint on fueart.io

What version of Wallet are you using?
0.13.10
What is happening?
When trying to mint a nft on fuelart.io, I have the confirmation pop up that appears on my extension. The confirmation button shows "loading", then the pop up disappears. I tried several time and the problem's still going.
steps to reproduce
go there https://fuelart.io/launchpad/0x5d4f41b5e6249cca9d0a7c0af4a84ad802de75076a42e8af538eef76f0900729
connect wallet
click on mint
How it should behave?
it should open a pop up for confirmation and allow me to confirm the transaction for mint
What os are you seeing the problem on?
Windows Desktop
What browser?
Chrome
What is your browser version?
Version 120.0.6099.130 (Build officiel) (64 bits)

@Xpxwx thanks for reporting a issue. I have inspect the application and the issue been returned is related to gasLimit, what is informed by the fuelart application. Please contact fuelart directly using the contact infos they have on the application. https://fuelart.io/


Xcode - Debug vs Release mode device scan failure

Question
When I run my code in debug mode, I can scan and discover my peripheral.
When I run my code in release mode, I am unable to scan or discover my peripheral.
    "react-native": "0.68.2",
    "react-native-ble-plx": "^2.0.3",

I used this as a reference: https://github.com/PlayerData/react-native-mcu-manager/blob/main/example/src/useBluetoothDevices.ts#L6
scannedDevice comes back as nil, and e is defined as [BleError: BluetoothLE is in unknown state]
I have added 'Uses Bluetooth LE accessories' in xcode project capabilities
I have added a restoreStateIdentifier to BleModule.createClient()
I have matched optimizations with debug (and other configurations)

I have used these links for troubleshooting so far

https://blog.expo.dev/so-you-want-to-build-a-bluetooth-app-with-react-native-and-expo-6ea6a31a151d
https://github.com/innoveit/react-native-ble-manager/issues/273
https://stackoverflow.com/questions/72291956/why-is-testflight-app-different-from-local-development/72364266#72364266

Any ideas where else to look?

Adding this wait got rid of the BleManager state error
https://github.com/dotintent/react-native-ble-plx/issues/715
Still not scanning but one step closer


Turbo 8

@domchristie I am curious with turbo 8 coming with view transitions what's the plan for this amazing library? Hoping it will continue to work in place of turbo 8 view transitions.

Hey @jondavidchristopher yep, I still plan to maintain this for Turbo 8. I think it has an advantage over plain view transitions when you want the animations to be immediate after click. I’ve not tested with v8 yet, but will probably do so at some point. Thanks!

Totally agree. It really makes an app come alive. If I can help in any way I will.

Thanks! Are you able to share how you're using it? I'd be interested to see :)

For sure, let me know what you’re thinking as far as sharing. Screen share or whatever works

Got a public URL? or is it private? No worries if it's private, just curious

It’s private.  We aren’t using in any interesting way. Pretty much just how the readme describes. Would be happy to add you to it to see if you have any suggestions on how to better leverage turn.

Hi @domchristie, I'd love to see the upgrade to turbo 8 as well.
Currently I am using your repo in a app bridgetown app together with internationalization, and the issue I am facing has to do with turbo not updating the head lang, something that got addressed in turbo 8 with https://github.com/hotwired/turbo/pull/1035
Huge fan of your project!


gapi object on gmail.com

Hi, i am trying to use your module to get the gapi object but the callback never gets called.
I want to use your module for a plugin that runs on gmail.com. Is there a possible conflict with gmail's gapi object?
Btw. on npm install google-client-api i get version 1.0.3 on which the callback function gets called but returns "had by the snake" (which is the code from version 1.0.0 maybe?), so now i have installed 1.0.1 to work on.
Thanks!

@sstefoss one of the wierd things about the Google Client API is that it doesn't support all google apis. You can explore the apis which are supported here:
https://developers.google.com/apis-explorer/
It does look like gmail in some form or other is supported by the client api. In saying this.
I actually wrote this module out and left it because the api I wanted to use wasn't supported :(
I'll test it on my end actually write proper tests in the test folder. I'll get back to you after.
Feel free to create a PR if you have time and figure out what your issue is.

@sstefoss Your issues should be fixed in 1.0.4. That was my bad I clearly had pushed bad code when I decided to stop working on this.
I added some proper tests also so this shouldn't happen again. Thanks for the issue.

Thanks for the update.
For me, as i am running it on a chrome extension, global.$$onClientLoad function doesn't get called. I will try to figure out. Any suggestions are welcomed.

Yeah unfortunately when using the Google Client api it uses the global callback to notify when a function changes.
Also though if you don't have access to global/window scope this library cant access the gapi object anyways if I do remember correctly.


Fail to install on node-red 3.0.2

I have worked with this node with the previous version of node-red, (1 and 2) installed on some raspberry.
Now I'm setting up a new machine for node-red, with an x86 platform and node-red 3.0.2: I have installed a lot of nodes that I normally use, but only trying to install ewelink node, I receive an error message.
I've try some times, with the same effect.
The logs below have not help me to understand the problem.
Any idea ?  I updated core-js to<EMAIL_ADDRESS>Now it wont install at all.

The solution to my problem was very simple : install the github package.
apt install github
Now my node-red is working fine from weekes


Last Modified No Longer Works

Hey,
Trying my luck shouting into the void here :) It seems as if this plugin (and others like it) don't work any more. When building locally, the last modified date works fine. But when going to production (and people have tried several different environments, like AWS/Platform/Haroku), all the dates display the current date.
Any ideas? Was this caused by a chance to Jekyll?
Thanks!

What’s your environment? I deployed (https://mymorningroutine.com/sitemap.xml) today and it’s still working, albeit I’m not using the latest Jekyll (3.8.5 with Ruby 2.5.3).

When building locally, the last modified date works fine.

Does this refer to jekyll build or jekyll serve? How do you build and deploy?
Hope we can figure it out :)

@michaelx - I came across your solution via this forum - https://talk.jekyllrb.com/t/how-to-set-lastmod-to-file-modified-date/8609
I'm running into the same issue.  I've am customizing one of the Jekyll themes that is compatible with GitHub pages (https://jekyllthemes.io/theme/mediumish) to for personal use.
It seems that once I add {% last_modified {{ post.path }} %} to _layouts/post.html, the build fails with the following error:
Requiring: kramdown-parser-gfm Rendering Layout: _posts/2024-06-02-sample-post.md Layout source: site github-pages 231 | Error: Liquid syntax error (line 39): Unknown tag 'last_modified'.
Any ideas of where to start for troubleshooting?


NEWS:  # Website and Documentation Site 📰📖 Check out *https://agpt.co*, the official news & updates site for Auto-GPT! The documentation also has a place here, at *https://docs.agpt.co* # For contributors 👷🏼 Since releasing v0.3.0, we are working on re-architecting the Auto-GPT core to make it more extensible and to make room for structural performance-oriented R&D. In the meantime, we have less time to process incoming pull requests and issues, so we focus on high-value contributions: * significant bugfixes * *major* improvements to existing functionality and/or docs (so no single-typo fixes) * contributions that help us with re-architecture and other roadmapped items We have to be somewhat selective in order to keep making progress, but this does not mean you can't contribute. Check out the contribution guide on our wiki: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Contributing # 🚀 v0.3.1 Release 🚀 Over a week and 47 pull requests have passed since v0.3.0, and we are happy to announce the release of v0.3.1! Highlights and notable changes since v0.2.2: ## Changes to Docker configuration 🐋 * The workdir has been changed from */home/appuser* to */app*. Be sure to update any volume mounts accordingly! * Docker-compose 1.29.0 is now required. ## Logging 🧾 * Log functionality has been improved for better understanding and easier summarization. * All LLM interactions are now logged to logs/DEBUG, to help with debugging and development. ## Other * Edge browser is now supported by the `browse_website` command. * Sets of commands can now be disabled using DISABLED_COMMAND_CATEGORIES in .env. # ⚠ Command `send_tweet` is DEPRECATED, and will be removed in v0.4.0 ⚠ Twitter functionality (and more) is now covered by plugins, see [Plugin support 🔌] ## Plugin support 🔌 Auto-GPT now has support for plugins! With plugins, you can extend Auto-GPT's abilities, adding support for third-party services and more. See https://github.com/Significant-Gravitas/Auto-GPT-Plugins for instructions and available plugins. Specific plugins can be allowlisted/denylisted in .env.
Welcome back!  Would you like me to return to being Entrepreneur-GPT?
Continue with the last settings?
Name:  Entrepreneur-GPT
Role:  an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
Goals: ['Grow Twitter Account', 'Increase net worth', 'Pass aws devops exam', 'Be happy', 'Get rich']
Continue (y/n): y
Using memory of type:  LocalCache
Using Browser:  chrome
Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 466, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 461, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 1375, in getresponse
    response.begin()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 466, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 461, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 1375, in getresponse
    response.begin()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 516, in request_raw
    result = _thread_context.session.request(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/__main__.py", line 5, in <module>
    autogpt.cli.main()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1635, in invoke
    rv = super().invoke(ctx)
         ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/cli.py", line 151, in main
    agent.start_interaction_loop()
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/agent/agent.py", line 75, in start_interaction_loop
    assistant_reply = chat_with_ai(
                      ^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/chat.py", line 159, in chat_with_ai
    assistant_reply = create_chat_completion(
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/llm_utils.py", line 93, in create_chat_completion
    response = openai.ChatCompletion.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
                           ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 216, in request
    result = self.request_raw(
             ^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 528, in request_raw
    raise error.APIConnectionError(
openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

gpt-llama.cpp:
=====  CHAT COMPLETION REQUEST  =====
> AUTO MODEL DETECTION FAILED. LOADING DEFAULT CHATENGINE...
{ '--n_predict': 3069 }
{"role":"system","content":"You are ChatGPT, a helpful assistant developed by OpenAI."} !== {"role":"system","content":"You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.\nYour decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1. Grow Twitter Account\n2. Increase net worth\n3. Pass aws devops exam\n4. Be happy\n5. Get rich\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.\n2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n3. No user assistance\n4. Exclusively use the commands listed in double quotes e.g. \"command name\"\n5. Use subprocesses for commands that will not terminate within a few minutes\n\nCommands:\n1. Google Search: \"google\", args: \"input\": \"<search>\"\n2. Browse Website: \"browse_website\", args: \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n3. Start GPT Agent: \"start_agent\", args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n4. Message GPT Agent: \"message_agent\", args: \"key\": \"<key>\", \"message\": \"<message>\"\n5. List GPT Agents: \"list_agents\", args: \n6. Delete GPT Agent: \"delete_agent\", args: \"key\": \"<key>\"\n7. Clone Repository: \"clone_repository\", args: \"repository_url\": \"<url>\", \"clone_path\": \"<directory>\"\n8. Write to file: \"write_to_file\", args: \"file\": \"<file>\", \"text\": \"<text>\"\n9. Read file: \"read_file\", args: \"file\": \"<file>\"\n10. Append to file: \"append_to_file\", args: \"file\": \"<file>\", \"text\": \"<text>\"\n11. Delete file: \"delete_file\", args: \"file\": \"<file>\"\n12. Search Files: \"search_files\", args: \"directory\": \"<directory>\"\n13. Analyze Code: \"analyze_code\", args: \"code\": \"<full_code_string>\"\n14. Get Improved Code: \"improve_code\", args: \"suggestions\": \"<list_of_suggestions>\", \"code\": \"<full_code_string>\"\n15. Write Tests: \"write_tests\", args: \"code\": \"<full_code_string>\", \"focus\": \"<list_of_focus_areas>\"\n16. Execute Python File: \"execute_python_file\", args: \"file\": \"<file>\"\n17. Generate Image: \"generate_image\", args: \"prompt\": \"<prompt>\"\n18. Send Tweet: \"send_tweet\", args: \"text\": \"<text>\"\n19. Do Nothing: \"do_nothing\", args: \n20. Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1. Internet access for searches and information gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n2. Constructively self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions and strategies to refine your approach.\n4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.\n\nYou should only respond in JSON format as described below \nResponse Format: \n{\n    \"thoughts\": {\n        \"text\": \"thought\",\n        \"reasoning\": \"reasoning\",\n        \"plan\": \"- short bulleted\\n- list that conveys\\n- long-term plan\",\n        \"criticism\": \"constructive self-criticism\",\n        \"speak\": \"thoughts summary to say to user\"\n    },\n    \"command\": {\n        \"name\": \"command name\",\n        \"args\": {\n            \"arg name\": \"value\"\n        }\n    }\n} \nEnsure the response can be parsed by Python json.loads"}

=====  LLAMA.CPP SPAWNED  =====
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/llama.cpp/main -m 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 --temp 0.7 --n_predict 3069 --top_p 0.1 --top_k 40 -c 2048 --seed -1 --repeat_penalty 1.1764705882352942 --reverse-prompt user: --reverse-prompt
user --reverse-prompt system: --reverse-prompt
system --reverse-prompt

 -i -p Complete the following chat conversation between the user and the assistant. system messages should be strictly followed as additional instructions.

system: You are a helpful assistant.
user: How are you?
assistant: Hi, how may I help you today?
system: You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.

GOALS:

1. Grow Twitter Account
2. Increase net worth
3. Pass aws devops exam
4. Be happy
5. Get rich

Constraints:
1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.
2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.
3. No user assistance
4. Exclusively use the commands listed in double quotes e.g. "command name"
5. Use subprocesses for commands that will not terminate within a few minutes

Commands:
1. Google Search: "google", args: "input": "<search>"
2. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"
3. Start GPT Agent: "start_agent", args: "name": "<name>", "task": "<short_task_desc>", "prompt": "<prompt>"
4. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
5. List GPT Agents: "list_agents", args:
6. Delete GPT Agent: "delete_agent", args: "key": "<key>"
7. Clone Repository: "clone_repository", args: "repository_url": "<url>", "clone_path": "<directory>"
8. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
9. Read file: "read_file", args: "file": "<file>"
10. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
11. Delete file: "delete_file", args: "file": "<file>"
12. Search Files: "search_files", args: "directory": "<directory>"
13. Analyze Code: "analyze_code", args: "code": "<full_code_string>"
14. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"
15. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"
16. Execute Python File: "execute_python_file", args: "file": "<file>"
17. Generate Image: "generate_image", args: "prompt": "<prompt>"
18. Send Tweet: "send_tweet", args: "text": "<text>"
19. Do Nothing: "do_nothing", args:
20. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"

Resources:
1. Internet access for searches and information gathering.
2. Long Term memory management.
3. GPT-3.5 powered Agents for delegation of simple tasks.
4. File output.

Performance Evaluation:
1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.
2. Constructively self-criticize your big-picture behavior constantly.
3. Reflect on past decisions and strategies to refine your approach.
4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.

You should only respond in JSON format as described below
Response Format:
{
    "thoughts": {
        "text": "thought",
        "reasoning": "reasoning",
        "plan": "- short bulleted\n- list that conveys\n- long-term plan",
        "criticism": "constructive self-criticism",
        "speak": "thoughts summary to say to user"
    },
    "command": {
        "name": "command name",
        "args": {
            "arg name": "value"
        }
    }
}
Ensure the response can be parsed by Python json.loads
system: The current time and date is Wed May 24 15:33:01 2023
system: This reminds you of these events from your past:

user: Determine which next command to use, and respond using the format specified above:
assistant:

=====  REQUEST  =====
user: Determine which next command to use, and respond using the format specified above:
node:events:490
      throw er; // Unhandled 'error' event
      ^

Error: spawn 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/llama.cpp/main ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn 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/llama.cpp/main',
  path: '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/llama.cpp/main',
  spawnargs: [
    '-m',
    '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',
    '--temp',
    '0.7',
    '--n_predict',
    3069,
    '--top_p',
    '0.1',
    '--top_k',
    '40',
    '-c',
    '2048',
    '--seed',
    '-1',
    '--repeat_penalty',
    '1.1764705882352942',
    '--reverse-prompt',
    'user:',
    '--reverse-prompt',
    '\nuser',
    '--reverse-prompt',
    'system:',
    '--reverse-prompt',
    '\nsystem',
    '--reverse-prompt',
    '\n\n\n',
    '-i',
    '-p',
    'Complete the following chat conversation between the user and the assistant. system messages should be strictly followed as additional instructions.\n' +
      '\n' +
      'system: You are a helpful assistant.\n' +
      'user: How are you?\n' +
      'assistant: Hi, how may I help you today?\n' +
      'system: You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.\n' +
      'Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n' +
      '\n' +
      'GOALS:\n' +
      '\n' +
      '1. Grow Twitter Account\n' +
      '2. Increase net worth\n' +
      '3. Pass aws devops exam\n' +
      '4. Be happy\n' +
      '5. Get rich\n' +
      '\n' +
      '\n' +
      'Constraints:\n' +
      '1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.\n' +
      '2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n' +
      '3. No user assistance\n' +
      '4. Exclusively use the commands listed in double quotes e.g. "command name"\n' +
      '5. Use subprocesses for commands that will not terminate within a few minutes\n' +
      '\n' +
      'Commands:\n' +
      '1. Google Search: "google", args: "input": "<search>"\n' +
      '2. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"\n' +
      '3. Start GPT Agent: "start_agent", args: "name": "<name>", "task": "<short_task_desc>", "prompt": "<prompt>"\n' +
      '4. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"\n' +
      '5. List GPT Agents: "list_agents", args: \n' +
      '6. Delete GPT Agent: "delete_agent", args: "key": "<key>"\n' +
      '7. Clone Repository: "clone_repository", args: "repository_url": "<url>", "clone_path": "<directory>"\n' +
      '8. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"\n' +
      '9. Read file: "read_file", args: "file": "<file>"\n' +
      '10. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"\n' +
      '11. Delete file: "delete_file", args: "file": "<file>"\n' +
      '12. Search Files: "search_files", args: "directory": "<directory>"\n' +
      '13. Analyze Code: "analyze_code", args: "code": "<full_code_string>"\n' +
      '14. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"\n' +
      '15. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"\n' +
      '16. Execute Python File: "execute_python_file", args: "file": "<file>"\n' +
      '17. Generate Image: "generate_image", args: "prompt": "<prompt>"\n' +
      '18. Send Tweet: "send_tweet", args: "text": "<text>"\n' +
      '19. Do Nothing: "do_nothing", args: \n' +
      '20. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"\n' +
      '\n' +
      'Resources:\n' +
      '1. Internet access for searches and information gathering.\n' +
      '2. Long Term memory management.\n' +
      '3. GPT-3.5 powered Agents for delegation of simple tasks.\n' +
      '4. File output.\n' +
      '\n' +
      'Performance Evaluation:\n' +
      '1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n' +
      '2. Constructively self-criticize your big-picture behavior constantly.\n' +
      '3. Reflect on past decisions and strategies to refine your approach.\n' +
      '4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.\n' +
      '\n' +
      'You should only respond in JSON format as described below \n' +
      'Response Format: \n' +
      '{\n' +
      '    "thoughts": {\n' +
      '        "text": "thought",\n' +
      '        "reasoning": "reasoning",\n' +
      '        "plan": "- short bulleted\\n- list that conveys\\n- long-term plan",\n' +
      '        "criticism": "constructive self-criticism",\n' +
      '        "speak": "thoughts summary to say to user"\n' +
      '    },\n' +
      '    "command": {\n' +
      '        "name": "command name",\n' +
      '        "args": {\n' +
      '            "arg name": "value"\n' +
      '        }\n' +
      '    }\n' +
      '} \n' +
      'Ensure the response can be parsed by Python json.loads\n' +
      'system: The current time and date is Wed May 24 15:33:01 2023\n' +
      'system: This reminds you of these events from your past:\n' +
      '\n' +
      '\n' +
      '\n' +
      'user: Determine which next command to use, and respond using the format specified above:\n' +
      'assistant:'
  ]
}

Node.js v19.7.0

Models I have tested with:
WizardLM-7B-uncensored.ggmlv3.q4_0.bin
Wizard-Vicuna-13B-Uncensored.ggmlv3.q4_0.bin
stable-vicuna-13B.ggmlv3.q5_1.bin
wizardLM-13B-Uncensored.ggmlv3.q4_0.bin
Please note: scripts/test-installation.sh works fine.
Any suggestions? Thanks in advance.

Figured out what my issue was, thanks to an email from Openai that my API key was leaked LMFAO. Turns out I have/had OPENAI_API_KEY set in my .bash_profile, which was getting picked up.
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/llama.cpp/main

Heads up that api key needs to be revoked if it hasn't already been by secret scanning

Heads up that api key needs to be revoked if it hasn't already been by secret scanning

That's one of the great things about openai, it scans github for api-keys, and immediately disables them, hence the email I received. Thanks for the heads up.

the common thing is most of us facing same error
=====  STDERR  =====
stderr Readable Stream: CLOSED
as of 25-June-2023 using latest llama.cpp and gpt-llama.cpp with viucna 13B model
if i change some code then it reveles that llama.cpp ignore the --reverse-prompts and keep genrateing tokens
and gpt-llama check the --reverse-prompts and return the result
and when we try to intract with model again and its not finished response to previous pormpt
something crash in gpt-llama.cpp

Does gpt-llama.cpp work now with the main branch of auto-gpt?

Issue is more related to model than code. This repo is great but we are dealing with model that generates random text 🤣

Does gpt-llama.cpp work now with the main branch of auto-gpt?

I's been some time since the last time i tested that, but it should. My PR has been merged in ver. 0.4.0.
@keldenl sorry, i forgot about telling you about that. The docs in https://github.com/keldenl/gpt-llama.cpp/blob/master/docs/Auto-GPT-setup-guide.md needs an update

@DGdev91 thank you for your amazing work. I have followed the instructions but can't get it to work. Here are my errors.
auto-gpt:
Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file.
NEWS:  # Website and Documentation Site 📰📖 Check out *https://agpt.co*, the official news & updates site for Auto-GPT! The documentation also has a place here, at *https://docs.agpt.co* # For contributors 👷🏼 Since releasing v0.3.0, we are working on re-architecting the Auto-GPT core to make it more extensible and to make room for structural performance-oriented R&D. In the meantime, we have less time to process incoming pull requests and issues, so we focus on high-value contributions: * significant bugfixes * *major* improvements to existing functionality and/or docs (so no single-typo fixes) * contributions that help us with re-architecture and other roadmapped items We have to be somewhat selective in order to keep making progress, but this does not mean you can't contribute. Check out the contribution guide on our wiki: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Contributing # 🚀 v0.3.1 Release 🚀 Over a week and 47 pull requests have passed since v0.3.0, and we are happy to announce the release of v0.3.1! Highlights and notable changes since v0.2.2: ## Changes to Docker configuration 🐋 * The workdir has been changed from */home/appuser* to */app*. Be sure to update any volume mounts accordingly! * Docker-compose 1.29.0 is now required. ## Logging 🧾 * Log functionality has been improved for better understanding and easier summarization. * All LLM interactions are now logged to logs/DEBUG, to help with debugging and development. ## Other * Edge browser is now supported by the `browse_website` command. * Sets of commands can now be disabled using DISABLED_COMMAND_CATEGORIES in .env. # ⚠ Command `send_tweet` is DEPRECATED, and will be removed in v0.4.0 ⚠ Twitter functionality (and more) is now covered by plugins, see [Plugin support 🔌] ## Plugin support 🔌 Auto-GPT now has support for plugins! With plugins, you can extend Auto-GPT's abilities, adding support for third-party services and more. See https://github.com/Significant-Gravitas/Auto-GPT-Plugins for instructions and available plugins. Specific plugins can be allowlisted/denylisted in .env.
Welcome back!  Would you like me to return to being Entrepreneur-GPT?
Continue with the last settings?
Name:  Entrepreneur-GPT
Role:  an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
Goals: ['Grow Twitter Account', 'Increase net worth', 'Pass aws devops exam', 'Be happy', 'Get rich']
Continue (y/n): y
Using memory of type:  LocalCache
Using Browser:  chrome
Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 466, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 461, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 1375, in getresponse
    response.begin()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 466, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/urllib3/connectionpool.py", line 461, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 1375, in getresponse
    response.begin()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 516, in request_raw
    result = _thread_context.session.request(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/__main__.py", line 5, in <module>
    autogpt.cli.main()
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1635, in invoke
    rv = super().invoke(ctx)
         ^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/cli.py", line 151, in main
    agent.start_interaction_loop()
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/agent/agent.py", line 75, in start_interaction_loop
    assistant_reply = chat_with_ai(
                      ^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/chat.py", line 159, in chat_with_ai
    assistant_reply = create_chat_completion(
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/Downloads/Auto-GPT-fork/autogpt/llm_utils.py", line 93, in create_chat_completion
    response = openai.ChatCompletion.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
                           ^^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 216, in request
    result = self.request_raw(
             ^^^^^^^^^^^^^^^^^
  File "/Users/ml/miniforge3/envs/autogpt/lib/python3.11/site-packages/openai/api_requestor.py", line 528, in request_raw
    raise error.APIConnectionError(
openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

gpt-llama.cpp:
=====  CHAT COMPLETION REQUEST  =====
> AUTO MODEL DETECTION FAILED. LOADING DEFAULT CHATENGINE...
{ '--n_predict': 3069 }
{"role":"system","content":"You are ChatGPT, a helpful assistant developed by OpenAI."} !== {"role":"system","content":"You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.\nYour decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1. Grow Twitter Account\n2. Increase net worth\n3. Pass aws devops exam\n4. Be happy\n5. Get rich\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.\n2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n3. No user assistance\n4. Exclusively use the commands listed in double quotes e.g. \"command name\"\n5. Use subprocesses for commands that will not terminate within a few minutes\n\nCommands:\n1. Google Search: \"google\", args: \"input\": \"<search>\"\n2. Browse Website: \"browse_website\", args: \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n3. Start GPT Agent: \"start_agent\", args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n4. Message GPT Agent: \"message_agent\", args: \"key\": \"<key>\", \"message\": \"<message>\"\n5. List GPT Agents: \"list_agents\", args: \n6. Delete GPT Agent: \"delete_agent\", args: \"key\": \"<key>\"\n7. Clone Repository: \"clone_repository\", args: \"repository_url\": \"<url>\", \"clone_path\": \"<directory>\"\n8. Write to file: \"write_to_file\", args: \"file\": \"<file>\", \"text\": \"<text>\"\n9. Read file: \"read_file\", args: \"file\": \"<file>\"\n10. Append to file: \"append_to_file\", args: \"file\": \"<file>\", \"text\": \"<text>\"\n11. Delete file: \"delete_file\", args: \"file\": \"<file>\"\n12. Search Files: \"search_files\", args: \"directory\": \"<directory>\"\n13. Analyze Code: \"analyze_code\", args: \"code\": \"<full_code_string>\"\n14. Get Improved Code: \"improve_code\", args: \"suggestions\": \"<list_of_suggestions>\", \"code\": \"<full_code_string>\"\n15. Write Tests: \"write_tests\", args: \"code\": \"<full_code_string>\", \"focus\": \"<list_of_focus_areas>\"\n16. Execute Python File: \"execute_python_file\", args: \"file\": \"<file>\"\n17. Generate Image: \"generate_image\", args: \"prompt\": \"<prompt>\"\n18. Send Tweet: \"send_tweet\", args: \"text\": \"<text>\"\n19. Do Nothing: \"do_nothing\", args: \n20. Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1. Internet access for searches and information gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n2. Constructively self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions and strategies to refine your approach.\n4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.\n\nYou should only respond in JSON format as described below \nResponse Format: \n{\n    \"thoughts\": {\n        \"text\": \"thought\",\n        \"reasoning\": \"reasoning\",\n        \"plan\": \"- short bulleted\\n- list that conveys\\n- long-term plan\",\n        \"criticism\": \"constructive self-criticism\",\n        \"speak\": \"thoughts summary to say to user\"\n    },\n    \"command\": {\n        \"name\": \"command name\",\n        \"args\": {\n            \"arg name\": \"value\"\n        }\n    }\n} \nEnsure the response can be parsed by Python json.loads"}

=====  LLAMA.CPP SPAWNED  =====
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/llama.cpp/main -m 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 --temp 0.7 --n_predict 3069 --top_p 0.1 --top_k 40 -c 2048 --seed -1 --repeat_penalty 1.1764705882352942 --reverse-prompt user: --reverse-prompt
user --reverse-prompt system: --reverse-prompt
system --reverse-prompt

 -i -p Complete the following chat conversation between the user and the assistant. system messages should be strictly followed as additional instructions.

system: You are a helpful assistant.
user: How are you?
assistant: Hi, how may I help you today?
system: You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.

GOALS:

1. Grow Twitter Account
2. Increase net worth
3. Pass aws devops exam
4. Be happy
5. Get rich

Constraints:
1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.
2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.
3. No user assistance
4. Exclusively use the commands listed in double quotes e.g. "command name"
5. Use subprocesses for commands that will not terminate within a few minutes

Commands:
1. Google Search: "google", args: "input": "<search>"
2. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"
3. Start GPT Agent: "start_agent", args: "name": "<name>", "task": "<short_task_desc>", "prompt": "<prompt>"
4. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"
5. List GPT Agents: "list_agents", args:
6. Delete GPT Agent: "delete_agent", args: "key": "<key>"
7. Clone Repository: "clone_repository", args: "repository_url": "<url>", "clone_path": "<directory>"
8. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"
9. Read file: "read_file", args: "file": "<file>"
10. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"
11. Delete file: "delete_file", args: "file": "<file>"
12. Search Files: "search_files", args: "directory": "<directory>"
13. Analyze Code: "analyze_code", args: "code": "<full_code_string>"
14. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"
15. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"
16. Execute Python File: "execute_python_file", args: "file": "<file>"
17. Generate Image: "generate_image", args: "prompt": "<prompt>"
18. Send Tweet: "send_tweet", args: "text": "<text>"
19. Do Nothing: "do_nothing", args:
20. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"

Resources:
1. Internet access for searches and information gathering.
2. Long Term memory management.
3. GPT-3.5 powered Agents for delegation of simple tasks.
4. File output.

Performance Evaluation:
1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.
2. Constructively self-criticize your big-picture behavior constantly.
3. Reflect on past decisions and strategies to refine your approach.
4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.

You should only respond in JSON format as described below
Response Format:
{
    "thoughts": {
        "text": "thought",
        "reasoning": "reasoning",
        "plan": "- short bulleted\n- list that conveys\n- long-term plan",
        "criticism": "constructive self-criticism",
        "speak": "thoughts summary to say to user"
    },
    "command": {
        "name": "command name",
        "args": {
            "arg name": "value"
        }
    }
}
Ensure the response can be parsed by Python json.loads
system: The current time and date is Wed May 24 15:33:01 2023
system: This reminds you of these events from your past:

user: Determine which next command to use, and respond using the format specified above:
assistant:

=====  REQUEST  =====
user: Determine which next command to use, and respond using the format specified above:
node:events:490
      throw er; // Unhandled 'error' event
      ^

Error: spawn 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/llama.cpp/main ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn 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/llama.cpp/main',
  path: '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/llama.cpp/main',
  spawnargs: [
    '-m',
    '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',
    '--temp',
    '0.7',
    '--n_predict',
    3069,
    '--top_p',
    '0.1',
    '--top_k',
    '40',
    '-c',
    '2048',
    '--seed',
    '-1',
    '--repeat_penalty',
    '1.1764705882352942',
    '--reverse-prompt',
    'user:',
    '--reverse-prompt',
    '\nuser',
    '--reverse-prompt',
    'system:',
    '--reverse-prompt',
    '\nsystem',
    '--reverse-prompt',
    '\n\n\n',
    '-i',
    '-p',
    'Complete the following chat conversation between the user and the assistant. system messages should be strictly followed as additional instructions.\n' +
      '\n' +
      'system: You are a helpful assistant.\n' +
      'user: How are you?\n' +
      'assistant: Hi, how may I help you today?\n' +
      'system: You are Entrepreneur-GPT, an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.\n' +
      'Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications.\n' +
      '\n' +
      'GOALS:\n' +
      '\n' +
      '1. Grow Twitter Account\n' +
      '2. Increase net worth\n' +
      '3. Pass aws devops exam\n' +
      '4. Be happy\n' +
      '5. Get rich\n' +
      '\n' +
      '\n' +
      'Constraints:\n' +
      '1. ~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.\n' +
      '2. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n' +
      '3. No user assistance\n' +
      '4. Exclusively use the commands listed in double quotes e.g. "command name"\n' +
      '5. Use subprocesses for commands that will not terminate within a few minutes\n' +
      '\n' +
      'Commands:\n' +
      '1. Google Search: "google", args: "input": "<search>"\n' +
      '2. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"\n' +
      '3. Start GPT Agent: "start_agent", args: "name": "<name>", "task": "<short_task_desc>", "prompt": "<prompt>"\n' +
      '4. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"\n' +
      '5. List GPT Agents: "list_agents", args: \n' +
      '6. Delete GPT Agent: "delete_agent", args: "key": "<key>"\n' +
      '7. Clone Repository: "clone_repository", args: "repository_url": "<url>", "clone_path": "<directory>"\n' +
      '8. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"\n' +
      '9. Read file: "read_file", args: "file": "<file>"\n' +
      '10. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"\n' +
      '11. Delete file: "delete_file", args: "file": "<file>"\n' +
      '12. Search Files: "search_files", args: "directory": "<directory>"\n' +
      '13. Analyze Code: "analyze_code", args: "code": "<full_code_string>"\n' +
      '14. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"\n' +
      '15. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"\n' +
      '16. Execute Python File: "execute_python_file", args: "file": "<file>"\n' +
      '17. Generate Image: "generate_image", args: "prompt": "<prompt>"\n' +
      '18. Send Tweet: "send_tweet", args: "text": "<text>"\n' +
      '19. Do Nothing: "do_nothing", args: \n' +
      '20. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"\n' +
      '\n' +
      'Resources:\n' +
      '1. Internet access for searches and information gathering.\n' +
      '2. Long Term memory management.\n' +
      '3. GPT-3.5 powered Agents for delegation of simple tasks.\n' +
      '4. File output.\n' +
      '\n' +
      'Performance Evaluation:\n' +
      '1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n' +
      '2. Constructively self-criticize your big-picture behavior constantly.\n' +
      '3. Reflect on past decisions and strategies to refine your approach.\n' +
      '4. Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.\n' +
      '\n' +
      'You should only respond in JSON format as described below \n' +
      'Response Format: \n' +
      '{\n' +
      '    "thoughts": {\n' +
      '        "text": "thought",\n' +
      '        "reasoning": "reasoning",\n' +
      '        "plan": "- short bulleted\\n- list that conveys\\n- long-term plan",\n' +
      '        "criticism": "constructive self-criticism",\n' +
      '        "speak": "thoughts summary to say to user"\n' +
      '    },\n' +
      '    "command": {\n' +
      '        "name": "command name",\n' +
      '        "args": {\n' +
      '            "arg name": "value"\n' +
      '        }\n' +
      '    }\n' +
      '} \n' +
      'Ensure the response can be parsed by Python json.loads\n' +
      'system: The current time and date is Wed May 24 15:33:01 2023\n' +
      'system: This reminds you of these events from your past:\n' +
      '\n' +
      '\n' +
      '\n' +
      'user: Determine which next command to use, and respond using the format specified above:\n' +
      'assistant:'
  ]
}

Node.js v19.7.0

Models I have tested with:
WizardLM-7B-uncensored.ggmlv3.q4_0.bin Wizard-Vicuna-13B-Uncensored.ggmlv3.q4_0.bin stable-vicuna-13B.ggmlv3.q5_1.bin wizardLM-13B-Uncensored.ggmlv3.q4_0.bin
Please note: scripts/test-installation.sh works fine.
Any suggestions? Thanks in advance.

Hello.
Have you find a solution ?
I have the same error


Multiple tables and md-selected

Try using the select all checkbox in either table of this plunker, note that the md-selected arrays for the separate tables exhibit unexpected behavior.

This is strange, looking into it.

It's a scoping issue. I forked your Plunker to demonstrate. I created an isolate directive that creates a new scope and attached it to the cards. I honestly don't know why this is an issue. the md-data-table directive should create a new isolated scope.
It's getting late enough too where I don't feel like looking at code anymore. I'll see about fixing this tomorrow. :)

@twrk sorry I haven't been able to get to this yet. I've been pretty busy this week, I may not have a solution for this until this weekend sometime. I know what the problem is and I think it may take a little bit of refactoring to fix it properly.

@daniel-nagy No problem, you've been quick to respond and address issues, keep up the great work!

I also had some scope issue. I always get not defined as an array error even though it's an array in my controller.

@enthalpy-yan It sounds like your controller's scope may not be visible to your table. Make sure the scope of your table is a descendent of your controller's scope.

@daniel-nagy yea, I was thinking the same thing but the data(same scope) in the table rendered correctly.

Interesting, have you tried using object notation for your selected items? Something like,
var items = {
  selected: []
};

Sometimes this fixes issues with scope inheritance. If that doesn't work, if you could create a codepen, plunker, fiddle, etc. recreating the issue I would be happy to fix it for you.

How can i use different md-row-select arrays for ng-repeat created tables?

I've tried md-row-select=" '{{server.name}}' ", but no i got errors like:
rror: [$compile:nonassign] Expression ' 'TESTF' ' used with directive 'mdDataTable' is non-assignable!

@gerbil strings are non-assignable, the syntax should be md-row-select="server.name" where server.name is an array in your controller. When you select a row it will be pushed onto this array.

I have 10 tables on one page, how can i use 10 different 'selected' arrays?

Solution One
Use the ng-controller syntax.
<md-card ng-controller="myController" ng-repeat="table in tables"></md-card>

The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope.

Codepen
Solution Two
Put the array on the variable you are repeating.
<md-card ng-repeat="table in tables">
  <md-data-table-container>

   <md-data-table-container>
</md-card>

Solution Three
Create an array of arrays and access them by index.
// in you controller
scope.selected = [[],[],[]]

<md-card ng-repeat="table in [1, 2, 3]">

  <md-data-table-toolbar class="alternate" ng-show="selected[$index].length">

{{selected[$index].length}} {{selected[$index].length > 1 ? 'items' : 'item'}} selected

  </md-data-table-toolbar>

  <md-data-table-container>

  </md-data-table-container>

<md-card>

Tested solution two, works absolutely fine as far as i can see.

Solution number two gives me:
md-row-select="server.selected" : server.selected is not defined as an array in your controller, i.e. server.selected = [], two-way data binding will fail.

@gerbil to use solution two you would need to explicitly define the property selected as an array on your server object,
server = {
  selected: []
};

Your solution works too though.

Sorry for digging this up but I'm currently had an weird issue with the checkbox. Please take a look at this codepen which using the solution two: http://codepen.io/duongtd/full/Qjjadm

You're not using solution two correctly. You're using the same array to select items in both tables. You need to either attach the array to the objects you're repeating over or create a separate object of arrays and index them by key.
$scope.selected = {
  eligendi: [],
  doloremque: []
};

Thank you, I have tried with the selected[key] before, but I have no idea about the controller since the key is dynamically.

I'm just modified the code a little bit so the selected[key] will match the key in the controller since it is dynamically. However i met this error:
Cannot set property 'eligendi' of undefined
can you please take a look? http://codepen.io/duongtd/pen/Qjjadm?editors=101

Okay, I got it fixed! Instead of create the groupBy in the view, I made it in the controller and then do the ngRepeat in the view.
http://codepen.io/duongtd/full/Qjjadm
Hope someone if facing issue like me find the solution.

Hi there, i love this datatable, though i am having a problem when using multiple tables on a single page, all instances has stopped to sort and paginate. do you have any idea what could be wrong?


Use new autogenerating password capability of provider-aws in Database abstraction

What problem are you facing?
Currently, we have to create manually crafted password secrets for Database claims
How could Upbound help solve your problem?
We can use https://marketplace.upbound.io/providers/upbound/provider-aws/v0.32.1/resources/rds.aws.upbound.io/Instance/v1beta1#doc:spec-forProvider-autoGeneratePassword and deprecate manually created password

@ytsarev  @jbw976  please checkout https://github.com/upbound/platform-ref-aws/pull/111 add an option for autoGeneratePassword


Including ASql libs in Cutelyst app

I build and install ASql library in my Ubuntu system and try to include it in my Cutelyst application.
My application is build with qmake, so in my .pro file I add
INCLUDEPATH+=
/usr/include/cutelyst3-qt5
/usr/include/asql-qt5
LIBS += -lCutelyst3Qt5 -lASqlQt5 -lASqlQt5Pg
and when I add imports to my cpp file (like in all examles I have found)
#include <apool.h>
#include <apg.h>
both are not found.
Same if with  quotes.
If I add
#include "asql-qt5/ASql/apool.h"
#include "asql-qt5/ASql/apg.h"
both are found, but further compile errors occurs:
/usr/local/include/asql-qt5/ASql/apool.h:12: błąd: adatabase.h: No such file or directory
In file included from ../UnagiBackend/src/unagibackend.cpp:14:
/usr/local/include/asql-qt5/ASql/apool.h:12:10: fatal error: adatabase.h: No such file or directory
12 | #include <adatabase.h>

What is weird, when I try to add ASql to cmake-based application like in this tutorial https://www.kdab.com/qt-allstack-part-1-setup/?utm_source=sendinblue&utm_campaign=02-22&utm_medium=email
everything works good.
So... where is problem that Cutelyst libs included same way in qmake project are working well, but not ASql libs?

Well... self submit, self solved...
Seems it is problem with includes in angled vs quoted includes in QtCreator (or maybe only in qmake toolchain?)
Same code in cmake project opened in CLion builds without issues.
And.. if I include Cutelee libs to qmake project it build fine (with some mirror issue - I must add "cutelee6-qt5/" to include paths.
But in Cutelee all imports are quoted, but in ASql ale angled.
THAT IS DIFFERENCE AND PROBLEM.

Well... self submit, self solved...
Seems it is problem with includes in angled vs quoted includes in QtCreator (or maybe only in qmake toolchain?)
Same code in cmake project opened in CLion builds without issues.
And.. if I include Cutelee libs to qmake project it build fine (with some mirror issue - I must add "cutelee6-qt5/" to include paths.
But in Cutelee all imports are quoted, but in ASql some are angled.
THAT IS DIFFERENCE AND PROBLEM.

the proper include now is <ASql/adatabase>

After fresh reinstall I even dont compile ASql and use deb package.
Still same issue with angled inlcudes in ASql headers!!
I must fork it and change <> to ""

You clearly have some issue in your cmake/setup, I use it in several projects just fine.